System.register([],(function(e){"use strict";return{execute:function(){functiont(e){return(t="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}functions(e,t,n){returnt&&i(e.prototype,t),n&&i(e,n),e}functionr(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiono(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functiona(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}constc="production"!==process.env.NODE_ENV?Object.freeze({}):{},d=("production"!==process.env.NODE_ENV&&Object.freeze([]),()=>{}),h=/^on[^a-z]/,l=e=>h.test(e),u=Object.assign,p=Array.isArray,f=e=>"function"==typeofe,v=e=>"string"==typeofe,m=e=>null!==e&&"object"==typeofe;letg;consty=()=>g||(g="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{});functionk(e){if(p(e)){constt={};for(letn=0;n<e.length;n++){consti=e[n],s=v(i)?C(i):k(i);if(s)for(consteins)t[e]=s[e]}returnt}returnv(e)||m(e)?e:void0}constb=/;(?![^(]*\))/g,x=/:([^]+)/,N=/\/\*[^]*?\*\//g;functionC(e){constt={};returne.replace(N,"").split(b).forEach((e=>{if(e){constn=e.split(x);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}functionE(e){lett="";if(v(e))t=e;elseif(p(e))for(letn=0;n<e.length;n++){consti=E(e[n]);i&&(t+=i+" ")}elseif(m(e))for(constnine)e[n]&&(t+=n+" ");returnt.trim()}Symbol("production"!==process.env.NODE_ENV?"iterate":""),Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");functionw(e){return_(e)?w(e.__v_raw):!(!e||!e.__v_isReactive)}function_(e){return!(!e||!e.__v_isReadonly)}functionL(e){returnw(e)||_(e)}functionS(e){constt=e&&e.__v_raw;returnt?S(t):e}functionO(e){return!(!e||!0!==e.__v_isRef)}constI=[];functionD(e,...t){if("production"===process.env.NODE_ENV)return;constn=I.length?I[I.length-1].component:null,i=n&&n.appContext.config.warnHandler,s=function(){lete=I[I.length-1];if(!e)return[];constt=[];for(;e;){constn=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});consti=e.component&&e.component.parent;e=i&&i.vnode}returnt}();if(i)M(i,n,11,[e+t.join(""),n&&n.proxy,s.map((({vnode:e})=>`at <${Ne(n,e.type)}>`)).join("\n"),s]);else{constn=[`[Vue warn]: ${e}`,...t];s.length&&n.push("\n",...function(e){constt=[];returne.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){constn=t>0?`... (${t} recursive calls)`:"",i=!!e.component&&null==e.component.parent,s=` at <${Ne(e.component,e.type,i)}`,r=">"+n;returne.props?[s,...T(e.props),r]:[s+r]}(e))})),t}(s)),console.warn(...n)}}functionT(e){constt=[],n=Object.keys(e);returnn.slice(0,3).forEach((n=>{t.push(...F(n,e[n]))})),n.length>3&&t.push(" ..."),t}functionF(e,t,n){returnv(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeoft||"boolean"==typeoft||null==t?n?t:[`${e}=${t}`]:O(t)?(t=F(e,S(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):f(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=S(t),n?t:[`${e}=`,t])}constR={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};functionM(e,t,n,i){lets;try{s=i?e(...i):e()}catch(e){!function(e,t,n,i=!0){consts=t?t.vnode:null;if(t){leti=t.parent;consts=t.proxy,r="production"!==process.env.NODE_ENV?R[n]:n;for(;i;){constt=i.ec;if(t)for(letn=0;n<t.length;n++)if(!1===t[n](e,s,r))return;i=i.parent}consto=t.appContext.config.errorHandler;if(o)returnvoidM(o,null,10,[e,s,r])}!function(e,t,n,i=!0){if("production"!==process.env.NODE_ENV){constr=R[t];if(n&&(s=n,I.push(s)),D("Unhandled error"+(r?` during execution of ${r}`:"")),n&&I.pop(),i)throwe;console.error(e)}elseconsole.error(e);vars}(e,n,s,i)}(e,t,n)}returns}letP=!1,H=!1;const$=[];letj=0;constV=[];letB=null,z=0;constA=Promise.resolve();letK=null;functionq(e){$.length&&$.includes(e,P&&e.allowRecurse?j+1:j)||(null==e.id?$.push(e):$.splice(function(e){lett=j+1,n=$.length;for(;t<n;){consti=t+n>>>1;Y($[i])<e?t=i+1:n=i}returnt}(e.id),0,e),U())}functionU(){P||H||(H=!0,K=A.then(X))}constY=e=>null==e.id?1/0:e.id,J=(e,t)=>{constn=Y(e)-Y(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return1}returnn};functionX(e){H=!1,P=!0,"production"!==process.env.NODE_ENV&&(e=e||newMap),$.sort(J);constt="production"!==process.env.NODE_ENV?t=>G(e,t):d;try{for(j=0;j<$.length;j++){conste=$[j];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;M(e,null,14)}}}finally{j=0,$.length=0,function(e){if(V.length){constt=[...newSet(V)];if(V.length=0,B)returnvoidB.push(...t);for(B=t,"production"!==process.env.NODE_ENV&&(e=e||newMap),B.sort(((e,t)=>Y(e)-Y(t))),z=0;z<B.length;z++)"production"!==process.env.NODE_ENV&&G(e,B[z])||B[z]();B=null,z=0}}(e),P=!1,K=null,($.length||V.length)&&X(e)}}functionG(e,t){if(e.has(t)){constn=e.get(t);if(n>100){conste=t.ownerInstance,n=e&&xe(e.type);returnD(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}elsee.set(t,1)}constQ=newSet;"production"!==process.env.NODE_ENV&&(y().__VUE_HMR_RUNTIME__={createRecord:te((function(e,t){if(W.has(e))return!1;returnW.set(e,{initialDef:Z(t),instances:newSet}),!0})),rerender:te((function(e,t){constn=W.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,Z(e.type).render=t),e.renderCache=[],e.update()}))})),reload:te((function(e,t){constn=W.get(e);if(!n)return;t=Z(t),ee(n.initialDef,t);consti=[...n.instances];for(consteofi){consti=Z(e.type);Q.has(i)||(i!==n.initialDef&&ee(i,t),Q.add(i)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(Q.add(i),e.ceReload(t.styles),Q.delete(i)):e.parent?q(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeofwindow?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}s=()=>{for(consteofi)Q.delete(Z(e.type))},p(s)?V.push(...s):B&&B.includes(s,s.allowRecurse?z+1:z)||V.push(s),U();vars}))});constW=newMap;functionZ(e){returnCe(e)?e.__vccOpts:e}functionee(e,t){u(e,t);for(constnine)"__file"===n||nint||deletee[n]}functionte(e){return(t,n)=>{try{returne(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}letne=null;constie=Symbol.for("v-ndc");process.env.NODE_ENV;constse=Symbol.for("v-fgt"),re=Symbol.for("v-txt"),oe=Symbol.for("v-cmt");functionae(e){return!!e&&!0===e.__v_isVNode}constce="__vInternal",de=({key:e})=>null!=e?e:null,he=({ref:e,ref_key:t,ref_for:n})=>("number"==typeofe&&(e=""+e),null!=e?v(e)||O(e)||f(e)?{i:ne,r:e,k:t,f:!!n}:e:null);constle="production"!==process.env.NODE_ENV?(...e)=>ue(...e):ue;functionue(e,t=null,n=null,i=0,s=null,r=!1){if(e&&e!==ie||("production"===process.env.NODE_ENV||e||D(`Invalid vnode type when creating vnode: ${e}.`),e=oe),ae(e)){consti=pe(e,t,!0);returnn&&me(i,n),i.patchFlag|=-2,i}if(Ce(e)&&(e=e.__vccOpts),t){t=function(e){returne?L(e)||ceine?u({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=E(e)),m(n)&&(L(n)&&!p(n)&&(n=u({},n)),t.style=k(n))}consto=v(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:m(e)?4:f(e)?2:0;return"production"!==process.env.NODE_ENV&&4&o&&L(e)&&D("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=S(e)),function(e,t=null,n=null,i=0,s=null,r=(e===se?0:1),o=!1,a=!1){constc={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&de(t),ref:t&&he(t),scopeId:null,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ne};returna?(me(c,n),128&r&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&D("VNode created with invalid key (NaN). VNode type:",c.type),c}(e,t,n,i,s,o,r,!0)}functionpe(e,t,n=!1){const{props:i,ref:s,patchFlag:r,children:o}=e,a=t?function(...e){constt={};for(letn=0;n<e.length;n++){consti=e[n];for(consteini)if("class"===e)t.class!==i.class&&(t.class=E([t.class,i.class]));elseif("style"===e)t.style=k([t.style,i.style]);elseif(l(e)){constn=t[e],s=i[e];!s||n===s||p(n)&&n.includes(s)||(t[e]=n?[].concat(n,s):s)}else""!==e&&(t[e]=i[e])}returnt}(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&de(a),ref:t&&t.ref?n&&s?p(s)?s.concat(he(t)):[s,he(t)]:he(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===r&&p(o)?o.map(fe):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==se?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pe(e.ssContent),ssFallback:e.ssFallback&&pe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}functionfe(e){constt=pe(e);returnp(e.children)&&(t.children=e.children.map(fe)),t}functionve(e=" ",t=0){returnle(re,null,e,t)}functionme(e,t){letn=0;const{shapeFlag:i}=e;if(null==t)t=null;elseif(p(t))n=16;elseif("object"==typeoft){if(65&i){constn=t.default;returnvoid(n&&(n._c&&(n._d=!1),me(e,n()),n._c&&(n._d=!0)))}{n=32;conste=t._;e||ceint||(t._ctx=ne)}}elsef(t)?(t={default:t,_ctx:ne},n=32):(t=String(t),64&i?(n=16,t=[ve(t)]):n=8);e.children=t,e.shapeFlag|=n}letge,ye=null,ke="__VUE_INSTANCE_SETTERS__";(ge=y()[ke])||(ge=y()[ke]=[]),ge.push((e=>ye=e));constbe=/(?:^|[-_])(\w)/g;functionxe(e,t=!0){returnf(e)?e.displayName||e.name:e.name||t&&e.__name}functionNe(e,t,n=!1){leti=xe(t);if(!i&&t.__file){conste=t.__file.match(/([^/\\]+)\.\w+$/);e&&(i=e[1])}if(!i&&e&&e.parent){constn=e=>{for(constnine)if(e[n]===t)returnn};i=n(e.components||e.parent.type.components)||n(e.appContext.components)}returni?i.replace(be,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}functionCe(e){returnf(e)&&"__vccOpts"ine}functionEe(e){return!(!e||!e.__v_isShallow)}"production"!==process.env.NODE_ENV&&function(){if("production"===process.env.NODE_ENV||"undefined"==typeofwindow)return;conste={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},i={style:"color:#9d288c"},s={header:t=>m(t)?t.__isVue?["div",e,"VueInstance"]:O(t)?["div",{},["span",e,l(t)],"<",a(t.value),">"]:w(t)?["div",{},["span",e,Ee(t)?"ShallowReactive":"Reactive"],"<",a(t),">"+(_(t)?" (readonly)":"")]:_(t)?["div",{},["span",e,Ee(t)?"ShallowReadonly":"Readonly"],"<",a(t),">"]:null:null,hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...r(e.$)]}};functionr(e){constt=[];e.type.props&&e.props&&t.push(o("props",S(e.props))),e.setupState!==c&&t.push(o("setup",e.setupState)),e.data!==c&&t.push(o("data",S(e.data)));constn=d(e,"computed");n&&t.push(o("computed",n));consts=d(e,"inject");returns&&t.push(o("injected",s)),t.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}functiono(e,t){returnt=u({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map((e=>["div",{},["span",i,e+": "],a(t[e],!1)]))]]:["span",{}]}functiona(e,s=!0){return"number"==typeofe?["span",t,e]:"string"==typeofe?["span",n,JSON.stringify(e)]:"boolean"==typeofe?["span",i,e]:m(e)?["object",{object:s?S(e):e}]:["span",n,String(e)]}functiond(e,t){constn=e.type;if(f(n))return;consti={};for(constsine.ctx)h(n,s,t)&&(i[s]=e.ctx[s]);returni}functionh(e,t,n){consti=e[n];return!!(p(i)&&i.includes(t)||m(i)&&tini)||!(!e.extends||!h(e.extends,t,n))||!(!e.mixins||!e.mixins.some((e=>h(e,t,n))))||void0}functionl(e){returnEe(e)?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}();varwe=function(e,t){varn=t.store.slots[e];if(n){vari=n.node.cloneNode(!0);i.classList.add("vs-tree-text"),i.setAttribute("tree-node-id",t.id),t.__buffer={};vars="\n var ".concat(n.scope," = _;\n ");returnn.text.replace(n.interpolate,(function(e,t){s+="_.__buffer['".concat(e,"'] = ").concat(t,";")})),newFunction("_",s).call(t,t),i.innerText=i.innerText.replace(n.interpolate,(function(e){returnt.__buffer[e]})).replace(/\n/g,""),i}return!1},_e=0,Le=function(){functione(i){if(n(this,e),this.id=_e++,this.checked=!1,this.expanded=!1,this.indeterminate=!1,this.visbile=!1,this.disabled=!1,this.loaded=!1,this.isLeaf=!1,this.level=0,this.childNodes=[],this.store=i.store,this.parent=i.parent,this.originData=i.data,this.customNodeClick=i.customNodeClick,this.__buffer={},this.data=Object.assign({},i.data),"function"==typeofthis.store.format&&!i.data._vsroot){vars=this.store.format(Object.assign({},i.data),this);if("object"!==t(s))thrownewError("format must return object! \nformat: function(data) {\n return {id, name, children, isLeaf}\n}");for(varr=["id","name","children","isLeaf","icon","extra"],o=0,a=r.length;o<a;o++)Object.prototype.hasOwnProperty.call(s,r[o])&&(this.data[r[o]]=s[r[o]])}this.store.checkInherit&&this.parent&&(this.checked=this.parent.checked),this.store.checkedKeys&&this.store.checkedKeys.includes(this.data.id)&&(this.checked=this.store.checkedKeys.includes(this.data.id)||this.checked),this.store.disabledInherit&&this.parent&&(this.disabled=this.parent.disabled),this.store.expandKeys.includes(this.data.id)&&(this.expanded=!0),this.store.disabledKeys.includes(this.data.id)&&(this.disabled=!0),this.parent&&(this.level=this.parent.level+1),this.data&&this.setData(this.data),this.initData()}returns(e,[{key:"initData",value:function(){vare;!(this.level>this.store.expandLevel&&-1!==this.store.expandLevel)||null!==(e=this.parent)&&void0!==e&&e.expanded?this.visbile=!0:this.visbile=!1}},{key:"createNode",value:function(){vare=this;if(this.dom)returnthis.checkboxNode&&(this.checkboxNode.checked=this.checked),this.radioNode&&(this.radioNode.checked=this.checked),this.indeterminate&&this.dom.classList.add("is-indeterminate"),this.dom;vart=document.createElement("div");t.className="vs-tree-node ".concat(this.isLeaf?"vs-tree-node--leaf":"vs-tree-node--noLeaf"),t.setAttribute("vs-index",this.id),this.indeterminate&&t.classList.add("is-indeterminate"),!this.isLeaf&&this.childNodes.length&&t.setAttribute("vs-child",!0),t.appendChild(this.createInner());varn=we("append",this);returnn?t.appendChild(n):this.store.renderContent&&t.appendChild(this.createContent()),t.addEventListener("click",(function(n){e.store.highlightCurrent&&(e.store.selectedCurrent&&e.store.selectedCurrent.dom.classList.remove("selected"),t.classList.add("selected")),e.store.selectedCurrent=e,n.stopPropagation(),e.customNodeClick?e.customNodeClick(n,e):(!e.store.checkOnClickNode||e.disabled||e.store.breadcrumb&&!e.isLeaf||e.handleCheckChange({target:{checked:!e.checked}}),e.store.breadcrumb&&!e.isLeaf&&(e.store.breadcrumb.list.push(e),e.setExpand(!0)),e.store.click(n,e))}),{passive:!1}),t.addEventListener("contextmenu",(function(t){e.store.contextmenu&&"function"==typeofe.store.contextmenu&&(t.stopPropagation(),t.preventDefault(),e.store.contextmenu(t,e))})),this.store.draggable&&this.createDragable(t),this.dom=t,t}},{key:"createInner",value:function(){vare=document.createElement("div");e.className="vs-tree-inner";vart,n=this.level+(this.store.hideRoot?-1:0);if(this.store.breadcrumb&&(n=0),this.store.showLine)for(vari=0;i<n;i++){vars=document.createElement("span");s.className="vs-indent-unit",e.appendChild(s)}elsee.style.paddingLeft=n*this.store.indent+"px";if(this.store.breadcrumb)this.loadingEl=document.createElement("span"),this.loadingEl.className="vs-loading-unit",e.appendChild(this.loadingEl);else{varr;if(this.store.strictLeaf)t=this.isLeaf?this.createExpandEmpty():this.createExpand();elset=(null!==(r=this.childNodes)&&void0!==r&&r.length||this.store.lazy)&&!this.isLeaf?this.createExpand():this.createExpandEmpty();e.appendChild(t)}return(this.store.showCheckbox||this.store.showRadio)&&(!this.store.nocheckParent||this.isLeaf&&!this.childNodes.length)&&e.appendChild(this.createCheckbox()),this.store.showIcon&&(this.store.onlyShowLeafIcon&&this.childNodes.length&&!this.isLeaf||e.appendChild(this.createIcon())),e.appendChild(this.createText()),e}},{key:"cusmtomNode",value:function(e,t){varn=this,i=document.createElement(e);returnt.text&&(i.innerText=t.text),t.className&&(i.className=t.className),t.children&&t.children.forEach((function(e){i.appendChild(e)})),"function"==typeoft.click&&i.addEventListener("click",(function(e){e.stopPropagation(),t.click(e,n)}),{passive:!1}),i}},{key:"createContent",value:function(){vare=this.store.renderContent(this.cusmtomNode.bind(this),this);returne?(e.addEventListener("click",(function(e){e.stopPropagation()}),{passive:!1}),e):document.createElement("span")}},{key:"createExpandEmpty",value:function(){vare=document.createElement("span");returne.className="expand-empty "+this.store.expandClass,e}},{key:"createExpand",value:function(){vare=this,t=document.createElement("span");returnt.className="expand "+this.store.expandClass,(this.level<this.store.expandLevel||-1===this.store.expandLevel||this.expanded)&&(t.classList.add("expanded"),this.expanded=!0),t.addEventListener("click",(function(n){if(n.stopPropagation(),!e.loading){vari=!t.classList.contains("expanded");e.setExpand(i)}}),{passive:!1}),this.expandEl=t,t}},{key:"createCheckbox",value:function(){vare=this,t="checkbox";this.store.showRadio&&(t="radio");varn=document.createElement("label");n.className="vs-".concat(t);vari=document.createElement("span");i.className="vs-".concat(t,"__inner");vars=document.createElement("input");returns.type=t,s.checked=this.checked,s.disabled=this.disabled,s.className="vs-".concat(t,"__original"),s.name="radio"===t?"vs-radio"+(this.store.radioParentoOnly&&this.parent?this.parent.id:""):"vs-checkbox","radio"===t?(s.name="vs-radio"+(this.store.radioParentoOnly&&this.parent?this.parent.id:""),this.radioNode=s):(s.name="vs-checkbox",this.checkboxNode=s),n.appendChild(s),n.appendChild(i),n.addEventListener("click",(function(e){e.stopPropagation()}),{passive:!1}),s.addEventListener("click",(function(t){e.store.check(t,e)}),{passive:!1}),s.addEventListener("change",(function(t){t.stopPropagation(),e.handleCheckChange(t)})),this.checkboxEl=s,n}},{key:"handleCheckChange",value:function(e){vart=e.target.checked;if("function"!=typeofthis.store.beforeCheck||this.store.beforeCheck(this)){if(t&&this.store.checkMaxNodes(this))returnthis.store.limitAlert(),void(e.target.checked=!1);this.store.showRadio?this.updateRadioChecked(t):(this.updateChecked(t),this.updateCheckedParent(t)),this.store._change(this)}elsee.target.checked=!t}},{key:"createText",value:function(){vare=we("name",this);if(e)returne;vart=document.createElement("span");returnt.innerText=this.data.name,t.className="vs-tree-text",t}},{key:"createIcon",value:function(){vare=document.createElement("span");returne.className=this.isLeaf&&!this.childNodes.length?"vs-icon-leaf":"vs-icon-parent",this.data.icon&&(this.data.iconinstanceofHTMLElement?(e.style.backgroundImage="none",e.appendChild(this.data.icon)):e.classList.add(this.data.icon)),e}},{key:"setData",value:function(t){varn;this.store.dataMap.set(t.id,this),this.store.nodeMap.set(this.id,this),this.data=t,this.childNodes=[],"boolean"==typeoft.isLeaf?this.isLeaf=t.isLeaf:t.children||this.store.lazy||(this.isLeaf=!0),(n=0===this.level&&this.datainstanceofe?this.data:this.data.children||[]).length&&(this.loaded=!0);for(vari=0,s=n.length;i<s;i++)this.insertChild({data:n[i]})}},{key:"insertChild",value:function(t,n){returntinstanceofe||(Object.assign(t,{parent:this,store:this.store,customNodeClick:this.customNodeClick}),t=newe(t)),t.level=this.level+1,void0===n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),t}},{key:"insertBefore",value:function(e,t){varn;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}},{key:"insertAfter",value:function(e,t){varn;t&&-1!==(n=this.childNodes.indexOf(t))&&(n+=1),this.insertChild(e,n)}},{key:"updateExpand",value:function(e){vart=this;this.childNodes.length&&this.childNodes.forEach((function(n){e&&t.expanded?n.visbile=!0:n.visbile=!1,n.updateExpand(e)}))}},{key:"updateChecked",value:function(e,t){!t&&this.disabled||this.store.showCheckbox&&(this.checked=e,this.sortId=Date.now(),this.checkboxNode&&(this.checkboxNode.checked=e),this.dom&&this.dom.classList.remove("is-indeterminate"),this.store.allowEmit(e,"p")&&this.parent&&(this.parent.indeterminate=!1),this.store.allowEmit(e,"s")&&this.childNodes.length&&this.childNodes.forEach((function(t){t.updateChecked(e)})))}},{key:"updateCheckedParent",value:function(e,t){if((t||!this.disabled)&&this.store.showCheckbox&&this.store.allowEmit(e,"p")&&this.parent&&!this.store.nocheckParent){varn=this.parent.childNodes.every((function(e){returne.checked})),i=this.parent.childNodes.some((function(e){returne.checked||e.indeterminate}));n?(this.parent.checked=!0,this.parent.indeterminate=!1,this.parent.checkboxNode&&(this.parent.checkboxNode.checked=!0),this.parent.dom&&this.parent.dom.classList.remove("is-indeterminate")):i?(this.parent.checked=!1,this.parent.indeterminate=!0,this.parent.checkboxNode&&(this.parent.checkboxNode.checked=!1),this.parent.dom&&this.parent.dom.classList.add("is-indeterminate")):(this.parent.checked=!1,this.parent.indeterminate=!1,this.parent.checkboxNode&&(this.parent.checkboxNode.checked=!1),this.parent.dom&&this.parent.dom.classList.remove("is-indeterminate")),this.parent.updateCheckedParent()}}},{key:"updateRadioChecked",value:function(e,t){!t&&this.disabled||(!this.store.nocheckParent||!this.childNodes.length&&this.isLeaf)&&(this.store.radioParentoOnly?(this.store.radioMap[this.parent.id]&&(this.store.radioMap[this.parent.id].checked=!1),this.store.radioMap[this.parent.id]=this):(this.store.radioNode&&(this.store.radioNode=!1),this.store.radioNode=this),this.checked=e,this.radioNode&&(this.radioNode.checked=e))}},{key:"setChecked",value:function(e,t){e&&this.store.checkMaxNodes(this)?this.store.limitAlert():this.store.showRadio?this.updateRadioChecked(e,t):this.store.showCheckbox&&(this.updateChecked(e,t),this.updateCheckedParent(e,t),this.store._change(this))}},{key:"setDisabled",value:function(){vare=!(arguments.length>0&&void0!==arguments[0])||arguments[0];this.disabled=e,this.checkboxEl&&(this.checkboxEl.disabled=e)}},{key:"setExpand",value:function(e,t){varn=this;this.expanded=e,this.updateExpand(this.expanded),this.setAccordion(e),this.expandEl&&(e?this.expandEl.classList.add("expanded"):this.expandEl.classList.remove("expanded")),this.store.lazy&&!this.loaded?this.loadData((function(e){e&&!t&&n.storeUpdate()})):!t&&this.storeUpdate()}},{key:"storeUpdate",value:function(){this.store.animation?this.createAnimation():this.store.update()}},{key:"createAnimation",value:function(){vare=this;this.transitionNode&&this.transitionNode.parentNode&&this.transitionNode.parentNode.removeChild(this.transitionNode);vart,n,i,s=document.createElement("div");if(s.className="vs-transition",this.childNodes.length>this.store.showCount)for(varr=0;r<this.store.showCount-1;r++){varo=this.childNodes[r];s.appendChild(o.dom||o.createNode())}elsethis.childNodes.forEach((function(e){s.appendChild(e.dom||e.createNode())}));t=s,n=this.dom,(i=n.parentNode)&&(i.lastChild===n?i.appendChild(t):i.insertBefore(t,n.nextSibling));vara=(this.childNodes.length>this.store.showCount?this.store.showCount:this.childNodes.length)*this.store.itemHeight+"px";this.expanded?setTimeout((function(){s.style.height=a}),0):(s.style.height=a,setTimeout((function(){s.style.height=0}),0));s.addEventListener("transitionend",(functiont(){s.removeEventListener("transitionend",t),s.parentNode&&s.parentNode.removeChild(s),s.removeEventListener("transitionend",t),e.store.update()})),this.transitionNode=s}},{key:"createDragable",value:function(e){vart=this;functionn(e){e&&(e.classList.remove("vs-drag-enter"),e.classList.remove("vs-drag-over-gap-bottom"),e.classList.remove("vs-drag-over-gap-top"))}e.draggable=!0,e.addEventListener("dragstart",(function(e){e.stopPropagation(),t.store.dragNode=t,t.store.onDragstart(e,t);try{e.dataTransfer.setData("text/plain","")}catch(e){}})),e.addEventListener("dragover",(function(e){e.preventDefault()})),e.addEventListener("dragenter",(function(e){e.stopPropagation(),e.preventDefault(),n(t.store.dropNode);vari=t.dom;if(i){vars=function(e,t){varn=t.getBoundingClientRect().top,i=t.offsetHeight,s=e.pageY;returns>n+i-i?1:s<n+2?-1:0}(e,i);if((t.store.dragNode.dom!==i||0!==s)&&(t.store.dropPostion=s,t.store.dropNode=i,t.store.onDragenter(e,t,i,s),t.store.dropable)){if(t.expanded||t.isLeaf||t.setExpand(!0),-1===s)returnvoidi.classList.add("vs-drag-over-gap-top");if(1===s)returnvoidi.classList.add("vs-drag-over-gap-bottom");t.isLeaf||i.classList.add("vs-drag-enter")}}})),e.addEventListener("dragleave",(function(e){t.store.dropable&&n(e.target)})),e.addEventListener("drop",(function(e){if(e.stopPropagation(),t.store.onDrop(e,t,t.store.dropPostion),t.store.dropable){n(t.store.dropNode);vari=t.store.dragNode;if(i&&t.parent){vars=Object.assign({},i.data);if(i.remove(),!s)return;-1===t.store.dropPostion?(t.parent.insertBefore({data:s},t),t.updateCheckedParent(),t.store.updateNodes()):1===t.store.dropPostion?(t.parent.insertAfter({data:s},t),t.updateCheckedParent(),t.store.updateNodes()):t.isLeaf||t.append(s)}}}))}},{key:"setAccordion",value:function(e){if(this.store.accordion&&this.parent&&e){vart=this.store.expandMap[this.parent.id];if(t===this)return;t&&t.setExpand(!1),this.store.expandMap[this.parent.id]=this}}},{key:"loadData",value:function(e){vart=this;if(!this.loading){this.loading=!0,this.expandEl?this.expandEl.classList.add("is-loading"):this.loadingEl&&this.loadingEl.classList.add("is-loading");this.store.load(this,(function(){varn=arguments.length>0&&void0!==arguments[0]?arguments[0]:[];t.loaded=!0,t.loading=!1,t.expandEl?t.expandEl.classList.remove("is-loading"):t.loadingEl&&t.loadingEl.classList.remove("is-loading"),n.length&&(n.forEach((function(e){t.insertChild({data:e,store:t.store})})),t.childNodes[0].updateCheckedParent(),t.store.updateNodes()),e&&e.call(t,n)}))}}},{key:"remove",value:function(){vare=this,t=this.parent;if(t){varn=t.childNodes||[],i=n.findIndex((function(t){returnt.id===e.id}));i>-1&&n.splice(i,1),this.store.updateNodes()}}},{key:"append",value:function(e){if(e&&"object"===t(e)){varn=this.dom;0!==this.childNodes.length&&(n=null);vari=this.insertChild({data:e,store:this.store});this.data.children?this.data.children.push(e):this.data.children=[e],this.isLeaf=!1,n&&(deletethis.dom,n.parentNode.replaceChild(this.createNode(),n)),i.updateCheckedParent(),this.store.updateNodes()}}}]),e}(),Se=function(){functione(t){for(variinn(this,e),t)Object.prototype.hasOwnProperty.call(t,i)&&(this[i]=t[i]);this.nodes=[],this.dataMap=newMap,this.nodeMap=newMap,this.radioMap={},this.expandMap={},this.root=newLe({data:this.data,store:this,customNodeClick:this.customNodeClick}),this.updateNodes(),this.breadcrumb&&this.breadcrumb.list.push(this.root),this.changeNodes=[]}returns(e,[{key:"setData",value:function(e){this.root.childNodes=[],this.root.setData(e),this.updateNodes()}},{key:"updateNodes",value:function(){this.nodes=this.flattenTreeData(),this.nodesChange(this.nodes)}},{key:"flattenTreeData",value:function(){vare=[];returnfunctiont(n){if(e.push(n),n.childNodes&&n.childNodes.length)for(vari=0,s=n.childNodes.length;i<s;i++)t(n.childNodes[i])}(this.root),e}},{key:"getNodeById",value:function(e){returnthis.dataMap.get(e)}},{key:"getCheckedNodes",value:function(){vare=this,t=arguments.length>0&&void0!==arguments[0]&&arguments[0],n=this.nodes.filter((function(t){returnt.checked&&!t.data._vsroot&&e._checkVerify(t)&&(!e.nocheckParent||!t.childNodes.length)}));if(this.sort){vari=n.sort((function(e,t){returne.sortId-t.sortId}));returnt?i:i.map((function(e){returne.data}))}returnt?n:n.map((function(e){returne.data}))}},{key:"setDefaultChecked",value:function(){vare=this;this.checkedKeys.forEach((function(t){varn=e.getNodeById(t);n?n.setChecked(!0,!0):console.warn("not found node by "+t)}))}},{key:"checkMaxNodes",value:function(e){if(!this.max)return!1;if(!e.checked&&e.hasChildCount>this.max)return!0;vart=this.getCheckedNodes().length;return!e.checked&&t+(e.isLeaf?1:this.getUnCheckLeafsCount(e))>this.max}},{key:"getUnCheckLeafsCount",value:function(e){vart=this,n=this._checkVerify(e)&&!e.checked?1:0;returne.childNodes.forEach((function(e){n+=t.getUnCheckLeafsCount(e)})),n}},{key:"allowEmit",value:function(e,t){varn=this.checkboxType,i=n.Y,s=n.N;if(e){if(!i.includes(t))return!1}elseif(!s.includes(t))return!1;return!0}},{key:"_checkVerify",value:function(e){return"function"==typeofthis.checkFilter?this.checkFilter(e):!this.checkFilterLeaf||e.isLeaf}},{key:"_change",value:function(e){vart=this;this.changeNodes.push(e),this._changeTimer&&clearTimeout(this._changeTimer),this._changeTimer=setTimeout((function(){t.change(t.changeNodes),t.changeNodes=[]}),0)}}]),e}(),Oe="FRONT",Ie="BEHIND",De="INIT",Te="FIXED",Fe=function(){functione(t,i){n(this,e),this.init(t,i)}returns(e,[{key:"init",value:function(e,t){this.param=e,this.callUpdate=t,this.sizes=newMap,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=De,this.offset=0,this.direction="",this.range=Object.create(null),e&&this.checkRange(0,e.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){vare=Object.create(null);returne.start=this.range.start,e.end=this.range.end,e.padFront=this.range.padFront,e.padBehind=this.range.padBehind,e}},{key:"isBehind",value:function(){returnthis.direction===Ie}},{key:"isFront",value:function(){returnthis.direction===Oe}},{key:"getOffset",value:function(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize}},{key:"updateParam",value:function(e,t){varn=this;this.param&&einthis.param&&("uniqueIds"===e&&this.sizes.forEach((function(e,i){t.includes(i)||n.sizes.delete(i)})),this.param[e]=t)}},{key:"handleDataSourcesChange",value:function(){vare=this.range.start;this.isFront()?e-=2:this.isBehind()&&(e+=2),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(e){this.direction=e<this.offset?Oe:Ie,this.offset=e,this.param&&(this.direction===Oe?this.handleFront():this.direction===Ie&&this.handleBehind())}},{key:"handleFront",value:function(){vare=this.getScrollOvers();if(!(e>this.range.start)){vart=Math.max(e-this.param.buffer,0);this.checkRange(t,this.getEndByStart(t))}}},{key:"handleBehind",value:function(){vare=this.getScrollOvers();e<this.range.start+this.param.buffer||this.checkRange(e,this.getEndByStart(e))}},{key:"getScrollOvers",value:function(){vare=this.offset-this.param.slotHeaderSize;if(e<=0)return0;if(this.isFixedType())returnMath.floor(e/this.fixedSizeValue);for(vart=0,n=0,i=0,s=this.param.uniqueIds.length;t<=s;){if(n=t+Math.floor((s-t)/2),(i=this.getIndexOffset(n))===e)returnn;i<e?t=n+1:i>e&&(s=n-1)}returnt>0?--t:0}},{key:"getIndexOffset",value:function(e){if(!e)return0;for(vart=0,n=0,i=0;i<e;i++)t+="number"==typeof(n=this.sizes.get(this.param.uniqueIds[i]))?n:this.getEstimateSize();returnthis.lastCalcIndex=Math.max(this.lastCalcIndex,e-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),t}},{key:"isFixedType",value:function(){returnthis.calcType===Te}},{key:"getLastIndex",value:function(){returnthis.param.uniqueIds.length-1}},{key:"checkRange",value:function(e,t){varn=this.param.keeps;this.param.uniqueIds.length<=n?(e=0,t=this.getLastIndex()):t-e<n-1&&(e=t-n+1),this.range.start!==e&&this.updateRange(e,t)}},{key:"updateRange",value:function(e,t){this.range.start=e,this.range.end=t,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(e){vart=e+this.param.keeps-1;returnMath.min(t,this.getLastIndex())}},{key:"getPadFront",value:function(){returnthis.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){vare=this.range.end,t=this.getLastIndex();returnthis.isFixedType()?(t-e)*this.fixedSizeValue:this.lastCalcIndex===t?this.getIndexOffset(t)-this.getIndexOffset(e):(t-e)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){returnthis.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),Re=function(){functione(t){n(this,e),this.range=null,this.$el=t.root,this.$el.style.maxHeight="number"==typeoft.maxHeight?t.maxHeight+"px":t.maxHeight,this.$el.style.minHeight="number"==typeoft.minHeight?t.minHeight+"px":t.minHeight,this.$el.style.overflowY="auto",this.dataSources=t.data,this.wrapper=document.createElement("div"),this.wrapper.className="vs-virtual-list",this.$el.appendChild(this.wrapper),this.$el.addEventListener("scroll",this.onScroll.bind(this),{passive:!1}),this.keeps=t.keeps||20,this.estimateSize=t.estimateSize||26,this.dataKey="id",this.installVirtual()}returns(e,[{key:"getOffset",value:function(){vare=this.$el;returne?Math.ceil(e.scrollTop):0}},{key:"getClientSize",value:function(){vare=this.$el;returne?Math.ceil(e.clientHeight):0}},{key:"getScrollSize",value:function(){vare=this.$el;returne?Math.ceil(e.scrollHeight):0}},{key:"scrollToIndex",value:function(e){if(e>=this.dataSources.length-1)this.scrollToBottom();else{vart=this.virtual.getOffset(e);this.scrollToOffset(t)}}},{key:"reset",value:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()}},{key:"installVirtual",value:function(){this.virtual=newFe({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged.bind(this)),this.range=this.virtual.getRange(),this.render()}},{key:"getUniqueIdFromDataSources",value:function(){vare=this.dataKey;returnthis.dataSources.map((function(t){return"function"==typeofe?e(t):t[e]}))}},{key:"onRangeChanged",value:function(e){this.range=e,this.render()}},{key:"onScroll",value:function(){vare=this.getOffset(),t=this.getClientSize(),n=this.getScrollSize();e<0||e+t>n+1||!n||this.virtual.handleScroll(e)}},{key:"getRenderSlots",value:function(){vare=this.range,t=e.start,n=e.end,i=this.dataSources,s=this.dataKey;this.wrapper.innerHTML="";for(varr=t;r<=n;r++){varo=i[r];if(o){vara="function"==typeofs?s(o):o[s];if("string"==typeofa||"number"==typeofa){varc=o.createNode();if(o.store.onlySearchLeaf?c.classList.add("vs-search-only-leaf"):c.classList.remove("vs-search-only-leaf"),o.store.isSearch&&o.store.searchRender){vard=o.store.searchRender(o,c.cloneNode(!0));if(!(dinstanceofHTMLElement))throwError("searchRender must return HTMLElement");this.wrapper.appendChild(d)}elsethis.wrapper.appendChild(c)}elseconsole.warn("Cannot get the data-key '".concat(s,"' from data-sources."))}elseconsole.warn("Cannot get the index '".concat(r,"' from data-sources."))}}},{key:"update",value:function(e){this.dataSources=e,this.wrapper.innerHTML="",this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()}},{key:"render",value:function(){vare=this.range,t=e.padFront,n=e.padBehind,i="".concat(t,"px 0px ").concat(n,"px");this.wrapper.style.padding=i,this.getRenderSlots()}}]),e}(),Me=function(){functione(t,i){n(this,e),this.node=t,this.data=t.data,this.store=t.store,this.parent=i;vars=this.parent.options,r=s.icon,o=s.link,a=s.separator,c=void0===a?"/":a;this.renderIcon=r,this.renderLink=o,this.renderSeparator=c}returns(e,[{key:"createDom",value:function(){vare=this,t=this.parent.list,n=t.findIndex((function(t){returnt===e.node})),i=n===t.length-1,s=document.createElement("span");if(this.renderIcon){varr=this.createIcon();r&&s.appendChild(r)}returns.appendChild(this.createLink(t,n,i)),i||s.appendChild(this.createSeparator()),s}},{key:"createIcon",value:function(){vare;if(!(e="function"==typeofthis.renderIcon?this.renderIcon(this.node,this.data):this.renderIcon))return!1;vart=document.createElement("span");returnt.className="vs-breadcrumb-icon","function"==typeofthis.renderIcon?einstanceofHTMLElement?t.appendChild(e):t.innerHTML=e:t.innerHTML=this.renderIcon,t}},{key:"createLink",value:function(e,t,n){vari=this,s=document.createElement("span");if(s.className="vs-breadcrumb-link","function"==typeofthis.renderLink){varr=this.renderLink(this.node,this.data);rinstanceofHTMLElement?s.appendChild(r):s.innerHTML=r}elses.innerHTML=this.data.name;returns.addEventListener("click",(function(s){s.preventDefault(),s.stopPropagation(),n||(e.splice(t+1),i.store.update())})),s}},{key:"createSeparator",value:function(){vare=document.createElement("span");returne.className="vs-breadcrumb-separator","function"==typeofthis.renderSeparator?e.innerHTML=this.renderSeparator(this.node,this.data):e.innerHTML=this.renderSeparator,e}}]),e}(),Pe=function(){functione(t){n(this,e),this.list=[],this.options=t}returns(e,[{key:"renderBreadcrumb",value:function(){vare=this;this.store=this.current.store;vart,n=this.options,i=n.el,s=n.change,r=void0===s?function(){}:s;iinstanceofHTMLElement?t=i:i&&"string"==typeofi&&(t=document.querySelector(i)),t||(t=document.createElement("section")),t.classList.add("vs-breadcrumb");varo=this.list.map((function(t){returnnewMe(t,e).createDom()}));t.innerHTML="",o.forEach((function(e){t.appendChild(e)})),r(t,this.list,this.current)}},{key:"current",get:function(){returnthis.list[this.list.length-1]}}]),e}(),He=function(){},$e=function(){functione(i,s){varr=this;if(n(this,e),this.$el="string"==typeofi?document.querySelector(i):i,!(this.$elinstanceofHTMLElement))throwError("请为组件提供根节点");this.$el.classList.add("vs-tree"),s.breadcrumb&&this.$el.classList.add("vs-tree-breadcrumb");varo=["#\\[\\[","\\]\\]"],a=o[0]+"([\\s\\S]+?)"+o[1];this.interpolate=newRegExp(a,"igm");varc={},d=this.$el.querySelectorAll("[tree-slot]");if(d&&d.length&&d.forEach((function(e){vart=e.attributes["tree-slot"].value,n=e.attributes["tree-slot-scope"].value;c[t]={scope:n,node:e,interpolate:r.interpolate,text:e.innerText,inner:e.outerHTML},e.parentNode.removeChild(e)})),s.theme&&this.$el.classList.add("vs-theme-"+s.theme),Array.isArray(s.data))this._data={_vsroot:!0,name:s.rootName||"---",children:s.data},s.rootName||(s.hideRoot=!0);else{if("object"!==t(s.data))throwError("参数data仅支持对象或数组!");this._data=s.data}this.nodes=[];varh=s.virtual||{},l=h.showCount,u=void0===l?20:l,p=h.itemHeight,f=void0===p?26:p,v=h.maxHeight,m=void0===v?"400px":v,g=h.minHeight,y=void0===g?"0px":g;this.itemHeight=f,this.showCount=u,this.maxHeight=s.maxHeight||m,this.minHeight=s.minHeight||y,this.data=[],this.keyword="",this.searchFilter=s.searchFilter,this.ready=s.ready||He,"[object Object]"===Object.prototype.toString.call(s.breadcrumb)&&(this.$$breadcrumb=newPe(s.breadcrumb));vark=function(){r.store=newSe({data:r._data,max:s.max,slots:c,breadcrumb:r.$$breadcrumb||null,strictLeaf:s.strictLeaf||!1,showCount:r.showCount,itemHeight:r.itemHeight,hideRoot:s.hideRoot||!1,animation:s.animation||!1,expandLevel:"number"==typeofs.expandLevel?s.expandLevel:1,beforeCheck:s.beforeCheck||null,showLine:s.showLine||!1,showIcon:s.showIcon||!1,onlyShowLeafIcon:s.onlyShowLeafIcon||!1,showCheckbox:s.showCheckbox||!1,checkboxType:s.checkboxType||{Y:"ps",N:"ps"},checkInherit:s.checkInherit||!1,disabledInherit:s.disabledInherit||!1,showRadio:s.showRadio||!1,highlightCurrent:s.highlightCurrent||!1,checkFilterLeaf:s.checkFilterLeaf||!1,checkFilter:s.checkFilter||null,accordion:s.accordion||!1,draggable:s.draggable||!1,dropable:s.dropable||!1,lazy:s.lazy||!1,sort:s.sort||!1,indent:s.indent||10,checkedKeys:s.checkedKeys||[],expandKeys:s.expandKeys||[],disabledKeys:s.disabledKeys||[],limitAlert:s.limitAlert||He,click:s.click||He,check:s.check||He,change:s.change||He,load:s.load||He,contextmenu:s.contextmenu||null,radioParentoOnly:"level"===s.radioType?"level":"all",renderContent:s.renderContent||null,nocheckParent:s.nocheckParent||!1,checkOnClickNode:s.checkOnClickNode||!1,format:s.format||null,searchRender:s.searchRender||null,searchDisabledChecked:s.searchDisabledChecked||!1,expandClass:s.expandClass||"vs-expand-icon",onDragstart:s.onDragstart||He,onDragenter:s.onDragenter||He,onDrop:s.onDrop||He,customNodeClick:s.customNodeClick||void0,update:function(){r._render()},nodesChange:function(e){r.nodes=e,r.vlist&&r._render()}}),r.store.hideRoot&&r.store.root.createNode(),r._init(),r.store.setDefaultChecked()};s.async?setTimeout((function(){k()}),0):k()}returns(e,[{key:"_init",value:function(){this.vlist=newRe({root:this.$el,data:[],maxHeight:this.maxHeight,minHeight:this.minHeight,estimateSize:this.itemHeight,keeps:this.showCount}),this._render(),this.ready&&this.ready(this)}},{key:"_render",value:function(){vare=!(arguments.length>0&&void0!==arguments[0])||arguments[0];if(this.$$breadcrumb){vart=this.$$breadcrumb.current;this.data=this.nodes.filter((function(e){returne.parent&&e.parent.id===t.id})),this._keywordFilter(this.data),this.$$breadcrumb.renderBreadcrumb()}elsethis._keywordFilter(this.nodes);e&&this.vlist.update(this.data)}},{key:"_keywordFilter",value:function(e){vart=this;this.data=e.filter((function(e){returnt._hasKeyword(e)&&e.visbile&&!(t.store.hideRoot&&0===e.level)}))}},{key:"_hasKeyword",value:function(e){vart=this;if(!this.keyword)return!0;varn=this._checkFilter(e);returnn?e.parent&&(e.parent.requireExpand=!0):e.childNodes.forEach((function(e){n||(n=t._hasKeyword(e))})),n}},{key:"_checkFilter",value:function(e){if(this.keyword)return"function"==typeofthis.searchFilter?this.searchFilter(this.keyword,e,e.data):e.data.name&&e.data.name.includes(this.keyword)}},{key:"filter",value:function(){vare=this,t=arguments.length>0&&void0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void0;if(this.keyword=t,this.store.onlySearchLeaf=n&&!!t,this.store.isSearch=!!t,this.store.onlySearchLeaf){vari=this.nodes.filter((function(t){return!t.childNodes.length&&e._checkFilter(t)&&!(e.store.hideRoot&&0===t.level)}));returnthis.vlist.update(i),i}this._render(!1);for(vars=0,r=this.data.length;s<r;s++){varo=this.data[s];o.requireExpand&&(o.requireExpand=!1,o.setExpand(!0,!0))}returnthis._render(),this.data}},{key:"getNodeById",value:function(e){returnthis.store.getNodeById(e)}},{key:"getCheckedNodes",value:function(){vare;return(e=this.store).getCheckedNodes.apply(e,arguments)}},{key:"setMaxValue",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:0;this.store.max=e}},{key:"scrollToIndex",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:0;this.vlist.scrollToIndex(e)}},{key:"clearCheckedNodes",value:function(){this.getCheckedNodes(!0).forEach((function(e){e.setChecked(!1)}))}}]),e}(),je=e("VsTreeComponent",{props:{data:Array|Object,options:Object,async:Boolean,animation:Boolean,draggable:Boolean,dropable:Boolean,hideRoot:Boolean,showCheckbox:Boolean,checkboxType:Object,showRadio:Boolean,radioType:String,showLine:Boolean,showIcon:Boolean,onlyShowLeafIcon:Boolean,highlightCurrent:Boolean,accordion:Boolean,nocheckParent:Boolean,sort:Boolean,checkOnClickNode:Boolean,checkFilterLeaf:Boolean,strictLeaf:Boolean,rootName:String,max:Number,lazy:Boolean,load:Function,format:Function,disabledKeys:Array,checkedKeys:Array,expandKeys:Array,keyword:String,expandClass:String,theme:String,breadcrumb:Object,virtual:Object,expandLevel:{type:Number,default:1},indent:{type:Number,default:10},showCount:{type:Number,default:20},itemHeight:{type:Number,default:26},maxHeight:String,minHeight:String,beforeCheck:Function,renderContent:Function,checkFilter:Function,searchFilter:Function,searchRender:Function,onDragstart:Function,onDragenter:Function,onDrop:Function,customNodeClick:Function},data:function(){return{tree:{},id:null}},watch:{max:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:0;this.setMaxValue(e)},keyword:function(e){this.filter(e)}},created:function(){functione(){return(65536*(1+Math.random())|0).toString(16).substring(1)}this.id="tree".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())},mounted:function(){vare=this;this.$nextTick((function(){e._vsinit()}))},methods:{_vsinit:function(){vare=this;this.tree.tree=new$e("#"+this.id,Object.assign({},this.$props,a(a({},this.options),{},{data:this.data,click:function(t,n){e.$emit("click",t,n)},check:function(t,n){e.$emit("check",t,n)},change:function(t){e.$emit("change",t)},contextmenu:function(t,n){e.$emit("node-contextmenu",t,n)},limitAlert:function(){e.$emit("limit-alert")}}))),console.timeEnd("render:tree")},getNodeById:function(e){returnthis.tree.tree.getNodeById(e)},getCheckedNodes:function(){returnthis.tree.tree.getCheckedNodes()},filter:function(e){returnthis.tree.tree.filter(e)},setMaxValue:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:0;this.tree.tree.setMaxValue(e)}},render:function(){returnfunction(e,t,n){consti=arguments.length;return2===i?m(t)&&!p(t)?ae(t)?le(e,null,[t]):le(e,t):le(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&ae(n)&&(n=[n]),le(e,t,n))}("div",{id:this.id},this.$slots.default)}});e("default",{install:function(e){e.component("vs-tree",je)}}),e("version","0.1.0")}}}));