← Back
Editing: plugin-vendor.min.js
(()=>{var e={3(){window.DupliJs=window.DupliJs||{},DupliJs.Pack=DupliJs.Pack||{},DupliJs.Settings=DupliJs.Settings||{},DupliJs.Storage=DupliJs.Storage||{},DupliJs.Storage.Local=DupliJs.Storage.Local||{},DupliJs.Support=DupliJs.Support||{},DupliJs.Tools=DupliJs.Tools||{},DupliJs.UI=DupliJs.UI||{},DupliJs.Util=DupliJs.Util||{},DupliJs.Debug=DupliJs.Debug||{},DupliJs.Help=DupliJs.Help||{},DupliJs.Libs=DupliJs.Libs||{}},174(){ /*! dup tooltip */ !function(e){function t(e,t,...r){var n=e._tippy;return n&&n.state&&!n.state.isDestroyed?n[t](...r):null}DuplicatorTooltip={initialized:!1,messages:Object.assign({},{copy:"Copy to Clipboard",copied:"Copied to Clipboard",copyUnable:"Unable to Copy"},"object"==typeof l10nDupTooltip?l10nDupTooltip:{}),load:function(){this.initialized||(this.loadSelector(".duplicator-page .wrap [title], [data-tooltip]"),this.loadCopySelector("[data-dup-copy-value]"),this.initialized=!0)},loadSelector:function(t){e(t).each(function(){if(!this._tippy){if(void 0===e(this).data("tooltip")){if(void 0===e(this).attr("title")||""===e(this).attr("title"))return;e(this).attr("data-tooltip",e(this).attr("title")),e(this).removeAttr("title")}void 0!==e(this).data("tooltip-width")?$maxWdith=e(this).data("tooltip-width"):$maxWdith=350,DupliJs.Libs.tippy(this,{content:function(e){var t=e.dataset.tooltipTitle,r=void 0!==t?"<h3>"+t+"</h3>":"";return r+='<div class="dup-tippy-content">'+e.dataset.tooltip+"</div>"},allowHTML:!0,interactive:!0,placement:this.dataset.tooltipPlacement?this.dataset.tooltipPlacement:"bottom-start",theme:"duplicator",zIndex:9e5,appendTo:document.body,maxWidth:$maxWdith,delay:0,onCreate(e){e.popper.childNodes.forEach(e=>{e.classList.add("dup-styles")})}}),e(this).data("dup-tooltip-loaded",!0)}})},loadCopySelector:function(r){e(r).each(function(){if(!this._tippy){var r=e(this);if(!r.hasClass("disabled")){var n=DupliJs.Libs.tippy(this,{allowHTML:!0,placement:this.dataset.tooltipPlacement?this.dataset.tooltipPlacement:"bottom-start",theme:"duplicator",zIndex:9e5,hideOnClick:!1,trigger:"manual",delay:0,onCreate(e){e.popper.childNodes.forEach(e=>{e.classList.add("dup-styles")})}}),i=r.is("[data-dup-copy-title]")?r.data("dup-copy-title"):DuplicatorTooltip.messages.copy;n.setContent('<div class="dup-tippy-content">'+i+"</div>"),r.on("mouseenter.dupTooltip",function(){t(this,"show")}).on("mouseleave.dupTooltip",function(){t(this,"hide")}),r.on("click.dupTooltip",function(){var e=this,n=r.data("dup-copy-value"),s=r.is("[data-dup-copied-title]")?r.data("dup-copied-title"):n+" "+DuplicatorTooltip.messages.copied,a=DuplicatorTooltip.messages.copyUnable;jQuery("<textarea></textarea>").css({position:"absolute",top:"-10000px"}).text(n).appendTo("body").select();try{a=document.execCommand("copy")?s:DuplicatorTooltip.messages.copyUnable}catch(e){console.log(e)}t(e,"setContent",'<div class="dup-tippy-content">'+a+"</div>"),t(e,"setProps",{theme:"duplicator-filled"}),setTimeout(function(){t(e,"setContent",'<div class="dup-tippy-content">'+i+"</div>"),t(e,"setProps",{theme:"duplicator"})},2e3)})}}})},updateElementContent:function(t,r){e(t).get(0)&&e(t).get(0)._tippy.setContent('<div class="dup-tippy-content">'+r+"</div>")},unload:function(){document.querySelectorAll("[data-tooltip], [data-dup-copy-value]").forEach(function(t){e(t).off(".dupTooltip"),t._tippy&&(t._tippy.destroy(),t._tippy=null)}),this.initialized=!1},reload:function(){this.unload(),this.load()}}}(jQuery)},104(){jQuery(document).ready(function(e){DupliJs.Help.Data=null,DupliJs.Help.isDataLoaded=function(){return null!==DupliJs.Help.Data},DupliJs.Help.ToggleCategory=function(t){e(t).find(".fa-angle-right").toggleClass("fa-rotate-90"),e(t).siblings(".dupli-help-article-list").slideToggle(),e(t).siblings(".dupli-help-category-list").slideToggle()},DupliJs.Help.Search=function(t){let r=e("#dupli-help-search-results"),n=e("#dupli-help-search-results-empty"),i=e("#dupli-context-articles"),s=e(".dupli-help-article"),a=DupliJs.Help.GetRegex(t);if(0===t.length&&null===a)return i.show(),r.hide(),void n.hide();let o=!1,l=[];i.hide(),r.empty(),s.each(function(){let t=e(this),n=t.data("id");-1!==t.find("a").text().toLowerCase().search(a)&&-1===l.indexOf(n)&&(o=!0,r.append(t.clone()),l.push(n))}),o?(r.show(),n.hide()):(r.hide(),n.show())},DupliJs.Help.Load=function(t){DupliJs.Help.isDataLoaded()||e.ajax({type:"GET",url:t,beforeSend:function(e){DupliJs.Util.ajaxProgressShow()},success:function(e){DupliJs.Help.Data=e,DupliJs.Help.Display()},error:function(e){DupliJs.addAdminMessage(l10nDupDynamicHelp.failedLoad,"error")},complete:function(){DupliJs.Util.ajaxProgressHide()}})},DupliJs.Help.Display=function(){if(!DupliJs.Help.isDataLoaded())throw"DupliJs.Help.Data is null";new DuplicatorModalBox({htmlContent:DupliJs.Help.Data,closeColor:"#000",fullscreen:!0}).open()},DupliJs.Help.GetRegex=function(t=""){let r="",n=null;return t.length<1?null:(e.each(t.split(" "),function(e,t){(t=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).length>1&&(r+="(?=.*"+t+")")}),n=new RegExp(r,"i"),n)},e("body").on("click",".dupli-help-category header",function(){DupliJs.Help.ToggleCategory(this)}),e("body").on("keyup","#dupli-help-search input",function(){DupliJs.Help.Search(e(this).val().toLowerCase())})})},10(e,t,r){var n,i,s;/*! formstone v1.4.17 [core.js] 2020-10-06 | GPL-3.0 License | formstone.it */i=[r(43)],n=function(e){"use strict";function t(){this.Version="1.4.17",this.Plugins={},this.DontConflict=!1,this.Conflicts={fn:{}},this.ResizeHandlers=[],this.RAFHandlers=[],this.window=s,this.$window=e(s),this.document=a,this.$document=e(a),this.$body=null,this.windowWidth=0,this.windowHeight=0,this.fallbackWidth=1024,this.fallbackHeight=768,this.userAgent=window.navigator.userAgent||window.navigator.vendor||window.opera,this.isFirefox=/Firefox/i.test(this.userAgent),this.isChrome=/Chrome/i.test(this.userAgent),this.isSafari=/Safari/i.test(this.userAgent)&&!this.isChrome,this.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(this.userAgent),this.isIEMobile=/IEMobile/i.test(this.userAgent),this.isFirefoxMobile=this.isFirefox&&this.isMobile,this.transform=null,this.transition=null,this.support={file:!!(window.File&&window.FileList&&window.FileReader),history:!!(window.history&&window.history.pushState&&window.history.replaceState),matchMedia:!(!window.matchMedia&&!window.msMatchMedia),pointer:!!window.PointerEvent,raf:!(!window.requestAnimationFrame||!window.cancelAnimationFrame),touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),transition:!1,transform:!1}}var r,n,i,s="undefined"!=typeof window?window:this,a=s.document,o={killEvent:function(e,t){try{e.preventDefault(),e.stopPropagation(),t&&e.stopImmediatePropagation()}catch(e){}},killGesture:function(e){try{e.preventDefault()}catch(e){}},lockViewport:function(t){f[t]=!0,e.isEmptyObject(f)||g||(r.length?r.attr("content",i):r=e("head").append('<meta name="viewport" content="'+i+'">'),l.$body.on(h.gestureChange,o.killGesture).on(h.gestureStart,o.killGesture).on(h.gestureEnd,o.killGesture),g=!0)},unlockViewport:function(t){"undefined"!==e.type(f[t])&&delete f[t],e.isEmptyObject(f)&&g&&(r.length&&(n?r.attr("content",n):r.remove()),l.$body.off(h.gestureChange).off(h.gestureStart).off(h.gestureEnd),g=!1)},startTimer:function(e,t,r,n){return o.clearTimer(e),n?setInterval(r,t):setTimeout(r,t)},clearTimer:function(e,t){e&&(t?clearInterval(e):clearTimeout(e),e=null)},sortAsc:function(e,t){return parseInt(e,10)-parseInt(t,10)},sortDesc:function(e,t){return parseInt(t,10)-parseInt(e,10)},decodeEntities:function(e){var t=l.document.createElement("textarea");return t.innerHTML=e,t.value},parseQueryString:function(e){for(var t={},r=e.slice(e.indexOf("?")+1).split("&"),n=0;n<r.length;n++){var i=r[n].split("=");t[i[0]]=i[1]}return t}},l=new t,c=e.Deferred(),d={base:"{ns}",element:"{ns}-element"},h={namespace:".{ns}",beforeUnload:"beforeunload.{ns}",blur:"blur.{ns}",change:"change.{ns}",click:"click.{ns}",dblClick:"dblclick.{ns}",drag:"drag.{ns}",dragEnd:"dragend.{ns}",dragEnter:"dragenter.{ns}",dragLeave:"dragleave.{ns}",dragOver:"dragover.{ns}",dragStart:"dragstart.{ns}",drop:"drop.{ns}",error:"error.{ns}",focus:"focus.{ns}",focusIn:"focusin.{ns}",focusOut:"focusout.{ns}",gestureChange:"gesturechange.{ns}",gestureStart:"gesturestart.{ns}",gestureEnd:"gestureend.{ns}",input:"input.{ns}",keyDown:"keydown.{ns}",keyPress:"keypress.{ns}",keyUp:"keyup.{ns}",load:"load.{ns}",mouseDown:"mousedown.{ns}",mouseEnter:"mouseenter.{ns}",mouseLeave:"mouseleave.{ns}",mouseMove:"mousemove.{ns}",mouseOut:"mouseout.{ns}",mouseOver:"mouseover.{ns}",mouseUp:"mouseup.{ns}",panStart:"panstart.{ns}",pan:"pan.{ns}",panEnd:"panend.{ns}",resize:"resize.{ns}",scaleStart:"scalestart.{ns}",scaleEnd:"scaleend.{ns}",scale:"scale.{ns}",scroll:"scroll.{ns}",select:"select.{ns}",swipe:"swipe.{ns}",touchCancel:"touchcancel.{ns}",touchEnd:"touchend.{ns}",touchLeave:"touchleave.{ns}",touchMove:"touchmove.{ns}",touchStart:"touchstart.{ns}"},u=null,p=20,f=[],g=!1;function _(e,t,r,n){var i,s={raw:{}};for(i in n=n||{})n.hasOwnProperty(i)&&("classes"===e?(s.raw[n[i]]=t+"-"+n[i],s[n[i]]="."+t+"-"+n[i]):(s.raw[i]=n[i],s[i]=n[i]+"."+t));for(i in r)r.hasOwnProperty(i)&&("classes"===e?(s.raw[i]=r[i].replace(/{ns}/g,t),s[i]=r[i].replace(/{ns}/g,"."+t)):(s.raw[i]=r[i].replace(/.{ns}/g,""),s[i]=r[i].replace(/{ns}/g,t)));return s}function m(){l.windowWidth=l.$window.width(),l.windowHeight=l.$window.height(),u=o.startTimer(u,p,v)}function v(){for(var e in l.ResizeHandlers)l.ResizeHandlers.hasOwnProperty(e)&&l.ResizeHandlers[e].callback.call(window,l.windowWidth,l.windowHeight)}function y(e,t){return parseInt(e.priority)-parseInt(t.priority)}return t.prototype.NoConflict=function(){for(var t in l.DontConflict=!0,l.Plugins)l.Plugins.hasOwnProperty(t)&&(e[t]=l.Conflicts[t],e.fn[t]=l.Conflicts.fn[t])},t.prototype.Ready=function(e){"complete"===l.document.readyState||"loading"!==l.document.readyState&&!l.document.documentElement.doScroll?e():l.document.addEventListener("DOMContentLoaded",e)},t.prototype.Plugin=function(t,r){function n(e){return e.data(c)}var i,s,a,c;return l.Plugins[t]=(s=r,a="fs-"+(i=t),c="fs"+i.replace(/(^|\s)([a-z])/g,function(e,t,r){return t+r.toUpperCase()}),s.initialized=!1,s.priority=s.priority||10,s.classes=_("classes",a,d,s.classes),s.events=_("events",i,h,s.events),s.functions=e.extend({getData:n,iterate:function(t){for(var r=Array.prototype.slice.call(arguments,1),i=0,s=this.length;i<s;i++){var a=this.eq(i),o=n(a)||{};"undefined"!==e.type(o.$el)&&t.apply(a,[o].concat(r))}return this}},o,s.functions),s.methods=e.extend(!0,{_construct:e.noop,_postConstruct:e.noop,_destruct:e.noop,_resize:!1,destroy:function(e){s.functions.iterate.apply(this,[s.methods._destruct].concat(Array.prototype.slice.call(arguments,1))),this.removeClass(s.classes.raw.element).removeData(c)}},s.methods),s.utilities=e.extend(!0,{_initialize:!1,_delegate:!1,defaults:function(t){s.defaults=e.extend(!0,s.defaults,t||{})}},s.utilities),s.widget&&(l.Conflicts.fn[i]=e.fn[i],e.fn[c]=function(t){if(this instanceof e){var r=s.methods[t];if("object"===e.type(t)||!t)return function(t){var r,a,o,l="object"===e.type(t),d=Array.prototype.slice.call(arguments,l?1:0),h=e();for(t=e.extend(!0,{},s.defaults||{},l?t:{}),a=0,o=this.length;a<o;a++)if(!n(r=this.eq(a))){s.guid++;var u="__"+s.guid,p=s.classes.raw.base+u,f=r.data(i+"-options"),g=e.extend(!0,{$el:r,guid:u,numGuid:s.guid,rawGuid:p,dotGuid:"."+p},t,"object"===e.type(f)?f:{});r.addClass(s.classes.raw.element).data(c,g),s.methods._construct.apply(r,[g].concat(d)),h=h.add(r)}for(a=0,o=h.length;a<o;a++)r=h.eq(a),s.methods._postConstruct.apply(r,[n(r)]);return this}.apply(this,arguments);if(r&&0!==t.indexOf("_")){var a=[r].concat(Array.prototype.slice.call(arguments,1));return s.functions.iterate.apply(this,a)}return this}},l.DontConflict||(e.fn[i]=e.fn[c])),l.Conflicts[i]=e[i],e[c]=s.utilities._delegate||function(t){var r=s.utilities[t]||s.utilities._initialize||!1;if(r){var n=Array.prototype.slice.call(arguments,"object"===e.type(t)?0:1);return r.apply(window,n)}},l.DontConflict||(e[i]=e[c]),s.namespace=i,s.namespaceClean=c,s.guid=0,s.methods._resize&&(l.ResizeHandlers.push({namespace:i,priority:s.priority,callback:s.methods._resize}),l.ResizeHandlers.sort(y)),s.methods._raf&&(l.RAFHandlers.push({namespace:i,priority:s.priority,callback:s.methods._raf}),l.RAFHandlers.sort(y)),s),l.Plugins[t]},l.$window.on("resize.fs",m),m(),function e(){if(l.support.raf)for(var t in l.window.requestAnimationFrame(e),l.RAFHandlers)l.RAFHandlers.hasOwnProperty(t)&&l.RAFHandlers[t].callback.call(window)}(),l.Ready(function(){l.$body=e("body"),e("html").addClass(l.support.touch?"touchevents":"no-touchevents"),r=e('meta[name="viewport"]'),n=!!r.length&&r.attr("content"),i="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",c.resolve()}),h.clickTouchStart=h.click+" "+h.touchStart,function(){var e,t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"},r=["transition","-webkit-transition"],n={transform:"transform",MozTransform:"-moz-transform",OTransform:"-o-transform",msTransform:"-ms-transform",webkitTransform:"-webkit-transform"},i="transitionend",s="",a="",o=document.createElement("div");for(e in t)if(t.hasOwnProperty(e)&&e in o.style){i=t[e],l.support.transition=!0;break}for(e in h.transitionEnd=i+".{ns}",r)if(r.hasOwnProperty(e)&&r[e]in o.style){s=r[e];break}for(e in l.transition=s,n)if(n.hasOwnProperty(e)&&n[e]in o.style){l.support.transform=!0,a=n[e];break}l.transform=a}(),window.Formstone=l},void 0===(s="function"==typeof n?n.apply(t,i):n)||(e.exports=s)},232(e,t,r){var n,i,s;/*! formstone v1.4.17 [upload.js] 2020-10-06 | GPL-3.0 License | formstone.it */i=[r(43),r(10)],void 0===(s="function"==typeof(n=function(e,t){"use strict";function r(e,t,r){t.error=!0,e.$el.trigger(b.fileError,[t,r]),e.aborting||f(e)}function n(e){e.disabled&&(this.removeClass(y.disabled),e.$input.prop("disabled",!1),e.disabled=!1)}function i(e){w.killEvent(e);var t=e.data;t.disabled||t.$input.trigger(b.click)}function s(e){e.data.$el.addClass(y.focus)}function a(e){e.data.$el.removeClass(y.focus)}function o(e){w.killEvent(e);var t=e.data,r=t.$input[0].files;!t.disabled&&r.length&&u(t,r)}function l(e){w.killEvent(e),e.data.$el.addClass(y.dropping).trigger(b.fileDragEnter)}function c(e){w.killEvent(e),e.data.$el.addClass(y.dropping).trigger(b.fileDragOver)}function d(e){w.killEvent(e),e.data.$el.removeClass(y.dropping).trigger(b.fileDragLeave)}function h(e){w.killEvent(e);var t=e.data,r=e.originalEvent.dataTransfer.files;t.$el.removeClass(y.dropping),t.disabled||u(t,r)}function u(e,t){var r=[],n=t.length;if(e.maxFiles){var i=e.maxFiles-e.uploaded;0<=i&&t.length>i&&(n=i)}if(0<n){for(var s=0;s<n;s++){var a={index:e.total++,file:t[s],name:t[s].name,size:t[s].size,started:!1,complete:!1,error:!1,transfer:null};r.push(a),e.queue.push(a)}e.$el.trigger(b.queued,[r]),e.autoUpload&&p(e)}e.$input.val("")}function p(e){e.uploading||(x.on(b.beforeUnload,function(){return e.leave}),e.uploading=!0,e.$el.trigger(b.start,[e.queue])),f(e)}function f(e){var t=0,r=[];if(e.uploading){for(var n in e.queue)!e.queue.hasOwnProperty(n)||e.queue[n].complete||e.queue[n].error||r.push(e.queue[n]);for(var i in e.queue=r,e.queue)if(e.queue.hasOwnProperty(i)){if(e.queue[i].started||g(e,e.queue[i]),++t>=e.maxConcurrent)return;n++}0===t&&(x.off(b.beforeUnload),e.uploading=!1,e.$el.trigger(b.complete))}}function g(t,n){if(n.size>=t.maxSize||!0===n.error)r(t,n,"size");else if(t.chunked)n.started=!0,n.chunkSize=1024*t.chunkSize,n.totalChunks=Math.ceil(n.size/n.chunkSize),n.currentChunk=0,t.$el.trigger(b.fileStart,[n]),function t(n,i){var s=i.chunkSize*i.currentChunk,a=s+i.chunkSize;a>i.size&&(a=i.size);var o=i.file[k](s,a),l=new FormData;l.append(n.postKey,o,i.file.name),l.append("chunks",i.totalChunks),l.append("chunk",i.currentChunk),!1===(l=_(n,l,i))?r(n,i,"abort"):i.chunkTransfer=e.ajax({url:n.action,data:l,dataType:n.dataType,headers:n.headers,type:"POST",contentType:!1,processData:!1,cache:!1,beforeSend:function(e,t){n.$el.trigger(b.chunkStart,[i,t,e])},success:function(e,r,s){i.currentChunk++,n.$el.trigger(b.chunkComplete,[i]);var a=Math.ceil(i.currentChunk/i.totalChunks*100);n.$el.trigger(b.fileProgress,[i,a,r,s]),i.currentChunk<i.totalChunks?t(n,i):(i.complete=!0,n.$el.trigger(b.fileComplete,[i,e,r,s]),f(n))},error:function(e,t,s){var a,o,l;o=i,l=s,(a=n).$el.trigger(b.chunkError,[o,l]),r(a,o,l)}})}(t,n);else{var i=new FormData;i.append(t.postKey,n.file),!1===(i=_(t,i,n))?r(t,n,"abort"):(n.started=!0,n.transfer=e.ajax({url:t.action,data:i,dataType:t.dataType,headers:t.headers,type:"POST",contentType:!1,processData:!1,cache:!1,xhr:function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,i=e.loaded||e.position,s=e.total;e.lengthComputable&&(r=Math.ceil(i/s*100)),t.$el.trigger(b.fileProgress,[n,r,e])},!1),r},beforeSend:function(e,r){t.$el.trigger(b.fileStart,[n,r,e])},success:function(e,r,i){n.complete=!0,t.uploaded++,t.$el.trigger(b.fileComplete,[n,e,r,i]),f(t)},error:function(e,i,s){r(t,n,s)}}))}}function _(e,t,r){for(var n in e.postData)e.postData.hasOwnProperty(n)&&t.append(n,e.postData[n]);return e.beforeSend.call(e.$el,t,r)}var m=t.Plugin("upload",{widget:!0,defaults:{accept:!1,action:"",autoUpload:!0,beforeSend:function(e){return e},chunked:!1,chunkSize:100,customClass:"",dataType:"html",headers:{},label:"Drag and drop files or click to select",leave:"You have uploads pending, are you sure you want to leave this page?",maxConcurrent:2,maxFiles:!1,maxSize:5242880,multiple:!0,postData:{},postKey:"file",theme:"fs-light"},classes:["input","target","multiple","dropping","disabled","focus"],methods:{_construct:function(e){if(t.support.file){var r="";k||(e.chunked=!1),e.maxQueue&&(e.maxConcurrent=e.maxQueue),!1!==e.label&&(r+='<div class="'+y.target+'">',r+=e.label,r+="</div>"),r+='<input class="'+y.input+'" type="file"',e.multiple&&(r+=" multiple"),e.accept&&(r+=' accept="'+e.accept+'"'),r+=">",e.baseClasses=[y.base,e.theme,e.customClass].join(" "),this.addClass(e.baseClasses).append(r),e.$input=this.find(v.input),e.queue=[],e.total=0,e.uploaded=0,e.uploading=!1,e.disabled=!0,e.aborting=!1,this.on(b.click,v.target,e,i).on(b.dragEnter,e,l).on(b.dragOver,e,c).on(b.dragLeave,e,d).on(b.drop,e,h),e.$input.on(b.focus,e,s).on(b.blur,e,a).on(b.change,e,o),n.call(this,e)}},_destruct:function(e){t.support.file&&(e.$input.off(b.namespace),this.off(b.namespace).removeClass(e.baseClasses).html(""))},disable:function(e){e.disabled||(this.addClass(y.disabled),e.$input.prop("disabled",!0),e.disabled=!0)},enable:n,abort:function(t,n){var i;for(var s in t.aborting=!0,t.queue)t.queue.hasOwnProperty(s)&&(i=t.queue[s],("undefined"===e.type(n)||0<=n&&i.index===n)&&(i.started&&!i.complete?t.chunked?i.chunkTransfer.abort():i.transfer.abort():r(t,i,"abort")));t.aborting=!1,f(t)},start:p}}),v=m.classes,y=v.raw,b=m.events,w=m.functions,x=(t.window,t.$window),k=!1;t.Ready(function(){var e=["mozSlice","webkitSlice","slice"];if(t.support.file){var r=!1;try{r=new File([""],"f")}catch(e){}if(!r)try{r=new Blob([""],{})}catch(e){}if(r)for(var n in e)if(e.hasOwnProperty(n)&&e[n]in r){k=e[n];break}}}),b.chunkComplete="chunkcomplete",b.chunkError="chunkerror",b.chunkStart="chunkstart",b.complete="complete",b.fileComplete="filecomplete",b.fileDragEnter="filedragenter",b.fileDragLeave="filedragleave",b.fileDragOver="filedragover",b.fileError="fileerror",b.fileProgress="fileprogress",b.fileStart="filestart",b.start="start",b.queued="queued"})?n.apply(t,i):n)||(e.exports=s)},596(e){ /**! @license handlebars v4.7.9 Copyright (C) 2011-2019 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(2)),s=n(r(83)),a=r(84),o=r(89),l=n(r(90)),c=n(r(87)),d=n(r(82)),h=i.default.create;function u(){var e=h();return e.compile=function(t,r){return o.compile(t,r,e)},e.precompile=function(t,r){return o.precompile(t,r,e)},e.AST=s.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=a.parser,e.parse=a.parse,e.parseWithoutProcessing=a.parseWithoutProcessing,e}var p=u();p.create=u,d.default(p),p.Visitor=c.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,r){"use strict";var n=r(3).default,i=r(1).default;t.__esModule=!0;var s=n(r(4)),a=i(r(76)),o=i(r(6)),l=n(r(5)),c=n(r(77)),d=i(r(82));function h(){var e=new s.HandlebarsEnvironment;return l.extend(e,s),e.SafeString=a.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var u=h();u.create=h,d.default(u),u.default=u,t.default=u,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t.__esModule=!0},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0,t.HandlebarsEnvironment=h;var i=r(5),s=n(r(6)),a=r(10),o=r(70),l=n(r(72)),c=r(73);t.VERSION="4.7.9",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var d="[object Object]";function h(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},a.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}h.prototype={constructor:h,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(i.toString.call(e)===d){if(t)throw new s.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===d)i.extend(this.partials,e);else{if(void 0===t)throw new s.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===d){if(t)throw new s.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var u=l.default.log;t.log=u,t.createFrame=i.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=a,t.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(n,s):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=a({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},n=/[&<>"'`=]/g,i=/[&<>"'`=]/;function s(e){return r[e]}function a(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,r){"use strict";var n=r(7).default;t.__esModule=!0;var i=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function s(e,t){var r=t&&t.loc,a=void 0,o=void 0,l=void 0,c=void 0;r&&(a=r.start.line,o=r.end.line,l=r.start.column,c=r.end.column,e+=" - "+a+":"+l);for(var d=Error.prototype.constructor.call(this,e),h=0;h<i.length;h++)this[i[h]]=d[i[h]];Error.captureStackTrace&&Error.captureStackTrace(this,s);try{r&&(this.lineNumber=a,this.endLineNumber=o,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}s.prototype=new Error,t.default=s,e.exports=t.default},function(e,t,r){e.exports={default:r(8),__esModule:!0}},function(e,t,r){var n=r(9);e.exports=function(e,t,r){return n.setDesc(e,t,r)}},function(e,t){var r=Object;e.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),s.default(e),a.default(e),o.default(e),l.default(e),c.default(e),d.default(e)},t.moveHelperToHooks=function(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||(e.helpers[t]=void 0))};var i=n(r(11)),s=n(r(12)),a=n(r(65)),o=n(r(66)),l=n(r(67)),c=n(r(68)),d=n(r(69))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(5);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var i=r.inverse,s=r.fn;if(!0===t)return s(this);if(!1===t||null==t)return i(this);if(n.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):i(this);if(r.data&&r.ids){var a=n.createFrame(r.data);a.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:a}}return s(t,r)})},e.exports=t.default},function(e,t,r){"use strict";var n=r(13).default,i=r(43).default,s=r(55).default,a=r(60).default,o=r(1).default;t.__esModule=!0;var l=r(5),c=o(r(6));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new c.default("Must pass iterator to #each");var r,o=t.fn,d=t.inverse,h=0,u="",p=void 0,f=void 0;function g(t,r,n){p&&(p.key=t,p.index=r,p.first=0===r,p.last=!!n,f&&(p.contextPath=f+t)),u+=o(e[t],{data:p,blockParams:l.blockParams([e[t],t],[f+t,null])})}if(t.data&&t.ids&&(f=l.appendContextPath(t.data.contextPath,t.ids[0])+"."),l.isFunction(e)&&(e=e.call(this)),t.data&&(p=l.createFrame(t.data)),e&&"object"==typeof e)if(l.isArray(e))for(var _=e.length;h<_;h++)h in e&&g(h,h,h===e.length-1);else if("function"==typeof n&&e[i]){for(var m=[],v=s(e),y=v.next();!y.done;y=v.next())m.push(y.value);for(_=(e=m).length;h<_;h++)g(h,h,h===e.length-1)}else r=void 0,a(e).forEach(function(e){void 0!==r&&g(r,h-1),r=e,h++}),void 0!==r&&g(r,h-1,!0);return 0===h&&(u=d(this)),u})},e.exports=t.default},function(e,t,r){e.exports={default:r(14),__esModule:!0}},function(e,t,r){r(15),r(42),e.exports=r(21).Symbol},function(e,t,r){"use strict";var n=r(9),i=r(16),s=r(17),a=r(18),o=r(20),l=r(24),c=r(19),d=r(27),h=r(28),u=r(30),p=r(29),f=r(31),g=r(36),_=r(37),m=r(38),v=r(39),y=r(32),b=r(26),w=n.getDesc,x=n.setDesc,k=n.create,j=g.get,C=i.Symbol,S=i.JSON,A=S&&S.stringify,E=!1,O=p("_hidden"),P=n.isEnum,$=d("symbol-registry"),D=d("symbols"),T="function"==typeof C,L=Object.prototype,N=a&&c(function(){return 7!=k(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=w(L,t);n&&delete L[t],x(e,t,r),n&&e!==L&&x(L,t,n)}:x,I=function(e){var t=D[e]=k(C.prototype);return t._k=e,a&&E&&N(L,e,{configurable:!0,set:function(t){s(this,O)&&s(this[O],e)&&(this[O][e]=!1),N(this,e,b(1,t))}}),t},M=function(e){return"symbol"==typeof e},F=function(e,t,r){return r&&s(D,t)?(r.enumerable?(s(e,O)&&e[O][t]&&(e[O][t]=!1),r=k(r,{enumerable:b(0,!1)})):(s(e,O)||x(e,O,b(1,{})),e[O][t]=!0),N(e,t,r)):x(e,t,r)},R=function(e,t){v(e);for(var r,n=_(t=y(t)),i=0,s=n.length;s>i;)F(e,r=n[i++],t[r]);return e},H=function(e,t){return void 0===t?k(e):R(k(e),t)},q=function(e){var t=P.call(this,e);return!(t||!s(this,e)||!s(D,e)||s(this,O)&&this[O][e])||t},B=function(e,t){var r=w(e=y(e),t);return!r||!s(D,t)||s(e,O)&&e[O][t]||(r.enumerable=!0),r},U=function(e){for(var t,r=j(y(e)),n=[],i=0;r.length>i;)s(D,t=r[i++])||t==O||n.push(t);return n},z=function(e){for(var t,r=j(y(e)),n=[],i=0;r.length>i;)s(D,t=r[i++])&&n.push(D[t]);return n},V=c(function(){var e=C();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))});T||(C=function(){if(M(this))throw TypeError("Symbol is not a constructor");return I(u(arguments.length>0?arguments[0]:void 0))},l(C.prototype,"toString",function(){return this._k}),M=function(e){return e instanceof C},n.create=H,n.isEnum=q,n.getDesc=B,n.setDesc=F,n.setDescs=R,n.getNames=g.get=U,n.getSymbols=z,a&&!r(41)&&l(L,"propertyIsEnumerable",q,!0));var W={for:function(e){return s($,e+="")?$[e]:$[e]=C(e)},keyFor:function(e){return f($,e)},useSetter:function(){E=!0},useSimple:function(){E=!1}};n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=p(e);W[e]=T?t:I(t)}),E=!0,o(o.G+o.W,{Symbol:C}),o(o.S,"Symbol",W),o(o.S+o.F*!T,"Object",{create:H,defineProperty:F,defineProperties:R,getOwnPropertyDescriptor:B,getOwnPropertyNames:U,getOwnPropertySymbols:z}),S&&o(o.S+o.F*(!T||V),"JSON",{stringify:function(e){if(void 0!==e&&!M(e)){for(var t,r,n=[e],i=1,s=arguments;s.length>i;)n.push(s[i++]);return"function"==typeof(t=n[1])&&(r=t),!r&&m(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!M(t))return t}),n[1]=t,A.apply(S,n)}}}),h(C,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){e.exports=!r(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(16),i=r(21),s=r(22),a="prototype",o=function(e,t,r){var l,c,d,h=e&o.F,u=e&o.G,p=e&o.S,f=e&o.P,g=e&o.B,_=e&o.W,m=u?i:i[t]||(i[t]={}),v=u?n:p?n[t]:(n[t]||{})[a];for(l in u&&(r=t),r)(c=!h&&v&&l in v)&&l in m||(d=c?v[l]:r[l],m[l]=u&&"function"!=typeof v[l]?r[l]:g&&c?s(d,n):_&&v[l]==d?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(d):f&&"function"==typeof d?s(Function.call,d):d,f&&((m[a]||(m[a]={}))[l]=d))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,e.exports=o},function(e,t){var r=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(23);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){e.exports=r(25)},function(e,t,r){var n=r(9),i=r(26);e.exports=r(18)?function(e,t,r){return n.setDesc(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(16),i="__core-js_shared__",s=n[i]||(n[i]={});e.exports=function(e){return s[e]||(s[e]={})}},function(e,t,r){var n=r(9).setDesc,i=r(17),s=r(29)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,r){var n=r(27)("wks"),i=r(30),s=r(16).Symbol;e.exports=function(e){return n[e]||(n[e]=s&&s[e]||(s||i)("Symbol."+e))}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(9),i=r(32);e.exports=function(e,t){for(var r,s=i(e),a=n.getKeys(s),o=a.length,l=0;o>l;)if(s[r=a[l++]]===t)return r}},function(e,t,r){var n=r(33),i=r(35);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(32),i=r(9).getNames,s={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.get=function(e){return a&&"[object Window]"==s.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){var n=r(9);e.exports=function(e){var t=n.getKeys(e),r=n.getSymbols;if(r)for(var i,s=r(e),a=n.isEnum,o=0;s.length>o;)a.call(e,i=s[o++])&&t.push(i);return t}},function(e,t,r){var n=r(34);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(40);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=!0},function(e,t){},function(e,t,r){e.exports={default:r(44),__esModule:!0}},function(e,t,r){r(45),r(51),e.exports=r(29)("iterator")},function(e,t,r){"use strict";var n=r(46)(!0);r(48)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(47),i=r(35);e.exports=function(e){return function(t,r){var s,a,o=String(i(t)),l=n(r),c=o.length;return l<0||l>=c?e?"":void 0:(s=o.charCodeAt(l))<55296||s>56319||l+1===c||(a=o.charCodeAt(l+1))<56320||a>57343?e?o.charAt(l):s:e?o.slice(l,l+2):a-56320+(s-55296<<10)+65536}}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(41),i=r(20),s=r(24),a=r(25),o=r(17),l=r(49),c=r(50),d=r(28),h=r(9).getProto,u=r(29)("iterator"),p=!([].keys&&"next"in[].keys()),f="@@iterator",g="keys",_="values",m=function(){return this};e.exports=function(e,t,r,v,y,b,w){c(r,t,v);var x,k,j=function(e){if(!p&&e in E)return E[e];switch(e){case g:case _:return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",S=y==_,A=!1,E=e.prototype,O=E[u]||E[f]||y&&E[y],P=O||j(y);if(O){var $=h(P.call(new e));d($,C,!0),!n&&o(E,f)&&a($,u,m),S&&O.name!==_&&(A=!0,P=function(){return O.call(this)})}if(n&&!w||!p&&!A&&E[u]||a(E,u,P),l[t]=P,l[C]=m,y)if(x={values:S?P:j(_),keys:b?P:j(g),entries:S?j("entries"):P},w)for(k in x)k in E||s(E,k,x[k]);else i(i.P+i.F*(p||A),t,x);return x}},function(e,t){e.exports={}},function(e,t,r){"use strict";var n=r(9),i=r(26),s=r(28),a={};r(25)(a,r(29)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n.create(a,{next:i(1,r)}),s(e,t+" Iterator")}},function(e,t,r){r(52);var n=r(49);n.NodeList=n.HTMLCollection=n.Array},function(e,t,r){"use strict";var n=r(53),i=r(54),s=r(49),a=r(32);e.exports=r(48)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(56),__esModule:!0}},function(e,t,r){r(51),r(45),e.exports=r(57)},function(e,t,r){var n=r(39),i=r(58);e.exports=r(21).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},function(e,t,r){var n=r(59),i=r(29)("iterator"),s=r(49);e.exports=r(21).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||s[n(e)]}},function(e,t,r){var n=r(34),i=r(29)("toStringTag"),s="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=(t=Object(e))[i])?r:s?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){e.exports={default:r(61),__esModule:!0}},function(e,t,r){r(62),e.exports=r(21).Object.keys},function(e,t,r){var n=r(63);r(64)("keys",function(e){return function(t){return e(n(t))}})},function(e,t,r){var n=r(35);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(20),i=r(21),s=r(19);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*s(function(){r(1)}),"Object",a)}},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(6));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=r(5),s=n(r(6));t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new s.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,r){if(2!=arguments.length)throw new s.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;null!=r.hash.level?i=r.hash.level:r.data&&null!=r.data.level&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,r){return e?r.lookupProperty(e,t):e})},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=r(5),s=n(r(6));t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new s.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var r=t.fn;if(i.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),r(e,{data:n,blockParams:i.blockParams([e],[n&&n.contextPath])})})},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var i=n(r(71))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(5);t.default=function(e){e.registerDecorator("inline",function(e,t,r,i){var s=e;return t.partials||(t.partials={},s=function(i,s){var a=r.partials;r.partials=n.extend({},a,t.partials);var o=e(i,s);return r.partials=a,o}),t.partials[i.args[0]]=i.fn,s})},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=r(5),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var r=arguments.length,n=Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];console[t].apply(console,n)}}};t.default=i,e.exports=t.default},function(e,t,r){"use strict";var n=r(74).default,i=r(60).default,s=r(1).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=n(null);t.__proto__=!1,a.extend(t,e.allowedProtoProperties);var r=n(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,a.extend(r,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,r){return c("function"==typeof e?t.methods:t.properties,r)},t.resetLoggedProperties=function(){i(l).forEach(function(e){delete l[e]})};var a=r(5),o=s(r(72)),l=n(null);function c(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,o.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,r){e.exports={default:r(75),__esModule:!0}},function(e,t,r){var n=r(9);e.exports=function(e,t){return n.create(e,t)}},function(e,t){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,r){"use strict";var n=r(78).default,i=r(60).default,s=r(3).default,a=r(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,r=c.COMPILER_REVISION;if(!(t>=c.LAST_COMPATIBLE_COMPILER_REVISION&&t<=c.COMPILER_REVISION)){if(t<c.LAST_COMPATIBLE_COMPILER_REVISION){var n=c.REVISION_CHANGES[r],i=c.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&7===e.compiler[0],i={strict:function(e,t,r){if(!e||!(t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:r});return i.lookupProperty(e,t)},lookupProperty:function(e,t){var r=e[t];return null==r||Object.prototype.hasOwnProperty.call(e,t)||u.resultIsAllowed(r,i.protoAccessControl,t)?r:void 0},lookup:function(e,t){for(var r=e.length,n=0;n<r;n++){var s=e[n]&&i.lookupProperty(e[n],t);if(null!=s)return s}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(r,n,i){i.hash&&(n=o.extend({},n,i.hash),i.ids&&(i.ids[0]=!0)),r=t.VM.resolvePartial.call(this,r,n,i),i.hooks=this.hooks,i.protoAccessControl=this.protoAccessControl;var s=t.VM.invokePartial.call(this,r,n,i);if(null==s&&t.compile&&(i.partials[i.name]=t.compile(r,e.compilerOptions,t),s=i.partials[i.name](n,i)),null!=s){if(i.indent){for(var a=s.split("\n"),c=0,d=a.length;c<d&&(a[c]||c+1!==d);c++)a[c]=i.indent+a[c];s=a.join("\n")}return s}throw new l.default("The partial "+i.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var r=e[t];return r.decorator=e[t+"_d"],r},programs:[],program:function(e,t,r,n,i){var s=this.programs[e],a=this.fn(e);return t||i||n||r?s=p(this,e,a,t,r,n,i):s||(s=this.programs[e]=p(this,e,a)),s},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var r=e||t;return e&&t&&e!==t&&(r=o.extend({},t,e)),r},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.data;s._setup(r),!r.partial&&e.useData&&(n=function(e,t){return t&&"root"in t||((t=t?c.createFrame(t):{}).root=e),t}(t,n));var a=void 0,o=e.useBlockParams?[]:void 0;function l(t){return""+e.main(i,t,i.helpers,i.partials,n,o,a)}return e.useDepths&&(a=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(l=_(e.main,l,i,r.depths||[],n,o))(t,r)}return s.isTop=!0,s._setup=function(n){if(n.partial)i.protoAccessControl=n.protoAccessControl,i.helpers=n.helpers,i.partials=n.partials,i.decorators=n.decorators,i.hooks=n.hooks;else{var s={};m(s,t.helpers,i),m(s,n.helpers,i),i.helpers=s,e.usePartial&&(i.partials=i.mergeIfNeeded(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=o.extend({},t.decorators,n.decorators)),i.hooks={},i.protoAccessControl=u.createProtoAccessControl(n);var a=n.allowCallsToHelperMissing||r;d.moveHelperToHooks(i,"helperMissing",a),d.moveHelperToHooks(i,"blockHelperMissing",a)}},s._child=function(t,r,n,s){if(e.useBlockParams&&!n)throw new l.default("must pass block params");if(e.useDepths&&!s)throw new l.default("must pass parent depths");return p(i,t,e[t],r,0,n,s)},s},t.wrapProgram=p,t.resolvePartial=function(e,t,r){return e?e.call||r.name||(r.name=e,e=g(r.partials,e)):e="@partial-block"===r.name?g(r.data,"partial-block"):g(r.partials,r.name),e},t.invokePartial=function(e,t,r){var n=g(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==f&&function(){r.data=c.createFrame(r.data);var e=r.fn;i=r.data["partial-block"]=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return r.data=c.createFrame(r.data),r.data["partial-block"]=n,e(t,r)},e.partials&&(r.partials=o.extend({},r.partials,e.partials))}(),void 0===e&&i&&(e=i),void 0===e)throw new l.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)},t.noop=f;var o=s(r(5)),l=a(r(6)),c=r(4),d=r(10),h=r(81),u=r(73);function p(e,t,r,n,i,s,a){function o(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=a;return!a||t==a[0]||t===e.nullContext&&null===a[0]||(o=[t].concat(a)),r(e,t,e.helpers,e.partials,i.data||n,s&&[i.blockParams].concat(s),o)}return(o=_(r,o,e,a,n,s)).program=t,o.depth=a?a.length:0,o.blockParams=i||0,o}function f(){return""}function g(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function _(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),o.extend(t,a)}return t}function m(e,t,r){t&&i(t).forEach(function(n){var i=t[n];e[n]=function(e,t){var r=t.lookupProperty;return h.wrapHelper(e,function(e){return e.lookupProperty=r,e})}(i,r)})}},function(e,t,r){e.exports={default:r(79),__esModule:!0}},function(e,t,r){r(80),e.exports=r(21).Object.seal},function(e,t,r){var n=r(40);r(64)("seal",function(e){return function(t){return e&&n(t)?e(t):t}})},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var r={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!r.helpers.scopedId(e)&&!e.depth}}};t.default=r,e.exports=t.default},function(e,t,r){"use strict";var n=r(60).default,i=r(1).default,s=r(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var r=u(e,t);return new o.default(t).accept(r)};var a=i(r(85)),o=i(r(86)),l=s(r(88)),c=i(r(6)),d=r(5);t.parser=a.default;var h={};function u(e,t){return"Program"===e.type?(function(e){p(e)}(e),e):(a.default.yy=h,h.locInfo=function(e){return new h.SourceLocation(t&&t.srcName,e)},a.default.parse(e))}function p(e){if(null!=e)if(Array.isArray(e))e.forEach(p);else if("object"==typeof e){if("PathExpression"===e.type){if(!("number"==typeof(r=e.depth)&&isFinite(r)&&Math.floor(r)===r&&r>=0))throw new c.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new c.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if("string"!=typeof e.parts[t])throw new c.default("Invalid AST: PathExpression.parts must only contain strings")}else if("NumberLiteral"===e.type){if("number"!=typeof e.value||!isFinite(e.value))throw new c.default("Invalid AST: NumberLiteral.value must be a number")}else if("BooleanLiteral"===e.type&&"boolean"!=typeof e.value)throw new c.default("Invalid AST: BooleanLiteral.value must be a boolean");var r;n(e).forEach(function(t){"loc"!==t&&p(e[t])})}}d.extend(h,l)},function(e,t){"use strict";t.__esModule=!0;var r=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,r,n,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:this.$=n.prepareProgram(s[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=s[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(s[o]),strip:n.stripFlags(s[o],s[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:s[o],value:s[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(s[o-2],s[o-1],s[o],this._$);break;case 12:this.$={path:s[o-3],params:s[o-2],hash:s[o-1]};break;case 13:this.$=n.prepareBlock(s[o-3],s[o-2],s[o-1],s[o],!1,this._$);break;case 14:this.$=n.prepareBlock(s[o-3],s[o-2],s[o-1],s[o],!0,this._$);break;case 15:this.$={open:s[o-5],path:s[o-4],params:s[o-3],hash:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-5],s[o])};break;case 16:case 17:this.$={path:s[o-4],params:s[o-3],hash:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-5],s[o])};break;case 18:this.$={strip:n.stripFlags(s[o-1],s[o-1]),program:s[o]};break;case 19:var l=n.prepareBlock(s[o-2],s[o-1],s[o],s[o],!1,this._$),c=n.prepareProgram([l],s[o-1].loc);c.chained=!0,this.$={strip:s[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:s[o-1],strip:n.stripFlags(s[o-2],s[o])};break;case 22:case 23:this.$=n.prepareMustache(s[o-3],s[o-2],s[o-1],s[o-4],n.stripFlags(s[o-4],s[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:s[o-3],params:s[o-2],hash:s[o-1],indent:"",strip:n.stripFlags(s[o-4],s[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(s[o-2],s[o-1],s[o],this._$);break;case 26:this.$={path:s[o-3],params:s[o-2],hash:s[o-1],strip:n.stripFlags(s[o-4],s[o])};break;case 29:this.$={type:"SubExpression",path:s[o-3],params:s[o-2],hash:s[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:s[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(s[o-2]),value:s[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(s[o-1]);break;case 35:this.$={type:"StringLiteral",value:s[o],original:s[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(s[o]),original:Number(s[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===s[o],original:"true"===s[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,s[o],this._$);break;case 43:this.$=n.preparePath(!1,s[o],this._$);break;case 44:s[o-2].push({part:n.id(s[o]),original:s[o],separator:s[o-1]}),this.$=s[o-2];break;case 45:this.$=[{part:n.id(s[o]),original:s[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:s[o-1].push(s[o]);break;case 98:case 100:this.$=[s[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],s=this.table,a="",o=0,l=0,c=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;i.push(d);var h=this.lexer.options&&this.lexer.options.ranges;function u(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,f,g,_,m,v,y,b,w,x={};;){if(g=r[r.length-1],this.defaultActions[g]?_=this.defaultActions[g]:(null==p&&(p=u()),_=s[g]&&s[g][p]),void 0===_||!_.length||!_[0]){var k="";if(!c){for(v in w=[],s[g])this.terminals_[v]&&v>2&&w.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:d,expected:w})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+p);switch(_[0]){case 1:r.push(p),n.push(this.lexer.yytext),i.push(this.lexer.yylloc),r.push(_[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,a=this.lexer.yytext,o=this.lexer.yylineno,d=this.lexer.yylloc,c>0&&c--);break;case 2:if(y=this.productions_[_[1]][1],x.$=n[n.length-y],x._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},h&&(x._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.call(x,a,l,o,this.yy,_[1],n,i)))return m;y&&(r=r.slice(0,-1*y*2),n=n.slice(0,-1*y),i=i.slice(0,-1*y)),r.push(this.productions_[_[1]][0]),n.push(x.$),i.push(x._$),b=s[r[r.length-2]][r[r.length-1]],r.push(b);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,r,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;a<s.length&&(!(r=this._input.match(this.rules[s[a]]))||t&&!(r[0].length>t[0].length)||(t=r,n=a,this.options.flex));a++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,r,n){function i(e,r){return t.yytext=t.yytext.substring(e,t.yyleng-r+e)}switch(r){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function r(){this.yy={}}return e.lexer=t,r.prototype=e,e.Parser=r,new r}();t.default=r,e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(87));function s(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function a(e,t,r){void 0===t&&(t=e.length);var n=e[t-1],i=e[t-2];return n?"ContentStatement"===n.type?(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function o(e,t,r){void 0===t&&(t=-1);var n=e[t+1],i=e[t+2];return n?"ContentStatement"===n.type?(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function l(e,t,r){var n=e[null==t?0:t+1];if(n&&"ContentStatement"===n.type&&(r||!n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}function c(e,t,r){var n=e[null==t?e.length-1:t-1];if(n&&"ContentStatement"===n.type&&(r||!n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}s.prototype=new i.default,s.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var d=n[i],h=this.accept(d);if(h){var u=a(n,i,r),p=o(n,i,r),f=h.openStandalone&&u,g=h.closeStandalone&&p,_=h.inlineStandalone&&u&&p;h.close&&l(n,i,!0),h.open&&c(n,i,!0),t&&_&&(l(n,i),c(n,i)&&"PartialStatement"===d.type&&(d.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&f&&(l((d.program||d.inverse).body),c(n,i)),t&&g&&(l(n,i),c((d.inverse||d.program).body))}}return e},s.prototype.BlockStatement=s.prototype.DecoratorBlock=s.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:a((n||t).body)};if(e.openStrip.close&&l(t.body,null,!0),r){var d=e.inverseStrip;d.open&&c(t.body,null,!0),d.close&&l(n.body,null,!0),e.closeStrip.open&&c(i.body,null,!0),!this.options.ignoreStandalone&&a(t.body)&&o(n.body)&&(c(t.body),l(n.body))}else e.closeStrip.open&&c(t.body,null,!0);return s},s.prototype.Decorator=s.prototype.MustacheStatement=function(e){return e.strip},s.prototype.PartialStatement=s.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=s,e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(6));function s(){this.parents=[]}function a(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){a.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s.prototype={constructor:s,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!s.prototype[r.type])throw new i.default('Unexpected node type "'+r.type+'" found when accepting '+t+" on "+e.type);e[t]=r}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new i.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:a,Decorator:a,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=s,e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",s=[],a=0,o=0,l=t.length;o<l;o++){var c=t[o].part,d=t[o].original!==c;if(n+=(t[o].separator||"")+c,d||".."!==c&&"."!==c&&"this"!==c)s.push(c);else{if(s.length>0)throw new i.default("Invalid path: "+n,{loc:r});".."===c&&a++}}return{type:"PathExpression",data:e,depth:a,parts:s,original:n,loc:r}},t.prepareMustache=function(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),o="{"!==a&&"&"!==a;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:i,loc:this.locInfo(s)}},t.prepareRawBlock=function(e,t,r,n){s(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},t.prepareBlock=function(e,t,r,n,a,o){n&&n.path&&s(e,n);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,d=void 0;if(r){if(l)throw new i.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),d=r.strip,c=r.program}return a&&(a=c,c=t,t=a),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:d,closeStrip:n&&n.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,r,n){return s(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}};var i=n(r(6));function s(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new i.default(e.path.original+" doesn't match "+t,r)}}},function(e,t,r){"use strict";var n=r(74).default,i=r(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,r){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new s.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=(new r.Compiler).compile(n,t);return(new r.JavaScriptCompiler).compile(i,t)},t.compile=function(e,t,r){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new s.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=a.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var n=r.parse(e,t),i=(new r.Compiler).compile(n,t),s=(new r.JavaScriptCompiler).compile(i,t,void 0,!0);return r.template(s)}function o(e,t){return n||(n=i()),n.call(this,e,t)}return o._setup=function(e){return n||(n=i()),n._setup(e)},o._child=function(e,t,r,s){return n||(n=i()),n._child(e,t,r,s)},o};var s=i(r(6)),a=r(5),o=i(r(83)),l=[].slice;function c(){}function d(e,t){if(e===t)return!0;if(a.isArray(e)&&a.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!d(e[r],t[r]))return!1;return!0}}function h(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var r=0;r<t;r++){var n=this.opcodes[r],i=e.opcodes[r];if(n.opcode!==i.opcode||!d(n.args,i.args))return!1}for(t=this.children.length,r=0;r<t;r++)if(!this.children[r].equals(e.children[r]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=a.extend(n(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),r=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[r]=t,this.useDepths=this.useDepths||t.useDepths,r},accept:function(e){if(!this[e.type])throw new s.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,r=t.length,n=0;n<r;n++)this.accept(t[n]);return this.options.blockParams.shift(),this.isSimple=1===r,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){h(e);var t=e.program,r=e.inverse;t=t&&this.compileProgram(t),r=r&&this.compileProgram(r);var n=this.classifySexpr(e);"helper"===n?this.helperSexpr(e,t,r):"simple"===n?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,r),this.opcode("pushProgram",t),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),r=this.setupFullMustacheParams(e,t,void 0),n=e.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,n.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var r=e.params;if(r.length>1)throw new s.default("Unsupported number of partial arguments: "+r.length,e);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var n=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,n,a),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){h(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,r){var n=e.path,i=n.parts[0],s=null!=t||null!=r;this.opcode("getContext",n.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",r),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,r){var n=this.setupFullMustacheParams(e,t,r),i=e.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",n.length,a);else{if(this.options.knownHelpersOnly)throw new s.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",n.length,i.original,o.default.helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],r=o.default.helpers.scopedId(e),n=!e.depth&&!r&&this.blockParamIndex(t);n?this.opcode("lookupBlockParam",n,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,r):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,r=0,n=t.length;for(this.opcode("pushHash");r<n;r++)this.pushParam(t[r].value);for(;r--;)this.opcode("assignToHash",t[r].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),r=t&&!!this.blockParamIndex(e.path.parts[0]),n=!r&&o.default.helpers.helperExpression(e),i=!r&&(n||t);if(i&&!n){var s=e.path.parts[0],a=this.options;a.knownHelpers[s]?n=!0:a.knownHelpersOnly&&(i=!1)}return n?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,r=e.length;t<r;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var r=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(r=this.blockParamIndex(e.parts[0])),r){var n=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,n)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,r,n){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",r),e.hash?this.accept(e.hash):this.opcode("emptyHash",n),i},blockParamIndex:function(e){for(var t=0,r=this.options.blockParams.length;t<r;t++){var n=this.options.blockParams[t],i=n&&a.indexOf(n,e);if(n&&i>=0)return[t,i]}}}},function(e,t,r){"use strict";var n=r(60).default,i=r(1).default;t.__esModule=!0;var s=r(4),a=i(r(6)),o=r(5),l=i(r(91));function c(e){this.value=e}function d(){}d.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=s.COMPILER_REVISION;return[e,s.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,r){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:r?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,r,n){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!r,this.context=r||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,s=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=i.length;l<c;l++)s=i[l],this.source.currentLocation=s.loc,o=o||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(n);if(this.isChild)return d;var h={compiler:this.compilerInfo(),main:d};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var u=this.context,p=u.programs,f=u.decorators;for(l=0,c=p.length;l<c;l++)h[l]=p[l],f[l]&&(h[l+"_d"]=f[l],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),n?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),t.srcName?(h=h.toStringWithSourceMap({file:t.destName})).map=h.map&&h.map.toString():h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,r="",i=this.stackVars.concat(this.registers.list);i.length>0&&(r+=", "+i.join(", "));var s=0;n(this.aliases).forEach(function(e){var n=t.aliases[e];n.children&&n.referenceCount>1&&(r+=", alias"+ ++s+"="+e,n.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(r+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var o=this.mergeSource(r);return e?(a.push(o),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,r=!this.forceBuffer,n=void 0,i=void 0,s=void 0,a=void 0;return this.source.each(function(e){e.appendToBuffer?(s?e.prepend(" + "):s=e,a=e):(s&&(i?s.prepend("buffer += "):n=!0,a.add(";"),s=a=void 0),i=!0,t||(r=!1))}),r?s?(s.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs(e,0,r);var n=this.popStack();r.splice(1,0,n),this.push(this.source.functionCall(t,"call",r))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var r=this.topStack();t.splice(1,0,r),this.pushSource(["if (!",this.lastHelper,") { ",r," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,r,n){var i=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,r)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,r){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,r)},resolvePath:function(e,t,r,n,i){var s=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,r,n,i){var s=t.popStack(),a=r.length;e&&a--;for(var o=n;o<a;o++)s=t.nameLookup(s,r[o],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[a]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}(this.options.strict&&i,this,t,r,e));else for(var a=t.length,o=function(r){s.replaceStack(function(i){var a=s.nameLookup(i,t[r],e);return n?[" && ",a]:[" != null ? ",a," : ",i]})},l=r;l<a;l++)o(l)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var r=this.nameLookup("decorators",t,"decorator"),n=this.setupHelperArgs(t,e);this.decorators.push(["var decorator = ",r,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+t+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,t,r){var n=this.popStack(),i=this.setupHelper(e,t),s=[];r&&s.push(i.name),s.push(n),this.options.strict||s.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(s,"||"),")"],o=this.source.functionCall(a,"call",i.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var r=[];r.push(e[0]);for(var n=1;n<e.length;n++)r.push(t,e[n]);return r},invokeKnownHelper:function(e,t){var r=this.setupHelper(e,t);this.push(this.source.functionCall(r.name,"call",r.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var r=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,t),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",r,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,t,r){var n=[],i=this.setupParams(t,1,n);e&&(t=this.popStack(),delete i.name),r&&(i.indent=JSON.stringify(r)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?n.unshift(t):n.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var t=this.popStack(),r=void 0,n=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(n=this.popStack(),r=this.popStack());var s=this.hash;r&&(s.contexts[e]=r),n&&(s.types[e]=n),i&&(s.ids[e]=i),s.values[e]=t},pushId:function(e,t,r){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(r?" + "+JSON.stringify("."+r):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:d,compileChildren:function(e,t){for(var r=e.children,n=void 0,i=void 0,s=0,a=r.length;s<a;s++){n=r[s],i=new this.compiler;var o=this.matchExistingProgram(n);if(null==o){var l=this.context.programs.push("")-1;n.index=l,n.name="program"+l,this.context.programs[l]=i.compile(n,t,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=o.index,n.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,r=this.context.environments.length;t<r;t++){var n=this.context.environments[t];if(n&&n.equals(e))return n}},programExpression:function(e){var t=this.environment.children[e],r=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&r.push("blockParams"),this.useDepths&&r.push("depths"),"container.program("+r.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof c||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new c(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],r=void 0,n=void 0,i=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof c)t=["(",r=[s.value]],i=!0;else{n=!0;var o=this.incrStack();t=["((",this.push(o)," = ",s,")"],r=this.topStack()}var l=e.call(this,r);i||this.popStack(),n&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,r=e.length;t<r;t++){var n=e[t];if(n instanceof c)this.compileStack.push(n);else{var i=this.incrStack();this.pushSource([i," = ",n,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),r=(t?this.inlineStack:this.compileStack).pop();if(!e&&r instanceof c)return r.value;if(!t){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return r},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof c?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,r){var n=[];return{params:n,paramsInit:this.setupHelperArgs(t,e,n,r),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(e,t,r){var n={},i=[],s=[],a=[],o=!r,l=void 0;o&&(r=[]),n.name=this.quotedString(e),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),d=this.popStack();(d||c)&&(n.fn=d||"container.noop",n.inverse=c||"container.noop");for(var h=t;h--;)l=this.popStack(),r[h]=l,this.trackIds&&(a[h]=this.popStack()),this.stringParams&&(s[h]=this.popStack(),i[h]=this.popStack());return o&&(n.args=this.source.generateArray(r)),this.trackIds&&(n.ids=this.source.generateArray(a)),this.stringParams&&(n.types=this.source.generateArray(s),n.contexts=this.source.generateArray(i)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(e,t,r,n){var i=this.setupParams(e,t,r);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),n?(this.useRegister("options"),r.push("options"),["options=",i]):r?(r.push(i),""):i}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=d.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0}(),d.isValidJavaScriptVariableName=function(e){return!d.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=d,e.exports=t.default},function(e,t,r){"use strict";var n=r(60).default;t.__esModule=!0;var i=r(5),s=void 0;function a(e,t,r){if(i.isArray(e)){for(var n=[],s=0,a=e.length;s<a;s++)n.push(t.wrap(e[s],r));return n}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}s||((s=function(e,t,r,n){this.src="",n&&this.add(n)}).prototype={add:function(e){i.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){i.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each(function(t){e.add([" ",t,"\n"])}),e},each:function(e){for(var t=0,r=this.source.length;t<r;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new s(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof s?e:(e=a(e,this,t),new s(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,r){return r=this.generateList(r),this.wrap([e,t?"."+t+"(":"(",r,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,r=[];n(e).forEach(function(n){var i=a(e[n],t);"undefined"!==i&&r.push([t.quotedString(n),":",i])});var i=this.generateList(r);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var t=this.empty(),r=0,n=e.length;r<n;r++)r&&t.add(","),t.add(a(e[r],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=t()},460(e,t,r){var n,i,s;!function(){"use strict";i=[r(43)],n=function(e,t){ /*! * jsTree 3.3.7 * http://jstree.com/ * * Copyright (c) 2014 Ivan Bozhanov (http://vakata.com) * * Licensed same as jquery - under the terms of the MIT License * http://www.opensource.org/licenses/mit-license.php */ /*! * if using jslint please allow for the jQuery global and use following options: * jslint: loopfunc: true, browser: true, ass: true, bitwise: true, continue: true, nomen: true, plusplus: true, regexp: true, unparam: true, todo: true, white: true */ if(e.jstree)return;var r=0,n=!1,i=!1,s=!1,a=[],o=e("script:last").attr("src"),l=window.document;e.jstree={version:"3.3.7",defaults:{plugins:[]},plugins:{},path:o&&-1!==o.indexOf("/")?o.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},e.jstree.create=function(t,n){var i=new e.jstree.core(++r),s=n;return n=e.extend(!0,{},e.jstree.defaults,n),s&&s.plugins&&(n.plugins=s.plugins),e.each(n.plugins,function(e,t){"core"!==e&&(i=i.plugin(t,n[t]))}),e(t).data("jstree",i),i.init(t,n),i},e.jstree.destroy=function(){e(".jstree:jstree").jstree("destroy"),e(l).off(".jstree")},e.jstree.core=function(e){this._id=e,this._cnt=0,this._wrk=null,this._data={core:{themes:{name:!1,dots:!1,icons:!1,ellipsis:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},e.jstree.reference=function(t){var r=null,n=null;if(!t||!t.id||t.tagName&&t.nodeType||(t=t.id),!n||!n.length)try{n=e(t)}catch(e){}if(!n||!n.length)try{n=e("#"+t.replace(e.jstree.idregex,"\\$&"))}catch(e){}return n&&n.length&&(n=n.closest(".jstree")).length&&(n=n.data("jstree"))?r=n:e(".jstree").each(function(){var n=e(this).data("jstree");if(n&&n._model.data[t])return r=n,!1}),r},e.fn.jstree=function(r){var n="string"==typeof r,i=Array.prototype.slice.call(arguments,1),s=null;return!(!0===r&&!this.length)&&(this.each(function(){var a=e.jstree.reference(this),o=n&&a?a[r]:null;if(s=n&&o?o.apply(a,i):null,a||n||r!==t&&!e.isPlainObject(r)||e.jstree.create(this,r),(a&&!n||!0===r)&&(s=a||!1),null!==s&&s!==t)return!1}),null!==s&&s!==t?s:this)},e.expr.pseudos.jstree=e.expr.createPseudo(function(r){return function(r){return e(r).hasClass("jstree")&&e(r).data("jstree")!==t}}),e.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:e.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,ellipsis:!1,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0,loaded_state:!1,restore_focus:!0,keyboard:{"ctrl-space":function(t){t.type="click",e(t.currentTarget).trigger(t)},enter:function(t){t.type="click",e(t.currentTarget).trigger(t)},left:function(t){if(t.preventDefault(),this.is_open(t.currentTarget))this.close_node(t.currentTarget);else{var r=this.get_parent(t.currentTarget);r&&r.id!==e.jstree.root&&this.get_node(r,!0).children(".jstree-anchor").focus()}},up:function(e){e.preventDefault();var t=this.get_prev_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},right:function(t){if(t.preventDefault(),this.is_closed(t.currentTarget))this.open_node(t.currentTarget,function(e){this.get_node(e,!0).children(".jstree-anchor").focus()});else if(this.is_open(t.currentTarget)){var r=this.get_node(t.currentTarget,!0).children(".jstree-children")[0];r&&e(this._firstChild(r)).children(".jstree-anchor").focus()}},down:function(e){e.preventDefault();var t=this.get_next_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").focus()},"*":function(e){this.open_all()},home:function(t){t.preventDefault();var r=this._firstChild(this.get_container_ul()[0]);r&&e(r).children(".jstree-anchor").filter(":visible").focus()},end:function(e){e.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().focus()},f2:function(e){e.preventDefault(),this.edit(e.currentTarget)}}},e.jstree.core.prototype={plugin:function(t,r){var n=e.jstree.plugins[t];return n?(this._data[t]={},n.prototype=this,new n(r,this)):this},init:function(t,r){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this._model.data[e.jstree.root]={id:e.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this.element=e(t).addClass("jstree jstree-"+this._id),this.settings=r,this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0),this.element.attr("tabindex")||this.element.attr("tabindex","0"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))}).remove(),this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='tree-item'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"),this._data.core.li_height=this.get_container_ul().children("li").first().outerHeight()||24,this._data.core.node=this._create_prototype_node(),this.trigger("loading"),this.load_node(e.jstree.root)},destroy:function(e){if(this.trigger("destroy"),this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(e){}e||this.element.empty(),this.teardown()},_create_prototype_node:function(){var e,t,r=l.createElement("LI");return r.setAttribute("role","treeitem"),(e=l.createElement("I")).className="jstree-icon jstree-ocl",e.setAttribute("role","presentation"),r.appendChild(e),(e=l.createElement("A")).className="jstree-anchor",e.setAttribute("href","#"),e.setAttribute("tabindex","-1"),(t=l.createElement("I")).className="jstree-icon jstree-themeicon",t.setAttribute("role","presentation"),e.appendChild(t),r.appendChild(e),e=t=null,r},_kbevent_to_func:function(e){var t={8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock",16:"Shift",17:"Ctrl",18:"Alt",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*",173:"-"},r=[];e.ctrlKey&&r.push("ctrl"),e.altKey&&r.push("alt"),e.shiftKey&&r.push("shift"),r.push(t[e.which]||e.which),r=r.sort().join("-").toLowerCase();var n,i,s=this.settings.core.keyboard;for(n in s)if(s.hasOwnProperty(n)&&("-"!==(i=n)&&"+"!==i&&(i=(i=i.replace("--","-MINUS").replace("+-","-MINUS").replace("++","-PLUS").replace("-+","-PLUS")).split(/-|\+/).sort().join("-").replace("MINUS","-").replace("PLUS","+").toLowerCase()),i===r))return s[n];return null},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",function(){return this.className.replace(/jstree[^ ]*|$/gi,"")}),this.element=null},bind:function(){var t="",r=null,n=0;this.element.on("dblclick.jstree",function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;if(l.selection&&l.selection.empty)l.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}}).on("mousedown.jstree",e.proxy(function(e){e.target===this.element[0]&&(e.preventDefault(),n=+new Date)},this)).on("mousedown.jstree",".jstree-ocl",function(e){e.preventDefault()}).on("click.jstree",".jstree-ocl",e.proxy(function(e){this.toggle_node(e.target)},this)).on("dblclick.jstree",".jstree-anchor",e.proxy(function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this.settings.core.dblclick_toggle&&this.toggle_node(e.target)},this)).on("click.jstree",".jstree-anchor",e.proxy(function(t){t.preventDefault(),t.currentTarget!==l.activeElement&&e(t.currentTarget).focus(),this.activate_node(t.currentTarget,t)},this)).on("keydown.jstree",".jstree-anchor",e.proxy(function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this._data.core.rtl&&(37===e.which?e.which=39:39===e.which&&(e.which=37));var t=this._kbevent_to_func(e);if(t){var r=t.call(this,e);if(!1===r||!0===r)return r}},this)).on("load_node.jstree",e.proxy(function(t,r){r.status&&(r.node.id!==e.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(e.proxy(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var t,r,n=[];for(t=0,r=this._data.core.selected.length;t<r;t++)n=n.concat(this._model.data[this._data.core.selected[t]].parents);for(t=0,r=(n=e.vakata.array_unique(n)).length;t<r;t++)this.open_node(n[t],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}},this),0))},this)).on("keypress.jstree",e.proxy(function(n){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!0;r&&clearTimeout(r),r=setTimeout(function(){t=""},500);var i=String.fromCharCode(n.which).toLowerCase(),s=this.element.find(".jstree-anchor").filter(":visible"),a=s.index(l.activeElement)||0,o=!1;if((t+=i).length>1){if(s.slice(a).each(e.proxy(function(r,n){if(0===e(n).text().toLowerCase().indexOf(t))return e(n).focus(),o=!0,!1},this)),o)return;if(s.slice(0,a).each(e.proxy(function(r,n){if(0===e(n).text().toLowerCase().indexOf(t))return e(n).focus(),o=!0,!1},this)),o)return}if(new RegExp("^"+i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(t)){if(s.slice(a+1).each(e.proxy(function(t,r){if(e(r).text().toLowerCase().charAt(0)===i)return e(r).focus(),o=!0,!1},this)),o)return;if(s.slice(0,a+1).each(e.proxy(function(t,r){if(e(r).text().toLowerCase().charAt(0)===i)return e(r).focus(),o=!0,!1},this)),o)return}},this)).on("init.jstree",e.proxy(function(){var e=this.settings.core.themes;this._data.core.themes.dots=e.dots,this._data.core.themes.stripes=e.stripes,this._data.core.themes.icons=e.icons,this._data.core.themes.ellipsis=e.ellipsis,this.set_theme(e.name||"default",e.url),this.set_theme_variant(e.variant)},this)).on("loading.jstree",e.proxy(function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"](),this[this._data.core.themes.ellipsis?"show_ellipsis":"hide_ellipsis"]()},this)).on("blur.jstree",".jstree-anchor",e.proxy(function(t){this._data.core.focused=null,e(t.currentTarget).filter(".jstree-hovered").mouseleave(),this.element.attr("tabindex","0")},this)).on("focus.jstree",".jstree-anchor",e.proxy(function(t){var r=this.get_node(t.currentTarget);r&&r.id&&(this._data.core.focused=r.id),this.element.find(".jstree-hovered").not(t.currentTarget).mouseleave(),e(t.currentTarget).mouseenter(),this.element.attr("tabindex","-1")},this)).on("focus.jstree",e.proxy(function(){if(+new Date-n>500&&!this._data.core.focused&&this.settings.core.restore_focus){n=0;var e=this.get_node(this.element.attr("aria-activedescendant"),!0);e&&e.find("> .jstree-anchor").focus()}},this)).on("mouseenter.jstree",".jstree-anchor",e.proxy(function(e){this.hover_node(e.currentTarget)},this)).on("mouseleave.jstree",".jstree-anchor",e.proxy(function(e){this.dehover_node(e.currentTarget)},this))},unbind:function(){this.element.off(".jstree"),e(l).off(".jstree-"+this._id)},trigger:function(e,t){t||(t={}),t.instance=this,this.element.triggerHandler(e.replace(".jstree","")+".jstree",t)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(t){var r=this.settings.core.strings;return e.isFunction(r)?r.call(this,t):r&&r[t]?r[t]:t},_firstChild:function(e){for(e=e?e.firstChild:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_nextSibling:function(e){for(e=e?e.nextSibling:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_previousSibling:function(e){for(e=e?e.previousSibling:null;null!==e&&1!==e.nodeType;)e=e.previousSibling;return e},get_node:function(t,r){var n;t&&t.id&&(t=t.id),t instanceof jQuery&&t.length&&t[0].id&&(t=t[0].id);try{if(this._model.data[t])t=this._model.data[t];else if("string"==typeof t&&this._model.data[t.replace(/^#/,"")])t=this._model.data[t.replace(/^#/,"")];else if("string"==typeof t&&(n=e("#"+t.replace(e.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[n.closest(".jstree-node").attr("id")])t=this._model.data[n.closest(".jstree-node").attr("id")];else if((n=this.element.find(t)).length&&this._model.data[n.closest(".jstree-node").attr("id")])t=this._model.data[n.closest(".jstree-node").attr("id")];else{if(!(n=this.element.find(t)).length||!n.hasClass("jstree"))return!1;t=this._model.data[e.jstree.root]}return r&&(t=t.id===e.jstree.root?this.element:e("#"+t.id.replace(e.jstree.idregex,"\\$&"),this.element)),t}catch(e){return!1}},get_path:function(t,r,n){if(!(t=t.parents?t:this.get_node(t))||t.id===e.jstree.root||!t.parents)return!1;var i,s,a=[];for(a.push(n?t.id:t.text),i=0,s=t.parents.length;i<s;i++)a.push(n?t.parents[i]:this.get_text(t.parents[i]));return a=a.reverse().slice(1),r?a.join(r):a},get_next_dom:function(t,r){var n;if((t=this.get_node(t,!0))[0]===this.element[0]){for(n=this._firstChild(this.get_container_ul()[0]);n&&0===n.offsetHeight;)n=this._nextSibling(n);return!!n&&e(n)}if(!t||!t.length)return!1;if(r){n=t[0];do{n=this._nextSibling(n)}while(n&&0===n.offsetHeight);return!!n&&e(n)}if(t.hasClass("jstree-open")){for(n=this._firstChild(t.children(".jstree-children")[0]);n&&0===n.offsetHeight;)n=this._nextSibling(n);if(null!==n)return e(n)}n=t[0];do{n=this._nextSibling(n)}while(n&&0===n.offsetHeight);return null!==n?e(n):t.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(t,r){var n;if((t=this.get_node(t,!0))[0]===this.element[0]){for(n=this.get_container_ul()[0].lastChild;n&&0===n.offsetHeight;)n=this._previousSibling(n);return!!n&&e(n)}if(!t||!t.length)return!1;if(r){n=t[0];do{n=this._previousSibling(n)}while(n&&0===n.offsetHeight);return!!n&&e(n)}n=t[0];do{n=this._previousSibling(n)}while(n&&0===n.offsetHeight);if(null!==n){for(t=e(n);t.hasClass("jstree-open");)t=t.children(".jstree-children").first().children(".jstree-node:visible:last");return t}return!(!(n=t[0].parentNode.parentNode)||!n.className||-1===n.className.indexOf("jstree-node"))&&e(n)},get_parent:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.parent},get_children_dom:function(e){return(e=this.get_node(e,!0))[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):!(!e||!e.length)&&e.children(".jstree-children").children(".jstree-node")},is_parent:function(e){return(e=this.get_node(e))&&(!1===e.state.loaded||e.children.length>0)},is_loaded:function(e){return(e=this.get_node(e))&&e.state.loaded},is_loading:function(e){return(e=this.get_node(e))&&e.state&&e.state.loading},is_open:function(e){return(e=this.get_node(e))&&e.state.opened},is_closed:function(e){return(e=this.get_node(e))&&this.is_parent(e)&&!e.state.opened},is_leaf:function(e){return!this.is_parent(e)},load_node:function(t,r){var n,i,s,a,o;if(e.isArray(t))return this._load_nodes(t.slice(),r),!0;if(!(t=this.get_node(t)))return r&&r.call(this,t,!1),!1;if(t.state.loaded){for(t.state.loaded=!1,s=0,a=t.parents.length;s<a;s++)this._model.data[t.parents[s]].children_d=e.vakata.array_filter(this._model.data[t.parents[s]].children_d,function(r){return-1===e.inArray(r,t.children_d)});for(n=0,i=t.children_d.length;n<i;n++)this._model.data[t.children_d[n]].state.selected&&(o=!0),delete this._model.data[t.children_d[n]];o&&(this._data.core.selected=e.vakata.array_filter(this._data.core.selected,function(r){return-1===e.inArray(r,t.children_d)})),t.children=[],t.children_d=[],o&&this.trigger("changed",{action:"load_node",node:t,selected:this._data.core.selected})}return t.state.failed=!1,t.state.loading=!0,this.get_node(t,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(t,e.proxy(function(e){(t=this._model.data[t.id]).state.loading=!1,t.state.loaded=e,t.state.failed=!t.state.loaded;var n=this.get_node(t,!0),i=0,s=0,a=this._model.data,o=!1;for(i=0,s=t.children.length;i<s;i++)if(a[t.children[i]]&&!a[t.children[i]].state.hidden){o=!0;break}t.state.loaded&&n&&n.length&&(n.removeClass("jstree-closed jstree-open jstree-leaf"),o?"#"!==t.id&&n.addClass(t.state.opened?"jstree-open":"jstree-closed"):n.addClass("jstree-leaf")),n.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:t,status:e}),r&&r.call(this,t,e)},this)),!0},_load_nodes:function(e,t,r,n){var i,s,a=!0,o=function(){this._load_nodes(e,t,!0)},l=this._model.data,c=[];for(i=0,s=e.length;i<s;i++)l[e[i]]&&(!l[e[i]].state.loaded&&!l[e[i]].state.failed||!r&&n)&&(this.is_loading(e[i])||this.load_node(e[i],o),a=!1);if(a){for(i=0,s=e.length;i<s;i++)l[e[i]]&&l[e[i]].state.loaded&&c.push(e[i]);t&&!t.done&&(t.call(this,c),t.done=!0)}},load_all:function(t,r){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var n,i,s=[],a=this._model.data,o=a[t.id].children_d;for(t.state&&!t.state.loaded&&s.push(t.id),n=0,i=o.length;n<i;n++)a[o[n]]&&a[o[n]].state&&!a[o[n]].state.loaded&&s.push(o[n]);s.length?this._load_nodes(s,function(){this.load_all(t,r)}):(r&&r.call(this,t),this.trigger("load_all",{node:t}))},_load_node:function(t,r){var n,i=this.settings.core.data,s=function(){return 3!==this.nodeType&&8!==this.nodeType};return i?e.isFunction(i)?i.call(this,t,e.proxy(function(n){!1===n?r.call(this,!1):this["string"==typeof n?"_append_html_data":"_append_json_data"](t,"string"==typeof n?e(e.parseHTML(n)).filter(s):n,function(e){r.call(this,e)})},this)):"object"==typeof i?i.url?(i=e.extend(!0,{},i),e.isFunction(i.url)&&(i.url=i.url.call(this,t)),e.isFunction(i.data)&&(i.data=i.data.call(this,t)),e.ajax(i).done(e.proxy(function(n,i,a){var o=a.getResponseHeader("Content-Type");return o&&-1!==o.indexOf("json")||"object"==typeof n?this._append_json_data(t,n,function(e){r.call(this,e)}):o&&-1!==o.indexOf("html")||"string"==typeof n?this._append_html_data(t,e(e.parseHTML(n)).filter(s),function(e){r.call(this,e)}):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:a})},this.settings.core.error.call(this,this._data.core.last_error),r.call(this,!1))},this)).fail(e.proxy(function(e){this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:e})},r.call(this,!1),this.settings.core.error.call(this,this._data.core.last_error)},this))):(n=e.isArray(i)?e.extend(!0,[],i):e.isPlainObject(i)?e.extend(!0,{},i):i,t.id===e.jstree.root?this._append_json_data(t,n,function(e){r.call(this,e)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),r.call(this,!1))):"string"==typeof i?t.id===e.jstree.root?this._append_html_data(t,e(e.parseHTML(i)).filter(s),function(e){r.call(this,e)}):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),r.call(this,!1)):r.call(this,!1):t.id===e.jstree.root?this._append_html_data(t,this._data.core.original_container_html.clone(!0),function(e){r.call(this,e)}):r.call(this,!1)},_node_changed:function(t){(t=this.get_node(t))&&-1===e.inArray(t.id,this._model.changed)&&this._model.changed.push(t.id)},_append_html_data:function(t,r,n){(t=this.get_node(t)).children=[],t.children_d=[];var i,s,a,o=r.is("ul")?r.children():r,l=t.id,c=[],d=[],h=this._model.data,u=h[l],p=this._data.core.selected.length;for(o.each(e.proxy(function(t,r){(i=this._parse_model_from_html(e(r),l,u.parents.concat()))&&(c.push(i),d.push(i),h[i].children_d.length&&(d=d.concat(h[i].children_d)))},this)),u.children=c,u.children_d=d,s=0,a=u.parents.length;s<a;s++)h[u.parents[s]].children_d=h[u.parents[s]].children_d.concat(d);this.trigger("model",{nodes:d,parent:l}),l!==e.jstree.root?(this._node_changed(l),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==p&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),n.call(this,!0)},_append_json_data:function(t,r,n,i){if(null!==this.element){(t=this.get_node(t)).children=[],t.children_d=[],r.d&&"string"==typeof(r=r.d)&&(r=JSON.parse(r)),e.isArray(r)||(r=[r]);var s=null,a={df:this._model.default_state,dat:r,par:t.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},o=function(e,t){e.data&&(e=e.data);var r,n,i,s,a=e.dat,o=e.par,l=[],c=[],d=[],h=e.df,u=e.t_id,p=e.t_cnt,f=e.m,g=f[o],_=e.sel,m=function(e,r,n){n=n?n.concat():[],r&&n.unshift(r);var i,s,a,o,l=e.id.toString(),c={id:l,text:e.text||"",icon:e.icon===t||e.icon,parent:r,parents:n,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(i in h)h.hasOwnProperty(i)&&(c.state[i]=h[i]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(c.icon=e.data.jstree.icon),c.icon!==t&&null!==c.icon&&""!==c.icon||(c.icon=!0),e&&e.data&&(c.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(c.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(c.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(c.li_attr[i]=e.li_attr[i]);if(c.li_attr.id||(c.li_attr.id=l),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(c.a_attr[i]=e.a_attr[i]);for(e&&e.children&&!0===e.children&&(c.state.loaded=!1,c.children=[],c.children_d=[]),f[c.id]=c,i=0,s=c.children.length;i<s;i++)a=m(f[c.children[i]],c.id,n),o=f[a],c.children_d.push(a),o.children_d.length&&(c.children_d=c.children_d.concat(o.children_d));return delete e.data,delete e.children,f[c.id].original=e,c.state.selected&&d.push(c.id),c.id},v=function(e,r,n){n=n?n.concat():[],r&&n.unshift(r);var i,s,a,o,l,c=!1;do{c="j"+u+"_"+ ++p}while(f[c]);for(i in l={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===t||e.icon,parent:r,parents:n,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},h)h.hasOwnProperty(i)&&(l.state[i]=h[i]);if(e&&e.id&&(l.id=e.id.toString()),e&&e.text&&(l.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==t&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(l.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(l.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(l.li_attr[i]=e.li_attr[i]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(l.a_attr[i]=e.a_attr[i]);if(e&&e.children&&e.children.length){for(i=0,s=e.children.length;i<s;i++)a=v(e.children[i],l.id,n),o=f[a],l.children.push(a),o.children_d.length&&(l.children_d=l.children_d.concat(o.children_d));l.children_d=l.children_d.concat(l.children)}return e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete e.data,delete e.children,l.original=e,f[l.id]=l,l.state.selected&&d.push(l.id),l.id};if(a.length&&a[0].id!==t&&a[0].parent!==t){for(n=0,i=a.length;n<i;n++)a[n].children||(a[n].children=[]),a[n].state||(a[n].state={}),f[a[n].id.toString()]=a[n];for(n=0,i=a.length;n<i;n++)f[a[n].parent.toString()]?(f[a[n].parent.toString()].children.push(a[n].id.toString()),g.children_d.push(a[n].id.toString())):(this._data.core.last_error={error:"parse",plugin:"core",id:"core_07",reason:"Node with invalid parent",data:JSON.stringify({id:a[n].id.toString(),parent:a[n].parent.toString()})},this.settings.core.error.call(this,this._data.core.last_error));for(n=0,i=g.children.length;n<i;n++)r=m(f[g.children[n]],o,g.parents.concat()),c.push(r),f[r].children_d.length&&(c=c.concat(f[r].children_d));for(n=0,i=g.parents.length;n<i;n++)f[g.parents[n]].children_d=f[g.parents[n]].children_d.concat(c);s={cnt:p,mod:f,sel:_,par:o,dpc:c,add:d}}else{for(n=0,i=a.length;n<i;n++)(r=v(a[n],o,g.parents.concat()))&&(l.push(r),c.push(r),f[r].children_d.length&&(c=c.concat(f[r].children_d)));for(g.children=l,g.children_d=c,n=0,i=g.parents.length;n<i;n++)f[g.parents[n]].children_d=f[g.parents[n]].children_d.concat(c);s={cnt:p,mod:f,sel:_,par:o,dpc:c,add:d}}if("undefined"!=typeof window&&void 0!==window.document)return s;postMessage(s)},l=function(t,r){if(null!==this.element){this._cnt=t.cnt;var i,s=this._model.data;for(i in s)s.hasOwnProperty(i)&&s[i].state&&s[i].state.loading&&t.mod[i]&&(t.mod[i].state.loading=!0);if(this._model.data=t.mod,r){var a,o=t.add,l=t.sel,c=this._data.core.selected.slice();if(s=this._model.data,l.length!==c.length||e.vakata.array_unique(l.concat(c)).length!==l.length){for(i=0,a=l.length;i<a;i++)-1===e.inArray(l[i],o)&&-1===e.inArray(l[i],c)&&(s[l[i]].state.selected=!1);for(i=0,a=c.length;i<a;i++)-1===e.inArray(c[i],l)&&(s[c[i]].state.selected=!0)}}t.add.length&&(this._data.core.selected=this._data.core.selected.concat(t.add)),this.trigger("model",{nodes:t.dpc,parent:t.par}),t.par!==e.jstree.root?(this._node_changed(t.par),this.redraw()):this.redraw(!0),t.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),n.call(this,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+o.toString()],{type:"text/javascript"}))),!this._data.core.working||i?(this._data.core.working=!0,(s=new window.Worker(this._wrk)).onmessage=e.proxy(function(e){l.call(this,e.data,!0);try{s.terminate(),s=null}catch(e){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1},this),a.par?s.postMessage(a):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([t,r,n,!0])}catch(e){l.call(this,o(a),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else l.call(this,o(a),!1)}},_parse_model_from_html:function(r,n,i){i=i?[].concat(i):[],n&&i.unshift(n);var s,a,o,l,c,d=this._model.data,h={id:!1,text:!1,icon:!0,parent:n,parents:i,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(o in this._model.default_state)this._model.default_state.hasOwnProperty(o)&&(h.state[o]=this._model.default_state[o]);if(l=e.vakata.attributes(r,!0),e.each(l,function(t,r){if(!(r=e.trim(r)).length)return!0;h.li_attr[t]=r,"id"===t&&(h.id=r.toString())}),(l=r.children("a").first()).length&&(l=e.vakata.attributes(l,!0),e.each(l,function(t,r){(r=e.trim(r)).length&&(h.a_attr[t]=r)})),(l=r.children("a").first().length?r.children("a").first().clone():r.clone()).children("ins, i, ul").remove(),l=l.html(),l=e("<div />").html(l),h.text=this.settings.core.force_text?l.text():l.html(),l=r.data(),h.data=l?e.extend(!0,{},l):null,h.state.opened=r.hasClass("jstree-open"),h.state.selected=r.children("a").hasClass("jstree-clicked"),h.state.disabled=r.children("a").hasClass("jstree-disabled"),h.data&&h.data.jstree)for(o in h.data.jstree)h.data.jstree.hasOwnProperty(o)&&(h.state[o]=h.data.jstree[o]);(l=r.children("a").children(".jstree-themeicon")).length&&(h.icon=!l.hasClass("jstree-themeicon-hidden")&&l.attr("rel")),h.state.icon!==t&&(h.icon=h.state.icon),h.icon!==t&&null!==h.icon&&""!==h.icon||(h.icon=!0),l=r.children("ul").children("li");do{c="j"+this._id+"_"+ ++this._cnt}while(d[c]);return h.id=h.li_attr.id?h.li_attr.id.toString():c,l.length?(l.each(e.proxy(function(t,r){s=this._parse_model_from_html(e(r),h.id,i),a=this._model.data[s],h.children.push(s),a.children_d.length&&(h.children_d=h.children_d.concat(a.children_d))},this)),h.children_d=h.children_d.concat(h.children)):r.hasClass("jstree-closed")&&(h.state.loaded=!1),h.li_attr.class&&(h.li_attr.class=h.li_attr.class.replace("jstree-closed","").replace("jstree-open","")),h.a_attr.class&&(h.a_attr.class=h.a_attr.class.replace("jstree-clicked","").replace("jstree-disabled","")),d[h.id]=h,h.state.selected&&this._data.core.selected.push(h.id),h.id},_parse_model_from_flat_json:function(e,r,n){n=n?n.concat():[],r&&n.unshift(r);var i,s,a,o,l=e.id.toString(),c=this._model.data,d=this._model.default_state,h={id:l,text:e.text||"",icon:e.icon===t||e.icon,parent:r,parents:n,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(i in d)d.hasOwnProperty(i)&&(h.state[i]=d[i]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(h.icon=e.data.jstree.icon),h.icon!==t&&null!==h.icon&&""!==h.icon||(h.icon=!0),e&&e.data&&(h.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(h.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(h.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(h.li_attr[i]=e.li_attr[i]);if(h.li_attr.id||(h.li_attr.id=l),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(h.a_attr[i]=e.a_attr[i]);for(e&&e.children&&!0===e.children&&(h.state.loaded=!1,h.children=[],h.children_d=[]),c[h.id]=h,i=0,s=h.children.length;i<s;i++)o=c[a=this._parse_model_from_flat_json(c[h.children[i]],h.id,n)],h.children_d.push(a),o.children_d.length&&(h.children_d=h.children_d.concat(o.children_d));return delete e.data,delete e.children,c[h.id].original=e,h.state.selected&&this._data.core.selected.push(h.id),h.id},_parse_model_from_json:function(e,r,n){n=n?n.concat():[],r&&n.unshift(r);var i,s,a,o,l,c=!1,d=this._model.data,h=this._model.default_state;do{c="j"+this._id+"_"+ ++this._cnt}while(d[c]);for(i in l={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===t||e.icon,parent:r,parents:n,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},h)h.hasOwnProperty(i)&&(l.state[i]=h[i]);if(e&&e.id&&(l.id=e.id.toString()),e&&e.text&&(l.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==t&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(i in e.data.jstree)e.data.jstree.hasOwnProperty(i)&&(l.state[i]=e.data.jstree[i]);if(e&&"object"==typeof e.state)for(i in e.state)e.state.hasOwnProperty(i)&&(l.state[i]=e.state[i]);if(e&&"object"==typeof e.li_attr)for(i in e.li_attr)e.li_attr.hasOwnProperty(i)&&(l.li_attr[i]=e.li_attr[i]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),e&&"object"==typeof e.a_attr)for(i in e.a_attr)e.a_attr.hasOwnProperty(i)&&(l.a_attr[i]=e.a_attr[i]);if(e&&e.children&&e.children.length){for(i=0,s=e.children.length;i<s;i++)o=d[a=this._parse_model_from_json(e.children[i],l.id,n)],l.children.push(a),o.children_d.length&&(l.children_d=l.children_d.concat(o.children_d));l.children_d=l.children_d.concat(l.children)}return e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete e.data,delete e.children,l.original=e,d[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var t,r,n,i=this._model.force_full_redraw?this._model.data[e.jstree.root].children.concat([]):this._model.changed.concat([]),s=l.createElement("UL"),a=this._data.core.focused;for(r=0,n=i.length;r<n;r++)(t=this.redraw_node(i[r],!0,this._model.force_full_redraw))&&this._model.force_full_redraw&&s.appendChild(t);this._model.force_full_redraw&&(s.className=this.get_container_ul()[0].className,s.setAttribute("role","group"),this.element.empty().append(s)),null!==a&&this.settings.core.restore_focus&&((t=this.get_node(a,!0))&&t.length&&t.children(".jstree-anchor")[0]!==l.activeElement?t.children(".jstree-anchor").focus():this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:i})},redraw:function(e){e&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(t){var r=this.get_node(t),n=!1,i=!1,s=!1,a=l;if(!r)return!1;if(r.id===e.jstree.root)return this.redraw(!0);if(!(t=this.get_node(t,!0))||!t.length)return!1;if(t.children(".jstree-children").remove(),t=t[0],r.children.length&&r.state.loaded){for((s=a.createElement("UL")).setAttribute("role","group"),s.className="jstree-children",n=0,i=r.children.length;n<i;n++)s.appendChild(this.redraw_node(r.children[n],!0,!0));t.appendChild(s)}},redraw_node:function(t,r,n,i){var s=this.get_node(t),a=!1,o=!1,c=!1,d=!1,h=!1,u=!1,p="",f=l,g=this._model.data,_=!1,m=null,v=0,y=0,b=!1,w=!1;if(!s)return!1;if(s.id===e.jstree.root)return this.redraw(!0);if(r=r||0===s.children.length,t=l.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(s.id[0])?"\\3"+s.id[0]+" "+s.id.substr(1).replace(e.jstree.idregex,"\\$&"):s.id.replace(e.jstree.idregex,"\\$&"))):l.getElementById(s.id))t=e(t),n||((a=t.parent().parent()[0])===this.element[0]&&(a=null),o=t.index()),r||!s.children.length||t.children(".jstree-children").length||(r=!0),r||(c=t.children(".jstree-children")[0]),_=t.children(".jstree-anchor")[0]===l.activeElement,t.remove();else if(r=!0,!n){if(!(null===(a=s.parent!==e.jstree.root?e("#"+s.parent.replace(e.jstree.idregex,"\\$&"),this.element)[0]:null)||a&&g[s.parent].state.opened))return!1;o=e.inArray(s.id,null===a?g[e.jstree.root].children:g[s.parent].children)}for(d in t=this._data.core.node.cloneNode(!0),p="jstree-node ",s.li_attr)if(s.li_attr.hasOwnProperty(d)){if("id"===d)continue;"class"!==d?t.setAttribute(d,s.li_attr[d]):p+=s.li_attr[d]}for(s.a_attr.id||(s.a_attr.id=s.id+"_anchor"),t.setAttribute("aria-selected",!!s.state.selected),t.setAttribute("aria-level",s.parents.length),t.setAttribute("aria-labelledby",s.a_attr.id),s.state.disabled&&t.setAttribute("aria-disabled",!0),d=0,h=s.children.length;d<h;d++)if(!g[s.children[d]].state.hidden){b=!0;break}if(null!==s.parent&&g[s.parent]&&!s.state.hidden&&(d=e.inArray(s.id,g[s.parent].children),w=s.id,-1!==d))for(d++,h=g[s.parent].children.length;d<h&&(g[g[s.parent].children[d]].state.hidden||(w=g[s.parent].children[d]),w===s.id);d++);for(h in s.state.hidden&&(p+=" jstree-hidden"),s.state.loading&&(p+=" jstree-loading"),s.state.loaded&&!b?p+=" jstree-leaf":(p+=s.state.opened&&s.state.loaded?" jstree-open":" jstree-closed",t.setAttribute("aria-expanded",s.state.opened&&s.state.loaded)),w===s.id&&(p+=" jstree-last"),t.id=s.id,t.className=p,p=(s.state.selected?" jstree-clicked":"")+(s.state.disabled?" jstree-disabled":""),s.a_attr)if(s.a_attr.hasOwnProperty(h)){if("href"===h&&"#"===s.a_attr[h])continue;"class"!==h?t.childNodes[1].setAttribute(h,s.a_attr[h]):p+=" "+s.a_attr[h]}if(p.length&&(t.childNodes[1].className="jstree-anchor "+p),(s.icon&&!0!==s.icon||!1===s.icon)&&(!1===s.icon?t.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===s.icon.indexOf("/")&&-1===s.icon.indexOf(".")?t.childNodes[1].childNodes[0].className+=" "+s.icon+" jstree-themeicon-custom":(t.childNodes[1].childNodes[0].style.backgroundImage='url("'+s.icon+'")',t.childNodes[1].childNodes[0].style.backgroundPosition="center center",t.childNodes[1].childNodes[0].style.backgroundSize="auto",t.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?t.childNodes[1].appendChild(f.createTextNode(s.text)):t.childNodes[1].innerHTML+=s.text,r&&s.children.length&&(s.state.opened||i)&&s.state.loaded){for((u=f.createElement("UL")).setAttribute("role","group"),u.className="jstree-children",d=0,h=s.children.length;d<h;d++)u.appendChild(this.redraw_node(s.children[d],r,!0));t.appendChild(u)}if(c&&t.appendChild(c),!n){for(a||(a=this.element[0]),d=0,h=a.childNodes.length;d<h;d++)if(a.childNodes[d]&&a.childNodes[d].className&&-1!==a.childNodes[d].className.indexOf("jstree-children")){m=a.childNodes[d];break}m||((m=f.createElement("UL")).setAttribute("role","group"),m.className="jstree-children",a.appendChild(m)),o<(a=m).childNodes.length?a.insertBefore(t,a.childNodes[o]):a.appendChild(t),_&&(v=this.element[0].scrollTop,y=this.element[0].scrollLeft,t.childNodes[1].focus(),this.element[0].scrollTop=v,this.element[0].scrollLeft=y)}return s.state.opened&&!s.state.loaded&&(s.state.opened=!1,setTimeout(e.proxy(function(){this.open_node(s.id,!1,0)},this),0)),t},open_node:function(r,n,i){var s,a,o,l;if(e.isArray(r)){for(s=0,a=(r=r.slice()).length;s<a;s++)this.open_node(r[s],n,i);return!0}return!(!(r=this.get_node(r))||r.id===e.jstree.root)&&(i=i===t?this.settings.core.animation:i,this.is_closed(r)?this.is_loaded(r)?(o=this.get_node(r,!0),l=this,o.length&&(i&&o.children(".jstree-children").length&&o.children(".jstree-children").stop(!0,!0),r.children.length&&!this._firstChild(o.children(".jstree-children")[0])&&this.draw_children(r),i?(this.trigger("before_open",{node:r}),o.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").attr("aria-expanded",!0).children(".jstree-children").stop(!0,!0).slideDown(i,function(){this.style.display="",l.element&&l.trigger("after_open",{node:r})})):(this.trigger("before_open",{node:r}),o[0].className=o[0].className.replace("jstree-closed","jstree-open"),o[0].setAttribute("aria-expanded",!0))),r.state.opened=!0,n&&n.call(this,r,!0),o.length||this.trigger("before_open",{node:r}),this.trigger("open_node",{node:r}),i&&o.length||this.trigger("after_open",{node:r}),!0):this.is_loading(r)?setTimeout(e.proxy(function(){this.open_node(r,n,i)},this),500):void this.load_node(r,function(e,t){return t?this.open_node(e,n,i):!!n&&n.call(this,e,!1)}):(n&&n.call(this,r,!1),!1))},_open_to:function(t){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var r,n,i=t.parents;for(r=0,n=i.length;r<n;r+=1)r!==e.jstree.root&&this.open_node(i[r],!1,0);return e("#"+t.id.replace(e.jstree.idregex,"\\$&"),this.element)},close_node:function(r,n){var i,s,a,o;if(e.isArray(r)){for(i=0,s=(r=r.slice()).length;i<s;i++)this.close_node(r[i],n);return!0}return!(!(r=this.get_node(r))||r.id===e.jstree.root)&&(!this.is_closed(r)&&(n=n===t?this.settings.core.animation:n,a=this,o=this.get_node(r,!0),r.state.opened=!1,this.trigger("close_node",{node:r}),void(o.length?n?o.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").attr("aria-expanded",!1).children(".jstree-children").stop(!0,!0).slideUp(n,function(){this.style.display="",o.children(".jstree-children").remove(),a.element&&a.trigger("after_close",{node:r})}):(o[0].className=o[0].className.replace("jstree-open","jstree-closed"),o.attr("aria-expanded",!1).children(".jstree-children").remove(),this.trigger("after_close",{node:r})):this.trigger("after_close",{node:r}))))},toggle_node:function(t){var r,n;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.toggle_node(t[r]);return!0}return this.is_closed(t)?this.open_node(t):this.is_open(t)?this.close_node(t):void 0},open_all:function(t,r,n){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var i,s,a,o=t.id===e.jstree.root?this.get_container_ul():this.get_node(t,!0);if(!o.length){for(i=0,s=t.children_d.length;i<s;i++)this.is_closed(this._model.data[t.children_d[i]])&&(this._model.data[t.children_d[i]].state.opened=!0);return this.trigger("open_all",{node:t})}n=n||o,a=this,(o=this.is_closed(t)?o.find(".jstree-closed").addBack():o.find(".jstree-closed")).each(function(){a.open_node(this,function(e,t){t&&this.is_parent(e)&&this.open_all(e,r,n)},r||0)}),0===n.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(n)})},close_all:function(t,r){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var n,i,s=t.id===e.jstree.root?this.get_container_ul():this.get_node(t,!0),a=this;for(s.length&&(s=this.is_open(t)?s.find(".jstree-open").addBack():s.find(".jstree-open"),e(s.get().reverse()).each(function(){a.close_node(this,r||0)})),n=0,i=t.children_d.length;n<i;n++)this._model.data[t.children_d[n]].state.opened=!1;this.trigger("close_all",{node:t})},is_disabled:function(e){return(e=this.get_node(e))&&e.state&&e.state.disabled},enable_node:function(t){var r,n;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.enable_node(t[r]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.disabled=!1,this.get_node(t,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),this.trigger("enable_node",{node:t})},disable_node:function(t){var r,n;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.disable_node(t[r]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.disabled=!0,this.get_node(t,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),this.trigger("disable_node",{node:t})},is_hidden:function(e){return!0===(e=this.get_node(e)).state.hidden},hide_node:function(t,r){var n,i;if(e.isArray(t)){for(n=0,i=(t=t.slice()).length;n<i;n++)this.hide_node(t[n],!0);return r||this.redraw(),!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.hidden||(t.state.hidden=!0,this._node_changed(t.parent),r||this.redraw(),this.trigger("hide_node",{node:t}))},show_node:function(t,r){var n,i;if(e.isArray(t)){for(n=0,i=(t=t.slice()).length;n<i;n++)this.show_node(t[n],!0);return r||this.redraw(),!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.hidden&&(t.state.hidden=!1,this._node_changed(t.parent),r||this.redraw(),this.trigger("show_node",{node:t}))},hide_all:function(t){var r,n=this._model.data,i=[];for(r in n)n.hasOwnProperty(r)&&r!==e.jstree.root&&!n[r].state.hidden&&(n[r].state.hidden=!0,i.push(r));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("hide_all",{nodes:i}),i},show_all:function(t){var r,n=this._model.data,i=[];for(r in n)n.hasOwnProperty(r)&&r!==e.jstree.root&&n[r].state.hidden&&(n[r].state.hidden=!1,i.push(r));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("show_all",{nodes:i}),i},activate_node:function(e,r){if(this.is_disabled(e))return!1;if(r&&"object"==typeof r||(r={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==t?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(r.metaKey||r.ctrlKey||r.shiftKey)&&(!r.shiftKey||this._data.core.last_clicked&&this.get_parent(e)&&this.get_parent(e)===this._data.core.last_clicked.parent))if(r.shiftKey){var n,i,s=this.get_node(e).id,a=this._data.core.last_clicked.id,o=this.get_node(this._data.core.last_clicked.parent).children,l=!1;for(n=0,i=o.length;n<i;n+=1)o[n]===s&&(l=!l),o[n]===a&&(l=!l),this.is_disabled(o[n])||!l&&o[n]!==s&&o[n]!==a?this.deselect_node(o[n],!0,r):this.is_hidden(o[n])||this.select_node(o[n],!0,!1,r);this.trigger("changed",{action:"select_node",node:this.get_node(e),selected:this._data.core.selected,event:r})}else this.is_selected(e)?this.deselect_node(e,!1,r):this.select_node(e,!1,!1,r);else!this.settings.core.multiple&&(r.metaKey||r.ctrlKey||r.shiftKey)&&this.is_selected(e)?this.deselect_node(e,!1,r):(this.deselect_all(!0),this.select_node(e,!1,!1,r),this._data.core.last_clicked=this.get_node(e));this.trigger("activate_node",{node:this.get_node(e),event:r})},hover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||e.children(".jstree-hovered").length)return!1;var t=this.element.find(".jstree-hovered"),r=this.element;t&&t.length&&this.dehover_node(t),e.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(e)}),setTimeout(function(){r.attr("aria-activedescendant",e[0].id)},0)},dehover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||!e.children(".jstree-hovered").length)return!1;e.children(".jstree-anchor").removeClass("jstree-hovered"),this.trigger("dehover_node",{node:this.get_node(e)})},select_node:function(t,r,n,i){var s,a,o;if(e.isArray(t)){for(a=0,o=(t=t.slice()).length;a<o;a++)this.select_node(t[a],r,n,i);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;s=this.get_node(t,!0),t.state.selected||(t.state.selected=!0,this._data.core.selected.push(t.id),n||(s=this._open_to(t)),s&&s.length&&s.attr("aria-selected",!0).children(".jstree-anchor").addClass("jstree-clicked"),this.trigger("select_node",{node:t,selected:this._data.core.selected,event:i}),r||this.trigger("changed",{action:"select_node",node:t,selected:this._data.core.selected,event:i}))},deselect_node:function(t,r,n){var i,s,a;if(e.isArray(t)){for(i=0,s=(t=t.slice()).length;i<s;i++)this.deselect_node(t[i],r,n);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;a=this.get_node(t,!0),t.state.selected&&(t.state.selected=!1,this._data.core.selected=e.vakata.array_remove_item(this._data.core.selected,t.id),a.length&&a.attr("aria-selected",!1).children(".jstree-anchor").removeClass("jstree-clicked"),this.trigger("deselect_node",{node:t,selected:this._data.core.selected,event:n}),r||this.trigger("changed",{action:"deselect_node",node:t,selected:this._data.core.selected,event:n}))},select_all:function(t){var r,n,i=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data[e.jstree.root].children_d.concat(),r=0,n=this._data.core.selected.length;r<n;r++)this._model.data[this._data.core.selected[r]]&&(this._model.data[this._data.core.selected[r]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),t||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:i})},deselect_all:function(e){var t,r,n=this._data.core.selected.concat([]);for(t=0,r=this._data.core.selected.length;t<r;t++)this._model.data[this._data.core.selected[t]]&&(this._model.data[this._data.core.selected[t]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").parent().attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:n}),e||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:n})},is_selected:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.state.selected},get_selected:function(t){return t?e.map(this._data.core.selected,e.proxy(function(e){return this.get_node(e)},this)):this._data.core.selected.slice()},get_top_selected:function(t){var r,n,i,s,a=this.get_selected(!0),o={};for(r=0,n=a.length;r<n;r++)o[a[r].id]=a[r];for(r=0,n=a.length;r<n;r++)for(i=0,s=a[r].children_d.length;i<s;i++)o[a[r].children_d[i]]&&delete o[a[r].children_d[i]];for(r in a=[],o)o.hasOwnProperty(r)&&a.push(r);return t?e.map(a,e.proxy(function(e){return this.get_node(e)},this)):a},get_bottom_selected:function(t){var r,n,i=this.get_selected(!0),s=[];for(r=0,n=i.length;r<n;r++)i[r].children.length||s.push(i[r].id);return t?e.map(s,e.proxy(function(e){return this.get_node(e)},this)):s},get_state:function(){var t,r={core:{open:[],loaded:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()}, /*! 'themes' : { 'name' : this.get_theme(), 'icons' : this._data.core.themes.icons, 'dots' : this._data.core.themes.dots }, */ selected:[]}};for(t in this._model.data)this._model.data.hasOwnProperty(t)&&t!==e.jstree.root&&(this._model.data[t].state.loaded&&this.settings.core.loaded_state&&r.core.loaded.push(t),this._model.data[t].state.opened&&r.core.open.push(t),this._model.data[t].state.selected&&r.core.selected.push(t));return r},set_state:function(r,n){if(r){if(r.core&&r.core.selected&&r.core.initial_selection===t&&(r.core.initial_selection=this._data.core.selected.concat([]).sort().join(",")),r.core){var i,s;if(r.core.loaded)return this.settings.core.loaded_state&&e.isArray(r.core.loaded)&&r.core.loaded.length?this._load_nodes(r.core.loaded,function(e){delete r.core.loaded,this.set_state(r,n)}):(delete r.core.loaded,this.set_state(r,n)),!1;if(r.core.open)return e.isArray(r.core.open)&&r.core.open.length?this._load_nodes(r.core.open,function(e){this.open_node(e,!1,0),delete r.core.open,this.set_state(r,n)}):(delete r.core.open,this.set_state(r,n)),!1;if(r.core.scroll)return r.core.scroll&&r.core.scroll.left!==t&&this.element.scrollLeft(r.core.scroll.left),r.core.scroll&&r.core.scroll.top!==t&&this.element.scrollTop(r.core.scroll.top),delete r.core.scroll,this.set_state(r,n),!1;if(r.core.selected)return i=this,r.core.initial_selection!==t&&r.core.initial_selection!==this._data.core.selected.concat([]).sort().join(",")||(this.deselect_all(),e.each(r.core.selected,function(e,t){i.select_node(t,!1,!0)})),delete r.core.initial_selection,delete r.core.selected,this.set_state(r,n),!1;for(s in r)r.hasOwnProperty(s)&&"core"!==s&&-1===e.inArray(s,this.settings.plugins)&&delete r[s];if(e.isEmptyObject(r.core))return delete r.core,this.set_state(r,n),!1}return!e.isEmptyObject(r)||(r=null,n&&n.call(this),this.trigger("set_state"),!1)}return!1},refresh:function(t,r){this._data.core.state=!0===r?{}:this.get_state(),r&&e.isFunction(r)&&(this._data.core.state=r.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[e.jstree.root]={id:e.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var n=this.get_container_ul()[0].className;t||(this.element.html("<ul class='"+n+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='treeitem' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(e.jstree.root,function(t,r){r&&(this.get_container_ul()[0].className=n,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(e.extend(!0,{},this._data.core.state),function(){this.trigger("refresh")})),this._data.core.state=null})},refresh_node:function(t){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var r=[],n=[],i=this._data.core.selected.concat([]);n.push(t.id),!0===t.state.opened&&r.push(t.id),this.get_node(t,!0).find(".jstree-open").each(function(){n.push(this.id),r.push(this.id)}),this._load_nodes(n,e.proxy(function(e){this.open_node(r,!1,0),this.select_node(i),this.trigger("refresh_node",{node:t,nodes:e})},this),!1,!0)},set_id:function(t,r){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var n,i,s=this._model.data,a=t.id;for(r=r.toString(),s[t.parent].children[e.inArray(t.id,s[t.parent].children)]=r,n=0,i=t.parents.length;n<i;n++)s[t.parents[n]].children_d[e.inArray(t.id,s[t.parents[n]].children_d)]=r;for(n=0,i=t.children.length;n<i;n++)s[t.children[n]].parent=r;for(n=0,i=t.children_d.length;n<i;n++)s[t.children_d[n]].parents[e.inArray(t.id,s[t.children_d[n]].parents)]=r;return-1!==(n=e.inArray(t.id,this._data.core.selected))&&(this._data.core.selected[n]=r),(n=this.get_node(t.id,!0))&&(n.attr("id",r),this.element.attr("aria-activedescendant")===t.id&&this.element.attr("aria-activedescendant",r)),delete s[t.id],t.id=r,t.li_attr.id=r,s[r]=t,this.trigger("set_id",{node:t,new:t.id,old:a}),!0},get_text:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.text},set_text:function(t,r){var n,i;if(e.isArray(t)){for(n=0,i=(t=t.slice()).length;n<i;n++)this.set_text(t[n],r);return!0}return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&(t.text=r,this.get_node(t,!0).length&&this.redraw_node(t.id),this.trigger("set_text",{obj:t,text:r}),!0)},get_json:function(t,r,n){if(!(t=this.get_node(t||e.jstree.root)))return!1;r&&r.flat&&!n&&(n=[]);var i,s,a={id:t.id,text:t.text,icon:this.get_icon(t),li_attr:e.extend(!0,{},t.li_attr),a_attr:e.extend(!0,{},t.a_attr),state:{},data:(!r||!r.no_data)&&e.extend(!0,e.isArray(t.data)?[]:{},t.data)};if(r&&r.flat?a.parent=t.parent:a.children=[],r&&r.no_state)delete a.state;else for(i in t.state)t.state.hasOwnProperty(i)&&(a.state[i]=t.state[i]);if(r&&r.no_li_attr&&delete a.li_attr,r&&r.no_a_attr&&delete a.a_attr,r&&r.no_id&&(delete a.id,a.li_attr&&a.li_attr.id&&delete a.li_attr.id,a.a_attr&&a.a_attr.id&&delete a.a_attr.id),r&&r.flat&&t.id!==e.jstree.root&&n.push(a),!r||!r.no_children)for(i=0,s=t.children.length;i<s;i++)r&&r.flat?this.get_json(t.children[i],r,n):a.children.push(this.get_json(t.children[i],r));return r&&r.flat?n:t.id===e.jstree.root?a.children:a},create_node:function(r,n,i,s,a){if(null===r&&(r=e.jstree.root),!(r=this.get_node(r)))return!1;if(!(i=i===t?"last":i).toString().match(/^(before|after)$/)&&!a&&!this.is_loaded(r))return this.load_node(r,function(){this.create_node(r,n,i,s,!0)});var o,l,c,d;switch(n||(n={text:this.get_string("New node")}),(n="string"==typeof n?{text:n}:e.extend(!0,{},n)).text===t&&(n.text=this.get_string("New node")),r.id===e.jstree.root&&("before"===i&&(i="first"),"after"===i&&(i="last")),i){case"before":o=this.get_node(r.parent),i=e.inArray(r.id,o.children),r=o;break;case"after":o=this.get_node(r.parent),i=e.inArray(r.id,o.children)+1,r=o;break;case"inside":case"first":i=0;break;case"last":i=r.children.length;break;default:i||(i=0)}if(i>r.children.length&&(i=r.children.length),n.id||(n.id=!0),!this.check("create_node",n,r,i))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!0===n.id&&delete n.id,!(n=this._parse_model_from_json(n,r.id,r.parents.concat())))return!1;for(o=this.get_node(n),(l=[]).push(n),l=l.concat(o.children_d),this.trigger("model",{nodes:l,parent:r.id}),r.children_d=r.children_d.concat(l),c=0,d=r.parents.length;c<d;c++)this._model.data[r.parents[c]].children_d=this._model.data[r.parents[c]].children_d.concat(l);for(n=o,o=[],c=0,d=r.children.length;c<d;c++)o[c>=i?c+1:c]=r.children[c];return o[i]=n.id,r.children=o,this.redraw_node(r,!0),this.trigger("create_node",{node:this.get_node(n),parent:r.id,position:i}),s&&s.call(this,this.get_node(n)),n.id},rename_node:function(t,r){var n,i,s;if(e.isArray(t)){for(n=0,i=(t=t.slice()).length;n<i;n++)this.rename_node(t[n],r);return!0}return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&(s=t.text,this.check("rename_node",t,this.get_parent(t),r)?(this.set_text(t,r),this.trigger("rename_node",{node:t,text:r,old:s}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1))},delete_node:function(t){var r,n,i,s,a,o,l,c,d,h,u,p;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.delete_node(t[r]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;if(i=this.get_node(t.parent),s=e.inArray(t.id,i.children),h=!1,!this.check("delete_node",t,i,s))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==s&&(i.children=e.vakata.array_remove(i.children,s)),(a=t.children_d.concat([])).push(t.id),o=0,l=t.parents.length;o<l;o++)this._model.data[t.parents[o]].children_d=e.vakata.array_filter(this._model.data[t.parents[o]].children_d,function(t){return-1===e.inArray(t,a)});for(c=0,d=a.length;c<d;c++)if(this._model.data[a[c]].state.selected){h=!0;break}for(h&&(this._data.core.selected=e.vakata.array_filter(this._data.core.selected,function(t){return-1===e.inArray(t,a)})),this.trigger("delete_node",{node:t,parent:i.id}),h&&this.trigger("changed",{action:"delete_node",node:t,selected:this._data.core.selected,parent:i.id}),c=0,d=a.length;c<d;c++)delete this._model.data[a[c]];return-1!==e.inArray(this._data.core.focused,a)&&(this._data.core.focused=null,u=this.element[0].scrollTop,p=this.element[0].scrollLeft,i.id===e.jstree.root?this._model.data[e.jstree.root].children[0]&&this.get_node(this._model.data[e.jstree.root].children[0],!0).children(".jstree-anchor").focus():this.get_node(i,!0).children(".jstree-anchor").focus(),this.element[0].scrollTop=u,this.element[0].scrollLeft=p),this.redraw_node(i,!0),!0},check:function(t,r,n,i,s){r=r&&r.id?r:this.get_node(r),n=n&&n.id?n:this.get_node(n);var a=t.match(/^move_node|copy_node|create_node$/i)?n:r,o=this.settings.core.check_callback;return"move_node"!==t&&"copy_node"!==t||s&&s.is_multi||r.id!==n.id&&("move_node"!==t||e.inArray(r.id,n.children)!==i)&&-1===e.inArray(n.id,r.children_d)?(a&&a.data&&(a=a.data),a&&a.functions&&(!1===a.functions[t]||!0===a.functions[t])?(!1===a.functions[t]&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+t,data:JSON.stringify({chk:t,pos:i,obj:!(!r||!r.id)&&r.id,par:!(!n||!n.id)&&n.id})}),a.functions[t]):!(!1===o||e.isFunction(o)&&!1===o.call(this,t,r,n,i,s)||o&&!1===o[t])||(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+t,data:JSON.stringify({chk:t,pos:i,obj:!(!r||!r.id)&&r.id,par:!(!n||!n.id)&&n.id})},!1)):(this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:t,pos:i,obj:!(!r||!r.id)&&r.id,par:!(!n||!n.id)&&n.id})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(r,n,i,s,a,o,l){var c,d,h,u,p,f,g,_,m,v,y,b,w,x;if(n=this.get_node(n),i=i===t?0:i,!n)return!1;if(!i.toString().match(/^(before|after)$/)&&!a&&!this.is_loaded(n))return this.load_node(n,function(){this.move_node(r,n,i,s,!0,!1,l)});if(e.isArray(r)){if(1!==r.length){for(c=0,d=r.length;c<d;c++)(m=this.move_node(r[c],n,i,s,a,!1,l))&&(n=m,i="after");return this.redraw(),!0}r=r[0]}if(!(r=r&&r.id?r:this.get_node(r))||r.id===e.jstree.root)return!1;if(h=(r.parent||e.jstree.root).toString(),p=i.toString().match(/^(before|after)$/)&&n.id!==e.jstree.root?this.get_node(n.parent):n,g=!(f=l||(this._model.data[r.id]?this:e.jstree.reference(r.id)))||!f._id||this._id!==f._id,u=f&&f._id&&h&&f._model.data[h]&&f._model.data[h].children?e.inArray(r.id,f._model.data[h].children):-1,f&&f._id&&(r=f._model.data[r.id]),g)return!!(m=this.copy_node(r,n,i,s,a,!1,l))&&(f&&f.delete_node(r),m);switch(n.id===e.jstree.root&&("before"===i&&(i="first"),"after"===i&&(i="last")),i){case"before":i=e.inArray(n.id,p.children);break;case"after":i=e.inArray(n.id,p.children)+1;break;case"inside":case"first":i=0;break;case"last":i=p.children.length;break;default:i||(i=0)}if(i>p.children.length&&(i=p.children.length),!this.check("move_node",r,p,i,{core:!0,origin:l,is_multi:f&&f._id&&f._id!==this._id,is_foreign:!f||!f._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(r.parent===p.id){for(_=p.children.concat(),-1!==(m=e.inArray(r.id,_))&&(_=e.vakata.array_remove(_,m),i>m&&i--),m=[],v=0,y=_.length;v<y;v++)m[v>=i?v+1:v]=_[v];m[i]=r.id,p.children=m,this._node_changed(p.id),this.redraw(p.id===e.jstree.root)}else{for((m=r.children_d.concat()).push(r.id),v=0,y=r.parents.length;v<y;v++){for(_=[],b=0,w=(x=f._model.data[r.parents[v]].children_d).length;b<w;b++)-1===e.inArray(x[b],m)&&_.push(x[b]);f._model.data[r.parents[v]].children_d=_}for(f._model.data[h].children=e.vakata.array_remove_item(f._model.data[h].children,r.id),v=0,y=p.parents.length;v<y;v++)this._model.data[p.parents[v]].children_d=this._model.data[p.parents[v]].children_d.concat(m);for(_=[],v=0,y=p.children.length;v<y;v++)_[v>=i?v+1:v]=p.children[v];for(_[i]=r.id,p.children=_,p.children_d.push(r.id),p.children_d=p.children_d.concat(r.children_d),r.parent=p.id,(m=p.parents.concat()).unshift(p.id),x=r.parents.length,r.parents=m,m=m.concat(),v=0,y=r.children_d.length;v<y;v++)this._model.data[r.children_d[v]].parents=this._model.data[r.children_d[v]].parents.slice(0,-1*x),Array.prototype.push.apply(this._model.data[r.children_d[v]].parents,m);h!==e.jstree.root&&p.id!==e.jstree.root||(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(h),this._node_changed(p.id)),o||this.redraw()}return s&&s.call(this,r,p,i),this.trigger("move_node",{node:r,parent:p.id,position:i,old_parent:h,old_position:u,is_multi:f&&f._id&&f._id!==this._id,is_foreign:!f||!f._id,old_instance:f,new_instance:this}),r.id},copy_node:function(r,n,i,s,a,o,l){var c,d,h,u,p,f,g,_,m,v;if(n=this.get_node(n),i=i===t?0:i,!n)return!1;if(!i.toString().match(/^(before|after)$/)&&!a&&!this.is_loaded(n))return this.load_node(n,function(){this.copy_node(r,n,i,s,!0,!1,l)});if(e.isArray(r)){if(1!==r.length){for(c=0,d=r.length;c<d;c++)(u=this.copy_node(r[c],n,i,s,a,!0,l))&&(n=u,i="after");return this.redraw(),!0}r=r[0]}if(!(r=r&&r.id?r:this.get_node(r))||r.id===e.jstree.root)return!1;switch(_=(r.parent||e.jstree.root).toString(),m=i.toString().match(/^(before|after)$/)&&n.id!==e.jstree.root?this.get_node(n.parent):n,!(v=l||(this._model.data[r.id]?this:e.jstree.reference(r.id)))||!v._id||this._id!==v._id,v&&v._id&&(r=v._model.data[r.id]),n.id===e.jstree.root&&("before"===i&&(i="first"),"after"===i&&(i="last")),i){case"before":i=e.inArray(n.id,m.children);break;case"after":i=e.inArray(n.id,m.children)+1;break;case"inside":case"first":i=0;break;case"last":i=m.children.length;break;default:i||(i=0)}if(i>m.children.length&&(i=m.children.length),!this.check("copy_node",r,m,i,{core:!0,origin:l,is_multi:v&&v._id&&v._id!==this._id,is_foreign:!v||!v._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!(g=v?v.get_json(r,{no_id:!0,no_data:!0,no_state:!0}):r))return!1;if(!0===g.id&&delete g.id,!(g=this._parse_model_from_json(g,m.id,m.parents.concat())))return!1;for(u=this.get_node(g),r&&r.state&&!1===r.state.loaded&&(u.state.loaded=!1),(h=[]).push(g),h=h.concat(u.children_d),this.trigger("model",{nodes:h,parent:m.id}),p=0,f=m.parents.length;p<f;p++)this._model.data[m.parents[p]].children_d=this._model.data[m.parents[p]].children_d.concat(h);for(h=[],p=0,f=m.children.length;p<f;p++)h[p>=i?p+1:p]=m.children[p];return h[i]=u.id,m.children=h,m.children_d.push(u.id),m.children_d=m.children_d.concat(u.children_d),m.id===e.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(m.id),o||this.redraw(m.id===e.jstree.root),s&&s.call(this,u,m,i),this.trigger("copy_node",{node:u,original:r,parent:m.id,position:i,old_parent:_,old_position:v&&v._id&&_&&v._model.data[_]&&v._model.data[_].children?e.inArray(r.id,v._model.data[_].children):-1,is_multi:v&&v._id&&v._id!==this._id,is_foreign:!v||!v._id,old_instance:v,new_instance:this}),u.id},cut:function(t){if(t||(t=this._data.core.selected.concat()),e.isArray(t)||(t=[t]),!t.length)return!1;var r,a,o,l=[];for(a=0,o=t.length;a<o;a++)(r=this.get_node(t[a]))&&r.id&&r.id!==e.jstree.root&&l.push(r);if(!l.length)return!1;n=l,s=this,i="move_node",this.trigger("cut",{node:t})},copy:function(t){if(t||(t=this._data.core.selected.concat()),e.isArray(t)||(t=[t]),!t.length)return!1;var r,a,o,l=[];for(a=0,o=t.length;a<o;a++)(r=this.get_node(t[a]))&&r.id&&r.id!==e.jstree.root&&l.push(r);if(!l.length)return!1;n=l,s=this,i="copy_node",this.trigger("copy",{node:t})},get_buffer:function(){return{mode:i,node:n,inst:s}},can_paste:function(){return!1!==i&&!1!==n},paste:function(e,t){if(!((e=this.get_node(e))&&i&&i.match(/^(copy_node|move_node)$/)&&n))return!1;this[i](n,e,t,!1,!1,!1,s)&&this.trigger("paste",{parent:e.id,node:n,mode:i}),n=!1,i=!1,s=!1},clear_buffer:function(){n=!1,i=!1,s=!1,this.trigger("clear_buffer")},edit:function(t,r,n){var i,s,a,o,c,d,h,u,p,f=!1;return!!(t=this.get_node(t))&&(this.check("edit",t,this.get_parent(t))?(p=t,r="string"==typeof r?r:t.text,this.set_text(t,""),t=this._open_to(t),p.text=r,i=this._data.core.rtl,s=this.element.width(),this._data.core.focused=p.id,a=t.children(".jstree-anchor").focus(),o=e("<span>"), /*! oi = obj.children("i:visible"), ai = a.children("i:visible"), w1 = oi.width() * oi.length, w2 = ai.width() * ai.length, */ c=r,d=e("<div />",{css:{position:"absolute",top:"-200px",left:i?"0px":"-1000px",visibility:"hidden"}}).appendTo(l.body),h=e("<input />",{value:c,class:"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:e.proxy(function(r){r.stopImmediatePropagation(),r.preventDefault();var i,s=o.children(".jstree-rename-input").val(),l=this.settings.core.force_text;""===s&&(s=c),d.remove(),o.replaceWith(a),o.remove(),c=l?c:e("<div></div>").append(e.parseHTML(c)).html(),t=this.get_node(t),this.set_text(t,c),(i=!!this.rename_node(t,l?e("<div></div>").text(s).text():e("<div></div>").append(e.parseHTML(s)).html()))||this.set_text(t,c),this._data.core.focused=p.id,setTimeout(e.proxy(function(){var e=this.get_node(p.id,!0);e.length&&(this._data.core.focused=p.id,e.children(".jstree-anchor").focus())},this),0),n&&n.call(this,p,i,f),h=null},this),keydown:function(e){var t=e.which;27===t&&(f=!0,this.value=c),27!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&32!==t||e.stopImmediatePropagation(),27!==t&&13!==t||(e.preventDefault(),this.blur())},click:function(e){e.stopImmediatePropagation()},mousedown:function(e){e.stopImmediatePropagation()},keyup:function(e){h.width(Math.min(d.text("pW"+this.value).width(),s))},keypress:function(e){if(13===e.which)return!1}}),u={fontFamily:a.css("fontFamily")||"",fontSize:a.css("fontSize")||"",fontWeight:a.css("fontWeight")||"",fontStyle:a.css("fontStyle")||"",fontStretch:a.css("fontStretch")||"",fontVariant:a.css("fontVariant")||"",letterSpacing:a.css("letterSpacing")||"",wordSpacing:a.css("wordSpacing")||""},o.attr("class",a.attr("class")).append(a.contents().clone()).append(h),a.replaceWith(o),d.css(u),h.css(u).width(Math.min(d.text("pW"+h[0].value).width(),s))[0].select(),void e(l).one("mousedown.jstree touchstart.jstree dnd_start.vakata",function(t){h&&t.target!==h&&e(h).blur()})):(this.settings.core.error.call(this,this._data.core.last_error),!1))},set_theme:function(t,r){if(!t)return!1;if(!0===r){var n=this.settings.core.themes.dir;n||(n=e.jstree.path+"/themes"),r=n+"/"+t+"/style.css"}r&&-1===e.inArray(r,a)&&(e("head").append('<link rel="stylesheet" href="'+r+'" type="text/css" />'),a.push(r)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=t,this.element.addClass("jstree-"+t),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+t+"-responsive"),this.trigger("set_theme",{theme:t})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(e){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=e,e&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped"),this.trigger("show_stripes")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped"),this.trigger("hide_stripes")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots"),this.trigger("show_dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots"),this.trigger("hide_dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons"),this.trigger("show_icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons"),this.trigger("hide_icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},show_ellipsis:function(){this._data.core.themes.ellipsis=!0,this.get_container_ul().addClass("jstree-ellipsis"),this.trigger("show_ellipsis")},hide_ellipsis:function(){this._data.core.themes.ellipsis=!1,this.get_container_ul().removeClass("jstree-ellipsis"),this.trigger("hide_ellipsis")},toggle_ellipsis:function(){this._data.core.themes.ellipsis?this.hide_ellipsis():this.show_ellipsis()},set_icon:function(r,n){var i,s,a,o;if(e.isArray(r)){for(i=0,s=(r=r.slice()).length;i<s;i++)this.set_icon(r[i],n);return!0}return!(!(r=this.get_node(r))||r.id===e.jstree.root)&&(o=r.icon,r.icon=!0===n||null===n||n===t||""===n||n,a=this.get_node(r,!0).children(".jstree-anchor").children(".jstree-themeicon"),!1===n?(a.removeClass("jstree-themeicon-custom "+o).css("background","").removeAttr("rel"),this.hide_icon(r)):!0===n||null===n||n===t||""===n?(a.removeClass("jstree-themeicon-custom "+o).css("background","").removeAttr("rel"),!1===o&&this.show_icon(r)):-1===n.indexOf("/")&&-1===n.indexOf(".")?(a.removeClass(o).css("background",""),a.addClass(n+" jstree-themeicon-custom").attr("rel",n),!1===o&&this.show_icon(r)):(a.removeClass(o).css("background",""),a.addClass("jstree-themeicon-custom").css("background","url('"+n+"') center center no-repeat").attr("rel",n),!1===o&&this.show_icon(r)),!0)},get_icon:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.icon},hide_icon:function(t){var r,n;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.hide_icon(t[r]);return!0}return!(!(t=this.get_node(t))||t===e.jstree.root)&&(t.icon=!1,this.get_node(t,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),!0)},show_icon:function(t){var r,n,i;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.show_icon(t[r]);return!0}return!(!(t=this.get_node(t))||t===e.jstree.root)&&(i=this.get_node(t,!0),t.icon=!i.length||i.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"),t.icon||(t.icon=!0),i.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),!0)}},e.vakata={},e.vakata.attributes=function(t,r){t=e(t)[0];var n=r?{}:[];return t&&t.attributes&&e.each(t.attributes,function(t,i){-1===e.inArray(i.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==i.value&&""!==e.trim(i.value)&&(r?n[i.name]=i.value:n.push(i.name))}),n},e.vakata.array_unique=function(e){var r,n,i=[],s={};for(r=0,n=e.length;r<n;r++)s[e[r]]===t&&(i.push(e[r]),s[e[r]]=!0);return i},e.vakata.array_remove=function(e,t){return e.splice(t,1),e},e.vakata.array_remove_item=function(t,r){var n=e.inArray(r,t);return-1!==n?e.vakata.array_remove(t,n):t},e.vakata.array_filter=function(e,t,r,n,i){if(e.filter)return e.filter(t,r);for(i in n=[],e)~~i+""==i+""&&i>=0&&t.call(r,e[i],+i,e)&&n.push(e[i]);return n},e.jstree.plugins.changed=function(e,t){var r=[];this.trigger=function(e,n){var i,s;if(n||(n={}),"changed"===e.replace(".jstree","")){n.changed={selected:[],deselected:[]};var a={};for(i=0,s=r.length;i<s;i++)a[r[i]]=1;for(i=0,s=n.selected.length;i<s;i++)a[n.selected[i]]?a[n.selected[i]]=2:n.changed.selected.push(n.selected[i]);for(i=0,s=r.length;i<s;i++)1===a[r[i]]&&n.changed.deselected.push(r[i]);r=n.selected.slice()}t.trigger.call(this,e,n)},this.refresh=function(e,n){return r=[],t.refresh.apply(this,arguments)}};var c,d,h=l.createElement("I");h.className="jstree-icon jstree-checkbox",h.setAttribute("role","presentation"),e.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0,cascade_to_disabled:!0,cascade_to_hidden:!0},e.jstree.plugins.checkbox=function(r,n){this.bind=function(){n.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",e.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")},this)).on("loading.jstree",e.proxy(function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()},this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",e.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(e.proxy(this._undetermined,this),50)},this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",e.proxy(function(e,t){var r,n,i=this._model.data,s=(i[t.parent],t.nodes);for(r=0,n=s.length;r<n;r++)i[s[r]].state.checked=i[s[r]].state.checked||i[s[r]].original&&i[s[r]].original.state&&i[s[r]].original.state.checked,i[s[r]].state.checked&&this._data.checkbox.selected.push(s[r])},this)),-1===this.settings.checkbox.cascade.indexOf("up")&&-1===this.settings.checkbox.cascade.indexOf("down")||this.element.on("model.jstree",e.proxy(function(t,r){var n,i,s,a,o,l,c=this._model.data,d=c[r.parent],h=r.nodes,u=[],p=this.settings.checkbox.cascade,f=this.settings.checkbox.tie_selection;if(-1!==p.indexOf("down"))if(d.state[f?"selected":"checked"]){for(i=0,s=h.length;i<s;i++)c[h[i]].state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected=this._data[f?"core":"checkbox"].selected.concat(h)}else for(i=0,s=h.length;i<s;i++)if(c[h[i]].state[f?"selected":"checked"]){for(a=0,o=c[h[i]].children_d.length;a<o;a++)c[c[h[i]].children_d[a]].state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected=this._data[f?"core":"checkbox"].selected.concat(c[h[i]].children_d)}if(-1!==p.indexOf("up")){for(i=0,s=d.children_d.length;i<s;i++)c[d.children_d[i]].children.length||u.push(c[d.children_d[i]].parent);for(a=0,o=(u=e.vakata.array_unique(u)).length;a<o;a++)for(d=c[u[a]];d&&d.id!==e.jstree.root;){for(n=0,i=0,s=d.children.length;i<s;i++)n+=c[d.children[i]].state[f?"selected":"checked"];if(n!==s)break;d.state[f?"selected":"checked"]=!0,this._data[f?"core":"checkbox"].selected.push(d.id),(l=this.get_node(d,!0))&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(f?"jstree-clicked":"jstree-checked"),d=this.get_node(d.parent)}}this._data[f?"core":"checkbox"].selected=e.vakata.array_unique(this._data[f?"core":"checkbox"].selected)},this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",e.proxy(function(t,r){var n,i,s,a,o=r.node,l=this._model.data,c=this.get_node(o.parent),d=this.settings.checkbox.cascade,h=this.settings.checkbox.tie_selection,u={},p=this._data[h?"core":"checkbox"].selected;for(n=0,i=p.length;n<i;n++)u[p[n]]=!0;if(-1!==d.indexOf("down")){var f=this._cascade_new_checked_state(o.id,!0),g=o.children_d.concat(o.id);for(n=0,i=g.length;n<i;n++)f.indexOf(g[n])>-1?u[g[n]]=!0:delete u[g[n]]}if(-1!==d.indexOf("up"))for(;c&&c.id!==e.jstree.root;){for(s=0,n=0,i=c.children.length;n<i;n++)s+=l[c.children[n]].state[h?"selected":"checked"];if(s!==i)break;c.state[h?"selected":"checked"]=!0,u[c.id]=!0,(a=this.get_node(c,!0))&&a.length&&a.attr("aria-selected",!0).children(".jstree-anchor").addClass(h?"jstree-clicked":"jstree-checked"),c=this.get_node(c.parent)}for(n in p=[],u)u.hasOwnProperty(n)&&p.push(n);this._data[h?"core":"checkbox"].selected=p},this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",e.proxy(function(t,r){var n,i,s,a=this.get_node(e.jstree.root),o=this._model.data;for(n=0,i=a.children_d.length;n<i;n++)(s=o[a.children_d[n]])&&s.original&&s.original.state&&s.original.state.undetermined&&(s.original.state.undetermined=!1)},this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",e.proxy(function(e,t){var r,n,i,s=t.node,a=(this.get_node(s,!0),this.settings.checkbox.cascade),o=this.settings.checkbox.tie_selection,l=this._data[o?"core":"checkbox"].selected,c=s.children_d.concat(s.id);if(-1!==a.indexOf("down")){var d=this._cascade_new_checked_state(s.id,!1);l=l.filter(function(e){return-1===c.indexOf(e)||d.indexOf(e)>-1})}if(-1!==a.indexOf("up")&&-1===l.indexOf(s.id)){for(r=0,n=s.parents.length;r<n;r++)(i=this._model.data[s.parents[r]]).state[o?"selected":"checked"]=!1,i&&i.original&&i.original.state&&i.original.state.undetermined&&(i.original.state.undetermined=!1),(i=this.get_node(s.parents[r],!0))&&i.length&&i.attr("aria-selected",!1).children(".jstree-anchor").removeClass(o?"jstree-clicked":"jstree-checked");l=l.filter(function(e){return-1===s.parents.indexOf(e)})}this._data[o?"core":"checkbox"].selected=l},this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",e.proxy(function(t,r){for(var n,i,s,a,o=this.get_node(r.parent),l=this._model.data,c=this.settings.checkbox.tie_selection;o&&o.id!==e.jstree.root&&!o.state[c?"selected":"checked"];){for(s=0,n=0,i=o.children.length;n<i;n++)s+=l[o.children[n]].state[c?"selected":"checked"];if(!(i>0&&s===i))break;o.state[c?"selected":"checked"]=!0,this._data[c?"core":"checkbox"].selected.push(o.id),(a=this.get_node(o,!0))&&a.length&&a.attr("aria-selected",!0).children(".jstree-anchor").addClass(c?"jstree-clicked":"jstree-checked"),o=this.get_node(o.parent)}},this)).on("move_node.jstree",e.proxy(function(t,r){var n,i,s,a,o,l=r.is_multi,c=r.old_parent,d=this.get_node(r.parent),h=this._model.data,u=this.settings.checkbox.tie_selection;if(!l)for(n=this.get_node(c);n&&n.id!==e.jstree.root&&!n.state[u?"selected":"checked"];){for(i=0,s=0,a=n.children.length;s<a;s++)i+=h[n.children[s]].state[u?"selected":"checked"];if(!(a>0&&i===a))break;n.state[u?"selected":"checked"]=!0,this._data[u?"core":"checkbox"].selected.push(n.id),(o=this.get_node(n,!0))&&o.length&&o.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked"),n=this.get_node(n.parent)}for(n=d;n&&n.id!==e.jstree.root;){for(i=0,s=0,a=n.children.length;s<a;s++)i+=h[n.children[s]].state[u?"selected":"checked"];if(i===a)n.state[u?"selected":"checked"]||(n.state[u?"selected":"checked"]=!0,this._data[u?"core":"checkbox"].selected.push(n.id),(o=this.get_node(n,!0))&&o.length&&o.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked"));else{if(!n.state[u?"selected":"checked"])break;n.state[u?"selected":"checked"]=!1,this._data[u?"core":"checkbox"].selected=e.vakata.array_remove_item(this._data[u?"core":"checkbox"].selected,n.id),(o=this.get_node(n,!0))&&o.length&&o.attr("aria-selected",!1).children(".jstree-anchor").removeClass(u?"jstree-clicked":"jstree-checked")}n=this.get_node(n.parent)}},this))},this.get_undetermined=function(r){if(-1===this.settings.checkbox.cascade.indexOf("undetermined"))return[];var n,i,s,a,o={},l=this._model.data,c=this.settings.checkbox.tie_selection,d=this._data[c?"core":"checkbox"].selected,h=[],u=this,p=[];for(n=0,i=d.length;n<i;n++)if(l[d[n]]&&l[d[n]].parents)for(s=0,a=l[d[n]].parents.length;s<a&&o[l[d[n]].parents[s]]===t;s++)l[d[n]].parents[s]!==e.jstree.root&&(o[l[d[n]].parents[s]]=!0,h.push(l[d[n]].parents[s]));for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each(function(){var r,c=u.get_node(this);if(c)if(c.state.loaded){for(n=0,i=c.children_d.length;n<i;n++)if(!(r=l[c.children_d[n]]).state.loaded&&r.original&&r.original.state&&r.original.state.undetermined&&!0===r.original.state.undetermined)for(o[r.id]===t&&r.id!==e.jstree.root&&(o[r.id]=!0,h.push(r.id)),s=0,a=r.parents.length;s<a;s++)o[r.parents[s]]===t&&r.parents[s]!==e.jstree.root&&(o[r.parents[s]]=!0,h.push(r.parents[s]))}else if(c.original&&c.original.state&&c.original.state.undetermined&&!0===c.original.state.undetermined)for(o[c.id]===t&&c.id!==e.jstree.root&&(o[c.id]=!0,h.push(c.id)),s=0,a=c.parents.length;s<a;s++)o[c.parents[s]]===t&&c.parents[s]!==e.jstree.root&&(o[c.parents[s]]=!0,h.push(c.parents[s]))}),n=0,i=h.length;n<i;n++)l[h[n]].state[c?"selected":"checked"]||p.push(r?l[h[n]]:h[n]);return p},this._undetermined=function(){if(null!==this.element){var e,t,r,n=this.get_undetermined(!1);for(this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),e=0,t=n.length;e<t;e++)(r=this.get_node(n[e],!0))&&r.length&&r.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined")}},this.redraw_node=function(t,r,i,s){if(t=n.redraw_node.apply(this,arguments)){var a,o,l=null,c=null;for(a=0,o=t.childNodes.length;a<o;a++)if(t.childNodes[a]&&t.childNodes[a].className&&-1!==t.childNodes[a].className.indexOf("jstree-anchor")){l=t.childNodes[a];break}l&&(!this.settings.checkbox.tie_selection&&this._model.data[t.id].state.checked&&(l.className+=" jstree-checked"),c=h.cloneNode(!1),this._model.data[t.id].state.checkbox_disabled&&(c.className+=" jstree-checkbox-disabled"),l.insertBefore(c,l.childNodes[0]))}return i||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(e.proxy(this._undetermined,this),50)),t},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(t){t=this.get_node(t);var r,n,i=this.settings.checkbox.cascade,s=this.settings.checkbox.tie_selection,a=this._data[s?"core":"checkbox"].selected,o=this._model.data;if(!t||!0===t.state[s?"selected":"checked"]||-1===i.indexOf("undetermined")||-1===i.indexOf("down")&&-1===i.indexOf("up"))return!1;if(!t.state.loaded&&!0===t.original.state.undetermined)return!0;for(r=0,n=t.children_d.length;r<n;r++)if(-1!==e.inArray(t.children_d[r],a)||!o[t.children_d[r]].state.loaded&&o[t.children_d[r]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(t){var r,n,i;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.disable_checkbox(t[r]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;i=this.get_node(t,!0),t.state.checkbox_disabled||(t.state.checkbox_disabled=!0,i&&i.length&&i.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:t}))},this.enable_checkbox=function(t){var r,n,i;if(e.isArray(t)){for(r=0,n=(t=t.slice()).length;r<n;r++)this.enable_checkbox(t[r]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;i=this.get_node(t,!0),t.state.checkbox_disabled&&(t.state.checkbox_disabled=!1,i&&i.length&&i.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:t}))},this.activate_node=function(t,r){return!e(r.target).hasClass("jstree-checkbox-disabled")&&(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||e(r.target).hasClass("jstree-checkbox"))&&(r.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!e(r.target).hasClass("jstree-checkbox")?n.activate_node.call(this,t,r):!this.is_disabled(t)&&(this.is_checked(t)?this.uncheck_node(t,r):this.check_node(t,r),void this.trigger("activate_node",{node:this.get_node(t)})))},this._cascade_new_checked_state=function(e,t){var r,n,i,s=this,a=this.settings.checkbox.tie_selection,o=this._model.data[e],l=[],c=[];if(!this.settings.checkbox.cascade_to_disabled&&o.state.disabled||!this.settings.checkbox.cascade_to_hidden&&o.state.hidden)i=this.get_checked_descendants(e),o.state[a?"selected":"checked"]&&i.push(o.id),l=l.concat(i);else{if(o.children)for(r=0,n=o.children.length;r<n;r++){var d=o.children[r];i=s._cascade_new_checked_state(d,t),l=l.concat(i),i.indexOf(d)>-1&&c.push(d)}var h=s.get_node(o,!0),u=c.length>0&&c.length<o.children.length;o.original&&o.original.state&&o.original.state.undetermined&&(o.original.state.undetermined=u),u?(o.state[a?"selected":"checked"]=!1,h.attr("aria-selected",!1).children(".jstree-anchor").removeClass(a?"jstree-clicked":"jstree-checked")):t&&c.length===o.children.length?(o.state[a?"selected":"checked"]=t,l.push(o.id),h.attr("aria-selected",!0).children(".jstree-anchor").addClass(a?"jstree-clicked":"jstree-checked")):(o.state[a?"selected":"checked"]=!1,h.attr("aria-selected",!1).children(".jstree-anchor").removeClass(a?"jstree-clicked":"jstree-checked"))}return l},this.get_checked_descendants=function(e){var t=this,r=t.settings.checkbox.tie_selection;return t._model.data[e].children_d.filter(function(e){return t._model.data[e].state[r?"selected":"checked"]})},this.check_node=function(t,r){if(this.settings.checkbox.tie_selection)return this.select_node(t,!1,!0,r);var n,i,s;if(e.isArray(t)){for(i=0,s=(t=t.slice()).length;i<s;i++)this.check_node(t[i],r);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;n=this.get_node(t,!0),t.state.checked||(t.state.checked=!0,this._data.checkbox.selected.push(t.id),n&&n.length&&n.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:t,selected:this._data.checkbox.selected,event:r}))},this.uncheck_node=function(t,r){if(this.settings.checkbox.tie_selection)return this.deselect_node(t,!1,r);var n,i,s;if(e.isArray(t)){for(n=0,i=(t=t.slice()).length;n<i;n++)this.uncheck_node(t[n],r);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;s=this.get_node(t,!0),t.state.checked&&(t.state.checked=!1,this._data.checkbox.selected=e.vakata.array_remove_item(this._data.checkbox.selected,t.id),s.length&&s.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:t,selected:this._data.checkbox.selected,event:r}))},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var t,r;this._data.checkbox.selected.concat([]);for(this._data.checkbox.selected=this._model.data[e.jstree.root].children_d.concat(),t=0,r=this._data.checkbox.selected.length;t<r;t++)this._model.data[this._data.checkbox.selected[t]]&&(this._model.data[this._data.checkbox.selected[t]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();var e,t,r=this._data.checkbox.selected.concat([]);for(e=0,t=this._data.checkbox.selected.length;e<t;e++)this._model.data[this._data.checkbox.selected[e]]&&(this._model.data[this._data.checkbox.selected[e]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:r})},this.is_checked=function(t){return this.settings.checkbox.tie_selection?this.is_selected(t):!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.state.checked},this.get_checked=function(t){return this.settings.checkbox.tie_selection?this.get_selected(t):t?e.map(this._data.checkbox.selected,e.proxy(function(e){return this.get_node(e)},this)):this._data.checkbox.selected},this.get_top_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_top_selected(t);var r,n,i,s,a=this.get_checked(!0),o={};for(r=0,n=a.length;r<n;r++)o[a[r].id]=a[r];for(r=0,n=a.length;r<n;r++)for(i=0,s=a[r].children_d.length;i<s;i++)o[a[r].children_d[i]]&&delete o[a[r].children_d[i]];for(r in a=[],o)o.hasOwnProperty(r)&&a.push(r);return t?e.map(a,e.proxy(function(e){return this.get_node(e)},this)):a},this.get_bottom_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(t);var r,n,i=this.get_checked(!0),s=[];for(r=0,n=i.length;r<n;r++)i[r].children.length||s.push(i[r].id);return t?e.map(s,e.proxy(function(e){return this.get_node(e)},this)):s},this.load_node=function(t,r){var i,s,a;if(!e.isArray(t)&&!this.settings.checkbox.tie_selection&&(a=this.get_node(t))&&a.state.loaded)for(i=0,s=a.children_d.length;i<s;i++)this._model.data[a.children_d[i]].state.checked&&(this._data.checkbox.selected=e.vakata.array_remove_item(this._data.checkbox.selected,a.children_d[i]));return n.load_node.apply(this,arguments)},this.get_state=function(){var e=n.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection||(e.checkbox=this._data.checkbox.selected.slice()),e},this.set_state=function(t,r){var i=n.set_state.apply(this,arguments);if(i&&t.checkbox){if(!this.settings.checkbox.tie_selection){this.uncheck_all();var s=this;e.each(t.checkbox,function(e,t){s.check_node(t)})}return delete t.checkbox,this.set_state(t,r),!1}return i},this.refresh=function(e,t){return this.settings.checkbox.tie_selection&&(this._data.checkbox.selected=[]),n.refresh.apply(this,arguments)}},e.jstree.defaults.conditionalselect=function(){return!0},e.jstree.plugins.conditionalselect=function(e,t){this.activate_node=function(e,r){if(this.settings.conditionalselect.call(this,this.get_node(e),r))return t.activate_node.call(this,e,r)}},e.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(t,r){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(t){var r=e.jstree.reference(t.reference),n=r.get_node(t.reference);r.create_node(n,{},"last",function(e){try{r.edit(e)}catch(t){setTimeout(function(){r.edit(e)},0)}})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename", /*! "shortcut" : 113, "shortcut_label" : 'F2', "icon" : "glyphicon glyphicon-leaf", */ action:function(t){var r=e.jstree.reference(t.reference),n=r.get_node(t.reference);r.edit(n)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(t){var r=e.jstree.reference(t.reference),n=r.get_node(t.reference);r.is_selected(n)?r.delete_node(r.get_selected()):r.delete_node(n)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(t){var r=e.jstree.reference(t.reference),n=r.get_node(t.reference);r.is_selected(n)?r.cut(r.get_top_selected()):r.cut(n)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(t){var r=e.jstree.reference(t.reference),n=r.get_node(t.reference);r.is_selected(n)?r.copy(r.get_top_selected()):r.copy(n)}},paste:{separator_before:!1,icon:!1,_disabled:function(t){return!e.jstree.reference(t.reference).can_paste()},separator_after:!1,label:"Paste",action:function(t){var r=e.jstree.reference(t.reference),n=r.get_node(t.reference);r.paste(n)}}}}}}},e.jstree.plugins.contextmenu=function(r,n){this.bind=function(){n.bind.call(this);var t,r,i=0,s=null;this.element.on("init.jstree loading.jstree ready.jstree",e.proxy(function(){this.get_container_ul().addClass("jstree-contextmenu")},this)).on("contextmenu.jstree",".jstree-anchor",e.proxy(function(e,t){"input"!==e.target.tagName.toLowerCase()&&(e.preventDefault(),i=e.ctrlKey?+new Date:0,(t||s)&&(i=+new Date+1e4),s&&clearTimeout(s),this.is_loading(e.currentTarget)||this.show_contextmenu(e.currentTarget,e.pageX,e.pageY,e))},this)).on("click.jstree",".jstree-anchor",e.proxy(function(t){this._data.contextmenu.visible&&(!i||+new Date-i>250)&&e.vakata.context.hide(),i=0},this)).on("touchstart.jstree",".jstree-anchor",function(n){n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(t=n.originalEvent.changedTouches[0].clientX,r=n.originalEvent.changedTouches[0].clientY,s=setTimeout(function(){e(n.currentTarget).trigger("contextmenu",!0)},750))}).on("touchmove.vakata.jstree",function(n){s&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(Math.abs(t-n.originalEvent.changedTouches[0].clientX)>10||Math.abs(r-n.originalEvent.changedTouches[0].clientY)>10)&&(clearTimeout(s),e.vakata.context.hide())}).on("touchend.vakata.jstree",function(e){s&&clearTimeout(s)}), /*! if(!('oncontextmenu' in document.body) && ('ontouchstart' in document.body)) { var el = null, tm = null; this.element .on("touchstart", ".jstree-anchor", function (e) { el = e.currentTarget; tm = +new Date(); $(document).one("touchend", function (e) { e.target = document.elementFromPoint(e.originalEvent.targetTouches[0].pageX - window.pageXOffset, e.originalEvent.targetTouches[0].pageY - window.pageYOffset); e.currentTarget = e.target; tm = ((+(new Date())) - tm); if(e.target === el && tm > 600 && tm < 1000) { e.preventDefault(); $(el).trigger('contextmenu', e); } el = null; tm = null; }); }); } */ e(l).on("context_hide.vakata.jstree",e.proxy(function(t,r){this._data.contextmenu.visible=!1,e(r.reference).removeClass("jstree-context")},this))},this.teardown=function(){this._data.contextmenu.visible&&e.vakata.context.hide(),n.teardown.call(this)},this.show_contextmenu=function(r,n,i,s){if(!(r=this.get_node(r))||r.id===e.jstree.root)return!1;var a=this.settings.contextmenu,o=this.get_node(r,!0).children(".jstree-anchor"),l=!1,c=!1;(a.show_at_node||n===t||i===t)&&(l=o.offset(),n=l.left,i=l.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(r)&&this.activate_node(r,s),c=a.items,e.isFunction(c)&&(c=c.call(this,r,e.proxy(function(e){this._show_contextmenu(r,n,i,e)},this))),e.isPlainObject(c)&&this._show_contextmenu(r,n,i,c)},this._show_contextmenu=function(t,r,n,i){var s=this.get_node(t,!0).children(".jstree-anchor");e(l).one("context_show.vakata.jstree",e.proxy(function(t,r){var n="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";e(r.element).addClass(n),s.addClass("jstree-context")},this)),this._data.contextmenu.visible=!0,e.vakata.context.show(s,{x:r,y:n},i),this.trigger("show_contextmenu",{node:t,x:r,y:n})}},function(e){var t=!1,r={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};e.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(t){e(l).triggerHandler("context_"+t+".vakata",{reference:r.reference,element:r.element,position:{x:r.position_x,y:r.position_y}})},_execute:function(t){return!(!(t=r.items[t])||t._disabled&&(!e.isFunction(t._disabled)||t._disabled({item:t,reference:r.reference,element:r.element}))||!t.action)&&t.action.call(null,{item:t,reference:r.reference,element:r.element,position:{x:r.position_x,y:r.position_y}})},_parse:function(t,n){if(!t)return!1;n||(r.html="",r.items=[]);var i,s="",a=!1;return n&&(s+="<ul>"),e.each(t,function(t,n){if(!n)return!0;r.items.push(n),!a&&n.separator_before&&(s+="<li class='vakata-context-separator'><a href='#' "+(e.vakata.context.settings.icons?"":'style="margin-left:0px;"')+"> </a></li>"),a=!1,s+="<li class='"+(n._class||"")+(!0===n._disabled||e.isFunction(n._disabled)&&n._disabled({item:n,reference:r.reference,element:r.element})?" vakata-contextmenu-disabled ":"")+"' "+(n.shortcut?" data-shortcut='"+n.shortcut+"' ":"")+">",s+="<a href='#' rel='"+(r.items.length-1)+"' "+(n.title?"title='"+n.title+"'":"")+">",e.vakata.context.settings.icons&&(s+="<i ",n.icon&&(-1!==n.icon.indexOf("/")||-1!==n.icon.indexOf(".")?s+=" style='background:url(\""+n.icon+"\") center center no-repeat' ":s+=" class='"+n.icon+"' "),s+="></i><span class='vakata-contextmenu-sep'> </span>"),s+=(e.isFunction(n.label)?n.label({item:t,reference:r.reference,element:r.element}):n.label)+(n.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+n.shortcut+'">'+(n.shortcut_label||"")+"</span>":"")+"</a>",n.submenu&&(i=e.vakata.context._parse(n.submenu,!0))&&(s+=i),s+="</li>",n.separator_after&&(s+="<li class='vakata-context-separator'><a href='#' "+(e.vakata.context.settings.icons?"":'style="margin-left:0px;"')+"> </a></li>",a=!0)}),s=s.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),n&&(s+="</ul>"),n||(r.html=s,e.vakata.context._trigger("parse")),s.length>10&&s},_show_submenu:function(r){if((r=e(r)).length&&r.children("ul").length){var n=r.children("ul"),i=r.offset().left,s=i+r.outerWidth(),a=r.offset().top,o=n.width(),l=n.height(),c=e(window).width()+e(window).scrollLeft(),d=e(window).height()+e(window).scrollTop();t?r[s-(o+10+r.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):r[s+o>c&&i>c-s?"addClass":"removeClass"]("vakata-context-right"),a+l+10>d&&n.css("bottom","-1px"),r.hasClass("vakata-context-right")?i<o&&n.css("margin-right",i-o):c-s<o&&n.css("margin-left",c-s-o),n.show()}},show:function(n,i,s){var a,o,c,d,h,u,p,f,g=!0;switch(r.element&&r.element.length&&r.element.width(""),g){case!i&&!n:return!1;case!!i&&!!n:r.reference=n,r.position_x=i.x,r.position_y=i.y;break;case!i&&!!n:r.reference=n,a=n.offset(),r.position_x=a.left+n.outerHeight(),r.position_y=a.top;break;case!!i&&!n:r.position_x=i.x,r.position_y=i.y}n&&!s&&e(n).data("vakata_contextmenu")&&(s=e(n).data("vakata_contextmenu")),e.vakata.context._parse(s)&&r.element.html(r.html),r.items.length&&(r.element.appendTo(l.body),o=r.element,c=r.position_x,d=r.position_y,h=o.width(),u=o.height(),p=e(window).width()+e(window).scrollLeft(),f=e(window).height()+e(window).scrollTop(),t&&(c-=o.outerWidth()-e(n).outerWidth())<e(window).scrollLeft()+20&&(c=e(window).scrollLeft()+20),c+h+20>p&&(c=p-(h+20)),d+u+20>f&&(d=f-(u+20)),r.element.css({left:c,top:d}).show().find("a").first().focus().parent().addClass("vakata-context-hover"),r.is_visible=!0,e.vakata.context._trigger("show"))},hide:function(){r.is_visible&&(r.element.hide().find("ul").hide().end().find(":focus").blur().end().detach(),r.is_visible=!1,e.vakata.context._trigger("hide"))}},e(function(){t="rtl"===e(l.body).css("direction");var n=!1;r.element=e("<ul class='vakata-context'></ul>"),r.element.on("mouseenter","li",function(t){t.stopImmediatePropagation(),e.contains(this,t.relatedTarget)||(n&&clearTimeout(n),r.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),e(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),e.vakata.context._show_submenu(this))}).on("mouseleave","li",function(t){e.contains(this,t.relatedTarget)||e(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")}).on("mouseleave",function(t){e(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),e.vakata.context.settings.hide_onmouseleave&&(n=setTimeout(function(){e.vakata.context.hide()},e.vakata.context.settings.hide_onmouseleave))}).on("click","a",function(t){t.preventDefault(),e(this).blur().parent().hasClass("vakata-context-disabled")||!1===e.vakata.context._execute(e(this).attr("rel"))||e.vakata.context.hide()}).on("keydown","a",function(t){var n=null;switch(t.which){case 13:case 32:t.type="click",t.preventDefault(),e(t.currentTarget).trigger(t);break;case 37:r.is_visible&&(r.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 38:r.is_visible&&((n=r.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first()).length||(n=r.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),n.addClass("vakata-context-hover").children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 39:r.is_visible&&(r.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 40:r.is_visible&&((n=r.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first()).length||(n=r.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),n.addClass("vakata-context-hover").children("a").focus(),t.stopImmediatePropagation(),t.preventDefault());break;case 27:e.vakata.context.hide(),t.preventDefault()}}).on("keydown",function(e){e.preventDefault();var t=r.element.find(".vakata-contextmenu-shortcut-"+e.which).parent();t.parent().not(".vakata-context-disabled")&&t.click()}),e(l).on("mousedown.vakata.jstree",function(t){r.is_visible&&r.element[0]!==t.target&&!e.contains(r.element[0],t.target)&&e.vakata.context.hide()}).on("context_show.vakata.jstree",function(e,n){r.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),t&&r.element.addClass("vakata-context-rtl").css("direction","rtl"),r.element.find("ul").hide().end()})})}(e),e.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1},e.jstree.plugins.dnd=function(t,r){this.init=function(e,t){r.init.call(this,e,t),this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in l.createElement("span")},this.bind=function(){r.bind.call(this),this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",e.proxy(function(t){if(this.settings.dnd.large_drag_target&&e(t.target).closest(".jstree-node")[0]!==t.currentTarget)return!0;if("touchstart"===t.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var r=this.get_node(t.target),n=this.is_selected(r)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,i=n>1?n+" "+this.get_string("nodes"):this.get_text(t.currentTarget);if(this.settings.core.force_text&&(i=e.vakata.html.escape(i)),r&&r.id&&r.id!==e.jstree.root&&(1===t.which||"touchstart"===t.type||"dragstart"===t.type)&&(!0===this.settings.dnd.is_draggable||e.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,n>1?this.get_top_selected(!0):[r],t))){if(c={jstree:!0,origin:this,obj:this.get_node(r,!0),nodes:n>1?this.get_top_selected():[r.id]},d=t.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),e.vakata.dnd.start(t,c,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"></i>'+i+'<ins class="jstree-copy" style="display:none;">+</ins></div>');e.vakata.dnd._trigger("start",t,{helper:e(),element:d,data:c})}},this)),this.settings.dnd.use_html5&&this.element.on("dragover.jstree",function(t){return t.preventDefault(),e.vakata.dnd._trigger("move",t,{helper:e(),element:d,data:c}),!1}).on("drop.jstree",e.proxy(function(t){return t.preventDefault(),e.vakata.dnd._trigger("stop",t,{helper:e(),element:d,data:c}),!1},this))},this.redraw_node=function(e,t,n,i){if((e=r.redraw_node.apply(this,arguments))&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)e.setAttribute("draggable",!0);else{var s,a,o=null;for(s=0,a=e.childNodes.length;s<a;s++)if(e.childNodes[s]&&e.childNodes[s].className&&-1!==e.childNodes[s].className.indexOf("jstree-anchor")){o=e.childNodes[s];break}o&&o.setAttribute("draggable",!0)}return e}},e(function(){var r=!1,n=!1,i=!1,s=!1,a=e('<div id="jstree-marker"> </div>').hide();e(l).on("dragover.vakata.jstree",function(t){d&&e.vakata.dnd._trigger("move",t,{helper:e(),element:d,data:c})}).on("drop.vakata.jstree",function(t){d&&(e.vakata.dnd._trigger("stop",t,{helper:e(),element:d,data:c}),d=null,c=null)}).on("dnd_start.vakata.jstree",function(e,t){r=!1,i=!1,t&&t.data&&t.data.jstree&&a.appendTo(l.body)}).on("dnd_move.vakata.jstree",function(o,l){var c=l.event.target!==i.target;if(s&&(l.event&&"dragover"===l.event.type&&!c||clearTimeout(s)),l&&l.data&&l.data.jstree&&(!l.event.target.id||"jstree-marker"!==l.event.target.id)){i=l.event;var d,h,u,p,f,g,_,m,v,y,b,w,x,k,j,C,S=e.jstree.reference(l.event.target),A=!1,E=!1,O=!1;if(S&&S._data&&S._data.dnd)if(a.attr("class","jstree-"+S.get_theme()+(S.settings.core.themes.responsive?" jstree-dnd-responsive":"")),j=l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey)),l.helper.children().attr("class","jstree-"+S.get_theme()+" jstree-"+S.get_theme()+"-"+S.get_theme_variant()+" "+(S.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[j?"show":"hide"](),l.event.target!==S.element[0]&&l.event.target!==S.get_container_ul()[0]||0!==S.get_container_ul().children().length){if((A=S.settings.dnd.large_drop_target?e(l.event.target).closest(".jstree-node").children(".jstree-anchor"):e(l.event.target).closest(".jstree-anchor"))&&A.length&&A.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(E=A.offset(),O=(l.event.pageY!==t?l.event.pageY:l.event.originalEvent.pageY)-E.top,u=A.outerHeight(),g=O<u/3?["b","i","a"]:O>u-u/3?["a","i","b"]:O>u/2?["i","a","b"]:["i","b","a"],e.each(g,function(t,i){switch(i){case"b":d=E.left-6,h=E.top,p=S.get_parent(A),f=A.parent().index();break;case"i":x=S.settings.dnd.inside_pos,k=S.get_node(A.parent()),d=E.left-2,h=E.top+u/2+1,p=k.id,f="first"===x?0:"last"===x?k.children.length:Math.min(x,k.children.length);break;case"a":d=E.left-6,h=E.top+u,p=S.get_parent(A),f=A.parent().index()+1}for(_=!0,m=0,v=l.data.nodes.length;m<v;m++)if(y=l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey))?"copy_node":"move_node",b=f,"move_node"===y&&"a"===i&&l.data.origin&&l.data.origin===S&&p===S.get_parent(l.data.nodes[m])&&(w=S.get_node(p),b>e.inArray(l.data.nodes[m],w.children)&&(b-=1)),!(_=_&&(S&&S.settings&&S.settings.dnd&&!1===S.settings.dnd.check_while_dragging||S.check(y,l.data.origin&&l.data.origin!==S?l.data.origin.get_node(l.data.nodes[m]):l.data.nodes[m],p,b,{dnd:!0,ref:S.get_node(A.parent()),pos:i,origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==S,is_foreign:!l.data.origin})))){S&&S.last_error&&(n=S.last_error());break}var o,O;if("i"===i&&A.parent().is(".jstree-closed")&&S.settings.dnd.open_timeout&&(l.event&&"dragover"===l.event.type&&!c||(s&&clearTimeout(s),s=setTimeout((o=S,O=A,function(){o.open_node(O)}),S.settings.dnd.open_timeout))),_)return(C=S.get_node(p,!0)).hasClass(".jstree-dnd-parent")||(e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),C.addClass("jstree-dnd-parent")),r={ins:S,par:p,pos:"i"!==i||"last"!==x||0!==f||S.is_loaded(k)?f:"last"},a.css({left:d+"px",top:h+"px"}).show(),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),l.event.originalEvent&&l.event.originalEvent.dataTransfer&&(l.event.originalEvent.dataTransfer.dropEffect=j?"copy":"move"),n={},g=!0,!1}),!0===g))return}else{for(_=!0,m=0,v=l.data.nodes.length;m<v&&(_=_&&S.check(l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey))?"copy_node":"move_node",l.data.origin&&l.data.origin!==S?l.data.origin.get_node(l.data.nodes[m]):l.data.nodes[m],e.jstree.root,"last",{dnd:!0,ref:S.get_node(e.jstree.root),pos:"i",origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==S,is_foreign:!l.data.origin}));m++);if(_)return r={ins:S,par:e.jstree.root,pos:"last"},a.hide(),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(l.event.originalEvent&&l.event.originalEvent.dataTransfer&&(l.event.originalEvent.dataTransfer.dropEffect=j?"copy":"move"))}e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),r=!1,l.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),l.event.originalEvent&&l.event.originalEvent.dataTransfer,a.hide()}}).on("dnd_scroll.vakata.jstree",function(e,t){t&&t.data&&t.data.jstree&&(a.hide(),r=!1,i=!1,t.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))}).on("dnd_stop.vakata.jstree",function(t,o){if(e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),s&&clearTimeout(s),o&&o.data&&o.data.jstree){a.hide().detach();var l,c,d=[];if(r){for(l=0,c=o.data.nodes.length;l<c;l++)d[l]=o.data.origin?o.data.origin.get_node(o.data.nodes[l]):o.data.nodes[l];r.ins[o.data.origin&&(o.data.origin.settings.dnd.always_copy||o.data.origin.settings.dnd.copy&&(o.event.metaKey||o.event.ctrlKey))?"copy_node":"move_node"](d,r.par,r.pos,!1,!1,!1,o.data.origin)}else(l=e(o.event.target).closest(".jstree")).length&&n&&n.error&&"check"===n.error&&(l=l.jstree(!0))&&l.settings.core.error.call(this,n);i=!1,r=!1}}).on("keyup.jstree keydown.jstree",function(t,o){(o=e.vakata.dnd._get())&&o.data&&o.data.jstree&&("keyup"===t.type&&27===t.which?(s&&clearTimeout(s),r=!1,n=!1,i=!1,s=!1,a.hide().detach(),e.vakata.dnd._clean()):(o.helper.find(".jstree-copy").first()[o.data.origin&&(o.data.origin.settings.dnd.always_copy||o.data.origin.settings.dnd.copy&&(t.metaKey||t.ctrlKey))?"show":"hide"](),i&&(i.metaKey=t.metaKey,i.ctrlKey=t.ctrlKey,e.vakata.dnd._trigger("move",i))))})}),function(e){e.vakata.html={div:e("<div />"),escape:function(t){return e.vakata.html.div.text(t).html()},strip:function(t){return e.vakata.html.div.empty().append(e.parseHTML(t)).text()}};var r={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};e.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:10},_trigger:function(r,n,i){i===t&&(i=e.vakata.dnd._get()),i.event=n,e(l).triggerHandler("dnd_"+r+".vakata",i)},_get:function(){return{data:r.data,element:r.element,helper:r.helper}},_clean:function(){r.helper&&r.helper.remove(),r.scroll_i&&(clearInterval(r.scroll_i),r.scroll_i=!1),r={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},e(l).off("mousemove.vakata.jstree touchmove.vakata.jstree",e.vakata.dnd.drag),e(l).off("mouseup.vakata.jstree touchend.vakata.jstree",e.vakata.dnd.stop)},_scroll:function(t){if(!r.scroll_e||!r.scroll_l&&!r.scroll_t)return r.scroll_i&&(clearInterval(r.scroll_i),r.scroll_i=!1),!1;if(!r.scroll_i)return r.scroll_i=setInterval(e.vakata.dnd._scroll,100),!1;if(!0===t)return!1;var n=r.scroll_e.scrollTop(),i=r.scroll_e.scrollLeft();r.scroll_e.scrollTop(n+r.scroll_t*e.vakata.dnd.settings.scroll_speed),r.scroll_e.scrollLeft(i+r.scroll_l*e.vakata.dnd.settings.scroll_speed),n===r.scroll_e.scrollTop()&&i===r.scroll_e.scrollLeft()||e.vakata.dnd._trigger("scroll",r.scroll_e)},start:function(t,n,i){"touchstart"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),r.is_drag&&e.vakata.dnd.stop({});try{t.currentTarget.unselectable="on",t.currentTarget.onselectstart=function(){return!1},t.currentTarget.style&&(t.currentTarget.style.touchAction="none",t.currentTarget.style.msTouchAction="none",t.currentTarget.style.MozUserSelect="none")}catch(e){}return r.init_x=t.pageX,r.init_y=t.pageY,r.data=n,r.is_down=!0,r.element=t.currentTarget,r.target=t.target,r.is_touch="touchstart"===t.type,!1!==i&&(r.helper=e("<div id='vakata-dnd'></div>").html(i).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),e(l).on("mousemove.vakata.jstree touchmove.vakata.jstree",e.vakata.dnd.drag),e(l).on("mouseup.vakata.jstree touchend.vakata.jstree",e.vakata.dnd.stop),!1},drag:function(t){if("touchmove"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),r.is_down){if(!r.is_drag){if(!(Math.abs(t.pageX-r.init_x)>(r.is_touch?e.vakata.dnd.settings.threshold_touch:e.vakata.dnd.settings.threshold)||Math.abs(t.pageY-r.init_y)>(r.is_touch?e.vakata.dnd.settings.threshold_touch:e.vakata.dnd.settings.threshold)))return;r.helper&&(r.helper.appendTo(l.body),r.helper_w=r.helper.outerWidth()),r.is_drag=!0,e(r.target).one("click.vakata",!1),e.vakata.dnd._trigger("start",t)}var n=!1,i=!1,s=!1,a=!1,o=!1,c=!1,d=!1,h=!1,u=!1,p=!1;return r.scroll_t=0,r.scroll_l=0,r.scroll_e=!1,e(e(t.target).parentsUntil("body").addBack().get().reverse()).filter(function(){return/^auto|scroll$/.test(e(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var n=e(this),i=n.offset();if(this.scrollHeight>this.offsetHeight&&(i.top+n.height()-t.pageY<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=1),t.pageY-i.top<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(i.left+n.width()-t.pageX<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=1),t.pageX-i.left<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=-1)),r.scroll_t||r.scroll_l)return r.scroll_e=e(this),!1}),r.scroll_e||(n=e(l),i=e(window),s=n.height(),a=i.height(),o=n.width(),c=i.width(),d=n.scrollTop(),h=n.scrollLeft(),s>a&&t.pageY-d<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=-1),s>a&&a-(t.pageY-d)<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_t=1),o>c&&t.pageX-h<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=-1),o>c&&c-(t.pageX-h)<e.vakata.dnd.settings.scroll_proximity&&(r.scroll_l=1),(r.scroll_t||r.scroll_l)&&(r.scroll_e=n)),r.scroll_e&&e.vakata.dnd._scroll(!0),r.helper&&(u=parseInt(t.pageY+e.vakata.dnd.settings.helper_top,10),p=parseInt(t.pageX+e.vakata.dnd.settings.helper_left,10),s&&u+25>s&&(u=s-50),o&&p+r.helper_w>o&&(p=o-(r.helper_w+2)),r.helper.css({left:p+"px",top:u+"px"})),e.vakata.dnd._trigger("move",t),!1}},stop:function(t){if("touchend"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),r.is_drag)t.target!==r.target&&e(r.target).off("click.vakata"),e.vakata.dnd._trigger("stop",t);else if("touchend"===t.type&&t.target===r.target){var n=setTimeout(function(){e(t.target).click()},100);e(t.target).one("click",function(){n&&clearTimeout(n)})}return e.vakata.dnd._clean(),!1}}}(e),e.jstree.defaults.massload=null,e.jstree.plugins.massload=function(t,r){this.init=function(e,t){this._data.massload={},r.init.call(this,e,t)},this._load_nodes=function(t,n,i,s){var a,o,l,c=this.settings.massload,d=(JSON.stringify(t),[]),h=this._model.data;if(!i){for(a=0,o=t.length;a<o;a++)h[t[a]]&&(h[t[a]].state.loaded||h[t[a]].state.failed)&&!s||(d.push(t[a]),(l=this.get_node(t[a],!0))&&l.length&&l.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},d.length){if(e.isFunction(c))return c.call(this,d,e.proxy(function(e){var a,o;if(e)for(a in e)e.hasOwnProperty(a)&&(this._data.massload[a]=e[a]);for(a=0,o=t.length;a<o;a++)(l=this.get_node(t[a],!0))&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);r._load_nodes.call(this,t,n,i,s)},this));if("object"==typeof c&&c&&c.url)return c=e.extend(!0,{},c),e.isFunction(c.url)&&(c.url=c.url.call(this,d)),e.isFunction(c.data)&&(c.data=c.data.call(this,d)),e.ajax(c).done(e.proxy(function(e,a,o){var c,d;if(e)for(c in e)e.hasOwnProperty(c)&&(this._data.massload[c]=e[c]);for(c=0,d=t.length;c<d;c++)(l=this.get_node(t[c],!0))&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);r._load_nodes.call(this,t,n,i,s)},this)).fail(e.proxy(function(e){r._load_nodes.call(this,t,n,i,s)},this))}}return r._load_nodes.call(this,t,n,i,s)},this._load_node=function(t,n){var i,s=this._data.massload[t.id],a=null;return s?(a=this["string"==typeof s?"_append_html_data":"_append_json_data"](t,"string"==typeof s?e(e.parseHTML(s)).filter(function(){return 3!==this.nodeType}):s,function(e){n.call(this,e)}),(i=this.get_node(t.id,!0))&&i.length&&i.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[t.id],a):r._load_node.call(this,t,n)}},e.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},e.jstree.plugins.search=function(r,n){this.bind=function(){n.bind.call(this),this._data.search.str="",this._data.search.dom=e(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",e.proxy(function(t,r){if(this._data.search.som&&r.res.length){var n,i,s,a,o=this._model.data,l=[];for(n=0,i=r.res.length;n<i;n++)if(o[r.res[n]]&&!o[r.res[n]].state.hidden&&(l.push(r.res[n]),l=l.concat(o[r.res[n]].parents),this._data.search.smc))for(s=0,a=o[r.res[n]].children_d.length;s<a;s++)o[o[r.res[n]].children_d[s]]&&!o[o[r.res[n]].children_d[s]].state.hidden&&l.push(o[r.res[n]].children_d[s]);l=e.vakata.array_remove_item(e.vakata.array_unique(l),e.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(l,!0),this.redraw(!0)}},this)).on("clear_search.jstree",e.proxy(function(e,t){this._data.search.som&&t.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))},this))},this.search=function(r,n,i,s,a,o){if(!1===r||""===e.trim(r.toString()))return this.clear_search();s=(s=this.get_node(s))&&s.id?s.id:null,r=r.toString();var l,c,d=this.settings.search,h=!!d.ajax&&d.ajax,u=this._model.data,p=null,f=[],g=[];if(this._data.search.res.length&&!a&&this.clear_search(),i===t&&(i=d.show_only_matches),o===t&&(o=d.show_only_matches_children),!n&&!1!==h)return e.isFunction(h)?h.call(this,r,e.proxy(function(t){t&&t.d&&(t=t.d),this._load_nodes(e.isArray(t)?e.vakata.array_unique(t):[],function(){this.search(r,!0,i,s,a,o)})},this),s):((h=e.extend({},h)).data||(h.data={}),h.data.str=r,s&&(h.data.inside=s),this._data.search.lastRequest&&this._data.search.lastRequest.abort(),this._data.search.lastRequest=e.ajax(h).fail(e.proxy(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(h)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(e.proxy(function(t){t&&t.d&&(t=t.d),this._load_nodes(e.isArray(t)?e.vakata.array_unique(t):[],function(){this.search(r,!0,i,s,a,o)})},this)),this._data.search.lastRequest);if(a||(this._data.search.str=r,this._data.search.dom=e(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=i,this._data.search.smc=o),p=new e.vakata.search(r,!0,{caseSensitive:d.case_sensitive,fuzzy:d.fuzzy}),e.each(u[s||e.jstree.root].children_d,function(e,t){var n=u[t];n.text&&!n.state.hidden&&(!d.search_leaves_only||n.state.loaded&&0===n.children.length)&&(d.search_callback&&d.search_callback.call(this,r,n)||!d.search_callback&&p.search(n.text).isMatch)&&(f.push(t),g=g.concat(n.parents))}),f.length){for(l=0,c=(g=e.vakata.array_unique(g)).length;l<c;l++)g[l]!==e.jstree.root&&u[g[l]]&&!0===this.open_node(g[l],null,0)&&this._data.search.opn.push(g[l]);a?(this._data.search.dom=this._data.search.dom.add(e(this.element[0].querySelectorAll("#"+e.map(f,function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")}).join(", #")))),this._data.search.res=e.vakata.array_unique(this._data.search.res.concat(f))):(this._data.search.dom=e(this.element[0].querySelectorAll("#"+e.map(f,function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.res=f),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:r,res:this._data.search.res,show_only_matches:i})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=e(this.element[0].querySelectorAll("#"+e.map(this._data.search.res,function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")}).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=e()},this.redraw_node=function(t,r,i,s){if((t=n.redraw_node.apply(this,arguments))&&-1!==e.inArray(t.id,this._data.search.res)){var a,o,l=null;for(a=0,o=t.childNodes.length;a<o;a++)if(t.childNodes[a]&&t.childNodes[a].className&&-1!==t.childNodes[a].className.indexOf("jstree-anchor")){l=t.childNodes[a];break}l&&(l.className+=" jstree-search")}return t}},function(e){e.vakata.search=function(t,r,n){n=n||{},!1!==(n=e.extend({},e.vakata.search.defaults,n)).fuzzy&&(n.fuzzy=!0),t=n.caseSensitive?t:t.toLowerCase();var i,s,a,o,l=n.location,c=n.distance,d=n.threshold,h=t.length;return h>32&&(n.fuzzy=!1),n.fuzzy&&(i=1<<h-1,s=function(){var e={},r=0;for(r=0;r<h;r++)e[t.charAt(r)]=0;for(r=0;r<h;r++)e[t.charAt(r)]|=1<<h-r-1;return e}(),a=function(e,t){var r=e/h,n=Math.abs(l-t);return c?r+n/c:n?1:r}),o=function(e){if(e=n.caseSensitive?e:e.toLowerCase(),t===e||-1!==e.indexOf(t))return{isMatch:!0,score:0};if(!n.fuzzy)return{isMatch:!1,score:1};var r,o,c,u,p,f,g,_,m,v=e.length,y=d,b=e.indexOf(t,l),w=h+v,x=1,k=[];for(-1!==b&&(y=Math.min(a(0,b),y),-1!==(b=e.lastIndexOf(t,l+h))&&(y=Math.min(a(0,b),y))),b=-1,r=0;r<h;r++){for(c=0,u=w;c<u;)a(r,l+u)<=y?c=u:w=u,u=Math.floor((w-c)/2+c);for(w=u,f=Math.max(1,l-u+1),g=Math.min(l+u,v)+h,(_=new Array(g+2))[g+1]=(1<<r)-1,o=g;o>=f;o--)if(m=s[e.charAt(o-1)],_[o]=0===r?(_[o+1]<<1|1)&m:(_[o+1]<<1|1)&m|(p[o+1]|p[o])<<1|1|p[o+1],_[o]&i&&(x=a(r,o-1))<=y){if(y=x,b=o-1,k.push(b),!(b>l))break;f=Math.max(1,2*l-b)}if(a(r+1,l)>y)break;p=_}return{isMatch:b>=0,score:x}},!0===r?{search:o}:o(r)},e.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(e),e.jstree.defaults.sort=function(e,t){return this.get_text(e)>this.get_text(t)?1:-1},e.jstree.plugins.sort=function(t,r){this.bind=function(){r.bind.call(this),this.element.on("model.jstree",e.proxy(function(e,t){this.sort(t.parent,!0)},this)).on("rename_node.jstree create_node.jstree",e.proxy(function(e,t){this.sort(t.parent||t.node.parent,!1),this.redraw_node(t.parent||t.node.parent,!0)},this)).on("move_node.jstree copy_node.jstree",e.proxy(function(e,t){this.sort(t.parent,!1),this.redraw_node(t.parent,!0)},this))},this.sort=function(t,r){var n,i;if((t=this.get_node(t))&&t.children&&t.children.length&&(t.children.sort(e.proxy(this.settings.sort,this)),r))for(n=0,i=t.children_d.length;n<i;n++)this.sort(t.children_d[n],!1)}};var u=!1;e.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1,preserve_loaded:!1},e.jstree.plugins.state=function(t,r){this.bind=function(){r.bind.call(this);var t=e.proxy(function(){this.element.on(this.settings.state.events,e.proxy(function(){u&&clearTimeout(u),u=setTimeout(e.proxy(function(){this.save_state()},this),100)},this)),this.trigger("state_ready")},this);this.element.on("ready.jstree",e.proxy(function(e,r){this.element.one("restore_state.jstree",t),this.restore_state()||t()},this))},this.save_state=function(){var t=this.get_state();this.settings.state.preserve_loaded||delete t.core.loaded;var r={state:t,ttl:this.settings.state.ttl,sec:+new Date};e.vakata.storage.set(this.settings.state.key,JSON.stringify(r))},this.restore_state=function(){var t=e.vakata.storage.get(this.settings.state.key);if(t)try{t=JSON.parse(t)}catch(e){return!1}return!(t&&t.ttl&&t.sec&&+new Date-t.sec>t.ttl)&&(t&&t.state&&(t=t.state),t&&e.isFunction(this.settings.state.filter)&&(t=this.settings.state.filter.call(this,t)),!!t&&(this.settings.state.preserve_loaded||delete t.core.loaded,this.element.one("set_state.jstree",function(r,n){n.instance.trigger("restore_state",{state:e.extend(!0,{},t)})}),this.set_state(t),!0))},this.clear_state=function(){return e.vakata.storage.del(this.settings.state.key)}},function(e){e.vakata.storage={set:function(e,t){return window.localStorage.setItem(e,t)},get:function(e){return window.localStorage.getItem(e)},del:function(e){return window.localStorage.removeItem(e)}}}(e),e.jstree.defaults.types={default:{}},e.jstree.defaults.types[e.jstree.root]={},e.jstree.plugins.types=function(r,n){this.init=function(r,i){var s,a;if(i&&i.types&&i.types.default)for(s in i.types)if("default"!==s&&s!==e.jstree.root&&i.types.hasOwnProperty(s))for(a in i.types.default)i.types.default.hasOwnProperty(a)&&i.types[s][a]===t&&(i.types[s][a]=i.types.default[a]);n.init.call(this,r,i),this._model.data[e.jstree.root].type=e.jstree.root},this.refresh=function(t,r){n.refresh.call(this,t,r),this._model.data[e.jstree.root].type=e.jstree.root},this.bind=function(){this.element.on("model.jstree",e.proxy(function(r,n){var i,s,a,o=this._model.data,l=n.nodes,c=this.settings.types,d="default";for(i=0,s=l.length;i<s;i++){if(d="default",o[l[i]].original&&o[l[i]].original.type&&c[o[l[i]].original.type]&&(d=o[l[i]].original.type),o[l[i]].data&&o[l[i]].data.jstree&&o[l[i]].data.jstree.type&&c[o[l[i]].data.jstree.type]&&(d=o[l[i]].data.jstree.type),o[l[i]].type=d,!0===o[l[i]].icon&&c[d].icon!==t&&(o[l[i]].icon=c[d].icon),c[d].li_attr!==t&&"object"==typeof c[d].li_attr)for(a in c[d].li_attr)if(c[d].li_attr.hasOwnProperty(a)){if("id"===a)continue;o[l[i]].li_attr[a]===t?o[l[i]].li_attr[a]=c[d].li_attr[a]:"class"===a&&(o[l[i]].li_attr.class=c[d].li_attr.class+" "+o[l[i]].li_attr.class)}if(c[d].a_attr!==t&&"object"==typeof c[d].a_attr)for(a in c[d].a_attr)if(c[d].a_attr.hasOwnProperty(a)){if("id"===a)continue;o[l[i]].a_attr[a]===t?o[l[i]].a_attr[a]=c[d].a_attr[a]:"href"===a&&"#"===o[l[i]].a_attr[a]?o[l[i]].a_attr.href=c[d].a_attr.href:"class"===a&&(o[l[i]].a_attr.class=c[d].a_attr.class+" "+o[l[i]].a_attr.class)}}o[e.jstree.root].type=e.jstree.root},this)),n.bind.call(this)},this.get_json=function(t,r,i){var s,a,o=this._model.data,l=r?e.extend(!0,{},r,{no_id:!1}):{},c=n.get_json.call(this,t,l,i);if(!1===c)return!1;if(e.isArray(c))for(s=0,a=c.length;s<a;s++)c[s].type=c[s].id&&o[c[s].id]&&o[c[s].id].type?o[c[s].id].type:"default",r&&r.no_id&&(delete c[s].id,c[s].li_attr&&c[s].li_attr.id&&delete c[s].li_attr.id,c[s].a_attr&&c[s].a_attr.id&&delete c[s].a_attr.id);else c.type=c.id&&o[c.id]&&o[c.id].type?o[c.id].type:"default",r&&r.no_id&&(c=this._delete_ids(c));return c},this._delete_ids=function(t){if(e.isArray(t)){for(var r=0,n=t.length;r<n;r++)t[r]=this._delete_ids(t[r]);return t}return delete t.id,t.li_attr&&t.li_attr.id&&delete t.li_attr.id,t.a_attr&&t.a_attr.id&&delete t.a_attr.id,t.children&&e.isArray(t.children)&&(t.children=this._delete_ids(t.children)),t},this.check=function(r,i,s,a,o){if(!1===n.check.call(this,r,i,s,a,o))return!1;i=i&&i.id?i:this.get_node(i),s=s&&s.id?s:this.get_node(s);var l,c,d,h,u=i&&i.id?o&&o.origin?o.origin:e.jstree.reference(i.id):null;switch(u=u&&u._model&&u._model.data?u._model.data:null,r){case"create_node":case"move_node":case"copy_node":if("move_node"!==r||-1===e.inArray(i.id,s.children)){if((l=this.get_rules(s)).max_children!==t&&-1!==l.max_children&&l.max_children===s.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+r,data:JSON.stringify({chk:r,pos:a,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})},!1;if(l.valid_children!==t&&-1!==l.valid_children&&-1===e.inArray(i.type||"default",l.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+r,data:JSON.stringify({chk:r,pos:a,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})},!1;if(u&&i.children_d&&i.parents){for(c=0,d=0,h=i.children_d.length;d<h;d++)c=Math.max(c,u[i.children_d[d]].parents.length);c=c-i.parents.length+1}(c<=0||c===t)&&(c=1);do{if(l.max_depth!==t&&-1!==l.max_depth&&l.max_depth<c)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+r,data:JSON.stringify({chk:r,pos:a,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})},!1;s=this.get_node(s.parent),l=this.get_rules(s),c++}while(s)}}return!0},this.get_rules=function(e){if(!(e=this.get_node(e)))return!1;var r=this.get_type(e,!0);return r.max_depth===t&&(r.max_depth=-1),r.max_children===t&&(r.max_children=-1),r.valid_children===t&&(r.valid_children=-1),r},this.get_type=function(t,r){return!!(t=this.get_node(t))&&(r?e.extend({type:t.type},this.settings.types[t.type]):t.type)},this.set_type=function(r,n){var i,s,a,o,l,c,d,h,u=this._model.data;if(e.isArray(r)){for(s=0,a=(r=r.slice()).length;s<a;s++)this.set_type(r[s],n);return!0}if(i=this.settings.types,r=this.get_node(r),!i[n]||!r)return!1;if((d=this.get_node(r,!0))&&d.length&&(h=d.children(".jstree-anchor")),o=r.type,l=this.get_icon(r),r.type=n,(!0===l||!i[o]||i[o].icon!==t&&l===i[o].icon)&&this.set_icon(r,i[n].icon===t||i[n].icon),i[o]&&i[o].li_attr!==t&&"object"==typeof i[o].li_attr)for(c in i[o].li_attr)if(i[o].li_attr.hasOwnProperty(c)){if("id"===c)continue;"class"===c?(u[r.id].li_attr.class=(u[r.id].li_attr.class||"").replace(i[o].li_attr[c],""),d&&d.removeClass(i[o].li_attr[c])):u[r.id].li_attr[c]===i[o].li_attr[c]&&(u[r.id].li_attr[c]=null,d&&d.removeAttr(c))}if(i[o]&&i[o].a_attr!==t&&"object"==typeof i[o].a_attr)for(c in i[o].a_attr)if(i[o].a_attr.hasOwnProperty(c)){if("id"===c)continue;"class"===c?(u[r.id].a_attr.class=(u[r.id].a_attr.class||"").replace(i[o].a_attr[c],""),h&&h.removeClass(i[o].a_attr[c])):u[r.id].a_attr[c]===i[o].a_attr[c]&&("href"===c?(u[r.id].a_attr[c]="#",h&&h.attr("href","#")):(delete u[r.id].a_attr[c],h&&h.removeAttr(c)))}if(i[n].li_attr!==t&&"object"==typeof i[n].li_attr)for(c in i[n].li_attr)if(i[n].li_attr.hasOwnProperty(c)){if("id"===c)continue;u[r.id].li_attr[c]===t?(u[r.id].li_attr[c]=i[n].li_attr[c],d&&("class"===c?d.addClass(i[n].li_attr[c]):d.attr(c,i[n].li_attr[c]))):"class"===c&&(u[r.id].li_attr.class=i[n].li_attr[c]+" "+u[r.id].li_attr.class,d&&d.addClass(i[n].li_attr[c]))}if(i[n].a_attr!==t&&"object"==typeof i[n].a_attr)for(c in i[n].a_attr)if(i[n].a_attr.hasOwnProperty(c)){if("id"===c)continue;u[r.id].a_attr[c]===t?(u[r.id].a_attr[c]=i[n].a_attr[c],h&&("class"===c?h.addClass(i[n].a_attr[c]):h.attr(c,i[n].a_attr[c]))):"href"===c&&"#"===u[r.id].a_attr[c]?(u[r.id].a_attr.href=i[n].a_attr.href,h&&h.attr("href",i[n].a_attr.href)):"class"===c&&(u[r.id].a_attr.class=i[n].a_attr.class+" "+u[r.id].a_attr.class,h&&h.addClass(i[n].a_attr[c]))}return!0}},e.jstree.defaults.unique={case_sensitive:!1,trim_whitespace:!1,duplicate:function(e,t){return e+" ("+t+")"}},e.jstree.plugins.unique=function(r,n){this.check=function(t,r,i,s,a){if(!1===n.check.call(this,t,r,i,s,a))return!1;if(r=r&&r.id?r:this.get_node(r),!(i=i&&i.id?i:this.get_node(i))||!i.children)return!0;var o,l,c,d="rename_node"===t?s:r.text,h=[],u=this.settings.unique.case_sensitive,p=this.settings.unique.trim_whitespace,f=this._model.data;for(o=0,l=i.children.length;o<l;o++)c=f[i.children[o]].text,u||(c=c.toLowerCase()),p&&(c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),h.push(c);switch(u||(d=d.toLowerCase()),p&&(d=d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),t){case"delete_node":return!0;case"rename_node":return c=r.text||"",u||(c=c.toLowerCase()),p&&(c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),(o=-1===e.inArray(d,h)||r.text&&c===d)||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:s,obj:!(!r||!r.id)&&r.id,par:!(!i||!i.id)&&i.id})}),o;case"create_node":return(o=-1===e.inArray(d,h))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:s,obj:!(!r||!r.id)&&r.id,par:!(!i||!i.id)&&i.id})}),o;case"copy_node":return(o=-1===e.inArray(d,h))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:s,obj:!(!r||!r.id)&&r.id,par:!(!i||!i.id)&&i.id})}),o;case"move_node":return(o=r.parent===i.id&&(!a||!a.is_multi)||-1===e.inArray(d,h))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:s,obj:!(!r||!r.id)&&r.id,par:!(!i||!i.id)&&i.id})}),o}return!0},this.create_node=function(r,i,s,a,o){if(!i||i.text===t){if(null===r&&(r=e.jstree.root),!(r=this.get_node(r)))return n.create_node.call(this,r,i,s,a,o);if(!(s=s===t?"last":s).toString().match(/^(before|after)$/)&&!o&&!this.is_loaded(r))return n.create_node.call(this,r,i,s,a,o);i||(i={});var l,c,d,h,u,p,f=this._model.data,g=this.settings.unique.case_sensitive,_=this.settings.unique.trim_whitespace,m=this.settings.unique.duplicate;for(c=l=this.get_string("New node"),d=[],h=0,u=r.children.length;h<u;h++)p=f[r.children[h]].text,g||(p=p.toLowerCase()),_&&(p=p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),d.push(p);for(h=1,p=c,g||(p=p.toLowerCase()),_&&(p=p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));-1!==e.inArray(p,d);)p=c=m.call(this,l,++h).toString(),g||(p=p.toLowerCase()),_&&(p=p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));i.text=c}return n.create_node.call(this,r,i,s,a,o)}};var p=l.createElement("DIV");if(p.setAttribute("unselectable","on"),p.setAttribute("role","presentation"),p.className="jstree-wholerow",p.innerHTML=" ",e.jstree.plugins.wholerow=function(t,r){this.bind=function(){r.bind.call(this),this.element.on("ready.jstree set_state.jstree",e.proxy(function(){this.hide_dots()},this)).on("init.jstree loading.jstree ready.jstree",e.proxy(function(){this.get_container_ul().addClass("jstree-wholerow-ul")},this)).on("deselect_all.jstree",e.proxy(function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")},this)).on("changed.jstree",e.proxy(function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var r,n,i=!1;for(r=0,n=t.selected.length;r<n;r++)(i=this.get_node(t.selected[r],!0))&&i.length&&i.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("open_node.jstree",e.proxy(function(e,t){this.get_node(t.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")},this)).on("hover_node.jstree dehover_node.jstree",e.proxy(function(e,t){"hover_node"===e.type&&this.is_disabled(t.node)||this.get_node(t.node,!0).children(".jstree-wholerow")["hover_node"===e.type?"addClass":"removeClass"]("jstree-wholerow-hovered")},this)).on("contextmenu.jstree",".jstree-wholerow",e.proxy(function(t){if(this._data.contextmenu){t.preventDefault();var r=e.Event("contextmenu",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,pageX:t.pageX,pageY:t.pageY});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(r)}},this)) /*! .on("mousedown.jstree touchstart.jstree", ".jstree-wholerow", function (e) { if(e.target === e.currentTarget) { var a = $(e.currentTarget).closest(".jstree-node").children(".jstree-anchor"); e.target = a[0]; a.trigger(e); } }) */.on("click.jstree",".jstree-wholerow",function(t){t.stopImmediatePropagation();var r=e.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(r).focus()}).on("dblclick.jstree",".jstree-wholerow",function(t){t.stopImmediatePropagation();var r=e.Event("dblclick",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(r).focus()}).on("click.jstree",".jstree-leaf > .jstree-ocl",e.proxy(function(t){t.stopImmediatePropagation();var r=e.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(r).focus()},this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",e.proxy(function(e){return e.stopImmediatePropagation(),this.is_disabled(e.currentTarget)||this.hover_node(e.currentTarget),!1},this)).on("mouseleave.jstree",".jstree-node",e.proxy(function(e){this.dehover_node(e.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),r.teardown.call(this)},this.redraw_node=function(t,n,i,s){if(t=r.redraw_node.apply(this,arguments)){var a=p.cloneNode(!0);-1!==e.inArray(t.id,this._data.core.selected)&&(a.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===t.id&&(a.className+=" jstree-wholerow-hovered"),t.insertBefore(a,t.childNodes[0])}return t}},window.customElements&&Object&&Object.create){var f=Object.create(HTMLElement.prototype);f.createdCallback=function(){var t,r={core:{},plugins:[]};for(t in e.jstree.plugins)e.jstree.plugins.hasOwnProperty(t)&&this.attributes[t]&&(r.plugins.push(t),this.getAttribute(t)&&JSON.parse(this.getAttribute(t))&&(r[t]=JSON.parse(this.getAttribute(t))));for(t in e.jstree.defaults.core)e.jstree.defaults.core.hasOwnProperty(t)&&this.attributes[t]&&(r.core[t]=JSON.parse(this.getAttribute(t))||this.getAttribute(t));e(this).jstree(r)};try{window.customElements.define("vakata-jstree",function(){},{prototype:f})}catch(e){}}},void 0===(s="function"==typeof n?n.apply(t,i):n)||(e.exports=s)}()},409(e,t,r){ /*! * Parsley.js * Version 2.9.2 - built Tue, Dec 10th 2019, 6:18 pm * http://parsleyjs.org * Guillaume Potier - <guillaume@wisembly.com> * Marc-Andre Lafortune - <petroselinum@marc-andre.ca> * MIT Licensed */ e.exports=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}function i(e,t){return o(e)||c(e,t)||h()}function s(e){return a(e)||l(e)||d()}function a(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function o(e){if(Array.isArray(e))return e}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function c(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw s}}return r}}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var u=1,p={},f={attr:function(e,t,r){var n,i,s,a=new RegExp("^"+t,"i");if(void 0===r)r={};else for(n in r)r.hasOwnProperty(n)&&delete r[n];if(!e)return r;for(n=(s=e.attributes).length;n--;)(i=s[n])&&i.specified&&a.test(i.name)&&(r[this.camelize(i.name.slice(t.length))]=this.deserializeValue(i.value));return r},checkAttr:function(e,t,r){return e.hasAttribute(t+r)},setAttr:function(e,t,r,n){e.setAttribute(this.dasherize(t+r),String(n))},getType:function(e){return e.getAttribute("type")||"text"},generateID:function(){return""+u++},deserializeValue:function(e){var t;try{return e?"true"==e||"false"!=e&&("null"==e?null:isNaN(t=Number(e))?/^[\[\{]/.test(e)?JSON.parse(e):e:t):e}catch(t){return e}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){var e;window.console&&"function"==typeof window.console.warn&&(e=window.console).warn.apply(e,arguments)},warnOnce:function(e){p[e]||(p[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){p={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},parse:{date:function(e){var t=e.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!t)return null;var r=i(t.map(function(e){return parseInt(e,10)}),4),n=(r[0],r[1]),s=r[2],a=r[3],o=new Date(n,s-1,a);return o.getFullYear()!==n||o.getMonth()+1!==s||o.getDate()!==a?null:o},string:function(e){return e},integer:function(e){return isNaN(e)?null:parseInt(e,10)},number:function(e){if(isNaN(e))throw null;return parseFloat(e)},boolean:function(e){return!/^\s*false\s*$/i.test(e)},object:function(e){return f.deserializeValue(e)},regexp:function(e){var t="";return/^\/.*\/(?:[gimy]*)$/.test(e)?(t=e.replace(/.*\/([gimy]*)$/,"$1"),e=e.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):e="^"+e+"$",new RegExp(e,t)}},parseRequirement:function(e,t){var r=this.parse[e||"string"];if(!r)throw'Unknown requirement specification: "'+e+'"';var n=r(t);if(null===n)throw"Requirement is not a ".concat(e,': "').concat(t,'"');return n},namespaceEvents:function(t,r){return(t=this.trimString(t||"").split(/\s+/))[0]?e.map(t,function(e){return"".concat(e,".").concat(r)}).join(" "):""},difference:function(t,r){var n=[];return e.each(t,function(e,t){-1==r.indexOf(t)&&n.push(t)}),n},all:function(t){return e.when.apply(e,s(t).concat([42,42]))},objectCreate:Object.create||function(){var e=function(){};return function(r){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=t(r))throw TypeError("Argument must be an object");e.prototype=r;var n=new e;return e.prototype=null,n}}(),_SubmitSelector:'input[type="submit"], button:submit'},g={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},_=function(){this.__id__=f.generateID()};_.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var t=this,r=function(){var r=e.Deferred();return!0!==t.validationResult&&r.reject(),r.resolve().promise()};return[r,r]},actualizeOptions:function(){return f.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){for(var t in this.domOptions=f.objectCreate(this.parent.options),this.options=f.objectCreate(this.domOptions),e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){return this._listeners=this._listeners||{},(this._listeners[e]=this._listeners[e]||[]).push(t),this},subscribe:function(t,r){e.listenTo(this,t.toLowerCase(),r)},off:function(e,t){var r=this._listeners&&this._listeners[e];if(r)if(t)for(var n=r.length;n--;)r[n]===t&&r.splice(n,1);else delete this._listeners[e];return this},unsubscribe:function(t,r){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t,r){t=t||this;var n,i=this._listeners&&this._listeners[e];if(i)for(var s=i.length;s--;)if(!1===(n=i[s].call(t,t,r)))return n;return!this.parent||this.parent.trigger(e,t,r)},asyncIsValid:function(e,t){return f.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:e,force:t})},_findRelated:function(){return this.options.multiple?e(this.parent.element.querySelectorAll("[".concat(this.options.namespace,'multiple="').concat(this.options.multiple,'"]'))):this.$element}};var m=function(e,t){var r=e.match(/^\s*\[(.*)\]\s*$/);if(!r)throw'Requirement is not an array: "'+e+'"';var n=r[1].split(",").map(f.trimString);if(n.length!==t)throw"Requirement has "+n.length+" values when "+t+" are needed";return n},v=function(e,t,r){var n=null,i={};for(var s in e)if(s){var a=r(s);"string"==typeof a&&(a=f.parseRequirement(e[s],a)),i[s]=a}else n=f.parseRequirement(e[s],t);return[n,i]},y=function(t){e.extend(!0,this,t)};y.prototype={validate:function(e,t){if(this.fn)return arguments.length>3&&(t=[].slice.call(arguments,1,-1)),this.fn(e,t);if(Array.isArray(e)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}var r=arguments[arguments.length-1];if(this.validateDate&&r._isDateInput())return arguments[0]=f.parse.date(arguments[0]),null!==arguments[0]&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!e||!isNaN(e)&&(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(t,r){if("string"!=typeof t)return Array.isArray(t)?t:[t];var n=this.requirementType;if(Array.isArray(n)){for(var i=m(t,n.length),s=0;s<i.length;s++)i[s]=f.parseRequirement(n[s],i[s]);return i}return e.isPlainObject(n)?v(n,t,r):[f.parseRequirement(n,t)]},requirementType:"string",priority:2};var b=function(e,t){this.__class__="ValidatorRegistry",this.locale="en",this.init(e||{},t||{})},w={email:/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))$/,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function(e){return null!==f.parse.date(e)}},url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-zA-Z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$")};w.range=w.number;var x=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},k=function(e,t){return t.map(f.parse[e])},j=function(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.pop(),t.apply(void 0,[r].concat(s(k(e,i))))}},C=function(e){return{validateDate:j("date",e),validateNumber:j("number",e),requirementType:e.length<=2?"string":["string","string"],priority:30}};b.prototype={init:function(e,t){for(var r in this.catalog=t,this.validators=n({},this.validators),e)this.addValidator(r,e[r].fn,e[r].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if(void 0===this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,r,n){return"object"===t(r)&&(this.catalog[e]=r),!0===n?this.setLocale(e):this},addMessage:function(e,t,r){return void 0===this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=r,this},addMessages:function(e,t){for(var r in t)this.addMessage(e,r,t[r]);return this},addValidator:function(e,t,r){if(this.validators[e])f.warn('Validator "'+e+'" is already defined.');else if(g.hasOwnProperty(e))return void f.warn('"'+e+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},hasValidator:function(e){return!!this.validators[e]},updateValidator:function(e,t,r){return this.validators[e]?this._setValidator.apply(this,arguments):(f.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||f.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,r,n){for(var i in"object"!==t(r)&&(r={fn:r,priority:n}),r.validate||(r=new y(r)),this.validators[e]=r,r.messages||{})this.addMessage(i,e,r.messages[i]);return this},getErrorMessage:function(e){return("type"===e.name?(this.catalog[this.locale][e.name]||{})[e.requirements]:this.formatMessage(this.catalog[this.locale][e.name],e.requirements))||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,r){if("object"===t(r)){for(var n in r)e=this.formatMessage(e,r[n]);return e}return"string"==typeof e?e.replace(/%s/i,r):""},validators:{notblank:{validateString:function(e){return/\S/.test(e)},priority:2},required:{validateMultiple:function(e){return e.length>0},validateString:function(e){return/\S/.test(e)},priority:512},type:{validateString:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.step,i=void 0===n?"any":n,s=r.base,a=void 0===s?0:s,o=w[t];if(!o)throw new Error("validator type `"+t+"` is not supported");if(!e)return!0;if(!o.test(e))return!1;if("number"===t&&!/^any$/i.test(i||"")){var l=Number(e),c=Math.max(x(i),x(a));if(x(l)>c)return!1;var d=function(e){return Math.round(e*Math.pow(10,c))};if((d(l)-d(a))%d(i)!=0)return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(e,t){return!e||t.test(e)},requirementType:"regexp",priority:64},minlength:{validateString:function(e,t){return!e||e.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(e,t){return e.length<=t},requirementType:"integer",priority:30},length:{validateString:function(e,t,r){return!e||e.length>=t&&e.length<=r},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(e,t){return e.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(e,t,r){return e.length>=t&&e.length<=r},requirementType:["integer","integer"],priority:30},min:C(function(e,t){return e>=t}),max:C(function(e,t){return e<=t}),range:C(function(e,t,r){return e>=t&&e<=r}),equalto:{validateString:function(t,r){if(!t)return!0;var n=e(r);return n.length?t===n.val():t===r},priority:256},euvatin:{validateString:function(e,t){return!e||/^[A-Z][A-Z][A-Za-z0-9 -]{2,}$/.test(e)},priority:30}}};var S={},A=function e(t,r,n){for(var i=[],s=[],a=0;a<t.length;a++){for(var o=!1,l=0;l<r.length;l++)if(t[a].assert.name===r[l].assert.name){o=!0;break}o?s.push(t[a]):i.push(t[a])}return{kept:s,added:i,removed:n?[]:e(r,t,!0).added}};S.Form={_actualizeTriggers:function(){var e=this;this.$element.on("submit.Parsley",function(t){e.onSubmitValidate(t)}),this.$element.on("click.Parsley",f._SubmitSelector,function(t){e.onSubmitButton(t)}),!1!==this.options.uiEnabled&&this.element.setAttribute("novalidate","")},focus:function(){if(this._focusedField=null,!0===this.validationResult||"none"===this.options.focus)return null;for(var e=0;e<this.fields.length;e++){var t=this.fields[e];if(!0!==t.validationResult&&t.validationResult.length>0&&void 0===t.options.noFocus&&(this._focusedField=t.$element,"first"===this.options.focus))break}return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},S.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var e=A(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult,this._manageStatusClass(),this._manageErrorsMessages(e),this._actualizeTriggers(),!e.kept.length&&!e.added.length||this._failedOnce||(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(!0===this.validationResult)return[];for(var e=[],t=0;t<this.validationResult.length;t++)e.push(this.validationResult[t].errorMessage||this._getErrorMessage(this.validationResult[t].assert));return e},addError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.message,n=t.assert,i=t.updateClass,s=void 0===i||i;this._buildUI(),this._addError(e,{message:r,assert:n}),s&&this._errorClass()},updateError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.message,n=t.assert,i=t.updateClass,s=void 0===i||i;this._buildUI(),this._updateError(e,{message:r,assert:n}),s&&this._errorClass()},removeError:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).updateClass,r=void 0===t||t;this._buildUI(),this._removeError(e),r&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(t){if(void 0===this.options.errorsMessagesDisabled){if(void 0!==this.options.errorMessage)return t.added.length||t.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(e(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").find(".parsley-custom-error-message").html(this.options.errorMessage)):(this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").attr("aria-hidden","true").find(".parsley-custom-error-message").remove());for(var r=0;r<t.removed.length;r++)this._removeError(t.removed[r].assert.name);for(r=0;r<t.added.length;r++)this._addError(t.added[r].assert.name,{message:t.added[r].errorMessage,assert:t.added[r].assert});for(r=0;r<t.kept.length;r++)this._updateError(t.kept[r].assert.name,{message:t.kept[r].errorMessage,assert:t.kept[r].assert})}},_addError:function(t,r){var n=r.message,i=r.assert;this._insertErrorWrapper(),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").append(e(this.options.errorTemplate).addClass("parsley-"+t).html(n||this._getErrorMessage(i)))},_updateError:function(e,t){var r=t.message,n=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+e).html(r||this._getErrorMessage(n))},_removeError:function(e){this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").attr("aria-hidden","true").find(".parsley-"+e).remove()},_getErrorMessage:function(e){var t=e.name+"Message";return void 0!==this.options[t]?window.Parsley.formatMessage(this.options[t],e.requirements):window.Parsley.getErrorMessage(e)},_buildUI:function(){if(!this._ui&&!1!==this.options.uiEnabled){var t={};this.element.setAttribute(this.options.namespace+"id",this.__id__),t.$errorClassHandler=this._manageClassHandler(),t.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),t.$errorsWrapper=e(this.options.errorsWrapper).attr("id",t.errorsWrapperId),t.lastValidationResult=[],t.validationInformationVisible=!1,this._ui=t}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler&&e(this.options.classHandler).length)return e(this.options.classHandler);var r=this.options.classHandler;if("string"==typeof this.options.classHandler&&"function"==typeof window[this.options.classHandler]&&(r=window[this.options.classHandler]),"function"==typeof r){var n=r.call(this,this);if(void 0!==n&&n.length)return n}else{if("object"===t(r)&&r instanceof jQuery&&r.length)return r;r&&f.warn("The class handler `"+r+"` does not exist in DOM nor as a global JS function")}return this._inputHolder()},_inputHolder:function(){return this.options.multiple&&"SELECT"!==this.element.nodeName?this.$element.parent():this.$element},_insertErrorWrapper:function(){var r=this.options.errorsContainer;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof r){if(e(r).length)return e(r).append(this._ui.$errorsWrapper);"function"==typeof window[r]?r=window[r]:f.warn("The errors container `"+r+"` does not exist in DOM nor as a global JS function")}return"function"==typeof r&&(r=r.call(this,this)),"object"===t(r)&&r.length?r.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var e,t=this,r=this._findRelated();r.off(".Parsley"),this._failedOnce?r.on(f.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){t._validateIfNeeded()}):(e=f.namespaceEvents(this.options.trigger,"Parsley"))&&r.on(e,function(e){t._validateIfNeeded(e)})},_validateIfNeeded:function(e){var t=this;e&&/key|input/.test(e.type)&&(!this._ui||!this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||(this.options.debounce?(window.clearTimeout(this._debounced),this._debounced=window.setTimeout(function(){return t.validate()},this.options.debounce)):this.validate())},_resetUI:function(){this._failedOnce=!1,this._actualizeTriggers(),void 0!==this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),void 0!==this._ui&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var E=function(t,r,n){this.__class__="Form",this.element=t,this.$element=e(t),this.domOptions=r,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},O={pending:null,resolved:!0,rejected:!1};E.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley){var r=this._submitSource||this.$element.find(f._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!r||null===r.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var n=this.whenValidate({event:e});"resolved"===n.state()&&!1!==this._trigger("submit")||(e.stopImmediatePropagation(),e.preventDefault(),"pending"===n.state()&&n.done(function(){t._submit(r)}))}}},onSubmitButton:function(e){this._submitSource=e.currentTarget},_submit:function(t){if(!1!==this._trigger("submit")){if(t){var r=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===r.length&&(r=e('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),r.attr({name:t.getAttribute("name"),value:t.getAttribute("value")})}this.$element.trigger(n(e.Event("submit"),{parsley:!0}))}},validate:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){f.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var r=Array.prototype.slice.call(arguments);t={group:r[0],force:r[1],event:r[2]}}return O[this.whenValidate(t).state()]},whenValidate:function(){var t,r=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=i.group,o=i.force,l=i.event;this.submitEvent=l,l&&(this.submitEvent=n({},l,{preventDefault:function(){f.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),r.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var c=this._withoutReactualizingFormOptions(function(){return e.map(r.fields,function(e){return e.whenValidate({force:o,group:a})})});return(t=f.all(c).done(function(){r._trigger("success")}).fail(function(){r.validationResult=!1,r.focus(),r._trigger("error")}).always(function(){r._trigger("validated")})).pipe.apply(t,s(this._pipeAccordingToValidationResult()))},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){f.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var r=Array.prototype.slice.call(arguments);t={group:r[0],force:r[1]}}return O[this.whenValid(t).state()]},whenValid:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.group,i=r.force;this._refreshFields();var s=this._withoutReactualizingFormOptions(function(){return e.map(t.fields,function(e){return e.whenValid({group:n,force:i})})});return f.all(s)},refresh:function(){return this._refreshFields(),this},reset:function(){for(var e=0;e<this.fields.length;e++)this.fields[e].reset();this._trigger("reset")},destroy:function(){this._destroyUI();for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var t=this,r=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){t.$element.find(t.options.inputs).not(t.options.excluded).not("[".concat(t.options.namespace,"excluded=true]")).each(function(e,r){var n=new window.Parsley.Factory(r,{},t);if("Field"===n.__class__||"FieldMultiple"===n.__class__){var i=n.__class__+"-"+n.__id__;void 0===t.fieldsMappedById[i]&&(t.fieldsMappedById[i]=n,t.fields.push(n))}}),e.each(f.difference(r,t.fields),function(e,t){t.reset()})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var r=e();return this.actualizeOptions=t,r},_trigger:function(e){return this.trigger("form:"+e)}};var P=function(e,t,r,i,s){var a=window.Parsley._validatorRegistry.validators[t],o=new y(a);n(this,{validator:o,name:t,requirements:r,priority:i=i||e.options[t+"Priority"]||o.priority,isDomConstraint:s=!0===s}),this._parseRequirements(e.options)},$=function(e){return e[0].toUpperCase()+e.slice(1)};P.prototype={validate:function(e,t){var r;return(r=this.validator).validate.apply(r,[e].concat(s(this.requirementList),[t]))},_parseRequirements:function(e){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(r){return e[t.name+$(r)]})}};var D=function(t,r,n,i){this.__class__="Field",this.element=t,this.$element=e(t),void 0!==i&&(this.parent=i),this.options=n,this.domOptions=r,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},T={pending:null,resolved:!0,rejected:!1};D.prototype={validate:function(t){arguments.length>=1&&!e.isPlainObject(t)&&(f.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),t={options:t});var r=this.whenValidate(t);if(!r)return!0;switch(r.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var e,t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.force,i=r.group;if(this.refresh(),!i||this._isInGroup(i))return this.value=this.getValue(),this._trigger("validate"),(e=this.whenValid({force:n,value:this.value,_refreshed:!0}).always(function(){t._reflowUI()}).done(function(){t._trigger("success")}).fail(function(){t._trigger("error")}).always(function(){t._trigger("validated")})).pipe.apply(e,s(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return void 0===e&&(e=this.getValue()),!(!e.length&&!this._isRequired()&&void 0===this.options.validateIfEmpty)},_isInGroup:function(t){return Array.isArray(this.options.group)?-1!==e.inArray(t,this.options.group):this.options.group===t},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){f.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var r=Array.prototype.slice.call(arguments);t={force:r[0],value:r[1]}}var n=this.whenValid(t);return!n||T[n.state()]},whenValid:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.force,i=void 0!==n&&n,s=r.value,a=r.group;if(r._refreshed||this.refresh(),!a||this._isInGroup(a)){if(this.validationResult=!0,!this.hasConstraints())return e.when();if(null==s&&(s=this.getValue()),!this.needsValidation(s)&&!0!==i)return e.when();var o=this._getGroupedConstraints(),l=[];return e.each(o,function(r,n){var i=f.all(e.map(n,function(e){return t._validateConstraint(s,e)}));if(l.push(i),"rejected"===i.state())return!1}),f.all(l)}},_validateConstraint:function(t,r){var n=this,i=r.validate(t,this);return!1===i&&(i=e.Deferred().reject()),f.all([i]).fail(function(e){n.validationResult instanceof Array||(n.validationResult=[]),n.validationResult.push({assert:r,errorMessage:"string"==typeof e&&e})})},getValue:function(){var e;return null==(e="function"==typeof this.options.value?this.options.value(this):void 0!==this.options.value?this.options.value:this.$element.val())?"":this._handleWhitespace(e)},reset:function(){return this._resetUI(),this._trigger("reset")},destroy:function(){this._destroyUI(),this.$element.removeData("Parsley"),this.$element.removeData("FieldMultiple"),this._trigger("destroy")},refresh:function(){return this._refreshConstraints(),this},_refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},refreshConstraints:function(){return f.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh"),this.refresh()},addConstraint:function(e,t,r,n){if(window.Parsley._validatorRegistry.validators[e]){var i=new P(this,e,t,r,n);"undefined"!==this.constraintsByName[i.name]&&this.removeConstraint(i.name),this.constraints.push(i),this.constraintsByName[i.name]=i}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,r){return this.removeConstraint(e).addConstraint(e,t,r)},_bindConstraints:function(){for(var e=[],t={},r=0;r<this.constraints.length;r++)!1===this.constraints[r].isDomConstraint&&(e.push(this.constraints[r]),t[this.constraints[r].name]=this.constraints[r]);for(var n in this.constraints=e,this.constraintsByName=t,this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,void 0,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var e=this.element.getAttribute("min"),t=this.element.getAttribute("max");null!==e&&null!==t?this.addConstraint("range",[e,t],void 0,!0):null!==e?this.addConstraint("min",e,void 0,!0):null!==t&&this.addConstraint("max",t,void 0,!0),null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):null!==this.element.getAttribute("minlength")?this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0):null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0);var r=f.getType(this.element);return"number"===r?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:e||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(r)?this.addConstraint("type",r,void 0,!0):this},_isRequired:function(){return void 0!==this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&f.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(e=e.replace(/\s{2,}/g," ")),"trim"!==this.options.whitespace&&"squish"!==this.options.whitespace&&!0!==this.options.trimValue||(e=f.trimString(e)),e},_isDateInput:function(){var e=this.constraintsByName.type;return e&&"date"===e.requirements},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var e=[],t={},r=0;r<this.constraints.length;r++){var n=this.constraints[r].priority;t[n]||e.push(t[n]=[]),t[n].push(this.constraints[r])}return e.sort(function(e,t){return t[0].priority-e[0].priority}),e}};var L=function(){this.__class__="FieldMultiple"};L.prototype={addElement:function(e){return this.$elements.push(e),this},_refreshConstraints:function(){var t;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var r=0;r<this.$elements.length;r++)if(e("html").has(this.$elements[r]).length){t=this.$elements[r].data("FieldMultiple")._refreshConstraints().constraints;for(var n=0;n<t.length;n++)this.addConstraint(t[n].name,t[n].requirements,t[n].priority,t[n].isDomConstraint)}else this.$elements.splice(r,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if(void 0!==this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){var t=f.getType(this.element);if("radio"===t)return this._findRelated().filter(":checked").val()||"";if("checkbox"===t){var r=[];return this._findRelated().filter(":checked").each(function(){r.push(e(this).val())}),r}}return"SELECT"===this.element.nodeName&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var N=function(r,i,s){this.element=r,this.$element=e(r);var a=this.$element.data("Parsley");if(a)return void 0!==s&&a.parent===window.Parsley&&(a.parent=s,a._resetOptions(a.options)),"object"===t(i)&&n(a.options,i),a;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(void 0!==s&&"Form"!==s.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=s||window.Parsley,this.init(i)};N.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.9.2",this.__id__=f.generateID(),this._resetOptions(e),"FORM"===this.element.nodeName||f.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){var e=f.getType(this.element);return"radio"===e||"checkbox"===e||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var t,r,n=this;if(this.options.multiple=this.options.multiple||(t=this.element.getAttribute("name"))||this.element.getAttribute("id"),"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return f.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),t&&e('input[name="'+t+'"]').each(function(e,t){var r=f.getType(t);"radio"!==r&&"checkbox"!==r||t.setAttribute(n.options.namespace+"multiple",n.options.multiple)});for(var i=this._findRelated(),s=0;s<i.length;s++)if(void 0!==(r=e(i.get(s)).data("Parsley"))){this.$element.data("FieldMultiple")||r.addElement(this.$element);break}return this.bind("parsleyField",!0),r||this.bind("parsleyFieldMultiple")},bind:function(t,r){var n;switch(t){case"parsleyForm":n=e.extend(new E(this.element,this.domOptions,this.options),new _,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(new D(this.element,this.domOptions,this.options,this.parent),new _,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(new D(this.element,this.domOptions,this.options,this.parent),new L,new _,window.ParsleyExtend)._init();break;default:throw new Error(t+"is not a supported Parsley type")}return this.options.multiple&&f.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),void 0!==r?(this.$element.data("FieldMultiple",n),n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init"),n)}};var I=e.fn.jquery.split(".");if(parseInt(I[0])<=1&&parseInt(I[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";I.forEach||f.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var M=n(new _,{element:document,$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:N,version:"2.9.2"});n(D.prototype,S.Field,_.prototype),n(E.prototype,S.Form,_.prototype),n(N.prototype,_.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var r=[];return this.each(function(){r.push(e(this).parsley(t))}),r}if(0!=this.length)return new N(this[0],t)},void 0===window.ParsleyExtend&&(window.ParsleyExtend={}),M.options=n(f.objectCreate(g),window.ParsleyConfig),window.ParsleyConfig=M.options,window.Parsley=window.psly=M,M.Utils=f,window.ParsleyUtils={},e.each(f,function(e,t){"function"==typeof t&&(window.ParsleyUtils[e]=function(){return f.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),f[e].apply(f,arguments)})});var F=window.Parsley._validatorRegistry=new b(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},e.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator hasValidator".split(" "),function(e,t){window.Parsley[t]=function(){return F[t].apply(F,arguments)},window.ParsleyValidator[t]=function(){var e;return f.warnOnce("Accessing the method '".concat(t,"' through Validator is deprecated. Simply call 'window.Parsley.").concat(t,"(...)'")),(e=window.Parsley)[t].apply(e,arguments)}}),window.Parsley.UI=S,window.ParsleyUI={removeError:function(e,t,r){var n=!0!==r;return f.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e.removeError(t,{updateClass:n})},getErrorsMessages:function(e){return f.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},e.each("addError updateError".split(" "),function(e,t){window.ParsleyUI[t]=function(e,r,n,i,s){var a=!0!==s;return f.warnOnce("Accessing UI is deprecated. Call '".concat(t,"' on the instance directly. Please comment in issue 1073 as to your need to call this method.")),e[t](r,{message:n,assert:i,updateClass:a})}}),!1!==window.ParsleyConfig.autoBind&&e(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()});var R=e({}),H=function(){f.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")};function q(e,t){return e.parsleyAdaptedCallback||(e.parsleyAdaptedCallback=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(this),e.apply(t||R,r)}),e.parsleyAdaptedCallback}var B="parsley:";function U(e){return 0===e.lastIndexOf(B,0)?e.substr(B.length):e}function z(){var t=this,i=window||r.g;n(this,{isNativeEvent:function(e){return e.originalEvent&&!1!==e.originalEvent.isTrusted},fakeInputEvent:function(r){t.isNativeEvent(r)&&e(r.target).trigger("input")},misbehaves:function(r){t.isNativeEvent(r)&&(t.behavesOk(r),e(document).on("change.inputevent",r.data.selector,t.fakeInputEvent),t.fakeInputEvent(r))},behavesOk:function(r){t.isNativeEvent(r)&&e(document).off("input.inputevent",r.data.selector,t.behavesOk).off("change.inputevent",r.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched="0.0.3";for(var r=0,n=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'];r<n.length;r++){var s=n[r];e(document).on("input.inputevent",s,{selector:s},t.behavesOk).on("change.inputevent",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(".inputevent")}})}return e.listen=function(e,r){var n;if(H(),"object"===t(arguments[1])&&"function"==typeof arguments[2]&&(n=arguments[1],r=arguments[2]),"function"!=typeof r)throw new Error("Wrong parameters");window.Parsley.on(U(e),q(r,n))},e.listenTo=function(e,t,r){if(H(),!(e instanceof D||e instanceof E))throw new Error("Must give Parsley instance");if("string"!=typeof t||"function"!=typeof r)throw new Error("Wrong parameters");e.on(U(t),q(r))},e.unsubscribe=function(e,t){if(H(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(U(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(H(),!(e instanceof D||e instanceof E))throw new Error("Must give Parsley instance");e.off(U(t))},e.unsubscribeAll=function(t){H(),window.Parsley.off(U(t)),e("form,input,textarea,select").each(function(){var r=e(this).data("Parsley");r&&r.off(U(t))})},e.emit=function(e,t){var r;H();var n=t instanceof D||t instanceof E,i=Array.prototype.slice.call(arguments,n?2:1);i.unshift(U(e)),n||(t=window.Parsley),(r=t).trigger.apply(r,s(i))},e.extend(!0,M,{asyncValidators:{default:{fn:function(e){return e.status>=200&&e.status<300},url:!1},reverse:{fn:function(e){return e.status<200||e.status>=300},url:!1}},addAsyncValidator:function(e,t,r,n){return M.asyncValidators[e]={fn:t,url:r||!1,options:n||{}},this}}),M.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(t,r,n,i){var s,a,o={},l=n.validator||(!0===n.reverse?"reverse":"default");if(void 0===M.asyncValidators[l])throw new Error("Calling an undefined async validator: `"+l+"`");(r=M.asyncValidators[l].url||r).indexOf("{value}")>-1?r=r.replace("{value}",encodeURIComponent(t)):o[i.element.getAttribute("name")||i.element.getAttribute("id")]=t;var c=e.extend(!0,n.options||{},M.asyncValidators[l].options);s=e.extend(!0,{},{url:r,data:o,type:"GET"},c),i.trigger("field:ajaxoptions",i,s),a=e.param(s),void 0===M._remoteCache&&(M._remoteCache={});var d=M._remoteCache[a]=M._remoteCache[a]||e.ajax(s),h=function(){var t=M.asyncValidators[l].fn.call(i,d,r,n);return t||(t=e.Deferred().reject()),e.when(t)};return d.then(h,h)},priority:-1}),M.on("form:submit",function(){M._remoteCache={}}),_.prototype.addAsyncValidator=function(){return f.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),M.addAsyncValidator.apply(M,arguments)},M.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same.",euvatin:"It's not a valid VAT Identification Number."}),M.setLocale("en"),(new z).install(),M}(r(43))},458(e,t,r){var n,i,s; /*! * Select2 4.0.13 * https://select2.github.io * * Released under the MIT license * https://github.com/select2/select2/blob/master/LICENSE.md */i=[r(43)],n=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var r,n,i;return t&&t.requirejs||(t?n=t:t={},function(e){var t,s,a,o,l={},c={},d={},h={},u=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function g(e,t){return u.call(e,t)}function _(e,t){var r,n,i,s,a,o,l,c,h,u,p,g=t&&t.split("/"),_=d.map,m=_&&_["*"]||{};if(e){for(a=(e=e.split("/")).length-1,d.nodeIdCompat&&f.test(e[a])&&(e[a]=e[a].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),h=0;h<e.length;h++)if("."===(p=e[h]))e.splice(h,1),h-=1;else if(".."===p){if(0===h||1===h&&".."===e[2]||".."===e[h-1])continue;h>0&&(e.splice(h-1,2),h-=2)}e=e.join("/")}if((g||m)&&_){for(h=(r=e.split("/")).length;h>0;h-=1){if(n=r.slice(0,h).join("/"),g)for(u=g.length;u>0;u-=1)if((i=_[g.slice(0,u).join("/")])&&(i=i[n])){s=i,o=h;break}if(s)break;!l&&m&&m[n]&&(l=m[n],c=h)}!s&&l&&(s=l,o=c),s&&(r.splice(0,o,s),e=r.join("/"))}return e}function m(t,r){return function(){var n=p.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),s.apply(e,n.concat([t,r]))}}function v(e){return function(t){return _(t,e)}}function y(e){return function(t){l[e]=t}}function b(r){if(g(c,r)){var n=c[r];delete c[r],h[r]=!0,t.apply(e,n)}if(!g(l,r)&&!g(h,r))throw new Error("No "+r);return l[r]}function w(e){var t,r=e?e.indexOf("!"):-1;return r>-1&&(t=e.substring(0,r),e=e.substring(r+1,e.length)),[t,e]}function x(e){return e?w(e):[]}function k(e){return function(){return d&&d.config&&d.config[e]||{}}}a=function(e,t){var r,n=w(e),i=n[0],s=t[1];return e=n[1],i&&(r=b(i=_(i,s))),i?e=r&&r.normalize?r.normalize(e,v(s)):_(e,s):(i=(n=w(e=_(e,s)))[0],e=n[1],i&&(r=b(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:r}},o={require:function(e){return m(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:k(e)}}},t=function(t,r,n,i){var s,d,u,p,f,_,v,w=[],k=typeof n;if(_=x(i=i||t),"undefined"===k||"function"===k){for(r=!r.length&&n.length?["require","exports","module"]:r,f=0;f<r.length;f+=1)if("require"===(d=(p=a(r[f],_)).f))w[f]=o.require(t);else if("exports"===d)w[f]=o.exports(t),v=!0;else if("module"===d)s=w[f]=o.module(t);else if(g(l,d)||g(c,d)||g(h,d))w[f]=b(d);else{if(!p.p)throw new Error(t+" missing "+d);p.p.load(p.n,m(i,!0),y(d),{}),w[f]=l[d]}u=n?n.apply(l[t],w):void 0,t&&(s&&s.exports!==e&&s.exports!==l[t]?l[t]=s.exports:u===e&&v||(l[t]=u))}else t&&(l[t]=n)},r=n=s=function(r,n,i,l,c){if("string"==typeof r)return o[r]?o[r](n):b(a(r,x(n)).f);if(!r.splice){if((d=r).deps&&s(d.deps,d.callback),!n)return;n.splice?(r=n,n=i,i=null):r=e}return n=n||function(){},"function"==typeof i&&(i=l,l=c),l?t(e,r,n,i):setTimeout(function(){t(e,r,n,i)},4),s},s.config=function(e){return s(e)},r._defined=l,(i=function(e,t,r){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(r=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,r])}).amd={jQuery:!0}}(),t.requirejs=r,t.require=n,t.define=i),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){var t={};function r(e){var t=e.prototype,r=[];for(var n in t)"function"==typeof t[n]&&"constructor"!==n&&r.push(n);return r}t.Extend=function(e,t){var r={}.hasOwnProperty;function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},t.Decorate=function(e,t){var n=r(t),i=r(e);function s(){var r=Array.prototype.unshift,n=t.prototype.constructor.length,i=e.prototype.constructor;n>0&&(r.call(arguments,e.prototype.constructor),i=t.prototype.constructor),i.apply(this,arguments)}function a(){this.constructor=s}t.displayName=e.displayName,s.prototype=new a;for(var o=0;o<i.length;o++){var l=i[o];s.prototype[l]=e.prototype[l]}for(var c=function(e){var r=function(){};e in s.prototype&&(r=s.prototype[e]);var n=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,r),n.apply(this,arguments)}},d=0;d<n.length;d++){var h=n[d];s.prototype[h]=c(h)}return s};var n=function(){this.listeners={}};n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice,r=t.call(arguments,1);this.listeners=this.listeners||{},null==r&&(r=[]),0===r.length&&r.push({}),r[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var r=0,n=e.length;r<n;r++)e[r].apply(this,t)},t.Observable=n,t.generateChars=function(e){for(var t="",r=0;r<e;r++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var r=t.split("-"),n=e;if(1!==r.length){for(var i=0;i<r.length;i++){var s=r[i];(s=s.substring(0,1).toLowerCase()+s.substring(1))in n||(n[s]={}),i==r.length-1&&(n[s]=e[t]),n=n[s]}delete e[t]}}return e},t.hasScroll=function(t,r){var n=e(r),i=r.style.overflowX,s=r.style.overflowY;return(i!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===i||"scroll"===s||n.innerHeight()<r.scrollHeight||n.innerWidth()<r.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},t.appendMany=function(t,r){if("1.7"===e.fn.jquery.substr(0,3)){var n=e();e.map(r,function(e){n=n.add(e)}),r=n}t.append(r)},t.__cache={};var i=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++i),t=i.toString())),t},t.StoreData=function(e,r,n){var i=t.GetUniqueElementId(e);t.__cache[i]||(t.__cache[i]={}),t.__cache[i][r]=n},t.GetData=function(r,n){var i=t.GetUniqueElementId(r);return n?t.__cache[i]&&null!=t.__cache[i][n]?t.__cache[i][n]:e(r).data(n):t.__cache[i]},t.RemoveData=function(e){var r=t.GetUniqueElementId(e);null!=t.__cache[r]&&delete t.__cache[r],e.removeAttribute("data-select2-id")},t}),t.define("select2/results",["jquery","./utils"],function(e,t){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(t){var r=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);n.append(r(i(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var r=0;r<e.results.length;r++){var n=e.results[r],i=this.option(n);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var r=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});r.$results.find(".select2-results__option[aria-selected]").each(function(){var r=e(this),n=t.GetData(this,"data"),s=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(s,i)>-1?r.attr("aria-selected","true"):r.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},r=this.option(t);r.className+=" loading-results",this.$results.prepend(r)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(r){var n=document.createElement("li");n.className="select2-results__option";var i={role:"option","aria-selected":"false"},s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=r.element&&s.call(r.element,":disabled")||null==r.element&&r.disabled)&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==r.id&&delete i["aria-selected"],null!=r._resultId&&(n.id=r._resultId),r.title&&(n.title=r.title),r.children&&(i.role="group",i["aria-label"]=r.text,delete i["aria-selected"]),i){var o=i[a];n.setAttribute(a,o)}if(r.children){var l=e(n),c=document.createElement("strong");c.className="select2-results__group",e(c),this.template(r,c);for(var d=[],h=0;h<r.children.length;h++){var u=r.children[h],p=this.option(u);d.push(p)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(d),l.append(c),l.append(f)}else this.template(r,n);return t.StoreData(n,"data",r),n},r.prototype.bind=function(r,n){var i=this,s=r.id+"-results";this.$results.attr("id",s),r.on("results:all",function(e){i.clear(),i.append(e.data),r.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),r.on("results:append",function(e){i.append(e.data),r.isOpen()&&i.setClasses()}),r.on("query",function(e){i.hideMessages(),i.showLoading(e)}),r.on("select",function(){r.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),r.on("unselect",function(){r.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),r.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),r.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),r.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),r.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var r=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:r})}}),r.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),r=t.index(e);if(!(r<=0)){var n=r-1;0===e.length&&(n=0);var s=t.eq(n);s.trigger("mouseenter");var a=i.$results.offset().top,o=s.offset().top,l=i.$results.scrollTop()+(o-a);0===n?i.$results.scrollTop(0):o-a<0&&i.$results.scrollTop(l)}}),r.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),r=t.index(e)+1;if(!(r>=t.length)){var n=t.eq(r);n.trigger("mouseenter");var s=i.$results.offset().top+i.$results.outerHeight(!1),a=n.offset().top+n.outerHeight(!1),o=i.$results.scrollTop()+a-s;0===r?i.$results.scrollTop(0):a>s&&i.$results.scrollTop(o)}}),r.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),r.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-t+e.deltaY,n=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&r<=i.$results.height();n?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(r){var n=e(this),s=t.GetData(this,"data");"true"!==n.attr("aria-selected")?i.trigger("select",{originalEvent:r,data:s}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:r,data:s}):i.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(r){var n=t.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:n,element:e(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),r=this.$results.offset().top,n=e.offset().top,i=this.$results.scrollTop()+(n-r),s=n-r;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(t,r){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),s=n(t,r);null==s?r.style.display="none":"string"==typeof s?r.innerHTML=i(s):e(r).append(s)},r}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,r){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var r=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),r.attr("title",this.$element.attr("title")),r.attr("tabindex",this._tabindex),r.attr("aria-disabled","false"),this.$selection=r,r},n.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},n.prototype._handleBlur=function(t){var r=this;window.setTimeout(function(){document.activeElement==r.$selection[0]||e.contains(r.$selection[0],document.activeElement)||r.trigger("blur",t)},1)},n.prototype._attachCloseHandler=function(r){e(document.body).on("mousedown.select2."+r.id,function(r){var n=e(r.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=n[0]&&t.GetData(this,"element").select2("close")})})},n.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(e,t){t.find(".selection").append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,r,n){function i(){i.__super__.constructor.apply(this,arguments)}return r.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var r=this;i.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(e){1===e.which&&r.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||r.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var r=this.options.get("templateSelection");return this.options.get("escapeMarkup")(r(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],r=this.$selection.find(".select2-selection__rendered"),n=this.display(t,r);r.empty().append(n);var i=t.title||t.text;i?r.attr("title",i):r.removeAttr("title")}else this.clear()},i}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,r){function n(e,t){n.__super__.constructor.apply(this,arguments)}return r.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(t,i){var s=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){s.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!s.isDisabled()){var n=e(this).parent(),i=r.GetData(n[0],"data");s.trigger("unselect",{originalEvent:t,data:i})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var r=this.options.get("templateSelection");return this.options.get("escapeMarkup")(r(e,t))},n.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],s=this.selectionContainer(),a=this.display(i,s);s.append(a);var o=i.title||i.text;o&&s.attr("title",o),r.StoreData(s[0],"data",i),t.push(s)}var l=this.$selection.find(".select2-selection__rendered");r.appendMany(l,t)}},n}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,r){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),e.call(this,t,r)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var r=this.selectionContainer();return r.html(this.display(t)),r.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),r},t.prototype.update=function(e,t){var r=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||r)return e.call(this,t);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},t}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,r){function n(){}return n.prototype.bind=function(e,t,r){var n=this;e.call(this,t,r),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){n._handleClear(e)}),t.on("keypress",function(e){n._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=r.GetData(n[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var a={data:i};if(this.trigger("clear",a),a.prevented)this.$element.val(s);else{for(var o=0;o<i.length;o++)if(a={data:i[o]},this.trigger("unselect",a),a.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(e,r,n){n.isOpen()||r.which!=t.DELETE&&r.which!=t.BACKSPACE||this._handleClear(r)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=this.options.get("translations").get("removeAllItems"),s=e('<span class="select2-selection__clear" title="'+i()+'">×</span>');r.StoreData(s[0],"data",n),this.$selection.find(".select2-selection__rendered").prepend(s)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,r){function n(e,t,r){e.call(this,t,r)}return n.prototype.render=function(t){var r=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=r,this.$search=r.find("input");var n=t.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(e,n,i){var s=this,a=n.id+"-results";e.call(this,n,i),n.on("open",function(){s.$search.attr("aria-controls",a),s.$search.trigger("focus")}),n.on("close",function(){s.$search.val(""),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),n.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),n.on("disable",function(){s.$search.prop("disabled",!0)}),n.on("focus",function(e){s.$search.trigger("focus")}),n.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===r.BACKSPACE&&""===s.$search.val()){var n=s.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var i=t.GetData(n[0],"data");s.searchRemoveChoice(i),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()});var o=document.documentMode,l=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){l?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(l&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=r.SHIFT&&t!=r.CTRL&&t!=r.ALT&&t!=r.TAB&&s.handleSearch(e)}})},n.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.prototype.update=function(e,t){var r=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),r&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},n}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,r,n){var i=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,r,n),r.on("*",function(t,r){if(-1!==e.inArray(t,s)){r=r||{};var n=e.Event("select2:"+t,{params:r});i.$element.trigger(n),-1!==e.inArray(t,a)&&(r.prevented=n.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var n=t(e);r._cache[e]=n}return new r(r._cache[e])},r}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Œ:"OE",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,r){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,r){var n=t.id+"-result-";return n+=e.generateChars(4),null!=r.id?n+="-"+r.id.toString():n+="-"+e.generateChars(4),n},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,r){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=r(this),i=n.item(e);t.push(i)}),e(t)},n.prototype.select=function(e){var t=this;if(e.selected=!0,r(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var i=[];(e=[e]).push.apply(e,n);for(var s=0;s<e.length;s++){var a=e[s].id;-1===r.inArray(a,i)&&i.push(a)}t.$element.val(i),t.$element.trigger("input").trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,r(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(n){for(var i=[],s=0;s<n.length;s++){var a=n[s].id;a!==e.id&&-1===r.inArray(a,i)&&i.push(a)}t.$element.val(i),t.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var r=this;this.container=e,e.on("select",function(e){r.select(e.data)}),e.on("unselect",function(e){r.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},n.prototype.query=function(e,t){var n=[],i=this;this.$element.children().each(function(){var t=r(this);if(t.is("option")||t.is("optgroup")){var s=i.item(t),a=i.matches(e,s);null!==a&&n.push(a)}}),t({results:n})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var n;e.children?(n=document.createElement("optgroup")).label=e.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=e.text:n.innerText=e.text,void 0!==e.id&&(n.value=e.id),e.disabled&&(n.disabled=!0),e.selected&&(n.selected=!0),e.title&&(n.title=e.title);var i=r(n),s=this._normalizeItem(e);return s.element=n,t.StoreData(n,"data",s),i},n.prototype.item=function(e){var n={};if(null!=(n=t.GetData(e[0],"data")))return n;if(e.is("option"))n={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){n={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),s=[],a=0;a<i.length;a++){var o=r(i[a]),l=this.item(o);s.push(l)}n.children=s}return(n=this._normalizeItem(n)).element=e[0],t.StoreData(e[0],"data",n),n},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=r.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),r.extend({},t,e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,r){function n(e,t){this._dataToConvert=t.get("data")||[],n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype.bind=function(e,t){n.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,r){return r.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),n.__super__.select.call(this,e)},n.prototype.convertToOptions=function(e){var n=this,i=this.$element.find("option"),s=i.map(function(){return n.item(r(this)).id}).get(),a=[];function o(e){return function(){return r(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(r.inArray(c.id,s)>=0){var d=i.filter(o(c)),h=this.item(d),u=r.extend(!0,{},c,h),p=this.option(u);d.replaceWith(p)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}a.push(f)}}return a},n}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return r.extend({},e,{q:e.term})},transport:function(e,t,n){var i=r.ajax(e);return i.then(t),i.fail(n),i}};return r.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){var n=this;null!=this._request&&(r.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=r.extend({type:"GET"},this.ajaxOptions);function s(){var s=i.transport(i,function(i){var s=n.processResults(i,e);n.options.get("debug")&&window.console&&console.error&&(s&&s.results&&r.isArray(s.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(s)},function(){(!("status"in s)||0!==s.status&&"0"!==s.status)&&n.trigger("results:message",{message:"errorLoading"})});n._request=s}"function"==typeof i.url&&(i.url=i.url.call(this.$element,e)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)):s()},n}),t.define("select2/data/tags",["jquery"],function(e){function t(t,r,n){var i=n.get("tags"),s=n.get("createTag");void 0!==s&&(this.createTag=s);var a=n.get("insertTag");if(void 0!==a&&(this.insertTag=a),t.call(this,r,n),e.isArray(i))for(var o=0;o<i.length;o++){var l=i[o],c=this._normalizeItem(l),d=this.option(c);this.$element.append(d)}}return t.prototype.query=function(e,t,r){var n=this;function i(e,s){for(var a=e.results,o=0;o<a.length;o++){var l=a[o],c=null!=l.children&&!i({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!s&&(e.data=a,void r(e))}if(s)return!0;var d=n.createTag(t);if(null!=d){var h=n.option(d);h.attr("data-select2-tag",!0),n.addOptions([h]),n.insertTag(a,d)}e.results=a,r(e)}this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,i):e.call(this,t,r)},t.prototype.createTag=function(t,r){var n=e.trim(r.term);return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,r){t.unshift(r)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,r){var n=r.get("tokenizer");void 0!==n&&(this.tokenizer=n),e.call(this,t,r)}return t.prototype.bind=function(e,t,r){e.call(this,t,r),this.$search=t.dropdown.$search||t.selection.$search||r.find(".select2-search__field")},t.prototype.query=function(t,r,n){var i=this;function s(t){var r=i._normalizeItem(t);if(!i.$element.find("option").filter(function(){return e(this).val()===r.id}).length){var n=i.option(r);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}a(r)}function a(e){i.trigger("select",{data:e})}r.term=r.term||"";var o=this.tokenizer(r,this.options,s);o.term!==r.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),r.term=o.term),t.call(this,r,n)},t.prototype.tokenizer=function(t,r,n,i){for(var s=n.get("tokenSeparators")||[],a=r.term,o=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};o<a.length;){var c=a[o];if(-1!==e.inArray(c,s)){var d=a.substr(0,o),h=l(e.extend({},r,{term:d}));null!=h?(i(h),a=a.substr(o+1)||"",o=0):o++}else o++}return{term:a}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,r){this.minimumInputLength=r.get("minimumInputLength"),e.call(this,t,r)}return e.prototype.query=function(e,t,r){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,r)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,r){this.maximumInputLength=r.get("maximumInputLength"),e.call(this,t,r)}return e.prototype.query=function(e,t,r){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,r)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,r){this.maximumSelectionLength=r.get("maximumSelectionLength"),e.call(this,t,r)}return e.prototype.bind=function(e,t,r){var n=this;e.call(this,t,r),t.on("select",function(){n._checkIfMaximumSelected()})},e.prototype.query=function(e,t,r){var n=this;this._checkIfMaximumSelected(function(){e.call(n,t,r)})},e.prototype._checkIfMaximumSelected=function(e,t){var r=this;this.current(function(e){var n=null!=e?e.length:0;r.maximumSelectionLength>0&&n>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):t&&t()})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},r.prototype.bind=function(){},r.prototype.position=function(e,t){},r.prototype.destroy=function(){this.$dropdown.remove()},r}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function r(){}return r.prototype.render=function(t){var r=t.call(this),n=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),r.prepend(n),r},r.prototype.bind=function(t,r,n){var i=this,s=r.id+"-results";t.call(this,r,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),r.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",s),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),r.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),r.on("focus",function(){r.isOpen()||i.$search.trigger("focus")}),r.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),r.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},r.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.showSearch=function(e,t){return!0},r}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,r,n){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),e.call(this,t,r,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var r=t.slice(0),n=t.length-1;n>=0;n--){var i=t[n];this.placeholder.id===i.id&&r.splice(n,1)}return r},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,r,n){this.lastParams={},e.call(this,t,r,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,r){var n=this;e.call(this,t,r),t.on("query",function(e){n.lastParams=e,n.loading=!0}),t.on("query:append",function(e){n.lastParams=e,n.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),r=this.options.get("translations").get("loadingMore");return t.html(r(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function r(t,r,n){this.$dropdownParent=e(n.get("dropdownParent")||document.body),t.call(this,r,n)}return r.prototype.bind=function(e,t,r){var n=this;e.call(this,t,r),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),n._bindContainerResultHandlers(t)}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},r.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},r.prototype.position=function(e,t,r){t.attr("class",r.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=r},r.prototype.render=function(t){var r=e("<span></span>"),n=t.call(this);return r.append(n),this.$dropdownContainer=r,r},r.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},r.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var r=this;t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:message",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("select",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("unselect",function(){r._positionDropdown(),r._resizeDropdown()}),this._containerResultsHandlersBound=!0}},r.prototype._attachPositioningHandler=function(r,n){var i=this,s="scroll.select2."+n.id,a="resize.select2."+n.id,o="orientationchange.select2."+n.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(s,function(r){var n=t.GetData(this,"select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(s+" "+a+" "+o,function(e){i._positionDropdown(),i._resizeDropdown()})},r.prototype._detachPositioningHandler=function(r,n){var i="scroll.select2."+n.id,s="resize.select2."+n.id,a="orientationchange.select2."+n.id;this.$container.parents().filter(t.hasScroll).off(i),e(window).off(i+" "+s+" "+a)},r.prototype._positionDropdown=function(){var t=e(window),r=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=s.top,a.bottom=s.top+a.height;var o={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<s.top-o.height,d=l.bottom>s.bottom+o.height,h={left:s.left,top:a.bottom},u=this.$dropdownParent;"static"===u.css("position")&&(u=u.offsetParent());var p={top:0,left:0};(e.contains(document.body,u[0])||u[0].isConnected)&&(p=u.offset()),h.top-=p.top,h.left-=p.left,r||n||(i="below"),d||!c||r?!c&&d&&r&&(i="below"):i="above",("above"==i||r&&"below"!==i)&&(h.top=a.top-p.top-o.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(h)},r.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},r.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},r}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var r=0,n=0;n<t.length;n++){var i=t[n];i.children?r+=e(i.children):r++}return r}function t(e,t,r,n){this.minimumResultsForSearch=r.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,r,n)}return t.prototype.showSearch=function(t,r){return!(e(r.data.results)<this.minimumResultsForSearch)&&t.call(this,r)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,r){var n=this;e.call(this,t,r),t.on("close",function(e){n._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,r){if(r&&null!=r.originalSelect2Event){var n=r.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var s=e.GetData(i[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,r){var n=this;e.call(this,t,r),t.on("select",function(e){n._selectTriggered(e)}),t.on("unselect",function(e){n._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var r=t.originalEvent;r&&(r.ctrlKey||r.metaKey)||this.trigger("close",{originalEvent:r,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,r="Please delete "+t+" character";return 1!=t&&(r+="s"),r},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,r,n,i,s,a,o,l,c,d,h,u,p,f,g,_,m,v,y,b,w,x,k,j,C,S,A,E){function O(){this.reset()}return O.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=u,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,_)),null!=d.query){var h=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,h)}if(null!=d.initSelection){var E=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,E)}}if(null==d.resultsAdapter&&(d.resultsAdapter=r,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,k)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=b;else{var O=c.Decorate(b,w);d.dropdownAdapter=O}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var P=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,P)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,j)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=i:d.selectionAdapter=n,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,o)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var $=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,$)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}d.language=this._resolveLanguage(d.language),d.language.push("en");for(var D=[],T=0;T<d.language.length;T++){var L=d.language[T];-1===D.indexOf(L)&&D.push(L)}return d.language=D,d.translations=this._processTranslations(d.language,d.debug),d},O.prototype.reset=function(){function t(e){function t(e){return h[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function r(n,i){if(""===e.trim(n.term))return i;if(i.children&&i.children.length>0){for(var s=e.extend(!0,{},i),a=i.children.length-1;a>=0;a--)null==r(n,i.children[a])&&s.children.splice(a,1);return s.children.length>0?s:r(n,s)}var o=t(i.text).toUpperCase(),l=t(n.term).toUpperCase();return o.indexOf(l)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:r,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var r=e.language,n=this.defaults.language,i=t.prop("lang"),s=t.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(s));return e.language=a,e},O.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var r;r=e.isArray(t)?t:[t];for(var n=[],i=0;i<r.length;i++)if(n.push(r[i]),"string"==typeof r[i]&&r[i].indexOf("-")>0){var s=r[i].split("-")[0];n.push(s)}return n},O.prototype._processTranslations=function(t,r){for(var n=new d,i=0;i<t.length;i++){var s=new d,a=t[i];if("string"==typeof a)try{s=d.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,s=d.loadPath(a)}catch(e){r&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else s=e.isPlainObject(a)?new d(a):a;n.extend(s)}return n},O.prototype.set=function(t,r){var n={};n[e.camelCase(t)]=r;var i=c._convertData(n);e.extend(!0,this.defaults,i)},new O}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,r,n){function i(t,i){if(this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=r.applyFromElement(this.options,i)),this.options=r.apply(this.options),i&&i.is("input")){var s=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,s)}}return i.prototype.fromElement=function(e){var r=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),n.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(e[0],"data",n.GetData(e[0],"select2Tags")),n.StoreData(e[0],"tags",!0)),n.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",n.GetData(e[0],"ajaxUrl")),n.StoreData(e[0],"ajax-Url",n.GetData(e[0],"ajaxUrl")));var i={};function s(e,t){return t.toUpperCase()}for(var a=0;a<e[0].attributes.length;a++){var o=e[0].attributes[a].name,l="data-";if(o.substr(0,l.length)==l){var c=o.substring(l.length),d=n.GetData(e[0],c);i[c.replace(/-([a-z])/g,s)]=d}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(i=t.extend(!0,{},e[0].dataset,i));var h=t.extend(!0,{},n.GetData(e[0]),i);for(var u in h=n._convertData(h))t.inArray(u,r)>-1||(t.isPlainObject(this.options[u])?t.extend(this.options[u],h[u]):this.options[u]=h[u]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,r,n){var i=function(e,n){null!=r.GetData(e[0],"select2")&&r.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),i.__super__.constructor.call(this);var s=e.attr("tabindex")||0;r.StoreData(e[0],"old-tabindex",s),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var o=this.render();this._placeContainer(o);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var d=this.options.get("resultsAdapter");this.results=new d(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var h=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){h.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),r.StoreData(e[0],"select2",this),e.data("select2",this)};return r.Extend(i,r.Observable),i.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+r.generateChars(2):r.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.prototype._resolveWidth=function(e,t){var r=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var a=s.split(";"),o=0,l=a.length;o<l;o+=1){var c=a[o].replace(/\s/g,"").match(r);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=r.bind(this._syncAttributes,this),this._syncS=r.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t(function(t){e._syncA(),e._syncS(null,t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,r){e.trigger(t,r)})},i.prototype._registerSelectionEvents=function(){var t=this,r=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(n,i){-1===e.inArray(n,r)&&t.trigger(n,i)})},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,r){e.trigger(t,r)})},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,r){e.trigger(t,r)})},i.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(r){e.trigger("results:all",{data:r,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(r){e.trigger("results:append",{data:r,query:t})})}),this.on("keypress",function(t){var r=t.which;e.isOpen()?r===n.ESC||r===n.TAB||r===n.UP&&t.altKey?(e.close(t),t.preventDefault()):r===n.ENTER?(e.trigger("results:select",{}),t.preventDefault()):r===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):r===n.UP?(e.trigger("results:previous",{}),t.preventDefault()):r===n.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(r===n.ENTER||r===n.SPACE||r===n.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._isChangeMutation=function(t,r){var n=!1,i=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(r)if(r.addedNodes&&r.addedNodes.length>0)for(var s=0;s<r.addedNodes.length;s++)r.addedNodes[s].selected&&(n=!0);else r.removedNodes&&r.removedNodes.length>0?n=!0:e.isArray(r)&&e.each(r,function(e,t){if(i._isChangeMutation(e,t))return n=!0,!1});else n=!0;return n}},i.prototype._syncSubtree=function(e,t){var r=this._isChangeMutation(e,t),n=this;r&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},i.prototype.trigger=function(e,t){var r=i.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in n){var s=n[e],a={prevented:!1,name:e,args:t};if(r.call(this,s,a),a.prevented)return void(t.prevented=!0)}r.call(this,e,t)},i.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},i.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},i.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var r=t[0];e.isArray(r)&&(r=e.map(r,function(e){return e.toString()})),this.$element.val(r).trigger("input").trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",r.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),r.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),r.StoreData(t[0],"element",this.$element),t},i}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,r,n,i){if(null==e.fn.select2){var s=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var n=e.extend(!0,{},t);new r(e(this),n)}),this;if("string"==typeof t){var n,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=i.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,a)}),e.inArray(t,s)>-1?this:n}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),r}),{define:t.define,require:t.require}}(),r=t.require("jquery.select2");return e.fn.select2.amd=t,r},void 0===(s="function"==typeof n?n.apply(t,i):n)||(e.exports=s)},43(e){"use strict";e.exports=self.jQuery}};const t={};function r(n){const i=t[n];if(void 0!==i)return i.exports;const s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],s=t[n++];r.o(e,i)?0===s&&n++:0===s?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:s})}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);(()=>{"use strict";r(3);var e=r(43),t=r.n(e);function n(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function i(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function s(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function a(e){return e instanceof i(e).Element||e instanceof Element}function o(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function l(e){return e?(e.nodeName||"").toLowerCase():null}function c(e){return(a(e)?e.ownerDocument:e.document).documentElement}function d(e){return n(c(e)).left+s(e).scrollLeft}function h(e){return i(e).getComputedStyle(e)}function u(e){var t=h(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function p(e,t,r){void 0===r&&(r=!1);var a,h,p=c(t),f=n(e),g=o(t),_={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(g||!g&&!r)&&(("body"!==l(t)||u(p))&&(_=(a=t)!==i(a)&&o(a)?{scrollLeft:(h=a).scrollLeft,scrollTop:h.scrollTop}:s(a)),o(t)?((m=n(t)).x+=t.clientLeft,m.y+=t.clientTop):p&&(m.x=d(p))),{x:f.left+_.scrollLeft-m.x,y:f.top+_.scrollTop-m.y,width:f.width,height:f.height}}function f(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function g(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||e.host||c(e)}function _(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:o(e)&&u(e)?e:_(g(e))}function m(e,t){void 0===t&&(t=[]);var r=_(e),n="body"===l(r),s=i(r),a=n?[s].concat(s.visualViewport||[],u(r)?r:[]):r,o=t.concat(a);return n?o:o.concat(m(g(a)))}function v(e){return["table","td","th"].indexOf(l(e))>=0}function y(e){if(!o(e)||"fixed"===h(e).position)return null;var t=e.offsetParent;if(t){var r=c(t);if("body"===l(t)&&"static"===h(t).position&&"static"!==h(r).position)return r}return t}function b(e){for(var t=i(e),r=y(e);r&&v(r)&&"static"===h(r).position;)r=y(r);return r&&"body"===l(r)&&"static"===h(r).position?t:r||function(e){for(var t=g(e);o(t)&&["html","body"].indexOf(l(t))<0;){var r=h(t);if("none"!==r.transform||"none"!==r.perspective||r.willChange&&"auto"!==r.willChange)return t;t=t.parentNode}return null}(e)||t}var w="top",x="bottom",k="right",j="left",C="auto",S=[w,x,k,j],A="start",E="end",O="viewport",P="popper",$=S.reduce(function(e,t){return e.concat([t+"-"+A,t+"-"+E])},[]),D=[].concat(S,[C]).reduce(function(e,t){return e.concat([t,t+"-"+A,t+"-"+E])},[]),T=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function L(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}function N(e){return e.split("-")[0]}function I(e,t){var r=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(r){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function M(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F(e,t){return t===O?M(function(e){var t=i(e),r=c(e),n=t.visualViewport,s=r.clientWidth,a=r.clientHeight,o=0,l=0;return n&&(s=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,l=n.offsetTop)),{width:s,height:a,x:o+d(e),y:l}}(e)):o(t)?function(e){var t=n(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):M(function(e){var t=c(e),r=s(e),n=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-r.scrollLeft+d(e),l=-r.scrollTop;return"rtl"===h(n||t).direction&&(o+=Math.max(t.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}(c(e)))}function R(e,t,r){var n="clippingParents"===t?function(e){var t=m(g(e)),r=["absolute","fixed"].indexOf(h(e).position)>=0&&o(e)?b(e):e;return a(r)?t.filter(function(e){return a(e)&&I(e,r)&&"body"!==l(e)}):[]}(e):[].concat(t),i=[].concat(n,[r]),s=i[0],c=i.reduce(function(t,r){var n=F(e,r);return t.top=Math.max(n.top,t.top),t.right=Math.min(n.right,t.right),t.bottom=Math.min(n.bottom,t.bottom),t.left=Math.max(n.left,t.left),t},F(e,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function H(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B(e){var t,r=e.reference,n=e.element,i=e.placement,s=i?N(i):null,a=i?H(i):null,o=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(s){case w:t={x:o,y:r.y-n.height};break;case x:t={x:o,y:r.y+r.height};break;case k:t={x:r.x+r.width,y:l};break;case j:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=s?q(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case A:t[c]=Math.floor(t[c])-Math.floor(r[d]/2-n[d]/2);break;case E:t[c]=Math.floor(t[c])+Math.ceil(r[d]/2-n[d]/2)}}return t}function U(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function z(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function V(e,t){void 0===t&&(t={});var r=t,i=r.placement,s=void 0===i?e.placement:i,o=r.boundary,l=void 0===o?"clippingParents":o,d=r.rootBoundary,h=void 0===d?O:d,u=r.elementContext,p=void 0===u?P:u,f=r.altBoundary,g=void 0!==f&&f,_=r.padding,m=void 0===_?0:_,v=U("number"!=typeof m?m:z(m,S)),y=p===P?"reference":P,b=e.elements.reference,j=e.rects.popper,C=e.elements[g?y:p],A=R(a(C)?C:C.contextElement||c(e.elements.popper),l,h),E=n(b),$=B({reference:E,element:j,strategy:"absolute",placement:s}),D=M(Object.assign(Object.assign({},j),$)),T=p===P?D:E,L={top:A.top-T.top+v.top,bottom:T.bottom-A.bottom+v.bottom,left:A.left-T.left+v.left,right:T.right-A.right+v.right},N=e.modifiersData.offset;if(p===P&&N){var I=N[s];Object.keys(L).forEach(function(e){var t=[k,x].indexOf(e)>=0?1:-1,r=[w,x].indexOf(e)>=0?"y":"x";L[e]+=I[r]*t})}return L}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function J(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,s=void 0===i?W:i;return function(e,t,r){void 0===r&&(r=s);var i,o,l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},W),s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],d=!1,h={state:l,setOptions:function(r){u(),l.options=Object.assign(Object.assign(Object.assign({},s),l.options),r),l.scrollParents={reference:a(e)?m(e):e.contextElement?m(e.contextElement):[],popper:m(t)};var i=function(e){var t=L(e);return T.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}(function(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign(Object.assign(Object.assign({},r),t),{},{options:Object.assign(Object.assign({},r.options),t.options),data:Object.assign(Object.assign({},r.data),t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(n,l.options.modifiers)));return l.orderedModifiers=i.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var s=i({state:l,name:t,instance:h,options:n}),a=function(){};c.push(s||a)}}),h.update()},forceUpdate:function(){if(!d){var e=l.elements,t=e.reference,r=e.popper;if(K(t,r)){l.rects={reference:p(t,b(r),"fixed"===l.options.strategy),popper:f(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var i=l.orderedModifiers[n],s=i.fn,a=i.options,o=void 0===a?{}:a,c=i.name;"function"==typeof s&&(l=s({state:l,options:o,name:c,instance:h})||l)}else l.reset=!1,n=-1}}},update:(i=function(){return new Promise(function(e){h.forceUpdate(),e(l)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(i())})})),o}),destroy:function(){u(),d=!0}};if(!K(e,t))return h;function u(){c.forEach(function(e){return e()}),c=[]}return h.setOptions(r).then(function(e){!d&&r.onFirstUpdate&&r.onFirstUpdate(e)}),h}}var G={passive:!0};var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(e){var t,r=e.popper,n=e.popperRect,s=e.placement,a=e.offsets,o=e.position,l=e.gpuAcceleration,d=e.adaptive,h=function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:Math.round(t*n)/n||0,y:Math.round(r*n)/n||0}}(a),u=h.x,p=h.y,f=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),_=j,m=w,v=window;if(d){var y=b(r);y===i(r)&&(y=c(r)),s===w&&(m=x,p-=y.clientHeight-n.height,p*=l?1:-1),s===j&&(_=k,u-=y.clientWidth-n.width,u*=l?1:-1)}var C,S=Object.assign({position:o},d&&Y);return l?Object.assign(Object.assign({},S),{},((C={})[m]=g?"0":"",C[_]=f?"0":"",C.transform=(v.devicePixelRatio||1)<2?"translate("+u+"px, "+p+"px)":"translate3d("+u+"px, "+p+"px, 0)",C)):Object.assign(Object.assign({},S),{},((t={})[m]=g?p+"px":"",t[_]=f?u+"px":"",t.transform="",t))}const X={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=void 0===i?[0,0]:i,a=D.reduce(function(e,r){return e[r]=function(e,t,r){var n=N(e),i=[j,w].indexOf(n)>=0?-1:1,s="function"==typeof r?r(Object.assign(Object.assign({},t),{},{placement:e})):r,a=s[0],o=s[1];return a=a||0,o=(o||0)*i,[j,k].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(r,t.rects,s),e},{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(e){return e.replace(/left|right|bottom|top/g,function(e){return Q[e]})}var te={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,function(e){return te[e]})}function ne(e,t,r){return Math.max(e,Math.min(t,r))}const ie={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=void 0===i||i,a=r.altAxis,o=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.padding,u=r.tether,p=void 0===u||u,g=r.tetherOffset,_=void 0===g?0:g,m=V(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),v=N(t.placement),y=H(t.placement),C=!y,S=q(v),E="x"===S?"y":"x",O=t.modifiersData.popperOffsets,P=t.rects.reference,$=t.rects.popper,D="function"==typeof _?_(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):_,T={x:0,y:0};if(O){if(s){var L="y"===S?w:j,I="y"===S?x:k,M="y"===S?"height":"width",F=O[S],R=O[S]+m[L],B=O[S]-m[I],U=p?-$[M]/2:0,z=y===A?P[M]:$[M],W=y===A?-$[M]:-P[M],K=t.elements.arrow,J=p&&K?f(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=G[L],Z=G[I],X=ne(0,P[M],J[M]),Q=C?P[M]/2-U-X-Y-D:z-X-Y-D,ee=C?-P[M]/2+U+X+Z+D:W+X+Z+D,te=t.elements.arrow&&b(t.elements.arrow),re=te?"y"===S?te.clientTop||0:te.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][S]:0,se=O[S]+Q-ie-re,ae=O[S]+ee-ie,oe=ne(p?Math.min(R,se):R,F,p?Math.max(B,ae):B);O[S]=oe,T[S]=oe-F}if(o){var le="x"===S?w:j,ce="x"===S?x:k,de=O[E],he=ne(de+m[le],de,de-m[ce]);O[E]=he,T[E]=he-de}t.modifiersData[n]=T}},requiresIfExists:["offset"]};const se={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=N(r.placement),o=q(a),l=[j,k].indexOf(a)>=0?"height":"width";if(i&&s){var c=r.modifiersData[n+"#persistent"].padding,d=f(i),h="y"===o?w:j,u="y"===o?x:k,p=r.rects.reference[l]+r.rects.reference[o]-s[o]-r.rects.popper[l],g=s[o]-r.rects.reference[o],_=b(i),m=_?"y"===o?_.clientHeight||0:_.clientWidth||0:0,v=p/2-g/2,y=c[h],C=m-d[l]-c[u],S=m/2-d[l]/2+v,A=ne(y,S,C),E=o;r.modifiersData[n]=((t={})[E]=A,t.centerOffset=A-S,t)}},effect:function(e){var t=e.state,r=e.options,n=e.name,i=r.element,s=void 0===i?"[data-popper-arrow]":i,a=r.padding,o=void 0===a?0:a;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&I(t.elements.popper,s)&&(t.elements.arrow=s,t.modifiersData[n+"#persistent"]={padding:U("number"!=typeof o?o:z(o,S))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function oe(e){return[w,k,x,j].some(function(t){return e[t]>=0})}var le=J({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,s=n.scroll,a=void 0===s||s,o=n.resize,l=void 0===o||o,c=i(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(e){e.addEventListener("scroll",r.update,G)}),l&&c.addEventListener("resize",r.update,G),function(){a&&d.forEach(function(e){e.removeEventListener("scroll",r.update,G)}),l&&c.removeEventListener("resize",r.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=B({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,s=r.adaptive,a=void 0===s||s,o={placement:N(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),Z(Object.assign(Object.assign({},o),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),Z(Object.assign(Object.assign({},o),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];o(i)&&l(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});o(n)&&l(n)&&(Object.assign(n.style,s),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},X,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=void 0===i||i,a=r.altAxis,o=void 0===a||a,l=r.fallbackPlacements,c=r.padding,d=r.boundary,h=r.rootBoundary,u=r.altBoundary,p=r.flipVariations,f=void 0===p||p,g=r.allowedAutoPlacements,_=t.options.placement,m=N(_),v=l||(m===_||!f?[ee(_)]:function(e){if(N(e)===C)return[];var t=ee(e);return[re(e),t,re(t)]}(_)),y=[_].concat(v).reduce(function(e,r){return e.concat(N(r)===C?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,a=r.padding,o=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?D:l,d=H(n),h=d?o?$:$.filter(function(e){return H(e)===d}):S,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var p=u.reduce(function(t,r){return t[r]=V(e,{placement:r,boundary:i,rootBoundary:s,padding:a})[N(r)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:r,boundary:d,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:g}):r)},[]),b=t.rects.reference,E=t.rects.popper,O=new Map,P=!0,T=y[0],L=0;L<y.length;L++){var I=y[L],M=N(I),F=H(I)===A,R=[w,x].indexOf(M)>=0,q=R?"width":"height",B=V(t,{placement:I,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),U=R?F?k:j:F?x:w;b[q]>E[q]&&(U=ee(U));var z=ee(U),W=[];if(s&&W.push(B[M]<=0),o&&W.push(B[U]<=0,B[z]<=0),W.every(function(e){return e})){T=I,P=!1;break}O.set(I,W)}if(P)for(var K=function(e){var t=y.find(function(t){var r=O.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},J=f?3:1;J>0;J--){if("break"===K(J))break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ie,se,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=V(t,{elementContext:"reference"}),o=V(t,{altBoundary:!0}),l=ae(a,n),c=ae(o,i,s),d=oe(l),h=oe(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]}),ce="tippy-content",de="tippy-backdrop",he="tippy-arrow",ue="tippy-svg-arrow",pe={passive:!0,capture:!0};function fe(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function ge(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function _e(e,t){return"function"==typeof e?e.apply(void 0,t):e}function me(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function ve(e){return[].concat(e)}function ye(e,t){-1===e.indexOf(t)&&e.push(t)}function be(e){return e.split("-")[0]}function we(e){return[].slice.call(e)}function xe(){return document.createElement("div")}function ke(e){return["Element","Fragment"].some(function(t){return ge(e,t)})}function je(e){return ge(e,"MouseEvent")}function Ce(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Se(e){return ke(e)?[e]:function(e){return ge(e,"NodeList")}(e)?we(e):Array.isArray(e)?e:we(document.querySelectorAll(e))}function Ae(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Ee(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Oe(e){var t=ve(e)[0];return t&&t.ownerDocument||document}function Pe(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}var $e={isTouch:!1},De=0;function Te(){$e.isTouch||($e.isTouch=!0,window.performance&&document.addEventListener("mousemove",Le))}function Le(){var e=performance.now();e-De<20&&($e.isTouch=!1,document.removeEventListener("mousemove",Le)),De=e}function Ne(){var e=document.activeElement;if(Ce(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Ie="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Me=/MSIE |Trident\//.test(Ie);var Fe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Re=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Fe,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),He=Object.keys(Re);function qe(e){var t=(e.plugins||[]).reduce(function(t,r){var n=r.name,i=r.defaultValue;return n&&(t[n]=void 0!==e[n]?e[n]:i),t},{});return Object.assign({},e,{},t)}function Be(e,t){var r=Object.assign({},t,{content:_e(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(qe(Object.assign({},Re,{plugins:t}))):He).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},Re.aria,{},r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Ue(e,t){e.innerHTML=t}function ze(e){var t=xe();return!0===e?t.className=he:(t.className=ue,ke(e)?t.appendChild(e):Ue(t,e)),t}function Ve(e,t){ke(t.content)?(Ue(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ue(e,t.content):e.textContent=t.content)}function We(e){var t=e.firstElementChild,r=we(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(ce)}),arrow:r.find(function(e){return e.classList.contains(he)||e.classList.contains(ue)}),backdrop:r.find(function(e){return e.classList.contains(de)})}}function Ke(e){var t=xe(),r=xe();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=xe();function i(r,n){var i=We(t),s=i.box,a=i.content,o=i.arrow;n.theme?s.setAttribute("data-theme",n.theme):s.removeAttribute("data-theme"),"string"==typeof n.animation?s.setAttribute("data-animation",n.animation):s.removeAttribute("data-animation"),n.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?s.setAttribute("role",n.role):s.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Ve(a,e.props),n.arrow?o?r.arrow!==n.arrow&&(s.removeChild(o),s.appendChild(ze(n.arrow))):s.appendChild(ze(n.arrow)):o&&s.removeChild(o)}return n.className=ce,n.setAttribute("data-state","hidden"),Ve(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}Ke.$$tippy=!0;var Je=1,Ge=[],Ye=[];function Ze(e,t){var r,n,i,s,a,o,l,c,d,h=Be(e,Object.assign({},Re,{},qe((r=t,Object.keys(r).reduce(function(e,t){return void 0!==r[t]&&(e[t]=r[t]),e},{}))))),u=!1,p=!1,f=!1,g=!1,_=[],m=me(J,h.interactiveDebounce),v=Oe(h.triggerTarget||e),y=Je++,b=(d=h.plugins).filter(function(e,t){return d.indexOf(e)===t}),w={id:y,reference:e,popper:xe(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)},setProps:function(t){0;if(w.state.isDestroyed)return;L("onBeforeUpdate",[w,t]),W();var r=w.props,n=Be(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=n,V(),r.interactiveDebounce!==n.interactiveDebounce&&(M(),m=me(J,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?ve(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");I(),T(),j&&j(r,n);w.popperInstance&&(X(),ee().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));L("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){0;var e=w.state.isVisible,t=w.state.isDestroyed,r=!w.state.isEnabled,n=$e.isTouch&&!w.props.touch,i=fe(w.props.duration,0,Re.duration);if(e||t||r||n)return;if(P().hasAttribute("disabled"))return;if(L("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,O()&&(k.style.visibility="visible");T(),q(),w.state.isMounted||(k.style.transition="none");if(O()){var s=$();Ae([s.box,s.content],0)}l=function(){if(w.state.isVisible&&!g){if(g=!0,k.offsetHeight,k.style.transition=w.props.moveTransition,O()&&w.props.animation){var e=$(),t=e.box,r=e.content;Ae([t,r],i),Ee([t,r],"visible")}N(),I(),ye(Ye,w),w.state.isMounted=!0,L("onMount",[w]),w.props.animation&&O()&&function(e,t){U(e,t)}(i,function(){w.state.isShown=!0,L("onShown",[w])})}},function(){var e,t=w.props.appendTo,r=P();e=w.props.interactive&&t===Re.appendTo||"parent"===t?r.parentNode:_e(t,[r]);e.contains(k)||e.appendChild(k);X(),!1}()},hide:function(){0;var e=!w.state.isVisible,t=w.state.isDestroyed,r=!w.state.isEnabled,n=fe(w.props.duration,1,Re.duration);if(e||t||r)return;if(L("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,g=!1,u=!1,O()&&(k.style.visibility="hidden");if(M(),B(),T(),O()){var i=$(),s=i.box,a=i.content;w.props.animation&&(Ae([s,a],n),Ee([s,a],"hidden"))}N(),I(),w.props.animation?O()&&function(e,t){U(e,function(){!w.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()})}(n,w.unmount):w.unmount()},hideWithInteractivity:function(e){0;v.addEventListener("mousemove",m),ye(Ge,m),m(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){0;w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Q(),ee().forEach(function(e){e._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k);Ye=Ye.filter(function(e){return e!==w}),w.state.isMounted=!1,L("onHidden",[w])},destroy:function(){0;if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),W(),delete e._tippy,w.state.isDestroyed=!0,L("onDestroy",[w])}};if(!h.render)return w;var x=h.render(w),k=x.popper,j=x.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+w.id,w.popper=k,e._tippy=w,k._tippy=w;var C=b.map(function(e){return e.fn(w)}),S=e.hasAttribute("aria-expanded");return V(),I(),T(),L("onCreate",[w]),h.showOnCreate&&te(),k.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(v.addEventListener("mousemove",m),m(e))}),w;function A(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===A()[0]}function O(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function P(){return c||e}function $(){return We(k)}function D(e){return w.state.isMounted&&!w.state.isVisible||$e.isTouch||a&&"focus"===a.type?0:fe(w.props.delay,e?0:1,Re.delay)}function T(){k.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",k.style.zIndex=""+w.props.zIndex}function L(e,t,r){var n;(void 0===r&&(r=!0),C.forEach(function(r){r[e]&&r[e].apply(void 0,t)}),r)&&(n=w.props)[e].apply(n,t)}function N(){var t=w.props.aria;if(t.content){var r="aria-"+t.content,n=k.id;ve(w.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(w.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function I(){!S&&w.props.aria.expanded&&ve(w.props.triggerTarget||e).forEach(function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){v.removeEventListener("mousemove",m),Ge=Ge.filter(function(e){return e!==m})}function F(e){if(!($e.isTouch&&(f||"mousedown"===e.type)||w.props.interactive&&k.contains(e.target))){if(P().contains(e.target)){if($e.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),p=!0,setTimeout(function(){p=!1}),w.state.isMounted||B())}}function R(){f=!0}function H(){f=!1}function q(){v.addEventListener("mousedown",F,!0),v.addEventListener("touchend",F,pe),v.addEventListener("touchstart",H,pe),v.addEventListener("touchmove",R,pe)}function B(){v.removeEventListener("mousedown",F,!0),v.removeEventListener("touchend",F,pe),v.removeEventListener("touchstart",H,pe),v.removeEventListener("touchmove",R,pe)}function U(e,t){var r=$().box;function n(e){e.target===r&&(Pe(r,"remove",n),t())}if(0===e)return t();Pe(r,"remove",o),Pe(r,"add",n),o=n}function z(t,r,n){void 0===n&&(n=!1),ve(w.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),_.push({node:e,eventType:t,handler:r,options:n})})}function V(){var e;E()&&(z("touchstart",K,{passive:!0}),z("touchend",G,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(z(e,K),e){case"mouseenter":z("mouseleave",G);break;case"focus":z(Me?"focusout":"blur",Y);break;case"focusin":z("focusout",Y)}})}function W(){_.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}),_=[]}function K(e){var t,r=!1;if(w.state.isEnabled&&!Z(e)&&!p){var n="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,I(),!w.state.isVisible&&je(e)&&Ge.forEach(function(t){return t(e)}),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||u)&&!1!==w.props.hideOnClick&&w.state.isVisible?r=!0:te(e),"click"===e.type&&(u=!r),r&&!n&&re(e)}}function J(e){var t=e.target,r=P().contains(t)||k.contains(t);if("mousemove"!==e.type||!r){var n=ee().concat(k).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:h}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=be(i.placement),o=i.modifiersData.offset;if(!o)return!0;var l="bottom"===a?o.top.y:0,c="top"===a?o.bottom.y:0,d="right"===a?o.left.x:0,h="left"===a?o.right.x:0,u=t.top-n+l>s,p=n-t.bottom-c>s,f=t.left-r+d>s,g=r-t.right-h>s;return u||p||f||g})})(n,e)&&(M(),re(e))}}function G(e){Z(e)||w.props.trigger.indexOf("click")>=0&&u||(w.props.interactive?w.hideWithInteractivity(e):re(e))}function Y(e){w.props.trigger.indexOf("focusin")<0&&e.target!==P()||w.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||re(e)}function Z(e){return!!$e.isTouch&&E()!==e.type.indexOf("touch")>=0}function X(){Q();var t=w.props,r=t.popperOptions,n=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,o=O()?We(k).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||P()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(O()){var r=$().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},h=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];O()&&o&&h.push({name:"arrow",options:{element:o,padding:3}}),h.push.apply(h,(null==r?void 0:r.modifiers)||[]),w.popperInstance=le(c,k,Object.assign({},r,{placement:n,onFirstUpdate:l,modifiers:h}))}function Q(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return we(k.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&L("onTrigger",[w,e]),q();var t=D(!0),r=A(),i=r[0],s=r[1];$e.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){w.show()},t):w.show()}function re(e){if(w.clearDelayTimeouts(),L("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=D(!1);t?i=setTimeout(function(){w.state.isVisible&&w.hide()},t):s=requestAnimationFrame(function(){w.hide()})}}else B()}}function Xe(e,t){void 0===t&&(t={});var r=Re.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Te,pe),window.addEventListener("blur",Ne);var n=Object.assign({},t,{plugins:r}),i=Se(e).reduce(function(e,t){var r=t&&Ze(t,n);return r&&e.push(r),e},[]);return ke(e)?i[0]:i}Xe.defaultProps=Re,Xe.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Re[t]=e[t]})},Xe.currentInput=$e;Xe.setDefaultProps({render:Ke});const Qe=Xe;var et=r(596),tt=r.n(et);r(409),r(458); /*! js-cookie v3.0.7 | MIT */ function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}(function e(t,r){function n(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=rt({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in i)i[a]&&(s+="; "+a,!0!==i[a]&&(s+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var s=r[i].split("="),a=s.slice(1).join("=");try{var o=decodeURIComponent(s[0]);if(o in n||(n[o]=t.read(a,o)),e===o)break}catch{}}return e?n[e]:n}},remove:function(e,t){n(e,"",rt({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,rt({},this.attributes,t))},withConverter:function(t){return e(rt({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})})({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),r(460),r(10),r(232),r(174),r(104);window.$=window.jQuery=t(),DupliJs.Libs.tippy=Qe,DupliJs.Libs.Handlebars=tt()})(),self["DuplicatorPlugin-vendor"]={}})();
Save File
Cancel