bkui-vue 2.0.2-beta.86 → 2.0.2-beta.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -40,7 +40,7 @@ ${jl(n)}`),r}})}function z_(e){const t=Object.keys(e),n=t.filter(i=>{var s;retur
40
40
  z-index:-1000 !important;
41
41
  top:0 !important;
42
42
  right:0 !important;
43
- `,yO=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function bO(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:yO.map(l=>`${l}:${t.getPropertyValue(l)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function U4(e,t=1,n){var m;Rr||(Rr=document.createElement("textarea"),document.body.appendChild(Rr));const{paddingSize:r,borderSize:i,boxSizing:s,contextStyle:l}=bO(e);Rr.setAttribute("style",`${l};${vO}`),Rr.value=e.value??"";let u=Rr.scrollHeight;const d={};s==="border-box"?u=u+i:s==="content-box"&&(u=u-r),Rr.value="";const h=Rr.scrollHeight-r;if(Number.isInteger(t)){let f=h*t;s==="border-box"&&(f=f+r+i),u=Math.max(f,u),d.minHeight=`${f}px`}if(Number.isInteger(n)){let f=h*n;s==="border-box"&&(f=f+r+i),u=Math.min(f,u)}return d.height=`${u}px`,(m=Rr.parentNode)==null||m.removeChild(Rr),Rr=void 0,d}const wO={type:v.string.def("text"),clearable:v.bool,disabled:v.bool,readonly:v.bool,placeholder:v.string.def(""),prefixIcon:v.string,suffixIcon:v.string,suffix:v.string,prefix:v.string,step:v.number,max:v.number,min:v.number,maxlength:v.number,maxcharacter:v.number,behavior:wf(),showWordLimit:v.bool,showControl:v.bool.def(!0),showClearOnlyHover:v.bool.def(!0),precision:v.number.def(0).validate(e=>e>=0&&e<20),modelValue:v.oneOfType([v.string,v.number]),size:v.size(),rows:v.number,selectReadonly:v.bool.def(!1),withValidate:v.bool.def(!0),overMaxLengthLimit:v.bool.def(!1),showOverflowTooltips:v.bool.def(!0),tooltipsOptions:{type:Object,default:()=>({})},resize:v.bool.def(!0),autosize:v.oneOfType([Boolean,Object]).def(!1),stopPropagation:v.bool.def(!0)};let dt=function(e){return e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.COMPOSITIONEND="compositionend",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.ENTER="enter",e.FOCUS="focus",e.INPUT="input",e.KEYDOWN="keydown",e.KEYPRESS="keypress",e.KEYUP="keyup",e.PASTE="paste",e.UPDATE="update:modelValue",e}({});function Oi(e,t){return!0}function CO(e,t){return!0}function d2(e){return e}const NO={[dt.UPDATE]:Oi,[dt.FOCUS]:e=>e,[dt.BLUR]:e=>e,[dt.CHANGE]:Oi,[dt.CLEAR]:()=>!0,[dt.INPUT]:Oi,[dt.KEYPRESS]:Oi,[dt.KEYDOWN]:Oi,[dt.KEYUP]:Oi,[dt.ENTER]:Oi,[dt.PASTE]:CO,[dt.COMPOSITIONSTART]:d2,[dt.COMPOSITIONUPDATE]:d2,[dt.COMPOSITIONEND]:d2},za=ut(a.defineComponent({name:"Input",directives:{bkTooltips:Qr},inheritAttrs:!1,props:wO,emits:NO,setup(e,t){const{resolveClassName:n}=Ae(),r=Tr(),i=St("input"),s=a.ref(!1),l=a.ref(!1),u=a.computed(()=>e.type==="textarea"),d=a.computed(()=>u.value?n("textarea"):n("input")),{class:h,style:m,...f}=t.attrs,p=a.ref(),y=a.ref(typeof e.modelValue>"u"||e.modelValue===null?{}:{value:e.modelValue}),b=a.computed(()=>Ze({[`${d.value}--${e.size}`]:!!e.size,resizable:e.resize,"is-focused":s.value,"is-readonly":e.readonly&&!e.selectReadonly,"is-disabled":e.disabled,"is-simplicity":e.behavior==="simplicity",[`${t.attrs.class}`]:!!t.attrs.class},d.value)),w=a.ref(!1),C=a.ref(),N=te("suffix-icon"),S={search:()=>a.createVNode(xi,null,null),password:()=>a.createVNode($c,{class:N,onClick:Ne},null)},x=a.computed(()=>{const he=S[e.type];return T.value?a.createVNode(ps,{class:N,onClick:Ne},null):he?a.createVNode(he,{class:N},null):null}),_=a.computed(()=>e.type==="number"),O=a.computed(()=>Math.floor(e.maxlength??e.maxcharacter??0)),T=a.ref(!1),I=a.computed(()=>Ze({"show-clear-only-hover":e.showClearOnlyHover,[`${d.value}--clear-icon`]:!0},N)),A=a.computed(()=>Ze({[te("max-length")]:!0,"is-over-limit":O.value-k.value<0})),P=he=>typeof e.maxcharacter=="number"?he.split("").reduce((j,X,we)=>(j.len+=X.charCodeAt(0)>255?2:1,j.len>e.maxcharacter&&j.pos===-1&&(j.pos=we),j),{len:0,pos:-1}):{len:he.length,pos:-1},k=a.computed(()=>{const he=e.modelValue??"";return P(he).len}),L=a.computed(()=>Ze({"is-disabled":e.disabled||e.modelValue>=e.max})),D=a.computed(()=>Ze({"is-disabled":e.disabled||e.modelValue<=e.min})),H=a.computed(()=>{var he;return B.value&&O.value-k.value===0?{content:i.value.maxlengthLimitTips,...e.tooltipsOptions||{}}:e.showOverflowTooltips&&w.value&&e.modelValue?{content:(he=e.modelValue)==null?void 0:he.toString(),sameWidth:!0,...e.tooltipsOptions||{}}:{disabled:!0,...e.tooltipsOptions||{}}}),B=a.computed(()=>typeof e.maxlength=="number"||typeof e.maxcharacter=="number");a.watch(()=>e.type,()=>{a.nextTick(W)}),a.watch(()=>e.modelValue,he=>{var j;e.withValidate&&((j=r==null?void 0:r.validate)==null||j.call(r,"change")),y.value={value:he},a.nextTick(W)}),a.onMounted(()=>{var he,j;a.nextTick(W),Object.prototype.hasOwnProperty.call(t.attrs,"autofocus")&&((j=(he=p.value)==null?void 0:he.focus)==null||j.call(he))}),t.expose({focus(){p.value.focus()},blur(){p.value.blur(),s.value=!1},clear:le});function W(){J(),K()}function J(){var j,X,we;const he=((j=p.value)==null?void 0:j.offsetParent)===null;if(!(!u.value||he||e.resize))if(e.autosize){const de=(X=e.autosize)==null?void 0:X.minRows,ne=(we=e.autosize)==null?void 0:we.maxRows,ge=U4(p.value,de,ne);C.value={overflowY:"hidden",...ge},a.nextTick(()=>{C.value=ge})}else C.value={minHeight:U4(p.value).minHeight}}function G(){var he,j;return((he=p.value)==null?void 0:he.scrollWidth)>((j=p.value)==null?void 0:j.clientWidth)+2}function K(){setTimeout(()=>{w.value=G()})}function le(){if(e.disabled)return;const he=_.value?e.min:"";t.emit(dt.UPDATE,he,null),t.emit(dt.CHANGE,he,null),t.emit(dt.CLEAR)}function ae(he){s.value=!0,t.emit(dt.FOCUS,he)}function $(he){var j;s.value=!1,t.emit(dt.BLUR,he),e.withValidate&&((j=r==null?void 0:r.validate)==null||j.call(r,"blur"))}function M(he){return j=>{if(e.stopPropagation&&j.stopPropagation(),B.value&&!e.overMaxLengthLimit){const X=P(j.target.value);if(X.len>=O.value&&(he===dt.KEYDOWN||he===dt.INPUT)&&!l.value){const we=X.pos>0?j.target.value.slice(0,X.pos):j.target.value;y.value={value:we},t.emit(dt.UPDATE,we,j),t.emit(dt.INPUT,we,j);return}}if(he===dt.KEYDOWN&&(j.code==="Enter"||j.key==="Enter"||j.keyCode===13)&&t.emit(dt.ENTER,_.value?Q(j.target.value,0):j.target.value,j),!(l.value&&[dt.INPUT,dt.CHANGE,dt.KEYDOWN].some(X=>he===X))){if(he===dt.INPUT)t.emit(dt.UPDATE,_.value?(()=>{const X=Number.isInteger(e.precision)?e.precision:0,we=j.target.value;return Number.isNaN(we)?pe(e.min)?e.min:0:we===""||we===null||we===void 0?"":(+we).toFixed(X)})():j.target.value,j);else if(he===dt.CHANGE&&_.value){const X=Q(j.target.value,0);t.emit(dt.UPDATE,X,j),t.emit(he,X,j);return}t.emit(he,_.value?Q(j.target.value,0):j.target.value,j)}}}const[V,z,q,se,ce,Ce]=[dt.KEYUP,dt.KEYDOWN,dt.KEYPRESS,dt.PASTE,dt.CHANGE,dt.INPUT].map(M);function re(){l.value=!0}function oe(he){l.value=!1,Ce(he)}function pe(he){return typeof he=="number"&&!Number.isNaN(he)}function Q(he,j,X=!0){const we=Number(j),de=pe(we)?we:1,ne=Number.isInteger(e.precision)?e.precision:0,ge=Number(he);if(Number.isNaN(ge))return pe(e.min)?e.min:0;let Se=ge+(X?de:-1*de);return pe(e.max)&&(Se=Math.min(Se,e.max)),pe(e.min)&&(Se=Math.max(Se,e.min)),+Se.toFixed(ne)}function Z(he){if(e.disabled)return;const j=Q(e.modelValue,e.step);t.emit(dt.UPDATE,j,he),t.emit(dt.CHANGE,j,he)}function Y(he){if(e.disabled)return;const j=Q(e.modelValue,e.step,!1);t.emit(dt.UPDATE,j,he),t.emit(dt.CHANGE,j,he)}function te(he){return`${d.value}--${he}`}function Ne(){T.value=!T.value}const ee=a.computed(()=>({maxlength:!e.overMaxLengthLimit&&e.maxlength,placeholder:e.placeholder||i.value.placeholder,readonly:e.readonly,disabled:e.disabled})),ye={onInput:Ce,onFocus:ae,onBlur:$,onPaste:se,onChange:ce,onKeypress:q,onKeydown:z,onKeyup:V,onCompositionstart:re,onCompositionend:oe};return()=>{var he,j,X,we;return a.withDirectives(a.createVNode("div",{style:m,class:b.value},[((j=(he=t.slots)==null?void 0:he.prefix)==null?void 0:j.call(he))??(e.prefix&&a.createVNode("div",{class:te("prefix-area")},[a.createVNode("span",{class:te("prefix-area--text")},[e.prefix])])),u.value?a.createVNode("textarea",a.mergeProps({ref:p,spellcheck:!1},f,ye,ee.value,{style:C.value,rows:e.rows},y.value),null):a.createVNode("input",a.mergeProps({spellcheck:!1},f,{ref:p,class:`${d.value}--text`,max:e.max,min:e.min,step:e.step,type:T.value&&e.type==="password"?"text":e.type},ye,ee.value,y.value),null),e.clearable&&!!e.modelValue&&a.createVNode("span",{class:I.value,onClick:le},[a.createVNode(Rn,null,null)]),x.value,B.value&&(e.showWordLimit||u.value)&&a.createVNode("p",{class:A.value},[e.overMaxLengthLimit?O.value-k.value:a.createVNode(a.Fragment,null,[k.value,a.createTextVNode(" / "),a.createVNode("span",null,[O.value])])]),_.value&&e.showControl&&a.createVNode("div",{class:te("number-control")},[a.createVNode(Do,{class:L.value,onClick:Z},null),a.createVNode(Do,{class:D.value,onClick:Y},null)]),((we=(X=t.slots)==null?void 0:X.suffix)==null?void 0:we.call(X))??(e.suffix&&a.createVNode("div",{class:te("suffix-area")},[a.createVNode("span",{class:te("suffix-area--text")},[e.suffix])]))]),[[a.resolveDirective("bk-tooltips"),H.value]])}}})),_O=a.defineComponent({name:"Card",props:{title:v.string,showHeader:v.bool.def(!0),showFooter:v.bool.def(!1),collapseStatus:v.bool.def(!0),border:v.bool.def(!0),disableHeaderStyle:v.bool.def(!1),position:v.string.def("left"),isEdit:v.bool.def(!1),isCollapse:v.bool.def(!1)},emits:["update:collapseStatus","edit"],setup(e,{emit:t}){const n=a.ref(!0),r=a.ref(!1),i=a.ref(""),s=()=>{e.isCollapse&&(n.value=!n.value,t("update:collapseStatus",n.value))},l=()=>{r.value=!r.value},u=()=>{r.value=!r.value,t("edit",i)};a.watch(()=>e.collapseStatus,m=>{e.isCollapse&&(n.value=m)},{immediate:!0}),a.watch(()=>e.title,m=>{i.value=m},{immediate:!0});const{resolveClassName:d}=Ae(),h=d("card");return{collapseActive:n,showInput:r,renderTitle:i,handleCollapse:s,saveEdit:u,clickEdit:l,wrapperClsName:h}},render(){var i,s,l,u;const e=Ze({[`${this.wrapperClsName}`]:!0,[`${this.wrapperClsName}-border-none`]:!this.$props.border},""),t=Ze({[`${this.wrapperClsName}-head`]:!0,[`${this.wrapperClsName}-head-${this.$props.position}`]:this.$props.isCollapse&&this.$props.position,"no-line-height":this.$props.disableHeaderStyle,collapse:!this.collapseActive},""),n=a.createVNode("div",{class:"title",title:this.renderTitle},[this.showInput?a.createVNode(za,{class:`${this.wrapperClsName}-input`,modelValue:this.renderTitle,"onUpdate:modelValue":d=>this.renderTitle=d,onBlur:this.saveEdit},null):this.renderTitle]),r=a.createVNode("span",{class:`${this.wrapperClsName}-icon`,onClick:this.handleCollapse},[this.collapseActive?a.createVNode(fs,null,null):a.createVNode(Wn,null,null)]);return a.createVNode("div",{class:e},[this.$props.showHeader?a.createVNode("div",{class:t},[this.$props.isCollapse&&(((s=(i=this.$slots).icon)==null?void 0:s.call(i))??r),((u=(l=this.$slots).header)==null?void 0:u.call(l))??n,this.$props.isEdit&&!this.showInput&&a.createVNode(Nc,{class:`${this.wrapperClsName}-edit`,onClick:this.clickEdit},null)]):"",a.createVNode(Yg,null,{default:()=>{var d,h,m,f;return[a.withDirectives(a.createVNode("div",null,[a.createVNode("div",{class:`${this.wrapperClsName}-body`},[((h=(d=this.$slots).default)==null?void 0:h.call(d))??"Content"]),this.$props.showFooter?a.createVNode("div",{class:`${this.wrapperClsName}-footer`},[((f=(m=this.$slots).footer)==null?void 0:f.call(m))??"Footer"]):""]),[[a.vShow,this.collapseActive]])]}})])}}),z4=ut(_O),Gc=Symbol("BkSelect"),j4=Symbol("BkOptionGroup");function W4(){const e=a.ref(!1);return{isHover:e,setHover:()=>{e.value=!0},cancelHover:()=>{e.value=!1}}}function f2(e){return{register:(r,i)=>{if(i)return e.value.set(r,i)},unregister:(r,i)=>{if(i){if(e.value.get(r)!==i)return;e.value.delete(r)}else e.value.delete(r)}}}function xO(e,t){const{popoverMinWidth:n}=e;let r=null;const i=a.ref("auto"),s=a.ref(!1),l=()=>{s.value=!s.value},u=()=>{s.value=!1},d=()=>{s.value=!0},h=()=>{var m;i.value=Math.max((m=t.value)==null?void 0:m.offsetWidth,n)};return a.onMounted(()=>{t.value&&(r=E_(t.value,h,60,!0),r.start())}),a.onBeforeUnmount(()=>{r==null||r.stop(),r=null}),{isPopoverShow:s,popperWidth:i,togglePopover:l,hidePopover:u,showPopover:d}}function SO(e,t){const n=a.ref(""),r=a.ref(""),i=a.computed(()=>r.value||n.value),s=a.ref(!1);return a.watch(i,async()=>{try{s.value=!0,await e(i.value),s.value=!1}catch(l){console.error(l)}finally{t==null||t()}}),{customOptionName:n,searchValue:r,curSearchValue:i,searchLoading:s}}function xs(e=""){return e&&String(e).trim().toLowerCase()}function TO(e,t){if(!e||!t)return!0;const{top:n,bottom:r}=e.getBoundingClientRect(),{top:i,bottom:s}=t.getBoundingClientRect();return n>=i&&r<=s}const q4=Symbol("CheckboxGroup");function EO(){const e=a.ref(!1);return[e,{blur:()=>{e.value=!1},focus:()=>{e.value=!0}}]}const OO=()=>{const e=a.getCurrentInstance(),{props:t,emit:n}=e,r=a.inject(q4,Hm),i=!Bm(r),s=a.ref(),l=a.ref(t.checked),u=a.ref(!1),d=a.computed(()=>i&&r.props.disabled?!0:t.disabled),h=p=>{const y=l.value?t.trueLabel:t.falseLabel;n("update:modelValue",y),n("change",y,p),i&&r.handleChange(),a.nextTick(()=>{s.value&&s.value.checked!==l.value&&(s.value.checked=l.value)})};i?a.watch(()=>r.props.modelValue,p=>{l.value=p.includes(t.label)},{deep:!0}):a.watch(()=>t.modelValue,p=>{p!==""&&(l.value=p===t.trueLabel)},{immediate:!0}),a.watch(()=>t.checked,()=>{l.value=t.checked,t.immediateEmitChange!==!1&&h()});const m=(p=!0)=>{l.value=p},f=p=>{if(t.readonly)return;const y=p.target;if(d.value||u.value)return;u.value=!0;const b=y.checked;Promise.resolve(t.beforeChange?t.beforeChange(b):!0).then(w=>{if(w)l.value=b,h(p);else return Promise.reject()}).catch(w=>{console.error(w),y.checked=l.value}).finally(()=>{u.value=!1})};return a.onMounted(()=>{i&&r.register(e.proxy)}),a.onBeforeUnmount(()=>{i&&r.unregister(e.proxy)}),{inputRef:s,isChecked:l,isPrechecking:u,isDisabled:d,setChecked:m,handleChange:f}},AO={modelValue:v.oneOfType([v.bool,v.string,v.number]),label:v.oneOfType([v.bool,v.string,v.number]),trueLabel:v.oneOfType([v.bool,v.string,v.number]).def(!0),falseLabel:v.oneOfType([v.bool,v.string,v.number]).def(!1),disabled:v.bool.def(!1),checked:v.bool.def(!1),indeterminate:v.bool,beforeChange:ss().def(()=>!0),size:v.size().def(vf.DEFAULT),immediateEmitChange:v.bool.def(!0),readonly:v.bool.def(!1),outline:v.bool.def(!1)},LO=a.defineComponent({name:"Checkbox",props:AO,emits:{"update:modelValue":e=>e!==void 0,change:(e,t)=>e!==void 0,click:e=>!0},setup(e){const[t,{blur:n,focus:r}]=EO(),{inputRef:i,isChecked:s,isPrechecking:l,isDisabled:u,setChecked:d,handleChange:h}=OO(),{resolveClassName:m}=Ae();return{inputRef:i,isFocus:t,isChecked:s,isPrechecking:l,isDisabled:u,setChecked:d,handleBlur:n,handleFocus:r,handleChange:h,size:e.size,resolveClassName:m}},render(){const e=Ze({[`${this.resolveClassName("checkbox")}`]:!0,[`${this.resolveClassName("checkbox")}-${this.size}`]:!0,"is-focused":this.isFocus,"is-checked":this.isChecked,"is-disabled":this.isDisabled,"is-indeterminated":this.indeterminate,"is-prechecking":this.isPrechecking,"is-outline":this.outline}),t=()=>!this.label&&!this.$slots.default?null:a.createVNode("span",{class:`${this.resolveClassName("checkbox-label")}`},[this.$slots.default?this.$slots.default():this.label]);return a.createVNode("label",{class:e},[a.createVNode("span",{class:this.resolveClassName("checkbox-input")},[a.createVNode("input",{ref:"inputRef",class:`${this.resolveClassName("checkbox-original")}`,checked:this.isChecked,disabled:this.isDisabled||this.isPrechecking,role:"checkbox",type:"checkbox",onChange:this.handleChange},null)]),t(),this.isPrechecking&&a.createVNode(Dc,{class:`${this.resolveClassName("checkbox-checking")}`},null)])}}),DO={modelValue:v.array,disabled:v.bool,withValidate:v.bool.def(!0)},Kc=a.defineComponent({name:"CheckboxGroup",props:DO,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(e,t){const n=Tr(),r=[],i=d=>{r.push(d)},s=d=>{const h=r.indexOf(d);h>-1&&r.splice(h,1)},l=()=>{const d=r.reduce((h,m)=>(m.isChecked&&h.push(m.label),h),[]);t.emit("update:modelValue",d),t.emit("change",d)};a.provide(q4,{name:"CheckboxGroup",props:e,register:i,unregister:s,handleChange:l}),a.watch(()=>e.modelValue,()=>{var d;e.withValidate&&((d=n==null?void 0:n.validate)==null||d.call(n,"change"))}),a.onMounted(()=>{const d=e.modelValue||[];r.forEach(h=>{d.includes(h.label)&&h.setChecked(!0)})});const{resolveClassName:u}=Ae();return{resolveClassName:u}},render(){var e;return a.createVNode("div",{class:`${this.resolveClassName("checkbox-group")}`},[(e=this.$slots)==null?void 0:e.default()])}}),wn=yn(LO,{Group:Kc});var h2,G4;function RO(){if(G4)return h2;G4=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return h2=t,h2}var m2,K4;function IO(){if(K4)return m2;K4=1;function e(t){return this.__data__.has(t)}return m2=e,m2}var p2,Y4;function VO(){if(Y4)return p2;Y4=1;var e=a0(),t=RO(),n=IO();function r(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new e;++s<l;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,p2=r,p2}var g2,X4;function PO(){if(X4)return g2;X4=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return g2=e,g2}var v2,J4;function kO(){if(J4)return v2;J4=1;function e(t,n){return t.has(n)}return v2=e,v2}var y2,Z4;function Q4(){if(Z4)return y2;Z4=1;var e=VO(),t=PO(),n=kO(),r=1,i=2;function s(l,u,d,h,m,f){var p=d&r,y=l.length,b=u.length;if(y!=b&&!(p&&b>y))return!1;var w=f.get(l),C=f.get(u);if(w&&C)return w==u&&C==l;var N=-1,S=!0,x=d&i?new e:void 0;for(f.set(l,u),f.set(u,l);++N<y;){var _=l[N],O=u[N];if(h)var T=p?h(O,_,N,u,l,f):h(_,O,N,l,u,f);if(T!==void 0){if(T)continue;S=!1;break}if(x){if(!t(u,function(I,A){if(!n(x,A)&&(_===I||m(_,I,d,h,f)))return x.push(A)})){S=!1;break}}else if(!(_===O||m(_,O,d,h,f))){S=!1;break}}return f.delete(l),f.delete(u),S}return y2=s,y2}var b2,e5;function MO(){if(e5)return b2;e5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return b2=e,b2}var w2,t5;function $O(){if(t5)return w2;t5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return w2=e,w2}var C2,n5;function FO(){if(n5)return C2;n5=1;var e=mo(),t=Mp(),n=bo(),r=Q4(),i=MO(),s=$O(),l=1,u=2,d="[object Boolean]",h="[object Date]",m="[object Error]",f="[object Map]",p="[object Number]",y="[object RegExp]",b="[object Set]",w="[object String]",C="[object Symbol]",N="[object ArrayBuffer]",S="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function O(T,I,A,P,k,L,D){switch(A){case S:if(T.byteLength!=I.byteLength||T.byteOffset!=I.byteOffset)return!1;T=T.buffer,I=I.buffer;case N:return!(T.byteLength!=I.byteLength||!L(new t(T),new t(I)));case d:case h:case p:return n(+T,+I);case m:return T.name==I.name&&T.message==I.message;case y:case w:return T==I+"";case f:var H=i;case b:var B=P&l;if(H||(H=s),T.size!=I.size&&!B)return!1;var W=D.get(T);if(W)return W==I;P|=u,D.set(T,I);var J=r(H(T),H(I),P,k,L,D);return D.delete(T),J;case C:if(_)return _.call(T)==_.call(I)}return!1}return C2=O,C2}var N2,r5;function a5(){if(r5)return N2;r5=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return N2=e,N2}var _2,i5;function s5(){if(i5)return _2;i5=1;var e=a5(),t=jn();function n(r,i,s){var l=i(r);return t(r)?l:e(l,s(r))}return _2=n,_2}var x2,o5;function l5(){if(o5)return x2;o5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,l=[];++r<i;){var u=t[r];n(u,r,t)&&(l[s++]=u)}return l}return x2=e,x2}var S2,c5;function u5(){if(c5)return S2;c5=1;function e(){return[]}return S2=e,S2}var T2,d5;function E2(){if(d5)return T2;d5=1;var e=l5(),t=u5(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(u){return r.call(l,u)}))}:t;return T2=s,T2}var O2,f5;function HO(){if(f5)return O2;f5=1;var e=Wp(),t=e(Object.keys,Object);return O2=t,O2}var A2,h5;function m5(){if(h5)return A2;h5=1;var e=ac(),t=HO(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&l.push(u);return l}return A2=i,A2}var L2,p5;function jo(){if(p5)return L2;p5=1;var e=yg(),t=m5(),n=ls();function r(i){return n(i)?e(i):t(i)}return L2=r,L2}var D2,g5;function v5(){if(g5)return D2;g5=1;var e=s5(),t=E2(),n=jo();function r(i){return e(i,n,t)}return D2=r,D2}var R2,y5;function BO(){if(y5)return R2;y5=1;var e=v5(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,l,u,d,h,m){var f=u&t,p=e(s),y=p.length,b=e(l),w=b.length;if(y!=w&&!f)return!1;for(var C=y;C--;){var N=p[C];if(!(f?N in l:r.call(l,N)))return!1}var S=m.get(s),x=m.get(l);if(S&&x)return S==l&&x==s;var _=!0;m.set(s,l),m.set(l,s);for(var O=f;++C<y;){N=p[C];var T=s[N],I=l[N];if(d)var A=f?d(I,T,N,l,s,m):d(T,I,N,s,l,m);if(!(A===void 0?T===I||h(T,I,u,d,m):A)){_=!1;break}O||(O=N=="constructor")}if(_&&!O){var P=s.constructor,k=l.constructor;P!=k&&"constructor"in s&&"constructor"in l&&!(typeof P=="function"&&P instanceof P&&typeof k=="function"&&k instanceof k)&&(_=!1)}return m.delete(s),m.delete(l),_}return R2=i,R2}var I2,b5;function UO(){if(b5)return I2;b5=1;var e=Ci(),t=Or(),n=e(t,"DataView");return I2=n,I2}var V2,w5;function zO(){if(w5)return V2;w5=1;var e=Ci(),t=Or(),n=e(t,"Promise");return V2=n,V2}var P2,C5;function jO(){if(C5)return P2;C5=1;var e=Ci(),t=Or(),n=e(t,"Set");return P2=n,P2}var k2,N5;function WO(){if(N5)return k2;N5=1;var e=Ci(),t=Or(),n=e(t,"WeakMap");return k2=n,k2}var M2,_5;function Wo(){if(_5)return M2;_5=1;var e=UO(),t=Uf(),n=zO(),r=jO(),i=WO(),s=ha(),l=ap(),u="[object Map]",d="[object Object]",h="[object Promise]",m="[object Set]",f="[object WeakMap]",p="[object DataView]",y=l(e),b=l(t),w=l(n),C=l(r),N=l(i),S=s;return(e&&S(new e(new ArrayBuffer(1)))!=p||t&&S(new t)!=u||n&&S(n.resolve())!=h||r&&S(new r)!=m||i&&S(new i)!=f)&&(S=function(x){var _=s(x),O=_==d?x.constructor:void 0,T=O?l(O):"";if(T)switch(T){case y:return p;case b:return u;case w:return h;case C:return m;case N:return f}return _}),M2=S,M2}var $2,x5;function qO(){if(x5)return $2;x5=1;var e=rc(),t=Q4(),n=FO(),r=BO(),i=Wo(),s=jn(),l=No(),u=lc(),d=1,h="[object Arguments]",m="[object Array]",f="[object Object]",p=Object.prototype,y=p.hasOwnProperty;function b(w,C,N,S,x,_){var O=s(w),T=s(C),I=O?m:i(w),A=T?m:i(C);I=I==h?f:I,A=A==h?f:A;var P=I==f,k=A==f,L=I==A;if(L&&l(w)){if(!l(C))return!1;O=!0,P=!1}if(L&&!P)return _||(_=new e),O||u(w)?t(w,C,N,S,x,_):n(w,C,I,N,S,x,_);if(!(N&d)){var D=P&&y.call(w,"__wrapped__"),H=k&&y.call(C,"__wrapped__");if(D||H){var B=D?w.value():w,W=H?C.value():C;return _||(_=new e),x(B,W,N,S,_)}}return L?(_||(_=new e),r(w,C,N,S,x,_)):!1}return $2=b,$2}var F2,S5;function H2(){if(S5)return F2;S5=1;var e=qO(),t=zn();function n(r,i,s,l,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,l,n,u)}return F2=n,F2}var B2,T5;function GO(){if(T5)return B2;T5=1;var e=H2();function t(n,r){return e(n,r)}return B2=t,B2}var KO=GO();const U2=Jt(KO),Yc=a.defineComponent({name:"Option",props:{id:{type:[String,Number],require:!0},name:v.oneOfType([v.number,v.string]),disabled:v.bool.def(!1),order:v.number.def(0)},setup(e,{attrs:t}){const{proxy:n}=a.getCurrentInstance(),r=a.reactive({visible:!0}),{disabled:i,id:s,name:l}=a.toRefs(e),u=a.computed(()=>l.value!==void 0?l.value:t.label),d=a.computed(()=>s.value!==void 0?s.value:t.value),h=a.inject(Gc,null),m=a.inject(j4,null),f=a.computed(()=>{var I;return(I=h==null?void 0:h.selected)==null?void 0:I.some(A=>U2(A.value,d.value))}),p=a.computed(()=>h==null?void 0:h.multiple),y=a.computed(()=>(h==null?void 0:h.activeOptionValue)===d.value),b=a.computed(()=>(h==null?void 0:h.showSelectedIcon)&&p.value),w=a.computed(()=>h==null?void 0:h.selectedStyle),C=a.computed(()=>h==null?void 0:h.curSearchValue),N=a.computed(()=>h==null?void 0:h.highlightKeyword),S=()=>{i.value||h==null||h.handleOptionSelected(n)},x=()=>{h.activeOptionValue=d.value},_=()=>{h.activeOptionValue=""},O=I=>{if(!I)return I;let A=C.value;const P=A.length;if(!(A!=null&&A.trim().length)||!I.toLocaleLowerCase().includes(A.toLocaleLowerCase()))return I;const k=[];let L=-1;return A=A.replace(/([.*/]{1})/gim,"\\$1"),I.replace(new RegExp(`${A}`,"igm"),(D,H)=>(k.length===0&&H!==0?k.push(I.slice(0,H)):L>=0&&k.push(I.slice(L+D.length,H)),k.push(a.createVNode("span",{class:"is-keyword"},[D])),L=H,D)),L>=0&&k.push(I.slice(L+P)),k.length?k:I};a.onBeforeMount(()=>{h==null||h.register(d.value,n),m==null||m.register(d.value,n)}),a.onBeforeUnmount(()=>{h==null||h.unregister(d.value,n),m==null||m.unregister(d.value,n)});const{resolveClassName:T}=Ae();return{...a.toRefs(r),selected:f,multiple:p,isHover:y,showSelectedIcon:b,selectedStyle:w,optionName:u,optionID:d,highlightKeyword:N,handleOptionClick:S,handleMouseEnter:x,handleMouseLeave:_,resolveClassName:T,transformNode:O}},render(){var t,n;const e=Ze({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":this.isHover,"is-checkbox":this.selectedStyle===Xl.CHECKBOX,[this.resolveClassName("select-option")]:!0});return a.withDirectives(a.createVNode("li",{class:e,onClick:this.handleOptionClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave},[this.showSelectedIcon&&this.selectedStyle===Xl.CHECKBOX&&a.createVNode(wn,{class:this.resolveClassName("select-checkbox"),disabled:this.disabled,modelValue:this.selected},null),((n=(t=this.$slots).default)==null?void 0:n.call(t))??a.createVNode("span",{class:this.resolveClassName("select-option-item"),title:String(this.optionName)},[this.highlightKeyword?this.transformNode(String(this.optionName)):this.optionName]),this.showSelectedIcon&&this.selected&&this.selectedStyle===Xl.CHECK&&a.createVNode(_i,{width:22,height:22,class:this.resolveClassName("select-selected-icon")},null)]),[[a.vShow,this.visible]])}}),YO=a.defineComponent({name:"OptionGroup",props:{label:v.string.def(""),disabled:v.bool.def(!1),collapsible:v.bool.def(!1),collapse:v.bool.def(!1),visible:v.bool.def(!0)},setup(e,{emit:t}){const n=a.getCurrentInstance(),{proxy:r}=n,i=a.inject(Gc,null),s=a.reactive({groupCollapse:e.collapse}),l=a.ref(new Map),{register:u,unregister:d}=f2(l),h=a.computed(()=>`${e.label} (${[...l.value.values()].filter(y=>y.visible).length})`),m=a.computed(()=>e.visible&&!i.isSearchEmpty),f=()=>{!e.collapsible||e.disabled||(s.groupCollapse=!s.groupCollapse,t("update:collapse",s.groupCollapse))};a.provide(j4,a.reactive({...a.toRefs(e),register:u,unregister:d,groupCollapse:a.toRef(s,"groupCollapse")})),a.onBeforeMount(()=>{i==null||i.registerGroup(n.uid,r)}),a.onBeforeUnmount(()=>{i==null||i.unregisterGroup(n.uid)});const{resolveClassName:p}=Ae();return{...a.toRefs(s),groupLabel:h,isVisible:m,handleToggleCollapse:f,resolveClassName:p}},render(){var r,i;const e=Ze({[this.resolveClassName("option-group")]:!0,collapsible:this.collapsible,disabled:this.disabled}),t=Ze({[this.resolveClassName("option-group-label")]:!0,collapsible:this.collapsible}),n=Ze({"default-group-label-icon":!0,collapse:this.groupCollapse});return a.withDirectives(a.createVNode("ul",{class:e},[a.createVNode("li",{class:t,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():a.createVNode("span",{class:"default-group-label"},[this.collapsible&&a.createVNode(Eo,{class:n},null),a.createVNode("span",{class:"default-group-label-title"},[this.groupLabel])])]),a.withDirectives(a.createVNode("ul",{class:this.resolveClassName("option-group-content")},[(i=(r=this.$slots).default)==null?void 0:i.call(r)]),[[a.vShow,!this.groupCollapse]])]),[[a.vShow,this.isVisible]])}});function Xc(e){const t=document.createElement("div");return t.className=e,t}const E5=typeof Element<"u"&&Element.prototype.matches;function ja(e,t){const n=z2(e);if(!E5)throw new Error("No element matching method supported");return E5.call(n,t)}function Ss(e){const t=z2(e);t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function O5(e,t){return Array.prototype.filter.call(e.children,n=>ja(n,t))}function $t(e){return parseInt(e,10)||0}function XO(e){return ja(e,"input,[contenteditable]")||ja(e,"select,[contenteditable]")||ja(e,"textarea,[contenteditable]")||ja(e,"button,[contenteditable]")}function JO(e){const t=ea(e);return $t(t.width)+$t(t.paddingLeft)+$t(t.paddingRight)+$t(t.borderLeftWidth)+$t(t.borderRightWidth)}const Ts={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator==null?void 0:navigator.userAgent)},z2=e=>e.isVirtualElement?e.delegateElement:e;function ea(e){return getComputedStyle(z2(e))}function Vn(e,t){for(const n in t){let r=t[n];typeof r=="number"&&(r=`${r}px`),e.style[n]=r}return e}function ta(e){const t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.round(r.width),e.containerHeight=Math.round(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(O5(t,e.cls.element.rail("x")).forEach(i=>Ss(i)),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(O5(t,e.cls.element.rail("y")).forEach(i=>Ss(i)),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=A5(e,$t(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=$t((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=A5(e,$t(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=e.element.isVirtualElement?ZO(e):$t(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),QO(t,e),e.scrollbarXActive?t.classList.add(e.cls.state.active("x")):(t.classList.remove(e.cls.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(e.cls.state.active("y")):(t.classList.remove(e.cls.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function ZO(e){const t=$t(e.element.virtualScrollTop);return t>=0?t:0}function A5(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function QO(e,t){const n={width:t.railXWidth},r=e.isVirtualElement?0:Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,Vn(t.scrollbarXRail,n);const i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft,Vn(t.scrollbarYRail,i),Vn(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Vn(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function eA(e){e.event.bind(e.scrollbarY,"mousedown",t=>t.stopPropagation()),e.event.bind(e.scrollbarYRail,"mousedown",t=>{const n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,r=n>e.scrollbarYTop?1:-1;e.element.isVirtualElement?e.element.scrollTop=n/(e.element.offsetHeight/e.element.scrollHeight):e.element.scrollTop+=r*e.containerHeight,e.element.scrollTop+=r*e.containerHeight,ta(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",t=>t.stopPropagation()),e.event.bind(e.scrollbarXRail,"mousedown",t=>{const r=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=r*e.containerWidth,ta(e),t.stopPropagation()})}class tA{constructor(t="bk"){Ve(this,"main");Ve(this,"rtl");Ve(this,"element");Ve(this,"state");this.main=`${t}-scrollbar`,this.rtl=`${t}-rtl`,this.element={thumb:n=>`${t}__thumb-${n}`,rail:n=>`${t}__rail-${n}`,size:n=>`${t}-scroll-size-${n}`,consuming:`${t}__child--consume`},this.state={focus:`${t}--focus`,clicking:`${t}--clicking`,active:n=>`${t}--active-${n}`,scrolling:n=>`${t}--scrolling-${n}`}}}const L5={x:null,y:null};function D5(e,t){const n=e.element.classList,r=e.cls.state.scrolling(t);n.contains(r)?clearTimeout(L5[t]):n.add(r)}function R5(e,t){L5[t]=setTimeout(()=>e.isAlive&&e.element.classList.remove(e.cls.state.scrolling(t)),e.settings.scrollingThreshold)}function nA(e,t){D5(e,t),R5(e,t)}function rA(e){I5(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I5(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function I5(e,[t,n,r,i,s,l,u,d,h]){const m=e.element;let f=null,p=null,y=null;function b(N){var S;(S=N.touches)!=null&&S[0]&&(N[r]=N.touches[0].pageY),m[u]=f+y*(N[r]-p),D5(e,d),ta(e),N.stopPropagation(),N.type.startsWith("touch")&&N.changedTouches.length>1&&N.preventDefault()}function w(){R5(e,d),e[h].classList.remove(e.cls.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",b)}function C(N,S){f=m[u],S&&N.touches&&(N[r]=N.touches[0].pageY),p=N[r],y=(e[n]-e[t])/(e[i]-e[l]),S?e.event.bind(e.ownerDocument,"touchmove",b):(e.event.bind(e.ownerDocument,"mousemove",b),e.event.once(e.ownerDocument,"mouseup",w),N.preventDefault()),e[h].classList.add(e.cls.state.clicking),N.stopPropagation()}e.event.bind(e[s],"mousedown",N=>{C(N)}),e.event.bind(e[s],"touchstart",N=>{C(N,!0)})}function aA(e){const t=e.element,n=()=>ja(t,":hover"),r=()=>ja(e.scrollbarX,":focus")||ja(e.scrollbarY,":focus");function i(u,d){const h=Math.floor(t.scrollTop);if(u===0){if(!e.scrollbarYActive)return!1;if(h===0&&d>0||h>=e.contentHeight-e.containerHeight&&d<0)return!e.settings.wheelPropagation}const m=t.scrollLeft;if(d===0){if(!e.scrollbarXActive)return!1;if(m===0&&u<0||m>=e.contentWidth-e.containerWidth&&u>0)return!e.settings.wheelPropagation}return!0}function s(){return t.isVirtualElement?e.containerHeight/e.element.scrollHeight*e.containerHeight:e.containerHeight}function l(){return t.isVirtualElement?e.containerHeight:e.contentHeight}e.event.bind(e.ownerDocument,"keydown",u=>{var p;if((p=u.isDefaultPrevented)!=null&&p.call(u)||u.defaultPrevented||!n()&&!r())return;let h=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(h){if(h.tagName==="IFRAME")h=h.contentDocument.activeElement;else for(;h.shadowRoot;)h=h.shadowRoot.activeElement;if(XO(h))return}let m=0,f=0;switch(u.which){case 37:u.metaKey?m=-e.contentWidth:u.altKey?m=-e.containerWidth:m=-30;break;case 38:u.metaKey?f=l():u.altKey?f=s():f=30;break;case 39:u.metaKey?m=e.contentWidth:u.altKey?m=e.containerWidth:m=30;break;case 40:u.metaKey?f=-l():u.altKey?f=-s():f=-30;break;case 32:u.shiftKey?f=s():f=-s();break;case 33:f=s();break;case 34:f=-s();break;case 36:f=l();break;case 35:f=-l();break;default:return}e.settings.suppressScrollX&&m!==0||e.settings.suppressScrollY&&f!==0||(t.scrollTop-=f,t.scrollLeft+=m,ta(e),i(m,f)&&u.preventDefault())})}function iA(e){const t=e.element.isVirtualElement,n=t?e.element.delegateElement:e.element;function r(h,m){const f=t?e.element.virtualScrollTop:n.scrollTop,p=Math.floor(f),y=f===0,b=()=>t?p+e.scrollbarYHeight>=e.railYHeight:p+e.element.offsetHeight===e.element.scrollHeight,w=n.scrollLeft===0,C=n.scrollLeft+n.offsetWidth===n.scrollWidth;let N;return Math.abs(m)>Math.abs(h)?N=y||b():N=w||C,N?!e.settings.wheelPropagation:!0}function i(h){let m=h.deltaX,f=-1*h.deltaY;return(typeof m>"u"||typeof f>"u")&&(m=-1*h.wheelDeltaX/6,f=h.wheelDeltaY/6),h.deltaMode&&h.deltaMode===1&&(m*=10,f*=10),m!==m&&f!==f&&(m=0,f=h.wheelDelta),h.shiftKey?[-f,-m]:[m,f]}function s(h,m,f){if(!Ts.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(h))return!1;let p=h;for(;p&&p!==n;){if(p.classList.contains(e.cls.element.consuming))return!0;const y=ea(p);if(f&&y.overflowY.match(/(scroll|auto)/)){const b=p.scrollHeight-p.clientHeight;if(b>0&&(p.scrollTop>0&&f<0||p.scrollTop<b&&f>0))return!0}if(m&&y.overflowX.match(/(scroll|auto)/)){const b=p.scrollWidth-p.clientWidth;if(b>0&&(p.scrollLeft>0&&m<0||p.scrollLeft<b&&m>0))return!0}p=p.parentNode}return!1}const l=()=>e.element.scrollHeight-e.element.offsetHeight;function u(h){let m=e.element.scrollTop-h;const f=l();m>f&&(m=f),m<0&&(m=0),e.element.scrollTop=m}function d(h){const[m,f]=i(h);if(s(h.target,m,f))return;let p=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(u(f?f*e.settings.wheelSpeed:-m*e.settings.wheelSpeed),p=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(m?n.scrollLeft+=m*e.settings.wheelSpeed:n.scrollLeft-=f*e.settings.wheelSpeed,p=!0):(u(f*e.settings.wheelSpeed),n.scrollLeft+=m*e.settings.wheelSpeed),ta(e),p=p||r(m,f),p&&!h.ctrlKey&&(h.stopPropagation(),h.preventDefault())}typeof window.onwheel<"u"?e.event.bind(n,"wheel",d):typeof window.onmousewheel<"u"&&e.event.bind(n,"mousewheel",d)}function sA(e){if(!Ts.supportsTouch&&!Ts.supportsIePointer)return;const t=e.element;function n(b,w){const C=Math.floor(t.scrollTop),N=t.scrollLeft,S=Math.abs(b),x=Math.abs(w);if(x>S){if(w<0&&C===e.contentHeight-e.containerHeight||w>0&&C===0)return window.scrollY===0&&w>0&&Ts.isChrome}else if(S>x&&(b<0&&N===e.contentWidth-e.containerWidth||b>0&&N===0))return!0;return!0}function r(b,w){t.scrollLeft-=b,t.scrollTop-=w,ta(e)}let i={},s=0,l={},u=null;function d(b){return b.targetTouches?b.targetTouches[0]:b}function h(b){return b.pointerType&&b.pointerType==="pen"&&b.buttons===0?!1:!!(b.targetTouches&&b.targetTouches.length===1||b.pointerType&&b.pointerType!=="mouse"&&b.pointerType!==b.MSPOINTER_TYPE_MOUSE)}function m(b){if(!h(b))return;const w=d(b);i.pageX=w.pageX,i.pageY=w.pageY,s=new Date().getTime(),u!==null&&clearInterval(u)}function f(b,w,C){if(!t.contains(b))return!1;let N=b;for(;N&&N!==t;){if(N.classList.contains(e.cls.element.consuming))return!0;const S=ea(N);if(C&&S.overflowY.match(/(scroll|auto)/)){const x=N.scrollHeight-N.clientHeight;if(x>0&&(N.scrollTop>0&&C<0||N.scrollTop<x&&C>0))return!0}if(w&&S.overflowX.match(/(scroll|auto)/)){const x=N.scrollWidth-N.clientWidth;if(x>0&&(N.scrollLeft>0&&w<0||N.scrollLeft<x&&w>0))return!0}N=N.parentNode}return!1}function p(b){if(h(b)){const w=d(b),C={pageX:w.pageX,pageY:w.pageY},N=C.pageX-i.pageX,S=C.pageY-i.pageY;if(f(b.target,N,S))return;r(N,S),i=C;const x=new Date().getTime(),_=x-s;_>0&&(l.x=N/_,l.y=S/_,s=x),n(N,S)&&b.preventDefault()}}function y(){e.settings.swipeEasing&&(clearInterval(u),u=setInterval(function(){if(e.isInitialized){clearInterval(u);return}if(!l.x&&!l.y){clearInterval(u);return}if(Math.abs(l.x)<.01&&Math.abs(l.y)<.01){clearInterval(u);return}if(!e.element){clearInterval(u);return}r(l.x*30,l.y*30),l.x*=.8,l.y*=.8},10))}Ts.supportsTouch?(e.event.bind(t,"touchstart",m),e.event.bind(t,"touchmove",p),e.event.bind(t,"touchend",y)):Ts.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",m),e.event.bind(t,"pointermove",p),e.event.bind(t,"pointerup",y)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",m),e.event.bind(t,"MSPointerMove",p),e.event.bind(t,"MSPointerUp",y)))}class oA{constructor(t){Ve(this,"element");Ve(this,"handlers");this.element=t,this.handlers={}}bind(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)}unbind(t,n){this.handlers[t]=this.handlers[t].filter(r=>n&&r!==n?!0:(this.element.removeEventListener(t,r,!1),!1))}unbindAll(){for(const t in this.handlers)this.unbind(t)}get isEmpty(){return Object.keys(this.handlers).every(t=>this.handlers[t].length===0)}}class lA{constructor(){Ve(this,"eventElements");this.eventElements=[]}eventElement(t){let n=this.eventElements.filter(r=>r.element===t)[0];return n||(n=new oA(t),this.eventElements.push(n)),n}bind(t,n,r){this.eventElement(t).bind(n,r)}unbind(t,n,r){const i=this.eventElement(t);i.unbind(n,r),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)}unbindAll(){this.eventElements.forEach(t=>t.unbindAll()),this.eventElements=[]}once(t,n,r){const i=this.eventElement(t),s=l=>{i.unbind(n,s),r(l)};i.bind(n,s)}}function Jc(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);{const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}}function Zc(e,t,n,r=!0,i=!1){let s;if(t==="top")s=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")s=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");cA(e,n,s,r,i)}function cA(e,t,[n,r,i,s,l,u],d=!0,h=!1){const m=e.element;e.reach[s]=null,m[i]<1&&(e.reach[s]="start"),m[i]>e[n]-e[r]-1&&(e.reach[s]="end"),t&&(m.dispatchEvent(Jc(`ps-scroll-${s}`)),t<0?m.dispatchEvent(Jc(`ps-scroll-${l}`)):t>0&&m.dispatchEvent(Jc(`ps-scroll-${u}`)),d&&nA(e,s)),e.reach[s]&&(t||h)&&m.dispatchEvent(Jc(`ps-${s}-reach-${e.reach[s]}`))}const uA=()=>({handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:16,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1,classPrefix:"bk",scrollSize:"normal"}),dA={"click-rail":eA,"drag-thumb":rA,keyboard:aA,wheel:iA,touch:sA};class fA{constructor({scrollHeight:t,delegateElement:n,onScollCallback:r}){Ve(this,"isVirtualElement",!0);Ve(this,"scrollHeight");Ve(this,"virtualScrollTop");Ve(this,"virtualScrollLeft");Ve(this,"scrollTop",0);Ve(this,"onScollCallback");Ve(this,"delegateElement");return this.scrollHeight=t,this.delegateElement=n,this.virtualScrollTop=0,this.virtualScrollLeft=0,this.onScollCallback=r,new Proxy(this,{get:(i,s,l)=>{if(s in i){const u=Reflect.get(i,s,l);if(u!==void 0)return u}if(n&&s in n){const u=n[s];return typeof u=="function"?u.bind(n):u}},set:(i,s,l)=>{if(s in i){if(s==="scrollTop"){i.virtualScrollTop=l*i.delegateElement.offsetHeight/i.scrollHeight;const u=i.scrollTop!==l;return i.scrollTop=l,u&&this.handleScrollChanged("scrollTop"),!0}return i[s]=l,!0}return n&&s in n?(n[s]=l,this.handleScrollChanged(s),!0):(i[s]=l,!0)}})}handleScrollChanged(t){var n;if(["scrollLeft","scrollTop"].includes(t)){const r={offset:{x:this.delegateElement.scrollLeft,y:this.scrollTop}};(n=this.onScollCallback)==null||n.call(this,r)}}scrollTo({x:t,y:n}){this.delegateElement.scrollLeft=t,this.scrollTop=n,this.delegateElement.scrollTo(t,n)}}class j2{constructor(t,n={}){Ve(this,"element");Ve(this,"containerWidth");Ve(this,"containerHeight");Ve(this,"contentWidth");Ve(this,"settings");Ve(this,"contentHeight");Ve(this,"isRtl");Ve(this,"isNegativeScroll");Ve(this,"negativeScrollAdjustment");Ve(this,"event");Ve(this,"ownerDocument");Ve(this,"scrollbarXRail");Ve(this,"scrollbarX");Ve(this,"scrollbarXActive");Ve(this,"scrollbarXWidth");Ve(this,"scrollbarXLeft");Ve(this,"scrollbarXBottom");Ve(this,"isScrollbarXUsingBottom");Ve(this,"scrollbarXTop");Ve(this,"railBorderXWidth");Ve(this,"railXMarginWidth");Ve(this,"railXWidth");Ve(this,"railXRatio");Ve(this,"scrollbarYRail");Ve(this,"scrollbarY");Ve(this,"scrollbarYActive");Ve(this,"scrollbarYHeight");Ve(this,"scrollbarYTop");Ve(this,"scrollbarYRight");Ve(this,"isScrollbarYUsingRight");Ve(this,"scrollbarYLeft");Ve(this,"scrollbarYOuterWidth");Ve(this,"railBorderYWidth");Ve(this,"railYMarginHeight");Ve(this,"railYHeight");Ve(this,"railYRatio");Ve(this,"reach");Ve(this,"isAlive");Ve(this,"lastScrollTop");Ve(this,"lastScrollLeft");Ve(this,"cls");if(typeof t=="string"&&(t=document.querySelector(t)),!(t!=null&&t.nodeName)&&!(t!=null&&t.isVirtualElement))throw new Error("no element is specified to initialize PerfectScrollbar");this.settings={...uA(),...n},this.element=t,this.cls=new tA(this.settings.classPrefix),t.classList.add(this.cls.main),this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;const r=()=>t.classList.add(this.cls.state.focus),i=()=>t.classList.remove(this.cls.state.focus);this.isRtl=ea(t).direction==="rtl",this.isRtl&&t.classList.add(this.cls.rtl),this.isNegativeScroll=(()=>{const u=t.scrollLeft;let d=null;return t.scrollLeft=-1,d=t.scrollLeft<0,t.scrollLeft=u,d})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new lA,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Xc(this.cls.element.rail("x")),this.scrollbarXRail.classList.add(this.cls.element.size(this.settings.scrollSize)),t.appendChild(this.scrollbarXRail),this.scrollbarX=Xc(this.cls.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex","0"),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",i),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;const s=ea(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=$t(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=$t(s.borderLeftWidth)+$t(s.borderRightWidth),Vn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=$t(s.marginLeft)+$t(s.marginRight),Vn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Xc(this.cls.element.rail("y")),this.scrollbarYRail.classList.add(this.cls.element.size(this.settings.scrollSize)),t.appendChild(this.scrollbarYRail),this.scrollbarY=Xc(this.cls.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex","0"),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",i),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;const l=ea(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=$t(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?JO(this.scrollbarY):null,this.railBorderYWidth=$t(l.borderTopWidth)+$t(l.borderBottomWidth),Vn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=$t(l.marginTop)+$t(l.marginBottom),Vn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=(this.contentWidth??0)-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=(this.contentHeight??0)-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(u=>dA[u](this)),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",u=>this.onScroll(u)),ta(this)}update(t){this.isAlive&&(t!=null&&t.isVirtualElement&&(this.element=t),this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Vn(this.scrollbarXRail,{display:"block"}),Vn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=$t(ea(this.scrollbarXRail).marginLeft)+$t(ea(this.scrollbarXRail).marginRight),this.railYMarginHeight=$t(ea(this.scrollbarYRail).marginTop)+$t(ea(this.scrollbarYRail).marginBottom),Vn(this.scrollbarXRail,{display:"none"}),Vn(this.scrollbarYRail,{display:"none"}),ta(this),Zc(this,"top",0,!1,!0),Zc(this,"left",0,!1,!0),Vn(this.scrollbarXRail,{display:""}),Vn(this.scrollbarYRail,{display:""}))}onScroll(t){this.isAlive&&(ta(this),Zc(this,"top",this.element.scrollTop-this.lastScrollTop),Zc(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)}scrollTo({x:t,y:n}){n!==void 0&&typeof n=="number"&&(this.element.scrollTop=n),t!==void 0&&typeof t=="number"&&(this.element.scrollLeft=t),ta(this)}destroy(){this.isAlive&&(this.event.unbindAll(),Ss(this.scrollbarX),Ss(this.scrollbarY),Ss(this.scrollbarXRail),Ss(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)}removePsClasses(){this.element.className=this.element.className.split(" ").filter(t=>!t.match(new RegExp(`^${this.settings.classPrefix}([-_].+|)$`))).join(" ")}}const hA={onContentScroll:Function},mA={list:v.array.def([]),enabled:v.bool.def(!0),scrollEvent:v.bool.def(!1),lineHeight:v.oneOfType([v.number,v.func]).def(30),minHeight:v.number.def(30),maxHeight:v.oneOfType([v.number,v.string]),height:v.oneOfType([v.string.def("100%"),v.number]).def("100%"),width:v.oneOfType([v.string.def("100%"),v.number]).def("100%"),className:v.oneOfType([v.arrayOf(v.string),v.object,v.arrayOf(v.object),v.string]).def(""),contentClassName:v.oneOfType([v.arrayOf(v.string),v.object,v.arrayOf(v.object),v.string]).def(""),contentStyle:v.object.def({}),scrollXName:v.string.def(Jl("F-scroll-x")),scrollYName:v.string.def(Jl("F-scroll-y")),groupItemCount:v.number.def(1),preloadItemCount:v.number.def(1),renderAs:v.string.def("div"),scrollOffsetTop:v.number.def(0),scrollPosition:v.string.def("content"),abosuteHeight:v.oneOfType([v.string.def("auto"),v.number]).def("auto"),throttleDelay:v.number.def(60),rowKey:v.string.def(void 0),keepAlive:v.bool.def(!1),scrollbar:ze("IScrollbarOption",{default:{enabled:!0}}),autoReset:v.bool.def(!0),wrapperStyle:v.any.def({}),autoIndex:v.bool.def(!0),...hA},V5=(e,t)=>({fixToTop:r=>{const{id:i,index:s,item:l}=r;let u=typeof s=="number"?s-1:0;if(i!==void 0&&(u=e.list.findIndex(d=>d[e.rowKey]===i)??u),l!==void 0&&(u=e.list.findIndex(d=>l[e.rowKey]===d[e.rowKey])??u),typeof u=="number"){const h=(u>=0?u:0)*e.lineHeight;t(0,h)}return null}}),P5=e=>{let t=null;return{init:s=>{var l;t=new j2(s.value,{scrollingThreshold:120,scrollSize:(l=e.scrollbar)==null?void 0:l.size})},instance:t,scrollTo:(s,l)=>{t==null||t.scrollTo({x:s,y:l})},update:()=>t==null?void 0:t.update(),updateScrollHeight:s=>{t!=null&&t.element&&((t==null?void 0:t.element).scrollHeight=s,t==null||t.update())}}};function k5(e,t,n){let r=0,i=0,s=0,l=0;for(;r<e;r++){if(l=n({index:r}),i+l>t){s=t-i,r=r+Math.round(s/l);break}i+=l}return{startIndex:r,height:i,diffHeight:s}}function M5(e,t,n,r,i){if(!r||!i.offset)return;const s=i.offset.y>=0?i.offset.y:0,l=i.offset.x>=0?i.offset.x:0,u=r.scrollHeight,d=r.offsetHeight,{count:h,groupItemCount:m}=n;let f=0,p=0,y=0;if(typeof e=="number"&&(f=Math.ceil(s/e),p=Math.ceil(d/e)+f,y=s%e),typeof e=="function"){const w=Math.ceil(h/m),C=k5(w,s,e);f=C.startIndex>0?C.startIndex:0,y=C.diffHeight,p=k5(w,d,e).startIndex+f+1}const b=u-d-s;return typeof t=="function"&&t(i,f,p,s,s,l,{bottom:b>=0?b:0,scrollbar:i}),{targetStartIndex:f,targetEndIndex:p,elScrollTop:s,translateY:y,elScrollLeft:l}}class W2{constructor(t,n){Ve(this,"binding");Ve(this,"wrapper");Ve(this,"delay");Ve(this,"delegateWrapper");Ve(this,"getEvent",t=>{const{scrollbar:n={enabled:!1}}=this.binding.value;if(n.enabled)return{offset:t.offset??{x:t.target.scrollLeft,y:t.target.scrollTop}};if(t!=null&&t.offset)return{offset:t==null?void 0:t.offset};const r=t.target.scrollTop;return{offset:{x:t.target.scrollLeft,y:r}}});this.binding=t,this.wrapper=n;const{throttleDelay:r}=t.value;this.delay=r,this.delegateWrapper=void 0}get scrollHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.scrollHeight)??((n=this.wrapper)==null?void 0:n.scrollHeight)}get offsetHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.offsetHeight)??((n=this.wrapper)==null?void 0:n.offsetHeight)}setDelegateWrapper(t){this.delegateWrapper=t}render(t){var p,y;const{lineHeight:n=30,handleScrollCallback:r,pagination:i={},onlyScroll:s}=this.binding.value;if(s){const b=(p=t.offset)==null?void 0:p.y,w=((y=t.offset)==null?void 0:y.x)??0,C=this.scrollHeight-this.offsetHeight-b;r(t,null,null,b,b,w,{bottom:C>=0?C:0,scrollbar:t});return}const{startIndex:l,endIndex:u,groupItemCount:d,count:h,scrollTop:m,scrollLeft:f}=i;M5(n,r,{groupItemCount:d,count:h},this.delegateWrapper??this.wrapper,t)}executeThrottledRender(t){vi(this.render.bind(this),this.delay)(this.getEvent(t))}install(){var t;(t=this.wrapper)==null||t.addEventListener("scroll",this.executeThrottledRender.bind(this))}uninstall(){var t,n;(n=(t=this.wrapper)==null?void 0:t.removeListener)==null||n.call(t,"scroll",this.executeThrottledRender.bind(this))}setBinding(t){this.binding=t}}let Wa=null;const pA={mounted(e,t){const n=e.parentNode;Wa=new W2(t,e),n.addEventListener("scroll",Wa.executeThrottledRender.bind(Wa))},updated(e,t){Wa==null||Wa.setBinding(t)},unbind(e){if(e){const t=e.parentNode;if(!t||!Wa)return;t.removeEventListener("scroll",Wa.executeThrottledRender)}}},gA=(e,t)=>{const{renderAs:n}=e,r=a.ref(null),{init:i,scrollTo:s}=P5(e),l=a.reactive({x:0,y:0}),u=(y,b,w,C,N,S,x)=>{const{scrollbar:_}=x;_!=null&&_.offset&&Object.assign(l,(_==null?void 0:_.offset)??{}),t.emit("content-scroll",[y,{translateY:N,translateX:S,pos:x}])};let d=null;const h=a.computed(()=>({lineHeight:e.lineHeight,scrollbar:e.scrollbar,handleScrollCallback:u,pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent})),m=a.computed(()=>{const y=typeof e.height=="number"?`${e.height}px`:e.height;return{height:y,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight??y,...e.wrapperStyle}}),{fixToTop:f}=V5(e,s);t.expose({scrollTo:s,fixToTop:f,refRoot:r,refContent:r}),a.onMounted(()=>{var y;d=new W2(h,r.value),(y=e.scrollbar)!=null&&y.enabled&&i(r),d.install()}),a.onUnmounted(()=>{d==null||d.uninstall()});const p=a.computed(()=>e.scrollbar.enabled?[e.className]:[e.className]);return{rendAsTag:()=>{var y,b,w,C,N,S,x,_;return a.h(n,{class:p.value,style:m.value,ref:r},[((b=(y=t.slots).beforeContent)==null?void 0:b.call(y))??"",((C=(w=t.slots).default)==null?void 0:C.call(w,{data:e.list}))??"",((S=(N=t.slots).afterContent)==null?void 0:S.call(N))??"",((_=(x=t.slots).afterSection)==null?void 0:_.call(x))??""])}}},qo=ut(a.defineComponent({name:"VirtualRender",directives:{bkVirtualRender:pA},props:mA,emits:["content-scroll"],slots:Object,setup(e,t){const{renderAs:n}=e,r=ae=>typeof ae=="string"?[ae]:typeof ae=="object"&&!Array.isArray(ae)?[ae]:ae;if(!e.enabled){const{rendAsTag:ae}=gA(e,t);return ae}const i=a.ref(null),s=a.ref(0),l=a.ref(0),u=a.ref(0),d=a.ref(null),h=ae=>{let $=ae*e.groupItemCount,M=(ae+1)*e.groupItemCount;if(M>s.value){const V=M-$;M=s.value,$=M-V}return{index:$,rows:e.list.slice($,M),items:[$,M],type:"virtual"}},m=()=>typeof e.lineHeight=="function"?({index:ae})=>e.lineHeight(h(ae)):e.lineHeight,f=a.computed(()=>({lineHeight:m(),handleScrollCallback:O,pagination:N,throttleDelay:e.throttleDelay,scrollbar:e.scrollbar})),{init:p,scrollTo:y,updateScrollHeight:b,update:w}=P5(e);let C=null;const N=a.reactive({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:e.groupItemCount}),S=a.ref([]),x=()=>typeof e.height=="number"?e.height:d.value.offsetHeight,_=()=>{const ae=x();let $=Math.ceil(s.value/e.groupItemCount),M=0,V=0,z=0;for(;$>0;$--)if(V=e.lineHeight(h($)),M=M+V,M>ae){z=M-ae;break}return{diffHeight:z,startIndex:$}},O=(ae,$,M,V,z,q,se)=>{Object.assign(N,{startIndex:$,endIndex:M,scrollTop:V,translateX:q,translateY:z,scrollLeft:q,pos:se});let Ce=N.startIndex*e.groupItemCount,re=N.endIndex*e.groupItemCount;const oe=P.value.length;oe<re&&(re=oe,typeof e.lineHeight=="function"?Ce=_().startIndex:(Ce=re-Math.floor(i.value.offsetHeight/e.lineHeight),Ce=Ce<0?0:Ce));const pe=P.value.slice(Ce,re);S.value=pe,ae&&t.emit("content-scroll",[ae,N,pe])};a.onMounted(()=>{var ae;if(C=new W2(f,i.value),(ae=e.scrollbar)!=null&&ae.enabled){d.value=new fA({delegateElement:i.value,scrollHeight:l.value,onScollCallback:le}),p(d),b(u.value),C.executeThrottledRender.call(C,{offset:{x:0,y:0}});return}C.install()}),a.onUnmounted(()=>{C==null||C.uninstall()});const T=()=>{I(e.list)},I=ae=>{if(s.value=Math.ceil((ae||[]).length/e.groupItemCount),N.count=s.value,typeof e.abosuteHeight=="string"&&e.abosuteHeight==="auto")if(typeof e.lineHeight=="function"){l.value=0;let M=0;const V=Math.ceil(s.value/e.groupItemCount);for(let z=0;z<V;z++){const q=e.lineHeight.apply(this,[h(z)]);M+=typeof q=="number"?q:0}l.value=M}else l.value=e.lineHeight*s.value;else l.value=e.abosuteHeight;D()},A=(ae={left:0,top:0})=>{const $=i.value,M=typeof e.height=="number"?{scrollHeight:l.value,offsetHeight:e.height}:$;M5(e.lineHeight,O,N,M,{target:$})},P=a.computed(()=>e.rowKey!==void 0||!e.autoIndex?e.list:(e.list||[]).map((ae,$)=>({...ae,$index:$}))),k=a.computed(()=>e.scrollPosition==="content"?{}:{}),L=a.computed(()=>({height:typeof e.height=="number"?`${e.height}px`:e.height,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight?`${e.maxHeight}px`:!1,minHeight:e.minHeight?`${e.minHeight}px`:!1,...e.scrollPosition==="container"?k.value:{},...e.wrapperStyle})),D=()=>{u.value=l.value<e.minHeight?e.minHeight:l.value},{resolveClassName:H}=Ae(),B=a.computed(()=>[H("virtual-render"),...r(e.className),e.scrollPosition==="container"?H("virtual-content"):""]),W=()=>{T(),A(),C==null||C.executeThrottledRender.call(C,{offset:{x:0,y:0}})},{fixToTop:J}=V5(e,y),G=()=>{const ae=i.value,$=typeof e.height=="number"?{scrollHeight:l.value,offsetHeight:e.height}:ae;C==null||C.setDelegateWrapper($)},K=()=>{C==null||C.setBinding(f),T(),b(u.value),G(),w(),A(),a.nextTick(()=>{C==null||C.executeThrottledRender.call(C,{offset:{x:N.scrollLeft,y:N.scrollTop}})})};a.watch(()=>e.height,()=>{K()}),a.watch(()=>[e.list,e.list.length],()=>{K()},{immediate:!0}),t.expose({reset:W,scrollTo:y,fixToTop:J,updateScroll:w,refRoot:i,refContent:i});const le=ae=>{C.executeThrottledRender.call(C,ae)};return()=>{var ae,$,M,V,z,q,se,ce;return a.h(n||"div",{ref:i,class:[...B.value],style:L.value},[(($=(ae=t.slots).beforeContent)==null?void 0:$.call(ae))??"",((V=(M=t.slots).default)==null?void 0:V.call(M,{data:S.value}))??"",((q=(z=t.slots).afterContent)==null?void 0:q.call(z))??"",((ce=(se=t.slots).afterSection)==null?void 0:ce.call(se))??""])}}})),Qc={PINYINS:["A","AI","AN","ANG","AO","BA","BAI","BAN","BANG","BAO","BEI","BEN","BENG","BI","BIAN","BIAO","BIE","BIN","BING","BO","BU","CA","CAI","CAN","CANG","CAO","CE","CEN","CENG","CHA","CHAI","CHAN","CHANG","CHAO","CHE","CHEN","CHENG","CHI","CHONG","CHOU","CHU","CHUA","CHUAI","CHUAN","CHUANG","CHUI","CHUN","CHUO","CI","CONG","COU","CU","CUAN","CUI","CUN","CUO","DA","DAI","DAN","DANG","DAO","DE","DEN","DENG","DI","DIAN","DIAO","DIE","DING","DIU","DONG","DOU","DU","DUAN","DUI","DUN","DUO","E","EI","EN","ENG","ER","FA","FAN","FANG","FEI","FEN","FENG","FIAO","FO","FOU","FU","GA","GAI","GAN","GANG","GAO","GE","GEI","GEN","GENG","GONG","GOU","GU","GUA","GUAI","GUAN","GUANG","GUI","GUN","GUO","HA","HAI","HAN","HANG","HAO","HE","HEI","HEN","HENG","HM","HONG","HOU","HU","HUA","HUAI","HUAN","HUANG","HUI","HUN","HUO","JI","JIA","JIAN","JIANG","JIAO","JIE","JIN","JING","JIONG","JIU","JU","JUAN","JUE","JUN","KA","KAI","KAN","KANG","KAO","KE","KEN","KENG","KONG","KOU","KU","KUA","KUAI","KUAN","KUANG","KUI","KUN","KUO","LA","LAI","LAN","LANG","LAO","LE","LEI","LENG","LI","LIA","LIAN","LIANG","LIAO","LIE","LIN","LING","LIU","LO","LONG","LOU","LU","LV","LUAN","LVE","LUN","LUO","M","MA","MAI","MAN","MANG","MAO","ME","MEI","MEN","MENG","MI","MIAN","MIAO","MIE","MIN","MING","MIU","MO","MOU","MU","N","NA","NAI","NAN","NANG","NAO","NE","NEI","NEN","NENG","NI","NIAN","NIANG","NIAO","NIE","NIN","NING","NIU","NONG","NOU","NU","NV","NUAN","NVE","NUN","NUO","O","OU","PA","PAI","PAN","PANG","PAO","PEI","PEN","PENG","PI","PIAN","PIAO","PIE","PIN","PING","PO","POU","PU","QI","QIA","QIAN","QIANG","QIAO","QIE","QIN","QING","QIONG","QIU","QU","QUAN","QUE","QUN","RAN","RANG","RAO","RE","REN","RENG","RI","RONG","ROU","RU","RUA","RUAN","RUI","RUN","RUO","SA","SAI","SAN","SANG","SAO","SE","SEN","SENG","SHA","SHAI","SHAN","SHANG","SHAO","SHE","SHEN","SHENG","SHI","SHOU","SHU","SHUA","SHUAI","SHUAN","SHUANG","SHUI","SHUN","SHUO","SI","SONG","SOU","SU","SUAN","SUI","SUN","SUO","TA","TAI","TAN","TANG","TAO","TE","TENG","TI","TIAN","TIAO","TIE","TING","TONG","TOU","TU","TUAN","TUI","TUN","TUO","WA","WAI","WAN","WANG","WEI","WEN","WENG","WO","WU","XI","XIA","XIAN","XIANG","XIAO","XIE","XIN","XING","XIONG","XIU","XU","XUAN","XUE","XUN","YA","YAN","YANG","YAO","YE","YI","YIN","YING","YO","YONG","YOU","YU","YUAN","YUE","YUN","ZA","ZAI","ZAN","ZANG","ZAO","ZE","ZEI","ZEN","ZENG","ZHA","ZHAI","ZHAN","ZHANG","ZHAO","ZHE","ZHEN","ZHENG","ZHI","ZHONG","ZHOU","ZHU","ZHUA","ZHUAI","ZHUAN","ZHUANG","ZHUI","ZHUN","ZHUO","ZI","ZONG","ZOU","ZU","ZUAN","ZUI","ZUN","ZUO",""],UNIHANS:["阿","哎","安","肮","凹","八","挀","扳","邦","勹","陂","奔","伻","屄","边","灬","憋","汃","冫","癶","峬","嚓","偲","参","仓","撡","冊","嵾","曽","叉","芆","辿","伥","抄","车","抻","阷","吃","充","抽","出","欻","揣","巛","刅","吹","旾","逴","呲","匆","凑","粗","汆","崔","邨","搓","咑","呆","丹","当","刀","嘚","扥","灯","氐","甸","刁","爹","丁","丟","东","吺","厾","耑","垖","吨","多","妸","诶","奀","鞥","儿","发","帆","匚","飞","分","丰","覅","仏","紑","夫","旮","侅","甘","冈","皋","戈","给","根","刯","工","勾","估","瓜","乖","关","光","归","丨","呙","哈","咍","佄","夯","茠","诃","黒","拫","亨","噷","叿","齁","乎","花","怀","欢","巟","灰","昏","吙","丌","加","戋","江","艽","阶","巾","坕","冂","丩","凥","姢","噘","军","咔","开","刊","忼","尻","匼","肎","劥","空","抠","扝","夸","蒯","宽","匡","亏","坤","扩","垃","来","兰","啷","捞","肋","勒","崚","哩","俩","奁","良","撩","毟","拎","伶","溜","囖","龙","瞜","噜","驴","娈","掠","抡","罗","呣","妈","埋","嫚","牤","猫","么","呅","门","甿","咪","宀","喵","乜","民","名","谬","摸","哞","毪","嗯","拏","腉","囡","囔","孬","疒","娞","恁","能","妮","拈","娘","鸟","捏","囜","宁","妞","农","羺","奴","女","奻","疟","黁","挪","喔","讴","妑","拍","眅","乓","抛","呸","喷","匉","丕","囨","剽","氕","姘","乒","钋","剖","仆","七","掐","千","呛","悄","癿","亲","靑","卭","丘","区","峑","缺","夋","呥","穣","娆","惹","人","扔","日","茸","厹","邚","挼","堧","婑","瞤","捼","仨","毢","三","桒","掻","閪","森","僧","杀","筛","山","伤","弰","奢","申","升","尸","収","书","刷","衰","闩","双","脽","吮","说","厶","忪","捜","苏","狻","夊","孙","唆","他","囼","坍","汤","夲","忑","熥","剔","天","旫","帖","厅","囲","偷","凸","湍","推","吞","乇","穵","歪","弯","尣","危","昷","翁","挝","乌","夕","虲","仙","乡","灱","些","心","星","凶","休","吁","吅","削","坃","丫","恹","央","幺","倻","一","囙","应","哟","佣","优","扜","囦","曰","晕","帀","災","兂","匨","傮","则","贼","怎","増","扎","捚","沾","张","佋","蜇","贞","争","之","中","州","朱","抓","拽","专","妆","隹","宒","卓","乲","宗","邹","租","钻","厜","尊","昨","兙"],EXCEPTIONS:{曾:"ZENG",沈:"SHEN",嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬤:"MO",嬷:"MO",蹒:"PAN",蹊:"XI",丬:"PAN",霰:"XIAN",莘:"XIN",豉:"CHI",饧:"XING",筠:"JUN",长:"CHANG",帧:"ZHEN",峙:"SHI",郍:"NA",芎:"XIONG",谁:"SHUI"}},vA="阿",yA="鿿",bA=1,Go=2,q2=3;let Ko=null,eu;function wA(e){e&&(typeof e=="function"&&(e=[e]),e.forEach&&e.forEach(t=>{typeof t=="function"&&t(Qc)}))}function $5(e){return!e&&Ko!==null||(typeof Intl=="object"&&Intl.Collator?(eu=new Intl.Collator(["zh-Hans-CN","zh-CN"]),Ko=Intl.Collator.supportedLocalesOf(["zh-CN"]).length===1):Ko=!1),Ko}function F5(e){const{UNIHANS:t}=Qc,{PINYINS:n}=Qc,{EXCEPTIONS:r}=Qc,i={source:e};if(e in r)return i.type=Go,i.target=r[e],i;let s=-1,l;if(e.charCodeAt(0)<256)return i.type=bA,i.target=e,i;if(l=eu.compare(e,vA),l<0)return i.type=q2,i.target=e,i;if(l===0)i.type=Go,s=0;else{if(l=eu.compare(e,yA),l>0)return i.type=q2,i.target=e,i;l===0&&(i.type=Go,s=t.length-1)}if(i.type=Go,s<0){let u=0,d=t.length-1;for(;u<=d;){s=~~((u+d)/2);const h=t[s];if(l=eu.compare(e,h),l===0)break;l>0?u=s+1:d=s-1}}return l<0&&s--,i.target=n[s],i.target||(i.type=q2,i.target=i.source),i}function H5(e){return typeof e!="string"||!$5()?e:e.split("").map(t=>F5(t))}const tu={isSupported:$5,parse:H5,patchDict:wA,genToken:F5,convertToPinyin(e,t,n){return H5(e).map(r=>t&&r.type===Go?r.target.toLowerCase():r.target).join(n||"")}};function CA(e){e.EXCEPTIONS={嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬷:"MO",蹊:"XI",丬:"PAN",霰:"XIAN",豉:"CHI",饧:"XING",帧:"ZHEN",芎:"XIONG",谁:"SHUI",钶:"KE"},e.UNIHANS[91]="伕",e.UNIHANS[347]="仚",e.UNIHANS[393]="诌",e.UNIHANS[39]="婤",e.UNIHANS[50]="腠",e.UNIHANS[369]="攸",e.UNIHANS[123]="乯",e.UNIHANS[171]="刕",e.UNIHANS[102]="佝",e.UNIHANS[126]="犿",e.UNIHANS[176]="列",e.UNIHANS[178]="刢",e.UNIHANS[252]="娝",e.UNIHANS[330]="偸"}function NA(e){return typeof e!="function"?!1:e("伕").target==="FOU"&&e("仚").target==="XIA"&&e("诌").target==="ZHONG"&&e("婤").target==="CHONG"&&e("腠").target==="CONG"&&e("攸").target==="YONG"&&e("乯").target==="HOU"&&e("刕").target==="LENG"&&e("佝").target==="GONG"&&e("犿").target==="HUAI"&&e("列").target==="LIAO"&&e("刢").target==="LIN"&&e("钶").target==="E"}const B5={patcher:CA,shouldPatch:NA};tu.isSupported()&&B5.shouldPatch(tu.genToken)&&tu.patchDict(B5);var U5=function(e){return e.FILLED="filled",e.STROKE="stroke",e.UNKNOWN="",e}(U5||{});const _A=a.defineComponent({name:"Tag",props:{theme:Yl().def(""),closable:v.bool.def(!1),type:ze("tagStorkeType",{}).def(U5.UNKNOWN),checkable:v.bool.def(!1),checked:v.bool.def(!1),radius:v.string.def("2px"),size:v.size()},emits:["change","close"],slots:Object,setup(e,{emit:t}){const{resolveClassName:n}=Ae();return{wrapperStyle:a.computed(()=>({borderRadius:e.radius})),handleClose:l=>{l.preventDefault(),l.stopPropagation(),t("close",l)},handleClick:l=>{l.preventDefault(),l.stopPropagation(),e.checkable&&t("change",!e.checked)},resolveClassName:n}},render(){var t,n;const e={[this.resolveClassName("tag")]:!0,[this.resolveClassName("tag-closable")]:this.closable,[this.resolveClassName("tag-checkable")]:this.checkable,[this.resolveClassName("tag-check")]:this.checked,[this.resolveClassName(`tag-${this.type}`)]:this.type,[this.resolveClassName(`tag-${this.theme}`)]:this.theme,[this.resolveClassName(`tag--${this.size}`)]:!0};return a.createVNode("div",{style:this.wrapperStyle,class:e,onClick:this.handleClick},[this.$slots.icon?a.createVNode("span",{class:`${this.resolveClassName("tag-icon")}`},[this.$slots.icon()]):"",a.createVNode("span",{class:`${this.resolveClassName("tag-text")}`},[(n=(t=this.$slots).default)==null?void 0:n.call(t)]),this.closable&&a.createVNode(bn,{class:`${this.resolveClassName("tag-close")}`,onClick:this.handleClose},null)])}}),Yo=ut(_A);var xA=bm();const qa=Jt(xA),SA=a.defineComponent({name:"SelectTagInput",directives:{bkTooltips:Qr},props:{selected:{type:Array,default:()=>[]},tagTheme:Yl(),placeholder:v.string.def(""),filterable:v.bool.def(!1),allowCreate:v.bool.def(!1),disabled:v.bool.def(!1),modelValue:v.any,collapseTags:v.bool.def(!1),behavior:wf()},emits:["update:modelValue","remove","enter","keydown"],setup(e,{emit:t}){const{resolveClassName:n}=Ae(),r=a.inject(Gc,null),{modelValue:i,collapseTags:s,selected:l}=a.toRefs(e),u=a.ref(i.value),d=a.ref(),h=a.ref(null),m=a.computed(()=>l.value.slice(h.value,l.value.length).map(A=>r==null?void 0:r.handleGetLabelByValue(A.value)).join(", "));a.watch(i,()=>{u.value=i.value}),a.watch([l,s],()=>{N.value=[],_()},{flush:"post"});const f=A=>{t("remove",A)},p=()=>{var A;(A=d.value)==null||A.focus()},y=()=>{var A;(A=d.value)==null||A.blur()},b=A=>{t("update:modelValue",A)},w=A=>{t("update:modelValue",A.target.value)},C=A=>{switch(A.code){case"NumpadEnter":case"Enter":{t("enter",A.target.value,A);break}}t("keydown",A.target.value,A)},N=a.ref([]),S=a.ref(),x=A=>N.value.map(k=>k==null?void 0:k.$el).filter(k=>!!k),_=()=>{s.value&&(h.value=null,setTimeout(()=>{var k,L;const A=x(),P=A.findIndex((D,H)=>H?A[H-1].offsetTop!==D.offsetTop:!1);h.value=P>0?P:null,((k=A[h.value])==null?void 0:k.offsetTop)!==((L=S.value)==null?void 0:L.offsetTop)&&h.value>1&&(h.value-=1)}))},O=qa(_,150),T=a.ref(),I=new ResizeObserver(()=>{O()});return a.onMounted(()=>{T.value&&I.observe(T.value)}),a.onBeforeUnmount(()=>{T.value&&I.unobserve(T.value)}),{collapseTagRef:S,tagWrapperRef:T,tagsRefs:N,select:r,overflowTagIndex:h,value:u,inputRef:d,overflowContent:m,handleRemoveTag:f,focus:p,blur:y,updateModelValue:b,handleInput:w,handleKeydown:C,resolveClassName:n}},render(){var i,s,l,u,d,h,m,f;const e=(s=(i=this.$slots)==null?void 0:i.prefix)==null?void 0:s.call(i),t=Ze({[this.resolveClassName("select-tag")]:!0,[this.resolveClassName("select-tag--default")]:!0,"is-disabled":this.disabled,"collapse-tag":this.collapseTags,"has-prefix":!!e,"is-simplicity":this.behavior==="simplicity"}),n=Ze({[this.resolveClassName("select-tag-wrapper")]:!0}),r={display:this.selected.length&&!this.filterable?"none":""};return a.createVNode("div",{ref:"tagWrapperRef",class:t},[(u=(l=this.$slots)==null?void 0:l.prefix)==null?void 0:u.call(l),a.createVNode("div",{class:n},[((h=(d=this.$slots).default)==null?void 0:h.call(d))??this.selected.map((p,y)=>a.createVNode(Yo,{key:p.value,ref:b=>this.tagsRefs[y]=b,style:{display:this.collapseTags&&this.overflowTagIndex&&y>=this.overflowTagIndex?"none":""},theme:this.tagTheme,closable:!0,onClose:()=>this.handleRemoveTag(p.value)},{default:()=>{var b,w;return[((w=(b=this.$slots).tagRender)==null?void 0:w.call(b,p))??a.createVNode(c2,{type:"tips"},{default:()=>{var C;return[(C=this.select)==null?void 0:C.handleGetLabelByValue(p.value)]}})]}})),a.withDirectives(a.createVNode(Yo,{ref:"collapseTagRef",style:{display:this.overflowTagIndex&&this.collapseTags?"":"none"},class:this.resolveClassName("select-overflow-tag")},{default:()=>[a.createTextVNode("+"),this.selected.length-this.overflowTagIndex]}),[[a.resolveDirective("bk-tooltips"),{content:this.overflowContent,disabled:!this.overflowTagIndex||!this.collapseTags,extCls:this.resolveClassName("select-tooltips")}]]),a.createVNode("input",{ref:"inputRef",style:r,class:this.resolveClassName("select-tag-input"),disabled:this.disabled,placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,type:"text",value:this.filterable?this.value:"",onInput:this.handleInput,onKeydown:this.handleKeydown},null)]),(f=(m=this.$slots)==null?void 0:m.suffix)==null?void 0:f.call(m)])}}),TA=a.defineComponent({name:"Select",directives:{clickoutside:Kr},props:{modelValue:v.any,multiple:v.bool.def(!1),disabled:v.bool.def(!1),size:v.size().def(vf.DEFAULT),clearable:v.bool.def(!0),loading:v.bool.def(!1),filterable:v.bool.def(!1),remoteMethod:v.func,scrollHeight:v.number.def(204),minHeight:v.number,showAll:v.bool.def(!1),allOptionText:v.string.def(""),allOptionId:v.oneOfType([v.number,v.string]),showSelectAll:v.bool.def(!1),popoverMinWidth:v.number.def(0),showOnInit:v.bool.def(!1),multipleMode:v.oneOf(["default","tag"]).def("default"),tagTheme:Yl(),behavior:wf(),collapseTags:v.bool.def(!1),autoHeight:v.bool.def(!0),noDataText:v.string,noMatchText:v.string,loadingText:v.string,placeholder:v.string,searchPlaceholder:v.string,selectAllText:v.string,scrollLoading:v.bool.def(!1),allowCreate:v.bool.def(!1),popoverOptions:Object,customContent:v.bool.def(!1),list:v.arrayOf(v.any).def([]),idKey:v.string.def("value"),displayKey:v.string.def("label"),withValidate:v.bool.def(!0),showSelectedIcon:v.bool.def(!0),inputSearch:v.bool.def(!1),enableVirtualRender:v.bool.def(!1),allowEmptyValues:v.array.def([]),autoFocus:v.bool.def(!1),disableFocusBehavior:v.bool.def(!1),keepSearchValue:v.bool.def(!1),prefix:v.string,selectedStyle:Z_(),filterOption:{type:Function},searchWithPinyin:v.bool.def(!0),highlightKeyword:v.bool.def(!1),trigger:{type:String,default:"default"},disableScrollToSelectedOption:v.bool.def(!1),inputTooltipsOptions:{type:Object,default:()=>({})}},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur","tag-remove","select","deselect","search-change"],setup(e,{emit:t}){const n=St("select"),{resolveClassName:r}=Ae(),{modelValue:i,disabled:s,filterable:l,multiple:u,remoteMethod:d,loading:h,popoverMinWidth:m,showOnInit:f,multipleMode:p,allowCreate:y,customContent:b,showSelectedIcon:w,inputSearch:C,enableVirtualRender:N,showSelectAll:S,showAll:x,allOptionId:_,scrollHeight:O,list:T,displayKey:I,idKey:A,collapseTags:P,autoHeight:k,popoverOptions:L,allowEmptyValues:D,autoFocus:H,keepSearchValue:B,selectedStyle:W,filterOption:J,searchWithPinyin:G,highlightKeyword:K,disableFocusBehavior:le,trigger:ae,disableScrollToSelectedOption:$}=a.toRefs(e),M=a.ref(null),V=a.computed(()=>e.allOptionText),z=a.computed(()=>e.noDataText===void 0?n.value.noData:e.noDataText),q=a.computed(()=>e.noMatchText===void 0?n.value.noMatchedData:e.noMatchText),se=a.computed(()=>e.loadingText===void 0?n.value.loading:e.loadingText),ce=a.computed(()=>e.placeholder===void 0?n.value.pleaseSelect:e.placeholder),Ce=a.computed(()=>e.searchPlaceholder===void 0?n.value.enterKeywords:e.searchPlaceholder),re=a.computed(()=>e.selectAllText===void 0?n.value.selectAll:e.selectAllText),oe=Tr(),pe=a.ref(),Q=a.ref(),Z=a.ref(),Y=a.ref(),te=a.ref(),Ne=a.ref(),ee=a.ref(),ye=a.ref(new Map),he=a.computed(()=>[...ye.value.values()].sort((Le,Fe)=>Le.order-Fe.order)),j=a.ref(new Map),X=a.ref([]),we=a.computed(()=>X.value.reduce((Le,Fe)=>(Le[Fe.value]=Fe.label,Le),{[`${_.value}`]:n.value.all})),de=a.ref(),ne=a.computed(()=>T.value.reduce((Le,Fe)=>(Le[Fe[A.value]]=Fe[I.value],Le),{}));a.watch([ye,T],()=>{Ws()}),a.watch(i,()=>{var Le;Ws(),e.withValidate&&((Le=oe==null?void 0:oe.validate)==null||Le.call(oe,"change"))},{deep:!0}),a.watch(X,()=>{var Le;(Le=ee.value)==null||Le.updatePopover(null,rt.value)});const ge=a.computed(()=>Te.value?T.value:T.value.filter(Le=>Xe(wt.value,String(Le[I.value]),Le))),Se=a.computed(()=>s.value||h.value),Pe=a.computed(()=>X.value.map(Le=>{var Fe,Ke;return((Ke=(Fe=ye.value)==null?void 0:Fe.get(Le.value))==null?void 0:Ke.optionName)||ne.value[Le.value]||Le.label})),Be=a.computed(()=>{const Le=he.value.reduce((Fe,Ke)=>(Ke.disabled||Fe.push(Ke.optionID),Fe),[]);return Le.length<=X.value.length&&Le.every(Fe=>X.value.some(Ke=>Ke.value===Fe))}),Qe=a.computed(()=>{var Le;return X.value.length===1&&((Le=X.value[0])==null?void 0:Le.value)===_.value}),it=a.computed(()=>!!j.value.size),be=a.computed(()=>!he.value.length),xe=a.computed(()=>he.value.length&&he.value.every(Le=>!Le.visible)),Te=a.computed(()=>l.value&&typeof d.value=="function"),$e=a.computed(()=>!!(J.value&&typeof J.value=="function")),qe=a.computed(()=>b.value?!0:!(jt.value||be.value||xe.value)),at=a.computed(()=>u.value&&S.value&&(!wt.value||!l.value)),_t=a.computed(()=>u.value&&x.value),At=a.computed(()=>O.value-12-(at.value?32:0)),Ct=a.ref(32),Nt=a.computed(()=>N.value?ge.value.length*Ct.value>At.value:!1),It=a.computed(()=>Math.ceil(At.value/Ct.value)),Dt=a.computed(()=>jt.value?se.value:xe.value||T.value.length&&!ge.value.length?q.value:be.value?z.value:""),Tt=a.computed(()=>k.value?P.value&&!gr.value:P.value),rt=a.computed(()=>To({theme:`light ${r("select-popover")}`,trigger:"manual",width:$i.value,arrow:!1,placement:"bottom-start",isShow:gr.value,reference:Ne.value,offset:4,popoverDelay:0,renderType:Kl.AUTO,referenceCls:r("select-popover-reference")},L.value)),{register:st,unregister:Mn}=f2(ye),{register:$s,unregister:Fs}=f2(j),{isHover:Mi,setHover:Hs,cancelHover:ni}=W4(),xa=a.ref(!1),dn=()=>{xa.value||(xa.value=!0,t("focus"))},pr=()=>{xa.value&&(xa.value=!1,js(),t("blur"))},{popperWidth:$i,isPopoverShow:gr,hidePopover:ri,showPopover:Fi,togglePopover:Xn}=xO({popoverMinWidth:m.value},Q),Sa=()=>{ae.value!=="manual"&&ri()},Bs=()=>{ae.value!=="manual"&&Fi()},ai=a.computed(()=>l.value&&C.value&&gr.value||y.value);a.watch(gr,Le=>{t("toggle",gr.value),Le?(document.addEventListener("keydown",Bi),setTimeout(()=>{vr(),zs(),Us()},10)):(B.value||(Me.value=""),document.removeEventListener("keydown",Bi))});const Us=()=>{var Fe,Ke,Rt;if(Nt.value||$.value)return;const Le=(Ke=(Fe=Z.value)==null?void 0:Fe.querySelectorAll)==null?void 0:Ke.call(Fe,".is-selected");(Rt=Le==null?void 0:Le[0])==null||Rt.scrollIntoView({block:"center"})},zs=()=>{var Ke;const Le=X.value[0],Fe=ye.value.get(Le==null?void 0:Le.value);Fe&&!Fe.disabled&&Fe.visible?de.value=Le==null?void 0:Le.value:de.value=(Ke=he.value.find(Rt=>!Rt.disabled&&Rt.visible))==null?void 0:Ke.optionID},Xe=(Le,Fe,Ke={})=>{var Rt,Zn;if($e.value)return!!J.value(Le,{...Ke});if(G.value){const Qn=tu.parse(Fe).map(Hr=>Hr.type===2?Hr.target.toLowerCase():Hr.target),Fr=Qn.reduce((Hr,nn)=>Hr+nn[0],"");return Qn.join("").indexOf(Le)!==-1||Fr.indexOf(Le)!==-1||((Rt=xs(String(Fe)))==null?void 0:Rt.includes(xs(Le)))}return(Zn=xs(String(Fe)))==null?void 0:Zn.includes(xs(Le))},fe=Le=>{l.value&&(Le?he.value.forEach(Fe=>{Fe.visible=Xe(Le,String(Fe.optionName),{...Fe.$props,...Fe.$attrs})}):he.value.forEach(Fe=>{Fe.visible=!0}))},{searchValue:Me,customOptionName:We,curSearchValue:wt,searchLoading:jt}=SO(Te.value?d.value:fe,zs);a.watch(Me,()=>{te.value.scrollTop=0,de.value="",t("search-change",Me.value)});const yt=Le=>{Le!==i.value&&(t("update:modelValue",Le,i.value),t("change",Le,i.value),Ws(),u.value&&(We.value=""))},on=()=>{Se.value||ae.value==="manual"||(dn(),Xn())},Jn=Le=>{l.value&&(We.value=Le)},Ta=(Le,Fe)=>{const Ke=String(Le);if(!y.value||!Ke)return;Fe.stopPropagation(),Fe.preventDefault();const Rt=he.value.find(Qn=>xs(String(Qn.optionName))===xs(Ke));if(l.value&&Rt){$r(Rt);return}ye.value.get(Ke)||(u.value?(X.value.push({value:Ke,label:Ke}),yt(X.value.map(Qn=>Qn.value))):(X.value=[{value:Ke,label:Ke}],yt(Ke),Sa()))},$r=Le=>{if(Se.value||!Le)return;const Fe=X.value.findIndex(Ke=>Ke.value===_.value);if(Fe>-1&&X.value.splice(Fe,1),u.value){const Ke=X.value.findIndex(Rt=>Rt.value===Le.optionID);Ke>-1?(X.value.splice(Ke,1),yt(X.value.map(Rt=>Rt.value)),t("deselect",Le.optionID)):(X.value.push({value:Le.optionID,label:Le.optionName||Le.optionID}),yt(X.value.map(Rt=>Rt.value)),t("select",Le.optionID),Wt()),vr()}else X.value=[{label:Le.optionName||Le.optionID,value:Le.optionID}],yt(Le.optionID),t("select",Le.optionID),Sa(),pr()},Wt=()=>{var Le;["tag"].includes(p.value)&&ai.value&&((Le=Ne.value)==null||Le.updateModelValue(""))},vr=()=>{le.value||setTimeout(()=>{var Le,Fe,Ke;!C.value&&!y.value?(Le=Y.value)==null||Le.focus():p.value==="tag"?(Fe=Ne.value)==null||Fe.focus():(Ke=pe.value)==null||Ke.focus()},0)},js=()=>{setTimeout(()=>{var Le,Fe;p.value==="tag"?(Le=Ne.value)==null||Le.blur():(Fe=pe.value)==null||Fe.blur()},0)},b6=Le=>{Le.stopPropagation(),X.value=[],We.value="",Wt(),yt(u.value?[]:""),t("clear",u.value?[]:""),Sa()},w6=()=>{de.value=""},C6=()=>{var Le;if(Be.value)X.value=[];else{const Fe=new Map;he.value.forEach(Ke=>{Ke.disabled||Fe.has(Ke.optionID)||Fe.set(Ke.optionID,Ke.optionName||Ke.optionID)}),(Le=T.value)==null||Le.forEach(Ke=>{Ke.disabled||Fe.has(Ke[A.value])||Fe.set(Ke[A.value],Ke[I.value])}),X.value=Array.from(Fe.keys()).map(Ke=>({value:Ke,label:Fe.get(Ke)}))}yt(X.value.map(Fe=>Fe.value)),vr()},Zu=()=>{if(!_t.value)return;X.value.findIndex(Fe=>Fe.value===_.value)>-1?X.value=[]:X.value=[{value:_.value,label:n.value.all}],yt(X.value.map(Fe=>Fe.value)),vr()},Qu=Le=>{const{scrollTop:Fe,clientHeight:Ke,scrollHeight:Rt}=Le.target;Fe+Ke===Rt&&t("scroll-end")},ed=Le=>{if(Se.value)return;const Fe=X.value.findIndex(Ke=>Ke.value===Le);Fe>-1&&(X.value.splice(Fe,1),yt(X.value.map(Ke=>Ke.value)),t("tag-remove",Le))},Hi=Le=>{var Ke,Rt;let Fe=Le;if(typeof Fe=="object"){for(const Zn of ye.value.keys())if(U2(Zn,Fe)){Fe=Zn;break}}return((Rt=(Ke=ye.value)==null?void 0:Ke.get(Fe))==null?void 0:Rt.optionName)||ne.value[Fe]||we.value[Fe]||Fe},Ws=()=>{Array.isArray(i.value)?X.value=[...i.value.map(Le=>({value:Le,label:Hi(Le)}))]:i.value||D.value.includes(i.value)?X.value=[{value:i.value,label:Hi(i.value)}]:X.value=[]},td=Le=>{X.value=Le.map(Fe=>({label:Fe[I.value],value:Fe[A.value]}))},Bi=Le=>{var Rt,Zn,Qn,Fr,Hr;if(!gr.value||Nt.value)return;const Fe=he.value.filter(nn=>!nn.disabled&&nn.visible),Ke=Fe.findIndex(nn=>nn.optionID===de.value);switch(Le.code){case"ArrowUp":case"ArrowDown":{Le.preventDefault();let nn=0;Le.code==="ArrowDown"?nn=Ke>=Fe.length-1?0:Ke+1:nn=Ke===0?Fe.length-1:Ke-1,TO((Rt=Fe[nn])==null?void 0:Rt.$el,Z.value)||(Qn=(Zn=Fe[nn])==null?void 0:Zn.$el)==null||Qn.scrollIntoView(),de.value=(Fr=Fe[nn])==null?void 0:Fr.optionID;break}case"Backspace":{if(!u.value||!X.value.length||We.value.length||Le.target===Y.value)return;X.value.pop(),yt(X.value.map(nn=>nn.value));break}case"NumpadEnter":case"Enter":{const{value:nn}=Le.target;if(y.value&&nn||Le.target===Y.value&&((Hr=Y.value)!=null&&Hr.value))return;const _6=ye.value.get(de.value);$r(_6);break}}},nd=({event:Le})=>{var Ke;const{target:Fe}=Le;(Ke=Q.value)!=null&&Ke.contains(Fe)||Q.value===Fe||(Sa(),pr())};return a.provide(Gc,a.reactive({multiple:u,selected:X,activeOptionValue:de,showSelectedIcon:w,selectedStyle:W,curSearchValue:wt,highlightKeyword:K,isSearchEmpty:xe,register:st,unregister:Mn,registerGroup:$s,unregisterGroup:Fs,handleOptionSelected:$r,handleGetLabelByValue:Hi})),a.onMounted(()=>{Ws(),setTimeout(()=>{f.value&&Bs(),H.value&&vr()})}),{t:n,selected:X,isInput:ai,options:he,isDisabled:Se,selectedLabel:Pe,isPopoverShow:gr,isHover:Mi,popperWidth:$i,inputRef:pe,triggerRef:Q,contentRef:Z,searchRef:Y,scrollContainerRef:te,selectTagInputRef:Ne,popoverRef:ee,searchLoading:jt,isOptionsEmpty:be,isSearchEmpty:xe,isFocus:xa,isShowSelectContent:qe,curContentText:Dt,isGroup:it,searchValue:Me,curSearchValue:wt,customOptionName:We,isShowAll:_t,isShowSelectAll:at,virtualHeight:At,filterList:ge,isCollapseTags:Tt,popoverConfig:rt,isAllSelected:Be,isAll:Qe,displayAllText:V,focusInput:vr,setHover:Hs,cancelHover:ni,handleFocus:dn,handleBlur:pr,handleTogglePopover:on,handleClear:b6,hidePopover:ri,showPopover:Fi,toggleSelectAll:C6,toggleAll:Zu,handleOptionSelected:$r,handleClickOutside:nd,handleScroll:Qu,handleDeleteTag:ed,handleInputChange:Jn,handleSelectedAllOptionMouseEnter:w6,localLoadingText:se,localPlaceholder:ce,localSearchPlaceholder:Ce,localSelectAllText:re,resolveClassName:r,handleCreateCustomOption:Ta,handlePopoverShown:()=>{var Le;(Le=M.value)==null||Le.scrollTo(0,1)},virtualLineHeight:Ct,isEnableVirtualRender:Nt,preloadItemCount:It,virtualRenderRef:M,setSelected:td,handleExtensionClick:Le=>{Le.stopPropagation()}}},render(){const e=Ze({[`${this.resolveClassName("select")}`]:!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable,[this.size]:!0,[this.behavior]:!0}),t=()=>{var f,p,y;return this.loading?a.createVNode($a,{class:"spinner",loading:!0,mode:"spin",size:"mini",theme:"primary"},null):this.clearable&&this.isHover&&this.selected.length&&!this.isDisabled||this.allowCreate&&this.isHover&&this.customOptionName&&!this.isDisabled?a.createVNode(Rn,{class:"clear-icon",onClick:this.handleClear},null):(f=this.$slots)!=null&&f.suffix?a.createVNode("span",{class:"angle-down"},[(y=(p=this.$slots)==null?void 0:p.suffix)==null?void 0:y.call(p)]):a.createVNode(fs,{class:"angle-down"},null)},n=()=>{var f;return this.prefix?()=>a.createVNode("div",{class:`${this.resolveClassName("select--prefix-area")}`},[a.createVNode("span",null,[this.prefix])]):(f=this.$slots)!=null&&f.prefix?()=>{var p,y;return(y=(p=this.$slots)==null?void 0:p.prefix)==null?void 0:y.call(p)}:void 0},r=()=>{if(this.isShowSelectAll)return a.createVNode("li",{class:this.resolveClassName("select-option"),onClick:this.toggleSelectAll,onMouseenter:this.handleSelectedAllOptionMouseEnter},[this.selectedStyle==="checkbox"&&a.createVNode(wn,{class:this.resolveClassName("select-checkbox"),indeterminate:!this.isAllSelected&&!!this.selected.length&&!this.isAll,modelValue:this.isAllSelected},null),this.localSelectAllText])},i=()=>{var f,p;return((p=(f=this.$slots)==null?void 0:f.allOptionIcon)==null?void 0:p.call(f))||a.createVNode(Vc,{class:"select-all-icon"},null)},s=()=>a.createVNode("span",null,[this.displayAllText||this.t.all]),l=()=>{var f;if(this.isShowAll)return a.createVNode("div",{class:this.resolveClassName("select-all")},[a.createVNode("div",{class:["wrapper",this.selected.length===1&&((f=this.selected[0])==null?void 0:f.value)===this.allOptionId?"active":""],onClick:this.toggleAll},[i(),s()])])},u=()=>{var f,p,y;return this.multipleMode==="tag"?a.createVNode(SA,{ref:"selectTagInputRef",modelValue:this.customOptionName,"onUpdate:modelValue":b=>this.customOptionName=b,behavior:this.behavior,collapseTags:this.isCollapseTags,disabled:this.isDisabled,filterable:this.isInput,placeholder:this.localPlaceholder,selected:this.selected,tagTheme:this.tagTheme,onEnter:this.handleCreateCustomOption,onRemove:this.handleDeleteTag},{prefix:n(),default:((f=this.$slots)==null?void 0:f.tag)&&(()=>{var b;return(b=this.$slots)==null?void 0:b.tag({selected:this.selected})}),tagRender:((p=this.$slots)==null?void 0:p.tagRender)&&(b=>{var w;return(w=this.$slots)==null?void 0:w.tagRender(b)}),suffix:()=>t()}):a.createVNode(za,a.mergeProps({ref:"inputRef",behavior:this.behavior,disabled:this.isDisabled,modelValue:this.isInput&&this.customOptionName?this.customOptionName:this.selectedLabel.join(","),placeholder:this.isInput?this.selectedLabel.join(",")||this.localPlaceholder:this.localPlaceholder,readonly:!this.isInput,selectReadonly:!0,size:this.size,stopPropagation:!1,tooltipsOptions:this.inputTooltipsOptions,type:"text",withValidate:!1,onEnter:this.handleCreateCustomOption,onInput:this.handleInputChange},this.prefix?{prefix:this.prefix}:null),{...typeof((y=this.$slots)==null?void 0:y.prefix)=="function"?{prefix:()=>{var b,w;return(w=(b=this.$slots)==null?void 0:b.prefix)==null?void 0:w.call(b)}}:null,suffix:()=>t()})},d=()=>{var f,p;return a.createVNode("div",{ref:"triggerRef",style:{height:this.autoHeight&&this.collapseTags?"32px":""},class:this.resolveClassName("select-trigger"),onClick:this.handleTogglePopover,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[((p=(f=this.$slots)==null?void 0:f.trigger)==null?void 0:p.call(f,{selected:this.selected}))||u()])},h=()=>this.isEnableVirtualRender?a.createVNode(qo,{ref:"virtualRenderRef",height:this.virtualHeight,lineHeight:this.virtualLineHeight,list:this.filterList,preloadItemCount:this.preloadItemCount,scrollbar:{enabled:!0,size:"small"}},{default:({data:f})=>{var y,b;const p=((y=this.$slots)==null?void 0:y.optionRender)||((b=this.$slots)==null?void 0:b.virtualScrollRender);return f.map(w=>a.createVNode(Yc,{id:w[this.idKey],key:w[this.idKey],disabled:!!w.disabled,name:w[this.displayKey]},typeof p=="function"?{default:()=>p({item:w})}:null))}}):this.filterList.map(f=>{var y,b;const p=((y=this.$slots)==null?void 0:y.optionRender)||((b=this.$slots)==null?void 0:b.virtualScrollRender);return a.createVNode(Yc,{id:f[this.idKey],key:f[this.idKey],disabled:!!f.disabled,name:f[this.displayKey]},typeof p=="function"?{default:()=>p({item:f})}:null)}),m=()=>{var f,p,y,b;return a.createVNode("div",{ref:"contentRef",class:this.resolveClassName("select-content-wrapper")},[l(),this.filterable&&!this.inputSearch&&a.createVNode("div",{class:this.resolveClassName("select-search-wrapper")},[a.createVNode(xi,{width:16,height:16,class:"icon-search"},null),a.withDirectives(a.createVNode("input",{ref:"searchRef",class:this.resolveClassName("select-search-input"),"onUpdate:modelValue":w=>this.searchValue=w,placeholder:this.localSearchPlaceholder},null),[[a.vModelText,this.searchValue]])]),!this.isShowSelectContent&&a.createVNode("div",{class:this.resolveClassName("select-empty")},[this.searchLoading&&a.createVNode($a,{class:"mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.curContentText])]),a.createVNode("div",{class:this.resolveClassName("select-content")},[a.withDirectives(a.createVNode("div",{ref:"scrollContainerRef",style:{maxHeight:`${this.scrollHeight}px`,minHeight:`${this.minHeight}px`},class:this.isEnableVirtualRender?"":this.resolveClassName("select-dropdown"),onScroll:this.handleScroll},[a.createVNode("ul",{class:this.resolveClassName("select-options")},[r(),h(),(p=(f=this.$slots)==null?void 0:f.default)==null?void 0:p.call(f),this.scrollLoading&&a.createVNode("li",{class:this.resolveClassName("select-options-loading")},[a.createVNode($a,{class:"spinner mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.localLoadingText])])])]),[[a.vShow,this.isShowSelectContent]]),((y=this.$slots)==null?void 0:y.extension)&&a.createVNode("div",{class:this.resolveClassName("select-extension"),onClick:this.handleExtensionClick},[(b=this.$slots)==null?void 0:b.extension()])])])};return a.createVNode("div",{class:e},[a.createVNode(In,a.mergeProps(this.popoverConfig,{ref:"popoverRef",onAfterShow:this.handlePopoverShown,onClickoutside:this.handleClickOutside}),{default:()=>d(),content:()=>m()})])}}),G2=yn(TA,{Option:Yc,Group:YO}),ya=10;function EA(e){const t=a.reactive({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:t,initPage:(i=[])=>{t.curPage=1,t.totalSize=i.length,t.totalPage=Math.ceil(t.totalSize/t.pageSize)||1;const s=[];if(t.pageSize>0)for(let l=0;l<t.totalSize;l+=t.pageSize)s.push(i.slice(l,l+t.pageSize));t.renderListPaged.splice(0,t.renderListPaged.length,...s),t.curPageList.splice(0,t.curPageList.length,...t.renderListPaged[t.curPage-1]||[])},pageChange:i=>{t.curPage=i,t.curPageList.splice(t.curPageList.length,0,...t.renderListPaged[t.curPage-1]||[]),t.isPageLoading=!1}}}function OA(e){const{useGroup:t,saveKey:n,displayKey:r,list:i}=a.toRefs(e),s=a.ref([]),l=a.ref({});return a.watch([t,n,r,i],()=>{s.value=[];let u=a.markRaw(i.value);t.value&&(u=u.reduce((d,h)=>{let m=[];return h.children&&(m=h.children.map(f=>({group:{groupId:h[n.value],groupName:h[r.value]},...f}))),d.concat(m)},[])),s.value=u,l.value=u.reduce((d,h)=>(d[h[n.value]]=h,d),{})},{immediate:!0,deep:!0}),{flatList:s,saveKeyMap:l}}const z5=e=>{const t=e.length;let n=0;for(let r=0;r<t;r++)(e.charCodeAt(r)&65280)!==0&&(n+=1),n+=1;return n},j5=(e,t,n)=>{a.watch([n,t],()=>{i()},{flush:"post"});const r=a.ref(null),i=()=>{t.value&&(r.value=null,setTimeout(()=>{const s=Array.from(e.value.querySelectorAll(".tag-item")),l=s.findIndex((u,d)=>d?s[d-1].offsetTop!==u.offsetTop:!1);r.value=l>0?l-1:null}))};return{overflowTagIndex:r}};var K2,W5;function AA(){if(W5)return K2;W5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return K2=e,K2}var Y2,q5;function G5(){if(q5)return Y2;q5=1;var e=mo(),t=AA(),n=jn(),r=Ul(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function l(u){if(typeof u=="string")return u;if(n(u))return t(u,l)+"";if(r(u))return s?s.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return Y2=l,Y2}var X2,K5;function LA(){if(K5)return X2;K5=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++i<s;)l[i]=t[i+n];return l}return X2=e,X2}var J2,Y5;function DA(){if(Y5)return J2;Y5=1;var e=LA();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return J2=t,J2}var Z2,X5;function RA(){if(X5)return Z2;X5=1;function e(t,n,r,i){for(var s=t.length,l=r+(i?1:-1);i?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return Z2=e,Z2}var Q2,J5;function IA(){if(J5)return Q2;J5=1;function e(t){return t!==t}return Q2=e,Q2}var e1,Z5;function VA(){if(Z5)return e1;Z5=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return e1=e,e1}var t1,Q5;function e8(){if(Q5)return t1;Q5=1;var e=RA(),t=IA(),n=VA();function r(i,s,l){return s===s?n(i,s,l):e(i,t,l)}return t1=r,t1}var n1,t8;function PA(){if(t8)return n1;t8=1;var e=e8();function t(n,r){for(var i=n.length;i--&&e(r,n[i],0)>-1;);return i}return n1=t,n1}var r1,n8;function kA(){if(n8)return r1;n8=1;var e=e8();function t(n,r){for(var i=-1,s=n.length;++i<s&&e(r,n[i],0)>-1;);return i}return r1=t,r1}var a1,r8;function MA(){if(r8)return a1;r8=1;function e(t){return t.split("")}return a1=e,a1}var i1,a8;function $A(){if(a8)return i1;a8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",u=RegExp("["+l+e+i+s+"]");function d(h){return u.test(h)}return i1=d,i1}var s1,i8;function FA(){if(i8)return s1;i8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",u="["+i+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+u+"|"+d+")",m="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",b=h+"?",w="["+s+"]?",C="(?:"+y+"(?:"+[m,f,p].join("|")+")"+w+b+")*",N=w+b+C,S="(?:"+[m+u+"?",u,f,p,l].join("|")+")",x=RegExp(d+"(?="+d+")|"+S+N,"g");function _(O){return O.match(x)||[]}return s1=_,s1}var o1,s8;function HA(){if(s8)return o1;s8=1;var e=MA(),t=$A(),n=FA();function r(i){return t(i)?n(i):e(i)}return o1=r,o1}var l1,o8;function l8(){if(o8)return l1;o8=1;var e=G5();function t(n){return n==null?"":e(n)}return l1=t,l1}var c1,c8;function BA(){if(c8)return c1;c8=1;var e=G5(),t=cm(),n=DA(),r=PA(),i=kA(),s=HA(),l=l8();function u(d,h,m){if(d=l(d),d&&(m||h===void 0))return t(d);if(!d||!(h=e(h)))return d;var f=s(d),p=s(h),y=i(f,p),b=r(f,p)+1;return n(f,y,b).join("")}return c1=u,c1}var UA=BA();const zA=Jt(UA);var u1,u8;function jA(){if(u8)return u1;u8=1;var e=Ip(),t=jo();function n(r,i){return r&&e(r,i,t)}return u1=n,u1}var d1,d8;function WA(){if(d8)return d1;d8=1;var e=ls();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var l=i.length,u=r?l:-1,d=Object(i);(r?u--:++u<l)&&s(d[u],u,d)!==!1;);return i}}return d1=t,d1}var f1,f8;function qA(){if(f8)return f1;f8=1;var e=jA(),t=WA(),n=t(e);return f1=n,f1}var h1,h8;function GA(){if(h8)return h1;h8=1;var e=qA();function t(n,r){var i=[];return e(n,function(s,l,u){r(s,l,u)&&i.push(s)}),i}return h1=t,h1}var m1,m8;function KA(){if(m8)return m1;m8=1;var e=rc(),t=H2(),n=1,r=2;function i(s,l,u,d){var h=u.length,m=h,f=!d;if(s==null)return!m;for(s=Object(s);h--;){var p=u[h];if(f&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++h<m;){p=u[h];var y=p[0],b=s[y],w=p[1];if(f&&p[2]){if(b===void 0&&!(y in s))return!1}else{var C=new e;if(d)var N=d(b,w,y,s,l,C);if(!(N===void 0?t(w,b,n|r,d,C):N))return!1}}return!0}return m1=i,m1}var p1,p8;function g8(){if(p8)return p1;p8=1;var e=cr();function t(n){return n===n&&!e(n)}return p1=t,p1}var g1,v8;function YA(){if(v8)return g1;v8=1;var e=g8(),t=jo();function n(r){for(var i=t(r),s=i.length;s--;){var l=i[s],u=r[l];i[s]=[l,u,e(u)]}return i}return g1=n,g1}var v1,y8;function b8(){if(y8)return v1;y8=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return v1=e,v1}var y1,w8;function XA(){if(w8)return y1;w8=1;var e=KA(),t=YA(),n=b8();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===i||e(l,i,s)}}return y1=r,y1}var b1,C8;function w1(){if(C8)return b1;C8=1;var e=jn(),t=Ul(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,l){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return b1=i,b1}var C1,N8;function JA(){if(N8)return C1;N8=1;var e=a0(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var l=arguments,u=i?i.apply(this,l):l[0],d=s.cache;if(d.has(u))return d.get(u);var h=r.apply(this,l);return s.cache=d.set(u,h)||d,h};return s.cache=new(n.Cache||e),s}return n.Cache=e,C1=n,C1}var N1,_8;function ZA(){if(_8)return N1;_8=1;var e=JA(),t=500;function n(r){var i=e(r,function(l){return s.size===t&&s.clear(),l}),s=i.cache;return i}return N1=n,N1}var _1,x8;function QA(){if(x8)return _1;x8=1;var e=ZA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(l,u,d,h){s.push(d?h.replace(n,"$1"):u||l)}),s});return _1=r,_1}var x1,S8;function T8(){if(S8)return x1;S8=1;var e=jn(),t=w1(),n=QA(),r=l8();function i(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return x1=i,x1}var S1,E8;function nu(){if(E8)return S1;E8=1;var e=Ul();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return S1=t,S1}var T1,O8;function A8(){if(O8)return T1;O8=1;var e=T8(),t=nu();function n(r,i){i=e(i,r);for(var s=0,l=i.length;r!=null&&s<l;)r=r[t(i[s++])];return s&&s==l?r:void 0}return T1=n,T1}var E1,L8;function D8(){if(L8)return E1;L8=1;var e=A8();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return E1=t,E1}var O1,R8;function eL(){if(R8)return O1;R8=1;function e(t,n){return t!=null&&n in Object(t)}return O1=e,O1}var A1,I8;function V8(){if(I8)return A1;I8=1;var e=T8(),t=ic(),n=jn(),r=B0(),i=O0(),s=nu();function l(u,d,h){d=e(d,u);for(var m=-1,f=d.length,p=!1;++m<f;){var y=s(d[m]);if(!(p=u!=null&&h(u,y)))break;u=u[y]}return p||++m!=f?p:(f=u==null?0:u.length,!!f&&i(f)&&r(y,f)&&(n(u)||t(u)))}return A1=l,A1}var L1,P8;function tL(){if(P8)return L1;P8=1;var e=eL(),t=V8();function n(r,i){return r!=null&&t(r,i,e)}return L1=n,L1}var D1,k8;function nL(){if(k8)return D1;k8=1;var e=H2(),t=D8(),n=tL(),r=w1(),i=g8(),s=b8(),l=nu(),u=1,d=2;function h(m,f){return r(m)&&i(f)?s(l(m),f):function(p){var y=t(p,m);return y===void 0&&y===f?n(p,m):e(f,y,u|d)}}return D1=h,D1}var R1,M8;function rL(){if(M8)return R1;M8=1;function e(t){return function(n){return n==null?void 0:n[t]}}return R1=e,R1}var I1,$8;function aL(){if($8)return I1;$8=1;var e=A8();function t(n){return function(r){return e(r,n)}}return I1=t,I1}var V1,F8;function iL(){if(F8)return V1;F8=1;var e=rL(),t=aL(),n=w1(),r=nu();function i(s){return n(s)?e(r(s)):t(s)}return V1=i,V1}var P1,H8;function sL(){if(H8)return P1;H8=1;var e=XA(),t=nL(),n=X0(),r=jn(),i=iL();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):i(l)}return P1=s,P1}var k1,B8;function oL(){if(B8)return k1;B8=1;var e=l5(),t=GA(),n=sL(),r=jn();function i(s,l){var u=r(s)?e:t;return u(s,n(l,3))}return k1=i,k1}var lL=oL();const cL=Jt(lL);/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:U8,setPrototypeOf:z8,isFrozen:uL,getPrototypeOf:dL,getOwnPropertyDescriptor:fL}=Object;let{freeze:Cn,seal:dr,create:j8}=Object,{apply:M1,construct:$1}=typeof Reflect<"u"&&Reflect;Cn||(Cn=function(t){return t}),dr||(dr=function(t){return t}),M1||(M1=function(t,n,r){return t.apply(n,r)}),$1||($1=function(t,n){return new t(...n)});const ru=_n(Array.prototype.forEach),hL=_n(Array.prototype.lastIndexOf),W8=_n(Array.prototype.pop),Xo=_n(Array.prototype.push),mL=_n(Array.prototype.splice),au=_n(String.prototype.toLowerCase),F1=_n(String.prototype.toString),q8=_n(String.prototype.match),Jo=_n(String.prototype.replace),pL=_n(String.prototype.indexOf),gL=_n(String.prototype.trim),Ir=_n(Object.prototype.hasOwnProperty),Nn=_n(RegExp.prototype.test),Zo=vL(TypeError);function _n(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return M1(e,t,r)}}function vL(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $1(e,n)}}function pt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:au;z8&&z8(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(uL(t)||(t[r]=s),i=s)}e[i]=!0}return e}function yL(e){for(let t=0;t<e.length;t++)Ir(e,t)||(e[t]=null);return e}function ba(e){const t=j8(null);for(const[n,r]of U8(e))Ir(e,n)&&(Array.isArray(r)?t[n]=yL(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=ba(r):t[n]=r);return t}function Qo(e,t){for(;e!==null;){const r=fL(e,t);if(r){if(r.get)return _n(r.get);if(typeof r.value=="function")return _n(r.value)}e=dL(e)}function n(){return null}return n}const G8=Cn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H1=Cn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B1=Cn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bL=Cn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U1=Cn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wL=Cn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K8=Cn(["#text"]),Y8=Cn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z1=Cn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X8=Cn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),iu=Cn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),CL=dr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),NL=dr(/<%[\w\W]*|[\w\W]*%>/gm),_L=dr(/\$\{[\w\W]*/gm),xL=dr(/^data-[\-\w.\u00B7-\uFFFF]+$/),SL=dr(/^aria-[\-\w]+$/),J8=dr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TL=dr(/^(?:\w+script|data):/i),EL=dr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z8=dr(/^html$/i),OL=dr(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q8=Object.freeze({__proto__:null,ARIA_ATTR:SL,ATTR_WHITESPACE:EL,CUSTOM_ELEMENT:OL,DATA_ATTR:xL,DOCTYPE_NAME:Z8,ERB_EXPR:NL,IS_ALLOWED_URI:J8,IS_SCRIPT_OR_DATA:TL,MUSTACHE_EXPR:CL,TMPLIT_EXPR:_L});const el={element:1,text:3,progressingInstruction:7,comment:8,document:9},AL=function(){return typeof window>"u"?null:window},LL=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},ev=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:AL();const t=Xe=>tv(Xe);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==el.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:u,Element:d,NodeFilter:h,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:y}=e,b=d.prototype,w=Qo(b,"cloneNode"),C=Qo(b,"remove"),N=Qo(b,"nextSibling"),S=Qo(b,"childNodes"),x=Qo(b,"parentNode");if(typeof l=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let _,O="";const{implementation:T,createNodeIterator:I,createDocumentFragment:A,getElementsByTagName:P}=n,{importNode:k}=r;let L=ev();t.isSupported=typeof U8=="function"&&typeof x=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:H,TMPLIT_EXPR:B,DATA_ATTR:W,ARIA_ATTR:J,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:le}=Q8;let{IS_ALLOWED_URI:ae}=Q8,$=null;const M=pt({},[...G8,...H1,...B1,...U1,...K8]);let V=null;const z=pt({},[...Y8,...z1,...X8,...iu]);let q=Object.seal(j8(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,ce=null,Ce=!0,re=!0,oe=!1,pe=!0,Q=!1,Z=!0,Y=!1,te=!1,Ne=!1,ee=!1,ye=!1,he=!1,j=!0,X=!1;const we="user-content-";let de=!0,ne=!1,ge={},Se=null;const Pe=pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const Qe=pt({},["audio","video","img","source","image","track"]);let it=null;const be=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let qe=$e,at=!1,_t=null;const At=pt({},[xe,Te,$e],F1);let Ct=pt({},["mi","mo","mn","ms","mtext"]),Nt=pt({},["annotation-xml"]);const It=pt({},["title","style","font","a","script"]);let Dt=null;const Tt=["application/xhtml+xml","text/html"],rt="text/html";let st=null,Mn=null;const $s=n.createElement("form"),Fs=function(fe){return fe instanceof RegExp||fe instanceof Function},Mi=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===fe)){if((!fe||typeof fe!="object")&&(fe={}),fe=ba(fe),Dt=Tt.indexOf(fe.PARSER_MEDIA_TYPE)===-1?rt:fe.PARSER_MEDIA_TYPE,st=Dt==="application/xhtml+xml"?F1:au,$=Ir(fe,"ALLOWED_TAGS")?pt({},fe.ALLOWED_TAGS,st):M,V=Ir(fe,"ALLOWED_ATTR")?pt({},fe.ALLOWED_ATTR,st):z,_t=Ir(fe,"ALLOWED_NAMESPACES")?pt({},fe.ALLOWED_NAMESPACES,F1):At,it=Ir(fe,"ADD_URI_SAFE_ATTR")?pt(ba(be),fe.ADD_URI_SAFE_ATTR,st):be,Be=Ir(fe,"ADD_DATA_URI_TAGS")?pt(ba(Qe),fe.ADD_DATA_URI_TAGS,st):Qe,Se=Ir(fe,"FORBID_CONTENTS")?pt({},fe.FORBID_CONTENTS,st):Pe,se=Ir(fe,"FORBID_TAGS")?pt({},fe.FORBID_TAGS,st):ba({}),ce=Ir(fe,"FORBID_ATTR")?pt({},fe.FORBID_ATTR,st):ba({}),ge=Ir(fe,"USE_PROFILES")?fe.USE_PROFILES:!1,Ce=fe.ALLOW_ARIA_ATTR!==!1,re=fe.ALLOW_DATA_ATTR!==!1,oe=fe.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=fe.SAFE_FOR_TEMPLATES||!1,Z=fe.SAFE_FOR_XML!==!1,Y=fe.WHOLE_DOCUMENT||!1,ee=fe.RETURN_DOM||!1,ye=fe.RETURN_DOM_FRAGMENT||!1,he=fe.RETURN_TRUSTED_TYPE||!1,Ne=fe.FORCE_BODY||!1,j=fe.SANITIZE_DOM!==!1,X=fe.SANITIZE_NAMED_PROPS||!1,de=fe.KEEP_CONTENT!==!1,ne=fe.IN_PLACE||!1,ae=fe.ALLOWED_URI_REGEXP||J8,qe=fe.NAMESPACE||$e,Ct=fe.MATHML_TEXT_INTEGRATION_POINTS||Ct,Nt=fe.HTML_INTEGRATION_POINTS||Nt,q=fe.CUSTOM_ELEMENT_HANDLING||{},fe.CUSTOM_ELEMENT_HANDLING&&Fs(fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&Fs(fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&typeof fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(re=!1),ye&&(ee=!0),ge&&($=pt({},K8),V=[],ge.html===!0&&(pt($,G8),pt(V,Y8)),ge.svg===!0&&(pt($,H1),pt(V,z1),pt(V,iu)),ge.svgFilters===!0&&(pt($,B1),pt(V,z1),pt(V,iu)),ge.mathMl===!0&&(pt($,U1),pt(V,X8),pt(V,iu))),fe.ADD_TAGS&&($===M&&($=ba($)),pt($,fe.ADD_TAGS,st)),fe.ADD_ATTR&&(V===z&&(V=ba(V)),pt(V,fe.ADD_ATTR,st)),fe.ADD_URI_SAFE_ATTR&&pt(it,fe.ADD_URI_SAFE_ATTR,st),fe.FORBID_CONTENTS&&(Se===Pe&&(Se=ba(Se)),pt(Se,fe.FORBID_CONTENTS,st)),de&&($["#text"]=!0),Y&&pt($,["html","head","body"]),$.table&&(pt($,["tbody"]),delete se.tbody),fe.TRUSTED_TYPES_POLICY){if(typeof fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=fe.TRUSTED_TYPES_POLICY,O=_.createHTML("")}else _===void 0&&(_=LL(y,i)),_!==null&&typeof O=="string"&&(O=_.createHTML(""));Cn&&Cn(fe),Mn=fe}},Hs=pt({},[...H1,...B1,...bL]),ni=pt({},[...U1,...wL]),xa=function(fe){let Me=x(fe);(!Me||!Me.tagName)&&(Me={namespaceURI:qe,tagName:"template"});const We=au(fe.tagName),wt=au(Me.tagName);return _t[fe.namespaceURI]?fe.namespaceURI===Te?Me.namespaceURI===$e?We==="svg":Me.namespaceURI===xe?We==="svg"&&(wt==="annotation-xml"||Ct[wt]):!!Hs[We]:fe.namespaceURI===xe?Me.namespaceURI===$e?We==="math":Me.namespaceURI===Te?We==="math"&&Nt[wt]:!!ni[We]:fe.namespaceURI===$e?Me.namespaceURI===Te&&!Nt[wt]||Me.namespaceURI===xe&&!Ct[wt]?!1:!ni[We]&&(It[We]||!Hs[We]):!!(Dt==="application/xhtml+xml"&&_t[fe.namespaceURI]):!1},dn=function(fe){Xo(t.removed,{element:fe});try{x(fe).removeChild(fe)}catch{C(fe)}},pr=function(fe,Me){try{Xo(t.removed,{attribute:Me.getAttributeNode(fe),from:Me})}catch{Xo(t.removed,{attribute:null,from:Me})}if(Me.removeAttribute(fe),fe==="is")if(ee||ye)try{dn(Me)}catch{}else try{Me.setAttribute(fe,"")}catch{}},$i=function(fe){let Me=null,We=null;if(Ne)fe="<remove></remove>"+fe;else{const yt=q8(fe,/^[\r\n\t ]+/);We=yt&&yt[0]}Dt==="application/xhtml+xml"&&qe===$e&&(fe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+fe+"</body></html>");const wt=_?_.createHTML(fe):fe;if(qe===$e)try{Me=new p().parseFromString(wt,Dt)}catch{}if(!Me||!Me.documentElement){Me=T.createDocument(qe,"template",null);try{Me.documentElement.innerHTML=at?O:wt}catch{}}const jt=Me.body||Me.documentElement;return fe&&We&&jt.insertBefore(n.createTextNode(We),jt.childNodes[0]||null),qe===$e?P.call(Me,Y?"html":"body")[0]:Y?Me.documentElement:jt},gr=function(fe){return I.call(fe.ownerDocument||fe,fe,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ri=function(fe){return fe instanceof f&&(typeof fe.nodeName!="string"||typeof fe.textContent!="string"||typeof fe.removeChild!="function"||!(fe.attributes instanceof m)||typeof fe.removeAttribute!="function"||typeof fe.setAttribute!="function"||typeof fe.namespaceURI!="string"||typeof fe.insertBefore!="function"||typeof fe.hasChildNodes!="function")},Fi=function(fe){return typeof u=="function"&&fe instanceof u};function Xn(Xe,fe,Me){ru(Xe,We=>{We.call(t,fe,Me,Mn)})}const Sa=function(fe){let Me=null;if(Xn(L.beforeSanitizeElements,fe,null),ri(fe))return dn(fe),!0;const We=st(fe.nodeName);if(Xn(L.uponSanitizeElement,fe,{tagName:We,allowedTags:$}),Z&&fe.hasChildNodes()&&!Fi(fe.firstElementChild)&&Nn(/<[/\w!]/g,fe.innerHTML)&&Nn(/<[/\w!]/g,fe.textContent)||fe.nodeType===el.progressingInstruction||Z&&fe.nodeType===el.comment&&Nn(/<[/\w]/g,fe.data))return dn(fe),!0;if(!$[We]||se[We]){if(!se[We]&&ai(We)&&(q.tagNameCheck instanceof RegExp&&Nn(q.tagNameCheck,We)||q.tagNameCheck instanceof Function&&q.tagNameCheck(We)))return!1;if(de&&!Se[We]){const wt=x(fe)||fe.parentNode,jt=S(fe)||fe.childNodes;if(jt&&wt){const yt=jt.length;for(let on=yt-1;on>=0;--on){const Jn=w(jt[on],!0);Jn.__removalCount=(fe.__removalCount||0)+1,wt.insertBefore(Jn,N(fe))}}}return dn(fe),!0}return fe instanceof d&&!xa(fe)||(We==="noscript"||We==="noembed"||We==="noframes")&&Nn(/<\/no(script|embed|frames)/i,fe.innerHTML)?(dn(fe),!0):(Q&&fe.nodeType===el.text&&(Me=fe.textContent,ru([D,H,B],wt=>{Me=Jo(Me,wt," ")}),fe.textContent!==Me&&(Xo(t.removed,{element:fe.cloneNode()}),fe.textContent=Me)),Xn(L.afterSanitizeElements,fe,null),!1)},Bs=function(fe,Me,We){if(j&&(Me==="id"||Me==="name")&&(We in n||We in $s))return!1;if(!(re&&!ce[Me]&&Nn(W,Me))){if(!(Ce&&Nn(J,Me))){if(!V[Me]||ce[Me]){if(!(ai(fe)&&(q.tagNameCheck instanceof RegExp&&Nn(q.tagNameCheck,fe)||q.tagNameCheck instanceof Function&&q.tagNameCheck(fe))&&(q.attributeNameCheck instanceof RegExp&&Nn(q.attributeNameCheck,Me)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(Me))||Me==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Nn(q.tagNameCheck,We)||q.tagNameCheck instanceof Function&&q.tagNameCheck(We))))return!1}else if(!it[Me]){if(!Nn(ae,Jo(We,K,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&fe!=="script"&&pL(We,"data:")===0&&Be[fe])){if(!(oe&&!Nn(G,Jo(We,K,"")))){if(We)return!1}}}}}}return!0},ai=function(fe){return fe!=="annotation-xml"&&q8(fe,le)},Us=function(fe){Xn(L.beforeSanitizeAttributes,fe,null);const{attributes:Me}=fe;if(!Me||ri(fe))return;const We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let wt=Me.length;for(;wt--;){const jt=Me[wt],{name:yt,namespaceURI:on,value:Jn}=jt,Ta=st(yt),$r=Jn;let Wt=yt==="value"?$r:gL($r);if(We.attrName=Ta,We.attrValue=Wt,We.keepAttr=!0,We.forceKeepAttr=void 0,Xn(L.uponSanitizeAttribute,fe,We),Wt=We.attrValue,X&&(Ta==="id"||Ta==="name")&&(pr(yt,fe),Wt=we+Wt),Z&&Nn(/((--!?|])>)|<\/(style|title)/i,Wt)){pr(yt,fe);continue}if(We.forceKeepAttr)continue;if(!We.keepAttr){pr(yt,fe);continue}if(!pe&&Nn(/\/>/i,Wt)){pr(yt,fe);continue}Q&&ru([D,H,B],js=>{Wt=Jo(Wt,js," ")});const vr=st(fe.nodeName);if(!Bs(vr,Ta,Wt)){pr(yt,fe);continue}if(_&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!on)switch(y.getAttributeType(vr,Ta)){case"TrustedHTML":{Wt=_.createHTML(Wt);break}case"TrustedScriptURL":{Wt=_.createScriptURL(Wt);break}}if(Wt!==$r)try{on?fe.setAttributeNS(on,yt,Wt):fe.setAttribute(yt,Wt),ri(fe)?dn(fe):W8(t.removed)}catch{pr(yt,fe)}}Xn(L.afterSanitizeAttributes,fe,null)},zs=function Xe(fe){let Me=null;const We=gr(fe);for(Xn(L.beforeSanitizeShadowDOM,fe,null);Me=We.nextNode();)Xn(L.uponSanitizeShadowNode,Me,null),Sa(Me),Us(Me),Me.content instanceof s&&Xe(Me.content);Xn(L.afterSanitizeShadowDOM,fe,null)};return t.sanitize=function(Xe){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,We=null,wt=null,jt=null;if(at=!Xe,at&&(Xe="<!-->"),typeof Xe!="string"&&!Fi(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw Zo("dirty is not a string, aborting")}else throw Zo("toString is not a function");if(!t.isSupported)return Xe;if(te||Mi(fe),t.removed=[],typeof Xe=="string"&&(ne=!1),ne){if(Xe.nodeName){const Jn=st(Xe.nodeName);if(!$[Jn]||se[Jn])throw Zo("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof u)Me=$i("<!---->"),We=Me.ownerDocument.importNode(Xe,!0),We.nodeType===el.element&&We.nodeName==="BODY"||We.nodeName==="HTML"?Me=We:Me.appendChild(We);else{if(!ee&&!Q&&!Y&&Xe.indexOf("<")===-1)return _&&he?_.createHTML(Xe):Xe;if(Me=$i(Xe),!Me)return ee?null:he?O:""}Me&&Ne&&dn(Me.firstChild);const yt=gr(ne?Xe:Me);for(;wt=yt.nextNode();)Sa(wt),Us(wt),wt.content instanceof s&&zs(wt.content);if(ne)return Xe;if(ee){if(ye)for(jt=A.call(Me.ownerDocument);Me.firstChild;)jt.appendChild(Me.firstChild);else jt=Me;return(V.shadowroot||V.shadowrootmode)&&(jt=k.call(r,jt,!0)),jt}let on=Y?Me.outerHTML:Me.innerHTML;return Y&&$["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&Nn(Z8,Me.ownerDocument.doctype.name)&&(on="<!DOCTYPE "+Me.ownerDocument.doctype.name+`>
43
+ `,yO=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function bO(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:yO.map(l=>`${l}:${t.getPropertyValue(l)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function U4(e,t=1,n){var m;Rr||(Rr=document.createElement("textarea"),document.body.appendChild(Rr));const{paddingSize:r,borderSize:i,boxSizing:s,contextStyle:l}=bO(e);Rr.setAttribute("style",`${l};${vO}`),Rr.value=e.value??"";let u=Rr.scrollHeight;const d={};s==="border-box"?u=u+i:s==="content-box"&&(u=u-r),Rr.value="";const h=Rr.scrollHeight-r;if(Number.isInteger(t)){let f=h*t;s==="border-box"&&(f=f+r+i),u=Math.max(f,u),d.minHeight=`${f}px`}if(Number.isInteger(n)){let f=h*n;s==="border-box"&&(f=f+r+i),u=Math.min(f,u)}return d.height=`${u}px`,(m=Rr.parentNode)==null||m.removeChild(Rr),Rr=void 0,d}const wO={type:v.string.def("text"),clearable:v.bool,disabled:v.bool,readonly:v.bool,placeholder:v.string.def(""),prefixIcon:v.string,suffixIcon:v.string,suffix:v.string,prefix:v.string,step:v.number,max:v.number,min:v.number,maxlength:v.number,maxcharacter:v.number,behavior:wf(),showWordLimit:v.bool,showControl:v.bool.def(!0),showClearOnlyHover:v.bool.def(!0),precision:v.number.def(0).validate(e=>e>=0&&e<20),modelValue:v.oneOfType([v.string,v.number]),size:v.size(),rows:v.number,selectReadonly:v.bool.def(!1),withValidate:v.bool.def(!0),overMaxLengthLimit:v.bool.def(!1),showOverflowTooltips:v.bool.def(!0),tooltipsOptions:{type:Object,default:()=>({})},resize:v.bool.def(!0),autosize:v.oneOfType([Boolean,Object]).def(!1),stopPropagation:v.bool.def(!0)};let dt=function(e){return e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.COMPOSITIONEND="compositionend",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.ENTER="enter",e.FOCUS="focus",e.INPUT="input",e.KEYDOWN="keydown",e.KEYPRESS="keypress",e.KEYUP="keyup",e.PASTE="paste",e.UPDATE="update:modelValue",e}({});function Oi(e,t){return!0}function CO(e,t){return!0}function d2(e){return e}const NO={[dt.UPDATE]:Oi,[dt.FOCUS]:e=>e,[dt.BLUR]:e=>e,[dt.CHANGE]:Oi,[dt.CLEAR]:()=>!0,[dt.INPUT]:Oi,[dt.KEYPRESS]:Oi,[dt.KEYDOWN]:Oi,[dt.KEYUP]:Oi,[dt.ENTER]:Oi,[dt.PASTE]:CO,[dt.COMPOSITIONSTART]:d2,[dt.COMPOSITIONUPDATE]:d2,[dt.COMPOSITIONEND]:d2},za=ut(a.defineComponent({name:"Input",directives:{bkTooltips:Qr},inheritAttrs:!1,props:wO,emits:NO,setup(e,t){const{resolveClassName:n}=Ae(),r=Tr(),i=St("input"),s=a.ref(!1),l=a.ref(!1),u=a.computed(()=>e.type==="textarea"),d=a.computed(()=>u.value?n("textarea"):n("input")),{class:h,style:m,...f}=t.attrs,p=a.ref(),y=a.ref(typeof e.modelValue>"u"||e.modelValue===null?{}:{value:e.modelValue}),b=a.computed(()=>Ze({[`${d.value}--${e.size}`]:!!e.size,resizable:e.resize,"is-focused":s.value,"is-readonly":e.readonly&&!e.selectReadonly,"is-disabled":e.disabled,"is-simplicity":e.behavior==="simplicity",[`${t.attrs.class}`]:!!t.attrs.class},d.value)),w=a.ref(!1),C=a.ref(),N=te("suffix-icon"),S={search:()=>a.createVNode(xi,null,null),password:()=>a.createVNode($c,{class:N,onClick:Ne},null)},x=a.computed(()=>{const he=S[e.type];return T.value?a.createVNode(ps,{class:N,onClick:Ne},null):he?a.createVNode(he,{class:N},null):null}),_=a.computed(()=>e.type==="number"),O=a.computed(()=>Math.floor(e.maxlength??e.maxcharacter??0)),T=a.ref(!1),I=a.computed(()=>Ze({"show-clear-only-hover":e.showClearOnlyHover,[`${d.value}--clear-icon`]:!0},N)),A=a.computed(()=>Ze({[te("max-length")]:!0,"is-over-limit":O.value-k.value<0})),P=he=>typeof e.maxcharacter=="number"?he.split("").reduce((j,X,we)=>(j.len+=X.charCodeAt(0)>255?2:1,j.len>e.maxcharacter&&j.pos===-1&&(j.pos=we),j),{len:0,pos:-1}):{len:he.length,pos:-1},k=a.computed(()=>{const he=e.modelValue??"";return P(he).len}),L=a.computed(()=>Ze({"is-disabled":e.disabled||e.modelValue>=e.max})),D=a.computed(()=>Ze({"is-disabled":e.disabled||e.modelValue<=e.min})),H=a.computed(()=>{var he;return B.value&&O.value-k.value===0?{content:i.value.maxlengthLimitTips,...e.tooltipsOptions||{}}:e.showOverflowTooltips&&w.value&&e.modelValue?{content:(he=e.modelValue)==null?void 0:he.toString(),sameWidth:!0,...e.tooltipsOptions||{}}:{disabled:!0,...e.tooltipsOptions||{}}}),B=a.computed(()=>typeof e.maxlength=="number"||typeof e.maxcharacter=="number");a.watch(()=>e.type,()=>{a.nextTick(W)}),a.watch(()=>e.modelValue,he=>{var j;e.withValidate&&((j=r==null?void 0:r.validate)==null||j.call(r,"change")),y.value={value:he},a.nextTick(W)}),a.onMounted(()=>{var he,j;a.nextTick(W),Object.prototype.hasOwnProperty.call(t.attrs,"autofocus")&&((j=(he=p.value)==null?void 0:he.focus)==null||j.call(he))}),t.expose({focus(){p.value.focus()},blur(){p.value.blur(),s.value=!1},clear:le});function W(){J(),K()}function J(){var j,X,we;const he=((j=p.value)==null?void 0:j.offsetParent)===null;if(!(!u.value||he||e.resize))if(e.autosize){const de=(X=e.autosize)==null?void 0:X.minRows,ne=(we=e.autosize)==null?void 0:we.maxRows,ge=U4(p.value,de,ne);C.value={overflowY:"hidden",...ge},a.nextTick(()=>{C.value=ge})}else C.value={minHeight:U4(p.value).minHeight}}function G(){var he,j;return((he=p.value)==null?void 0:he.scrollWidth)>((j=p.value)==null?void 0:j.clientWidth)+2}function K(){setTimeout(()=>{w.value=G()})}function le(){if(e.disabled)return;const he=_.value?e.min:"";t.emit(dt.UPDATE,he,null),t.emit(dt.CHANGE,he,null),t.emit(dt.CLEAR)}function ae(he){s.value=!0,t.emit(dt.FOCUS,he)}function $(he){var j;s.value=!1,t.emit(dt.BLUR,he),e.withValidate&&((j=r==null?void 0:r.validate)==null||j.call(r,"blur"))}function M(he){return j=>{if(e.stopPropagation&&j.stopPropagation(),B.value&&!e.overMaxLengthLimit){const X=P(j.target.value);if(X.len>=O.value&&(he===dt.KEYDOWN||he===dt.INPUT)&&!l.value){const we=X.pos>0?j.target.value.slice(0,X.pos):j.target.value;y.value={value:we},t.emit(dt.UPDATE,we,j),t.emit(dt.INPUT,we,j);return}}if(he===dt.KEYDOWN&&(j.code==="Enter"||j.key==="Enter"||j.keyCode===13)&&t.emit(dt.ENTER,_.value?Q(j.target.value,0):j.target.value,j),!(l.value&&[dt.INPUT,dt.CHANGE,dt.KEYDOWN].some(X=>he===X))){if(he===dt.INPUT)t.emit(dt.UPDATE,_.value?(()=>{const X=Number.isInteger(e.precision)?e.precision:0,we=j.target.value;return Number.isNaN(we)?pe(e.min)?e.min:0:we===""||we===null||we===void 0?"":(+we).toFixed(X)})():j.target.value,j);else if(he===dt.CHANGE&&_.value){const X=Q(j.target.value,0);t.emit(dt.UPDATE,X,j),t.emit(he,X,j);return}t.emit(he,_.value?Q(j.target.value,0):j.target.value,j)}}}const[V,z,q,se,ce,Ce]=[dt.KEYUP,dt.KEYDOWN,dt.KEYPRESS,dt.PASTE,dt.CHANGE,dt.INPUT].map(M);function re(){l.value=!0}function oe(he){l.value=!1,Ce(he)}function pe(he){return typeof he=="number"&&!Number.isNaN(he)}function Q(he,j,X=!0){const we=Number(j),de=pe(we)?we:1,ne=Number.isInteger(e.precision)?e.precision:0,ge=Number(he);if(Number.isNaN(ge))return pe(e.min)?e.min:0;let Se=ge+(X?de:-1*de);return pe(e.max)&&(Se=Math.min(Se,e.max)),pe(e.min)&&(Se=Math.max(Se,e.min)),+Se.toFixed(ne)}function Z(he){if(e.disabled)return;const j=Q(e.modelValue,e.step);t.emit(dt.UPDATE,j,he),t.emit(dt.CHANGE,j,he)}function Y(he){if(e.disabled)return;const j=Q(e.modelValue,e.step,!1);t.emit(dt.UPDATE,j,he),t.emit(dt.CHANGE,j,he)}function te(he){return`${d.value}--${he}`}function Ne(){T.value=!T.value}const ee=a.computed(()=>({maxlength:!e.overMaxLengthLimit&&e.maxlength,placeholder:e.placeholder||i.value.placeholder,readonly:e.readonly,disabled:e.disabled})),ye={onInput:Ce,onFocus:ae,onBlur:$,onPaste:se,onChange:ce,onKeypress:q,onKeydown:z,onKeyup:V,onCompositionstart:re,onCompositionend:oe};return()=>{var he,j,X,we;return a.withDirectives(a.createVNode("div",{style:m,class:b.value},[((j=(he=t.slots)==null?void 0:he.prefix)==null?void 0:j.call(he))??(e.prefix&&a.createVNode("div",{class:te("prefix-area")},[a.createVNode("span",{class:te("prefix-area--text")},[e.prefix])])),u.value?a.createVNode("textarea",a.mergeProps({ref:p,spellcheck:!1},f,ye,ee.value,{style:C.value,rows:e.rows},y.value),null):a.createVNode("input",a.mergeProps({spellcheck:!1},f,{ref:p,class:`${d.value}--text`,max:e.max,min:e.min,step:e.step,type:T.value&&e.type==="password"?"text":e.type},ye,ee.value,y.value),null),e.clearable&&!!e.modelValue&&a.createVNode("span",{class:I.value,onClick:le},[a.createVNode(Rn,null,null)]),x.value,B.value&&(e.showWordLimit||u.value)&&a.createVNode("p",{class:A.value},[e.overMaxLengthLimit?O.value-k.value:a.createVNode(a.Fragment,null,[k.value,a.createTextVNode(" / "),a.createVNode("span",null,[O.value])])]),_.value&&e.showControl&&a.createVNode("div",{class:te("number-control")},[a.createVNode(Do,{class:L.value,onClick:Z},null),a.createVNode(Do,{class:D.value,onClick:Y},null)]),((we=(X=t.slots)==null?void 0:X.suffix)==null?void 0:we.call(X))??(e.suffix&&a.createVNode("div",{class:te("suffix-area")},[a.createVNode("span",{class:te("suffix-area--text")},[e.suffix])]))]),[[a.resolveDirective("bk-tooltips"),H.value]])}}})),_O=a.defineComponent({name:"Card",props:{title:v.string,showHeader:v.bool.def(!0),showFooter:v.bool.def(!1),collapseStatus:v.bool.def(!0),border:v.bool.def(!0),disableHeaderStyle:v.bool.def(!1),position:v.string.def("left"),isEdit:v.bool.def(!1),isCollapse:v.bool.def(!1)},emits:["update:collapseStatus","edit"],setup(e,{emit:t}){const n=a.ref(!0),r=a.ref(!1),i=a.ref(""),s=()=>{e.isCollapse&&(n.value=!n.value,t("update:collapseStatus",n.value))},l=()=>{r.value=!r.value},u=()=>{r.value=!r.value,t("edit",i)};a.watch(()=>e.collapseStatus,m=>{e.isCollapse&&(n.value=m)},{immediate:!0}),a.watch(()=>e.title,m=>{i.value=m},{immediate:!0});const{resolveClassName:d}=Ae(),h=d("card");return{collapseActive:n,showInput:r,renderTitle:i,handleCollapse:s,saveEdit:u,clickEdit:l,wrapperClsName:h}},render(){var i,s,l,u;const e=Ze({[`${this.wrapperClsName}`]:!0,[`${this.wrapperClsName}-border-none`]:!this.$props.border},""),t=Ze({[`${this.wrapperClsName}-head`]:!0,[`${this.wrapperClsName}-head-${this.$props.position}`]:this.$props.isCollapse&&this.$props.position,"no-line-height":this.$props.disableHeaderStyle,collapse:!this.collapseActive},""),n=a.createVNode("div",{class:"title",title:this.renderTitle},[this.showInput?a.createVNode(za,{class:`${this.wrapperClsName}-input`,modelValue:this.renderTitle,"onUpdate:modelValue":d=>this.renderTitle=d,onBlur:this.saveEdit},null):this.renderTitle]),r=a.createVNode("span",{class:`${this.wrapperClsName}-icon`,onClick:this.handleCollapse},[this.collapseActive?a.createVNode(fs,null,null):a.createVNode(Wn,null,null)]);return a.createVNode("div",{class:e},[this.$props.showHeader?a.createVNode("div",{class:t},[this.$props.isCollapse&&(((s=(i=this.$slots).icon)==null?void 0:s.call(i))??r),((u=(l=this.$slots).header)==null?void 0:u.call(l))??n,this.$props.isEdit&&!this.showInput&&a.createVNode(Nc,{class:`${this.wrapperClsName}-edit`,onClick:this.clickEdit},null)]):"",a.createVNode(Yg,null,{default:()=>{var d,h,m,f;return[a.withDirectives(a.createVNode("div",null,[a.createVNode("div",{class:`${this.wrapperClsName}-body`},[((h=(d=this.$slots).default)==null?void 0:h.call(d))??"Content"]),this.$props.showFooter?a.createVNode("div",{class:`${this.wrapperClsName}-footer`},[((f=(m=this.$slots).footer)==null?void 0:f.call(m))??"Footer"]):""]),[[a.vShow,this.collapseActive]])]}})])}}),z4=ut(_O),Gc=Symbol("BkSelect"),j4=Symbol("BkOptionGroup");function W4(){const e=a.ref(!1);return{isHover:e,setHover:()=>{e.value=!0},cancelHover:()=>{e.value=!1}}}function f2(e){return{register:(r,i)=>{if(i)return e.value.set(r,i)},unregister:(r,i)=>{if(i){if(e.value.get(r)!==i)return;e.value.delete(r)}else e.value.delete(r)}}}function xO(e,t){const{popoverMinWidth:n}=e;let r=null;const i=a.ref("auto"),s=a.ref(!1),l=()=>{s.value=!s.value},u=()=>{s.value=!1},d=()=>{s.value=!0},h=()=>{var m;i.value=Math.max((m=t.value)==null?void 0:m.offsetWidth,n)};return a.onMounted(()=>{t.value&&(r=E_(t.value,h,60,!0),r.start())}),a.onBeforeUnmount(()=>{r==null||r.stop(),r=null}),{isPopoverShow:s,popperWidth:i,togglePopover:l,hidePopover:u,showPopover:d}}function SO(e,t){const n=a.ref(""),r=a.ref(""),i=a.computed(()=>r.value||n.value),s=a.ref(!1);return a.watch(i,async()=>{try{s.value=!0,await e(i.value),s.value=!1}catch(l){console.error(l)}finally{t==null||t()}}),{customOptionName:n,searchValue:r,curSearchValue:i,searchLoading:s}}function xs(e=""){return e&&String(e).trim().toLowerCase()}function TO(e,t){if(!e||!t)return!0;const{top:n,bottom:r}=e.getBoundingClientRect(),{top:i,bottom:s}=t.getBoundingClientRect();return n>=i&&r<=s}const q4=Symbol("CheckboxGroup");function EO(){const e=a.ref(!1);return[e,{blur:()=>{e.value=!1},focus:()=>{e.value=!0}}]}const OO=()=>{const e=a.getCurrentInstance(),{props:t,emit:n}=e,r=a.inject(q4,Hm),i=!Bm(r),s=a.ref(),l=a.ref(t.checked),u=a.ref(!1),d=a.computed(()=>i&&r.props.disabled?!0:t.disabled),h=p=>{const y=l.value?t.trueLabel:t.falseLabel;n("update:modelValue",y),n("change",y,p),i&&r.handleChange(),a.nextTick(()=>{s.value&&s.value.checked!==l.value&&(s.value.checked=l.value)})};i?a.watch(()=>r.props.modelValue,p=>{l.value=p.includes(t.label)},{deep:!0}):a.watch(()=>t.modelValue,p=>{p!==""&&(l.value=p===t.trueLabel)},{immediate:!0}),a.watch(()=>t.checked,()=>{l.value=t.checked,t.immediateEmitChange!==!1&&h()});const m=(p=!0)=>{l.value=p},f=p=>{if(t.readonly)return;const y=p.target;if(d.value||u.value)return;u.value=!0;const b=y.checked;Promise.resolve(t.beforeChange?t.beforeChange(b):!0).then(w=>{if(w)l.value=b,h(p);else return Promise.reject()}).catch(w=>{console.error(w),y.checked=l.value}).finally(()=>{u.value=!1})};return a.onMounted(()=>{i&&r.register(e.proxy)}),a.onBeforeUnmount(()=>{i&&r.unregister(e.proxy)}),{inputRef:s,isChecked:l,isPrechecking:u,isDisabled:d,setChecked:m,handleChange:f}},AO={modelValue:v.oneOfType([v.bool,v.string,v.number]),label:v.oneOfType([v.bool,v.string,v.number]),trueLabel:v.oneOfType([v.bool,v.string,v.number]).def(!0),falseLabel:v.oneOfType([v.bool,v.string,v.number]).def(!1),disabled:v.bool.def(!1),checked:v.bool.def(!1),indeterminate:v.bool,beforeChange:ss().def(()=>!0),size:v.size().def(vf.DEFAULT),immediateEmitChange:v.bool.def(!0),readonly:v.bool.def(!1),outline:v.bool.def(!1)},LO=a.defineComponent({name:"Checkbox",props:AO,emits:{"update:modelValue":e=>e!==void 0,change:(e,t)=>e!==void 0,click:e=>!0},setup(e){const[t,{blur:n,focus:r}]=EO(),{inputRef:i,isChecked:s,isPrechecking:l,isDisabled:u,setChecked:d,handleChange:h}=OO(),{resolveClassName:m}=Ae();return{inputRef:i,isFocus:t,isChecked:s,isPrechecking:l,isDisabled:u,setChecked:d,handleBlur:n,handleFocus:r,handleChange:h,size:e.size,resolveClassName:m}},render(){const e=Ze({[`${this.resolveClassName("checkbox")}`]:!0,[`${this.resolveClassName("checkbox")}-${this.size}`]:!0,"is-focused":this.isFocus,"is-checked":this.isChecked,"is-disabled":this.isDisabled,"is-indeterminated":this.indeterminate,"is-prechecking":this.isPrechecking,"is-outline":this.outline}),t=()=>!this.label&&!this.$slots.default?null:a.createVNode("span",{class:`${this.resolveClassName("checkbox-label")}`},[this.$slots.default?this.$slots.default():this.label]);return a.createVNode("label",{class:e},[a.createVNode("span",{class:this.resolveClassName("checkbox-input")},[a.createVNode("input",{ref:"inputRef",class:`${this.resolveClassName("checkbox-original")}`,checked:this.isChecked,disabled:this.isDisabled||this.isPrechecking,role:"checkbox",type:"checkbox",onChange:this.handleChange},null)]),t(),this.isPrechecking&&a.createVNode(Dc,{class:`${this.resolveClassName("checkbox-checking")}`},null)])}}),DO={modelValue:v.array,disabled:v.bool,withValidate:v.bool.def(!0)},Kc=a.defineComponent({name:"CheckboxGroup",props:DO,emits:{"update:modelValue":e=>e!==void 0,change:e=>e!==void 0},setup(e,t){const n=Tr(),r=[],i=d=>{r.push(d)},s=d=>{const h=r.indexOf(d);h>-1&&r.splice(h,1)},l=()=>{const d=r.reduce((h,m)=>(m.isChecked&&h.push(m.label),h),[]);t.emit("update:modelValue",d),t.emit("change",d)};a.provide(q4,{name:"CheckboxGroup",props:e,register:i,unregister:s,handleChange:l}),a.watch(()=>e.modelValue,()=>{var d;e.withValidate&&((d=n==null?void 0:n.validate)==null||d.call(n,"change"))}),a.onMounted(()=>{const d=e.modelValue||[];r.forEach(h=>{d.includes(h.label)&&h.setChecked(!0)})});const{resolveClassName:u}=Ae();return{resolveClassName:u}},render(){var e;return a.createVNode("div",{class:`${this.resolveClassName("checkbox-group")}`},[(e=this.$slots)==null?void 0:e.default()])}}),wn=yn(LO,{Group:Kc});var h2,G4;function RO(){if(G4)return h2;G4=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return h2=t,h2}var m2,K4;function IO(){if(K4)return m2;K4=1;function e(t){return this.__data__.has(t)}return m2=e,m2}var p2,Y4;function VO(){if(Y4)return p2;Y4=1;var e=a0(),t=RO(),n=IO();function r(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new e;++s<l;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,p2=r,p2}var g2,X4;function PO(){if(X4)return g2;X4=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return g2=e,g2}var v2,J4;function kO(){if(J4)return v2;J4=1;function e(t,n){return t.has(n)}return v2=e,v2}var y2,Z4;function Q4(){if(Z4)return y2;Z4=1;var e=VO(),t=PO(),n=kO(),r=1,i=2;function s(l,u,d,h,m,f){var p=d&r,y=l.length,b=u.length;if(y!=b&&!(p&&b>y))return!1;var w=f.get(l),C=f.get(u);if(w&&C)return w==u&&C==l;var N=-1,S=!0,x=d&i?new e:void 0;for(f.set(l,u),f.set(u,l);++N<y;){var _=l[N],O=u[N];if(h)var T=p?h(O,_,N,u,l,f):h(_,O,N,l,u,f);if(T!==void 0){if(T)continue;S=!1;break}if(x){if(!t(u,function(I,A){if(!n(x,A)&&(_===I||m(_,I,d,h,f)))return x.push(A)})){S=!1;break}}else if(!(_===O||m(_,O,d,h,f))){S=!1;break}}return f.delete(l),f.delete(u),S}return y2=s,y2}var b2,e5;function MO(){if(e5)return b2;e5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return b2=e,b2}var w2,t5;function $O(){if(t5)return w2;t5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return w2=e,w2}var C2,n5;function FO(){if(n5)return C2;n5=1;var e=mo(),t=Mp(),n=bo(),r=Q4(),i=MO(),s=$O(),l=1,u=2,d="[object Boolean]",h="[object Date]",m="[object Error]",f="[object Map]",p="[object Number]",y="[object RegExp]",b="[object Set]",w="[object String]",C="[object Symbol]",N="[object ArrayBuffer]",S="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function O(T,I,A,P,k,L,D){switch(A){case S:if(T.byteLength!=I.byteLength||T.byteOffset!=I.byteOffset)return!1;T=T.buffer,I=I.buffer;case N:return!(T.byteLength!=I.byteLength||!L(new t(T),new t(I)));case d:case h:case p:return n(+T,+I);case m:return T.name==I.name&&T.message==I.message;case y:case w:return T==I+"";case f:var H=i;case b:var B=P&l;if(H||(H=s),T.size!=I.size&&!B)return!1;var W=D.get(T);if(W)return W==I;P|=u,D.set(T,I);var J=r(H(T),H(I),P,k,L,D);return D.delete(T),J;case C:if(_)return _.call(T)==_.call(I)}return!1}return C2=O,C2}var N2,r5;function a5(){if(r5)return N2;r5=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return N2=e,N2}var _2,i5;function s5(){if(i5)return _2;i5=1;var e=a5(),t=jn();function n(r,i,s){var l=i(r);return t(r)?l:e(l,s(r))}return _2=n,_2}var x2,o5;function l5(){if(o5)return x2;o5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,l=[];++r<i;){var u=t[r];n(u,r,t)&&(l[s++]=u)}return l}return x2=e,x2}var S2,c5;function u5(){if(c5)return S2;c5=1;function e(){return[]}return S2=e,S2}var T2,d5;function E2(){if(d5)return T2;d5=1;var e=l5(),t=u5(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(u){return r.call(l,u)}))}:t;return T2=s,T2}var O2,f5;function HO(){if(f5)return O2;f5=1;var e=Wp(),t=e(Object.keys,Object);return O2=t,O2}var A2,h5;function m5(){if(h5)return A2;h5=1;var e=ac(),t=HO(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&l.push(u);return l}return A2=i,A2}var L2,p5;function jo(){if(p5)return L2;p5=1;var e=yg(),t=m5(),n=ls();function r(i){return n(i)?e(i):t(i)}return L2=r,L2}var D2,g5;function v5(){if(g5)return D2;g5=1;var e=s5(),t=E2(),n=jo();function r(i){return e(i,n,t)}return D2=r,D2}var R2,y5;function BO(){if(y5)return R2;y5=1;var e=v5(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,l,u,d,h,m){var f=u&t,p=e(s),y=p.length,b=e(l),w=b.length;if(y!=w&&!f)return!1;for(var C=y;C--;){var N=p[C];if(!(f?N in l:r.call(l,N)))return!1}var S=m.get(s),x=m.get(l);if(S&&x)return S==l&&x==s;var _=!0;m.set(s,l),m.set(l,s);for(var O=f;++C<y;){N=p[C];var T=s[N],I=l[N];if(d)var A=f?d(I,T,N,l,s,m):d(T,I,N,s,l,m);if(!(A===void 0?T===I||h(T,I,u,d,m):A)){_=!1;break}O||(O=N=="constructor")}if(_&&!O){var P=s.constructor,k=l.constructor;P!=k&&"constructor"in s&&"constructor"in l&&!(typeof P=="function"&&P instanceof P&&typeof k=="function"&&k instanceof k)&&(_=!1)}return m.delete(s),m.delete(l),_}return R2=i,R2}var I2,b5;function UO(){if(b5)return I2;b5=1;var e=Ci(),t=Or(),n=e(t,"DataView");return I2=n,I2}var V2,w5;function zO(){if(w5)return V2;w5=1;var e=Ci(),t=Or(),n=e(t,"Promise");return V2=n,V2}var P2,C5;function jO(){if(C5)return P2;C5=1;var e=Ci(),t=Or(),n=e(t,"Set");return P2=n,P2}var k2,N5;function WO(){if(N5)return k2;N5=1;var e=Ci(),t=Or(),n=e(t,"WeakMap");return k2=n,k2}var M2,_5;function Wo(){if(_5)return M2;_5=1;var e=UO(),t=Uf(),n=zO(),r=jO(),i=WO(),s=ha(),l=ap(),u="[object Map]",d="[object Object]",h="[object Promise]",m="[object Set]",f="[object WeakMap]",p="[object DataView]",y=l(e),b=l(t),w=l(n),C=l(r),N=l(i),S=s;return(e&&S(new e(new ArrayBuffer(1)))!=p||t&&S(new t)!=u||n&&S(n.resolve())!=h||r&&S(new r)!=m||i&&S(new i)!=f)&&(S=function(x){var _=s(x),O=_==d?x.constructor:void 0,T=O?l(O):"";if(T)switch(T){case y:return p;case b:return u;case w:return h;case C:return m;case N:return f}return _}),M2=S,M2}var $2,x5;function qO(){if(x5)return $2;x5=1;var e=rc(),t=Q4(),n=FO(),r=BO(),i=Wo(),s=jn(),l=No(),u=lc(),d=1,h="[object Arguments]",m="[object Array]",f="[object Object]",p=Object.prototype,y=p.hasOwnProperty;function b(w,C,N,S,x,_){var O=s(w),T=s(C),I=O?m:i(w),A=T?m:i(C);I=I==h?f:I,A=A==h?f:A;var P=I==f,k=A==f,L=I==A;if(L&&l(w)){if(!l(C))return!1;O=!0,P=!1}if(L&&!P)return _||(_=new e),O||u(w)?t(w,C,N,S,x,_):n(w,C,I,N,S,x,_);if(!(N&d)){var D=P&&y.call(w,"__wrapped__"),H=k&&y.call(C,"__wrapped__");if(D||H){var B=D?w.value():w,W=H?C.value():C;return _||(_=new e),x(B,W,N,S,_)}}return L?(_||(_=new e),r(w,C,N,S,x,_)):!1}return $2=b,$2}var F2,S5;function H2(){if(S5)return F2;S5=1;var e=qO(),t=zn();function n(r,i,s,l,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,l,n,u)}return F2=n,F2}var B2,T5;function GO(){if(T5)return B2;T5=1;var e=H2();function t(n,r){return e(n,r)}return B2=t,B2}var KO=GO();const U2=Jt(KO),Yc=a.defineComponent({name:"Option",props:{id:{type:[String,Number],require:!0},name:v.oneOfType([v.number,v.string]),disabled:v.bool.def(!1),order:v.number.def(0)},setup(e,{attrs:t}){const{proxy:n}=a.getCurrentInstance(),r=a.reactive({visible:!0}),{disabled:i,id:s,name:l}=a.toRefs(e),u=a.computed(()=>l.value!==void 0?l.value:t.label),d=a.computed(()=>s.value!==void 0?s.value:t.value),h=a.inject(Gc,null),m=a.inject(j4,null),f=a.computed(()=>{var I;return(I=h==null?void 0:h.selected)==null?void 0:I.some(A=>U2(A.value,d.value))}),p=a.computed(()=>h==null?void 0:h.multiple),y=a.computed(()=>(h==null?void 0:h.activeOptionValue)===d.value),b=a.computed(()=>(h==null?void 0:h.showSelectedIcon)&&p.value),w=a.computed(()=>h==null?void 0:h.selectedStyle),C=a.computed(()=>h==null?void 0:h.curSearchValue),N=a.computed(()=>h==null?void 0:h.highlightKeyword),S=()=>{i.value||h==null||h.handleOptionSelected(n)},x=()=>{h.activeOptionValue=d.value},_=()=>{h.activeOptionValue=""},O=I=>{if(!I)return I;let A=C.value;const P=A.length;if(!(A!=null&&A.trim().length)||!I.toLocaleLowerCase().includes(A.toLocaleLowerCase()))return I;const k=[];let L=-1;return A=A.replace(/([.*/]{1})/gim,"\\$1"),I.replace(new RegExp(`${A}`,"igm"),(D,H)=>(k.length===0&&H!==0?k.push(I.slice(0,H)):L>=0&&k.push(I.slice(L+D.length,H)),k.push(a.createVNode("span",{class:"is-keyword"},[D])),L=H,D)),L>=0&&k.push(I.slice(L+P)),k.length?k:I};a.onBeforeMount(()=>{h==null||h.register(d.value,n),m==null||m.register(d.value,n)}),a.onBeforeUnmount(()=>{h==null||h.unregister(d.value,n),m==null||m.unregister(d.value,n)});const{resolveClassName:T}=Ae();return{...a.toRefs(r),selected:f,multiple:p,isHover:y,showSelectedIcon:b,selectedStyle:w,optionName:u,optionID:d,highlightKeyword:N,handleOptionClick:S,handleMouseEnter:x,handleMouseLeave:_,resolveClassName:T,transformNode:O}},render(){var t,n;const e=Ze({"is-selected":this.selected,"is-disabled":this.disabled,"is-multiple":this.multiple,"is-hover":this.isHover,"is-checkbox":this.selectedStyle===Xl.CHECKBOX,[this.resolveClassName("select-option")]:!0});return a.withDirectives(a.createVNode("li",{class:e,onClick:this.handleOptionClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave},[this.showSelectedIcon&&this.selectedStyle===Xl.CHECKBOX&&a.createVNode(wn,{class:this.resolveClassName("select-checkbox"),disabled:this.disabled,modelValue:this.selected},null),((n=(t=this.$slots).default)==null?void 0:n.call(t))??a.createVNode("span",{class:this.resolveClassName("select-option-item"),title:String(this.optionName)},[this.highlightKeyword?this.transformNode(String(this.optionName)):this.optionName]),this.showSelectedIcon&&this.selected&&this.selectedStyle===Xl.CHECK&&a.createVNode(_i,{width:22,height:22,class:this.resolveClassName("select-selected-icon")},null)]),[[a.vShow,this.visible]])}}),YO=a.defineComponent({name:"OptionGroup",props:{label:v.string.def(""),disabled:v.bool.def(!1),collapsible:v.bool.def(!1),collapse:v.bool.def(!1),visible:v.bool.def(!0)},setup(e,{emit:t}){const n=a.getCurrentInstance(),{proxy:r}=n,i=a.inject(Gc,null),s=a.reactive({groupCollapse:e.collapse}),l=a.ref(new Map),{register:u,unregister:d}=f2(l),h=a.computed(()=>`${e.label} (${[...l.value.values()].filter(y=>y.visible).length})`),m=a.computed(()=>e.visible&&!i.isSearchEmpty),f=()=>{!e.collapsible||e.disabled||(s.groupCollapse=!s.groupCollapse,t("update:collapse",s.groupCollapse))};a.provide(j4,a.reactive({...a.toRefs(e),register:u,unregister:d,groupCollapse:a.toRef(s,"groupCollapse")})),a.onBeforeMount(()=>{i==null||i.registerGroup(n.uid,r)}),a.onBeforeUnmount(()=>{i==null||i.unregisterGroup(n.uid)});const{resolveClassName:p}=Ae();return{...a.toRefs(s),groupLabel:h,isVisible:m,handleToggleCollapse:f,resolveClassName:p}},render(){var r,i;const e=Ze({[this.resolveClassName("option-group")]:!0,collapsible:this.collapsible,disabled:this.disabled}),t=Ze({[this.resolveClassName("option-group-label")]:!0,collapsible:this.collapsible}),n=Ze({"default-group-label-icon":!0,collapse:this.groupCollapse});return a.withDirectives(a.createVNode("ul",{class:e},[a.createVNode("li",{class:t,onClick:this.handleToggleCollapse},[this.$slots.label?this.$slots.label():a.createVNode("span",{class:"default-group-label"},[this.collapsible&&a.createVNode(Eo,{class:n},null),a.createVNode("span",{class:"default-group-label-title"},[this.groupLabel])])]),a.withDirectives(a.createVNode("ul",{class:this.resolveClassName("option-group-content")},[(i=(r=this.$slots).default)==null?void 0:i.call(r)]),[[a.vShow,!this.groupCollapse]])]),[[a.vShow,this.isVisible]])}});function Xc(e){const t=document.createElement("div");return t.className=e,t}const E5=typeof Element<"u"&&Element.prototype.matches;function ja(e,t){const n=z2(e);if(!E5)throw new Error("No element matching method supported");return E5.call(n,t)}function Ss(e){const t=z2(e);t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function O5(e,t){return Array.prototype.filter.call(e.children,n=>ja(n,t))}function $t(e){return parseInt(e,10)||0}function XO(e){return ja(e,"input,[contenteditable]")||ja(e,"select,[contenteditable]")||ja(e,"textarea,[contenteditable]")||ja(e,"button,[contenteditable]")}function JO(e){const t=ea(e);return $t(t.width)+$t(t.paddingLeft)+$t(t.paddingRight)+$t(t.borderLeftWidth)+$t(t.borderRightWidth)}const Ts={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator==null?void 0:navigator.userAgent)},z2=e=>e.isVirtualElement?e.delegateElement:e;function ea(e){return getComputedStyle(z2(e))}function Vn(e,t){for(const n in t){let r=t[n];typeof r=="number"&&(r=`${r}px`),e.style[n]=r}return e}function ta(e){const t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.round(r.width),e.containerHeight=Math.round(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(O5(t,e.cls.element.rail("x")).forEach(i=>Ss(i)),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(O5(t,e.cls.element.rail("y")).forEach(i=>Ss(i)),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=A5(e,$t(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=$t((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=A5(e,$t(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=e.element.isVirtualElement?ZO(e):$t(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),QO(t,e),e.scrollbarXActive?t.classList.add(e.cls.state.active("x")):(t.classList.remove(e.cls.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(e.cls.state.active("y")):(t.classList.remove(e.cls.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function ZO(e){const t=$t(e.element.virtualScrollTop);return t>=0?t:0}function A5(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function QO(e,t){const n={width:t.railXWidth},r=e.isVirtualElement?0:Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,Vn(t.scrollbarXRail,n);const i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft,Vn(t.scrollbarYRail,i),Vn(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Vn(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function eA(e){e.event.bind(e.scrollbarY,"mousedown",t=>t.stopPropagation()),e.event.bind(e.scrollbarYRail,"mousedown",t=>{const n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,r=n>e.scrollbarYTop?1:-1;e.element.isVirtualElement?e.element.scrollTop=n/(e.element.offsetHeight/e.element.scrollHeight):e.element.scrollTop+=r*e.containerHeight,e.element.scrollTop+=r*e.containerHeight,ta(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",t=>t.stopPropagation()),e.event.bind(e.scrollbarXRail,"mousedown",t=>{const r=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=r*e.containerWidth,ta(e),t.stopPropagation()})}class tA{constructor(t="bk"){Ve(this,"main");Ve(this,"rtl");Ve(this,"element");Ve(this,"state");this.main=`${t}-scrollbar`,this.rtl=`${t}-rtl`,this.element={thumb:n=>`${t}__thumb-${n}`,rail:n=>`${t}__rail-${n}`,size:n=>`${t}-scroll-size-${n}`,consuming:`${t}__child--consume`},this.state={focus:`${t}--focus`,clicking:`${t}--clicking`,active:n=>`${t}--active-${n}`,scrolling:n=>`${t}--scrolling-${n}`}}}const L5={x:null,y:null};function D5(e,t){const n=e.element.classList,r=e.cls.state.scrolling(t);n.contains(r)?clearTimeout(L5[t]):n.add(r)}function R5(e,t){L5[t]=setTimeout(()=>e.isAlive&&e.element.classList.remove(e.cls.state.scrolling(t)),e.settings.scrollingThreshold)}function nA(e,t){D5(e,t),R5(e,t)}function rA(e){I5(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I5(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function I5(e,[t,n,r,i,s,l,u,d,h]){const m=e.element;let f=null,p=null,y=null;function b(N){var S;(S=N.touches)!=null&&S[0]&&(N[r]=N.touches[0].pageY),m[u]=f+y*(N[r]-p),D5(e,d),ta(e),N.stopPropagation(),N.type.startsWith("touch")&&N.changedTouches.length>1&&N.preventDefault()}function w(){R5(e,d),e[h].classList.remove(e.cls.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",b)}function C(N,S){f=m[u],S&&N.touches&&(N[r]=N.touches[0].pageY),p=N[r],y=(e[n]-e[t])/(e[i]-e[l]),S?e.event.bind(e.ownerDocument,"touchmove",b):(e.event.bind(e.ownerDocument,"mousemove",b),e.event.once(e.ownerDocument,"mouseup",w),N.preventDefault()),e[h].classList.add(e.cls.state.clicking),N.stopPropagation()}e.event.bind(e[s],"mousedown",N=>{C(N)}),e.event.bind(e[s],"touchstart",N=>{C(N,!0)})}function aA(e){const t=e.element,n=()=>ja(t,":hover"),r=()=>ja(e.scrollbarX,":focus")||ja(e.scrollbarY,":focus");function i(u,d){const h=Math.floor(t.scrollTop);if(u===0){if(!e.scrollbarYActive)return!1;if(h===0&&d>0||h>=e.contentHeight-e.containerHeight&&d<0)return!e.settings.wheelPropagation}const m=t.scrollLeft;if(d===0){if(!e.scrollbarXActive)return!1;if(m===0&&u<0||m>=e.contentWidth-e.containerWidth&&u>0)return!e.settings.wheelPropagation}return!0}function s(){return t.isVirtualElement?e.containerHeight/e.element.scrollHeight*e.containerHeight:e.containerHeight}function l(){return t.isVirtualElement?e.containerHeight:e.contentHeight}e.event.bind(e.ownerDocument,"keydown",u=>{var p;if((p=u.isDefaultPrevented)!=null&&p.call(u)||u.defaultPrevented||!n()&&!r())return;let h=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(h){if(h.tagName==="IFRAME")h=h.contentDocument.activeElement;else for(;h.shadowRoot;)h=h.shadowRoot.activeElement;if(XO(h))return}let m=0,f=0;switch(u.which){case 37:u.metaKey?m=-e.contentWidth:u.altKey?m=-e.containerWidth:m=-30;break;case 38:u.metaKey?f=l():u.altKey?f=s():f=30;break;case 39:u.metaKey?m=e.contentWidth:u.altKey?m=e.containerWidth:m=30;break;case 40:u.metaKey?f=-l():u.altKey?f=-s():f=-30;break;case 32:u.shiftKey?f=s():f=-s();break;case 33:f=s();break;case 34:f=-s();break;case 36:f=l();break;case 35:f=-l();break;default:return}e.settings.suppressScrollX&&m!==0||e.settings.suppressScrollY&&f!==0||(t.scrollTop-=f,t.scrollLeft+=m,ta(e),i(m,f)&&u.preventDefault())})}function iA(e){const t=e.element.isVirtualElement,n=t?e.element.delegateElement:e.element;function r(h,m){const f=t?e.element.virtualScrollTop:n.scrollTop,p=Math.floor(f),y=f===0,b=()=>t?p+e.scrollbarYHeight>=e.railYHeight:p+e.element.offsetHeight===e.element.scrollHeight,w=n.scrollLeft===0,C=n.scrollLeft+n.offsetWidth===n.scrollWidth;let N;return Math.abs(m)>Math.abs(h)?N=y||b():N=w||C,N?!e.settings.wheelPropagation:!0}function i(h){let m=h.deltaX,f=-1*h.deltaY;return(typeof m>"u"||typeof f>"u")&&(m=-1*h.wheelDeltaX/6,f=h.wheelDeltaY/6),h.deltaMode&&h.deltaMode===1&&(m*=10,f*=10),m!==m&&f!==f&&(m=0,f=h.wheelDelta),h.shiftKey?[-f,-m]:[m,f]}function s(h,m,f){if(!Ts.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(h))return!1;let p=h;for(;p&&p!==n;){if(p.classList.contains(e.cls.element.consuming))return!0;const y=ea(p);if(f&&y.overflowY.match(/(scroll|auto)/)){const b=p.scrollHeight-p.clientHeight;if(b>0&&(p.scrollTop>0&&f<0||p.scrollTop<b&&f>0))return!0}if(m&&y.overflowX.match(/(scroll|auto)/)){const b=p.scrollWidth-p.clientWidth;if(b>0&&(p.scrollLeft>0&&m<0||p.scrollLeft<b&&m>0))return!0}p=p.parentNode}return!1}const l=()=>e.element.scrollHeight-e.element.offsetHeight;function u(h){let m=e.element.scrollTop-h;const f=l();m>f&&(m=f),m<0&&(m=0),e.element.scrollTop=m}function d(h){const[m,f]=i(h);if(s(h.target,m,f))return;let p=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(u(f?f*e.settings.wheelSpeed:-m*e.settings.wheelSpeed),p=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(m?n.scrollLeft+=m*e.settings.wheelSpeed:n.scrollLeft-=f*e.settings.wheelSpeed,p=!0):(u(f*e.settings.wheelSpeed),n.scrollLeft+=m*e.settings.wheelSpeed),ta(e),p=p||r(m,f),p&&!h.ctrlKey&&(h.stopPropagation(),h.preventDefault())}typeof window.onwheel<"u"?e.event.bind(n,"wheel",d):typeof window.onmousewheel<"u"&&e.event.bind(n,"mousewheel",d)}function sA(e){if(!Ts.supportsTouch&&!Ts.supportsIePointer)return;const t=e.element;function n(b,w){const C=Math.floor(t.scrollTop),N=t.scrollLeft,S=Math.abs(b),x=Math.abs(w);if(x>S){if(w<0&&C===e.contentHeight-e.containerHeight||w>0&&C===0)return window.scrollY===0&&w>0&&Ts.isChrome}else if(S>x&&(b<0&&N===e.contentWidth-e.containerWidth||b>0&&N===0))return!0;return!0}function r(b,w){t.scrollLeft-=b,t.scrollTop-=w,ta(e)}let i={},s=0,l={},u=null;function d(b){return b.targetTouches?b.targetTouches[0]:b}function h(b){return b.pointerType&&b.pointerType==="pen"&&b.buttons===0?!1:!!(b.targetTouches&&b.targetTouches.length===1||b.pointerType&&b.pointerType!=="mouse"&&b.pointerType!==b.MSPOINTER_TYPE_MOUSE)}function m(b){if(!h(b))return;const w=d(b);i.pageX=w.pageX,i.pageY=w.pageY,s=new Date().getTime(),u!==null&&clearInterval(u)}function f(b,w,C){if(!t.contains(b))return!1;let N=b;for(;N&&N!==t;){if(N.classList.contains(e.cls.element.consuming))return!0;const S=ea(N);if(C&&S.overflowY.match(/(scroll|auto)/)){const x=N.scrollHeight-N.clientHeight;if(x>0&&(N.scrollTop>0&&C<0||N.scrollTop<x&&C>0))return!0}if(w&&S.overflowX.match(/(scroll|auto)/)){const x=N.scrollWidth-N.clientWidth;if(x>0&&(N.scrollLeft>0&&w<0||N.scrollLeft<x&&w>0))return!0}N=N.parentNode}return!1}function p(b){if(h(b)){const w=d(b),C={pageX:w.pageX,pageY:w.pageY},N=C.pageX-i.pageX,S=C.pageY-i.pageY;if(f(b.target,N,S))return;r(N,S),i=C;const x=new Date().getTime(),_=x-s;_>0&&(l.x=N/_,l.y=S/_,s=x),n(N,S)&&b.preventDefault()}}function y(){e.settings.swipeEasing&&(clearInterval(u),u=setInterval(function(){if(e.isInitialized){clearInterval(u);return}if(!l.x&&!l.y){clearInterval(u);return}if(Math.abs(l.x)<.01&&Math.abs(l.y)<.01){clearInterval(u);return}if(!e.element){clearInterval(u);return}r(l.x*30,l.y*30),l.x*=.8,l.y*=.8},10))}Ts.supportsTouch?(e.event.bind(t,"touchstart",m),e.event.bind(t,"touchmove",p),e.event.bind(t,"touchend",y)):Ts.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",m),e.event.bind(t,"pointermove",p),e.event.bind(t,"pointerup",y)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",m),e.event.bind(t,"MSPointerMove",p),e.event.bind(t,"MSPointerUp",y)))}class oA{constructor(t){Ve(this,"element");Ve(this,"handlers");this.element=t,this.handlers={}}bind(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)}unbind(t,n){this.handlers[t]=this.handlers[t].filter(r=>n&&r!==n?!0:(this.element.removeEventListener(t,r,!1),!1))}unbindAll(){for(const t in this.handlers)this.unbind(t)}get isEmpty(){return Object.keys(this.handlers).every(t=>this.handlers[t].length===0)}}class lA{constructor(){Ve(this,"eventElements");this.eventElements=[]}eventElement(t){let n=this.eventElements.filter(r=>r.element===t)[0];return n||(n=new oA(t),this.eventElements.push(n)),n}bind(t,n,r){this.eventElement(t).bind(n,r)}unbind(t,n,r){const i=this.eventElement(t);i.unbind(n,r),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)}unbindAll(){this.eventElements.forEach(t=>t.unbindAll()),this.eventElements=[]}once(t,n,r){const i=this.eventElement(t),s=l=>{i.unbind(n,s),r(l)};i.bind(n,s)}}function Jc(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);{const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}}function Zc(e,t,n,r=!0,i=!1){let s;if(t==="top")s=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")s=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");cA(e,n,s,r,i)}function cA(e,t,[n,r,i,s,l,u],d=!0,h=!1){const m=e.element;e.reach[s]=null,m[i]<1&&(e.reach[s]="start"),m[i]>e[n]-e[r]-1&&(e.reach[s]="end"),t&&(m.dispatchEvent(Jc(`ps-scroll-${s}`)),t<0?m.dispatchEvent(Jc(`ps-scroll-${l}`)):t>0&&m.dispatchEvent(Jc(`ps-scroll-${u}`)),d&&nA(e,s)),e.reach[s]&&(t||h)&&m.dispatchEvent(Jc(`ps-${s}-reach-${e.reach[s]}`))}const uA=()=>({handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:16,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1,classPrefix:"bk",scrollSize:"normal"}),dA={"click-rail":eA,"drag-thumb":rA,keyboard:aA,wheel:iA,touch:sA};class fA{constructor({scrollHeight:t,delegateElement:n,onScollCallback:r}){Ve(this,"isVirtualElement",!0);Ve(this,"scrollHeight");Ve(this,"virtualScrollTop");Ve(this,"virtualScrollLeft");Ve(this,"scrollTop",0);Ve(this,"onScollCallback");Ve(this,"delegateElement");return this.scrollHeight=t,this.delegateElement=n,this.virtualScrollTop=0,this.virtualScrollLeft=0,this.onScollCallback=r,new Proxy(this,{get:(i,s,l)=>{if(s in i){const u=Reflect.get(i,s,l);if(u!==void 0)return u}if(n&&s in n){const u=n[s];return typeof u=="function"?u.bind(n):u}},set:(i,s,l)=>{if(s in i){if(s==="scrollTop"){i.virtualScrollTop=l*i.delegateElement.offsetHeight/i.scrollHeight;const u=i.scrollTop!==l;return i.scrollTop=l,u&&this.handleScrollChanged("scrollTop"),!0}return i[s]=l,!0}return n&&s in n?(n[s]=l,this.handleScrollChanged(s),!0):(i[s]=l,!0)}})}handleScrollChanged(t){var n;if(["scrollLeft","scrollTop"].includes(t)){const r={offset:{x:this.delegateElement.scrollLeft,y:this.scrollTop}};(n=this.onScollCallback)==null||n.call(this,r)}}scrollTo({x:t,y:n}){this.delegateElement.scrollLeft=t,this.scrollTop=n,this.delegateElement.scrollTo(t,n)}}class j2{constructor(t,n={}){Ve(this,"element");Ve(this,"containerWidth");Ve(this,"containerHeight");Ve(this,"contentWidth");Ve(this,"settings");Ve(this,"contentHeight");Ve(this,"isRtl");Ve(this,"isNegativeScroll");Ve(this,"negativeScrollAdjustment");Ve(this,"event");Ve(this,"ownerDocument");Ve(this,"scrollbarXRail");Ve(this,"scrollbarX");Ve(this,"scrollbarXActive");Ve(this,"scrollbarXWidth");Ve(this,"scrollbarXLeft");Ve(this,"scrollbarXBottom");Ve(this,"isScrollbarXUsingBottom");Ve(this,"scrollbarXTop");Ve(this,"railBorderXWidth");Ve(this,"railXMarginWidth");Ve(this,"railXWidth");Ve(this,"railXRatio");Ve(this,"scrollbarYRail");Ve(this,"scrollbarY");Ve(this,"scrollbarYActive");Ve(this,"scrollbarYHeight");Ve(this,"scrollbarYTop");Ve(this,"scrollbarYRight");Ve(this,"isScrollbarYUsingRight");Ve(this,"scrollbarYLeft");Ve(this,"scrollbarYOuterWidth");Ve(this,"railBorderYWidth");Ve(this,"railYMarginHeight");Ve(this,"railYHeight");Ve(this,"railYRatio");Ve(this,"reach");Ve(this,"isAlive");Ve(this,"lastScrollTop");Ve(this,"lastScrollLeft");Ve(this,"cls");if(typeof t=="string"&&(t=document.querySelector(t)),!(t!=null&&t.nodeName)&&!(t!=null&&t.isVirtualElement))throw new Error("no element is specified to initialize PerfectScrollbar");this.settings={...uA(),...n},this.element=t,this.cls=new tA(this.settings.classPrefix),t.classList.add(this.cls.main),this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;const r=()=>t.classList.add(this.cls.state.focus),i=()=>t.classList.remove(this.cls.state.focus);this.isRtl=ea(t).direction==="rtl",this.isRtl&&t.classList.add(this.cls.rtl),this.isNegativeScroll=(()=>{const u=t.scrollLeft;let d=null;return t.scrollLeft=-1,d=t.scrollLeft<0,t.scrollLeft=u,d})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new lA,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Xc(this.cls.element.rail("x")),this.scrollbarXRail.classList.add(this.cls.element.size(this.settings.scrollSize)),t.appendChild(this.scrollbarXRail),this.scrollbarX=Xc(this.cls.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex","0"),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",i),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;const s=ea(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=$t(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=$t(s.borderLeftWidth)+$t(s.borderRightWidth),Vn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=$t(s.marginLeft)+$t(s.marginRight),Vn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Xc(this.cls.element.rail("y")),this.scrollbarYRail.classList.add(this.cls.element.size(this.settings.scrollSize)),t.appendChild(this.scrollbarYRail),this.scrollbarY=Xc(this.cls.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex","0"),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",i),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;const l=ea(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=$t(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?JO(this.scrollbarY):null,this.railBorderYWidth=$t(l.borderTopWidth)+$t(l.borderBottomWidth),Vn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=$t(l.marginTop)+$t(l.marginBottom),Vn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=(this.contentWidth??0)-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=(this.contentHeight??0)-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(u=>dA[u](this)),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",u=>this.onScroll(u)),ta(this)}update(t){this.isAlive&&(t!=null&&t.isVirtualElement&&(this.element=t),this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Vn(this.scrollbarXRail,{display:"block"}),Vn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=$t(ea(this.scrollbarXRail).marginLeft)+$t(ea(this.scrollbarXRail).marginRight),this.railYMarginHeight=$t(ea(this.scrollbarYRail).marginTop)+$t(ea(this.scrollbarYRail).marginBottom),Vn(this.scrollbarXRail,{display:"none"}),Vn(this.scrollbarYRail,{display:"none"}),ta(this),Zc(this,"top",0,!1,!0),Zc(this,"left",0,!1,!0),Vn(this.scrollbarXRail,{display:""}),Vn(this.scrollbarYRail,{display:""}))}onScroll(t){this.isAlive&&(ta(this),Zc(this,"top",this.element.scrollTop-this.lastScrollTop),Zc(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)}scrollTo({x:t,y:n}){n!==void 0&&typeof n=="number"&&(this.element.scrollTop=n),t!==void 0&&typeof t=="number"&&(this.element.scrollLeft=t),ta(this)}destroy(){this.isAlive&&(this.event.unbindAll(),Ss(this.scrollbarX),Ss(this.scrollbarY),Ss(this.scrollbarXRail),Ss(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)}removePsClasses(){this.element.className=this.element.className.split(" ").filter(t=>!t.match(new RegExp(`^${this.settings.classPrefix}([-_].+|)$`))).join(" ")}}const hA={onContentScroll:Function},mA={list:v.array.def([]),enabled:v.bool.def(!0),scrollEvent:v.bool.def(!1),lineHeight:v.oneOfType([v.number,v.func]).def(30),minHeight:v.number.def(30),maxHeight:v.oneOfType([v.number,v.string]),height:v.oneOfType([v.string.def("100%"),v.number]).def("100%"),width:v.oneOfType([v.string.def("100%"),v.number]).def("100%"),className:v.oneOfType([v.arrayOf(v.string),v.object,v.arrayOf(v.object),v.string]).def(""),contentClassName:v.oneOfType([v.arrayOf(v.string),v.object,v.arrayOf(v.object),v.string]).def(""),contentStyle:v.object.def({}),scrollXName:v.string.def(Jl("F-scroll-x")),scrollYName:v.string.def(Jl("F-scroll-y")),groupItemCount:v.number.def(1),preloadItemCount:v.number.def(1),renderAs:v.string.def("div"),scrollOffsetTop:v.number.def(0),scrollPosition:v.string.def("content"),abosuteHeight:v.oneOfType([v.string.def("auto"),v.number]).def("auto"),throttleDelay:v.number.def(60),rowKey:v.string.def(void 0),keepAlive:v.bool.def(!1),scrollbar:ze("IScrollbarOption",{default:{enabled:!0}}),autoReset:v.bool.def(!0),wrapperStyle:v.any.def({}),autoIndex:v.bool.def(!0),...hA},V5=(e,t)=>({fixToTop:r=>{const{id:i,index:s,item:l}=r;let u=typeof s=="number"?s-1:0;if(i!==void 0&&(u=e.list.findIndex(d=>d[e.rowKey]===i)??u),l!==void 0&&(u=e.list.findIndex(d=>l[e.rowKey]===d[e.rowKey])??u),typeof u=="number"){const h=(u>=0?u:0)*e.lineHeight;t(0,h)}return null}}),P5=e=>{let t=null;return{init:s=>{var l;t=new j2(s.value,{scrollingThreshold:120,scrollSize:(l=e.scrollbar)==null?void 0:l.size})},instance:t,scrollTo:(s,l)=>{t==null||t.scrollTo({x:s,y:l})},update:()=>t==null?void 0:t.update(),updateScrollHeight:s=>{t!=null&&t.element&&((t==null?void 0:t.element).scrollHeight=s,t==null||t.update())}}};function k5(e,t,n){let r=0,i=0,s=0,l=0;for(;r<e;r++){if(l=n({index:r}),i+l>t){s=t-i,r=r+Math.round(s/l);break}i+=l}return{startIndex:r,height:i,diffHeight:s}}function M5(e,t,n,r,i){if(!r||!i.offset)return;const s=i.offset.y>=0?i.offset.y:0,l=i.offset.x>=0?i.offset.x:0,u=r.scrollHeight,d=r.offsetHeight,{count:h,groupItemCount:m}=n;let f=0,p=0,y=0;if(typeof e=="number"&&(f=Math.ceil(s/e),p=Math.ceil(d/e)+f,y=s%e),typeof e=="function"){const w=Math.ceil(h/m),C=k5(w,s,e);f=C.startIndex>0?C.startIndex:0,y=C.diffHeight,p=k5(w,d,e).startIndex+f+1}const b=u-d-s;return typeof t=="function"&&t(i,f,p,s,s,l,{bottom:b>=0?b:0,scrollbar:i}),{targetStartIndex:f,targetEndIndex:p,elScrollTop:s,translateY:y,elScrollLeft:l}}class W2{constructor(t,n){Ve(this,"binding");Ve(this,"wrapper");Ve(this,"delay");Ve(this,"delegateWrapper");Ve(this,"getEvent",t=>{const{scrollbar:n={enabled:!1}}=this.binding.value;if(n.enabled)return{offset:t.offset??{x:t.target.scrollLeft,y:t.target.scrollTop}};if(t!=null&&t.offset)return{offset:t==null?void 0:t.offset};const r=t.target.scrollTop;return{offset:{x:t.target.scrollLeft,y:r}}});this.binding=t,this.wrapper=n;const{throttleDelay:r}=t.value;this.delay=r,this.delegateWrapper=void 0}get scrollHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.scrollHeight)??((n=this.wrapper)==null?void 0:n.scrollHeight)}get offsetHeight(){var t,n;return((t=this.delegateWrapper)==null?void 0:t.offsetHeight)??((n=this.wrapper)==null?void 0:n.offsetHeight)}setDelegateWrapper(t){this.delegateWrapper=t}render(t){var p,y;const{lineHeight:n=30,handleScrollCallback:r,pagination:i={},onlyScroll:s}=this.binding.value;if(s){const b=(p=t.offset)==null?void 0:p.y,w=((y=t.offset)==null?void 0:y.x)??0,C=this.scrollHeight-this.offsetHeight-b;r(t,null,null,b,b,w,{bottom:C>=0?C:0,scrollbar:t});return}const{startIndex:l,endIndex:u,groupItemCount:d,count:h,scrollTop:m,scrollLeft:f}=i;M5(n,r,{groupItemCount:d,count:h},this.delegateWrapper??this.wrapper,t)}executeThrottledRender(t){vi(this.render.bind(this),this.delay)(this.getEvent(t))}install(){var t;(t=this.wrapper)==null||t.addEventListener("scroll",this.executeThrottledRender.bind(this))}uninstall(){var t,n;(n=(t=this.wrapper)==null?void 0:t.removeListener)==null||n.call(t,"scroll",this.executeThrottledRender.bind(this))}setBinding(t){this.binding=t}}let Wa=null;const pA={mounted(e,t){const n=e.parentNode;Wa=new W2(t,e),n.addEventListener("scroll",Wa.executeThrottledRender.bind(Wa))},updated(e,t){Wa==null||Wa.setBinding(t)},unbind(e){if(e){const t=e.parentNode;if(!t||!Wa)return;t.removeEventListener("scroll",Wa.executeThrottledRender)}}},gA=(e,t)=>{const{renderAs:n}=e,r=a.ref(null),{init:i,scrollTo:s}=P5(e),l=a.reactive({x:0,y:0}),u=(y,b,w,C,N,S,x)=>{const{scrollbar:_}=x;_!=null&&_.offset&&Object.assign(l,(_==null?void 0:_.offset)??{}),t.emit("content-scroll",[y,{translateY:N,translateX:S,pos:x}])};let d=null;const h=a.computed(()=>({lineHeight:e.lineHeight,scrollbar:e.scrollbar,handleScrollCallback:u,pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent})),m=a.computed(()=>{const y=typeof e.height=="number"?`${e.height}px`:e.height;return{height:y,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight??y,...e.wrapperStyle}}),{fixToTop:f}=V5(e,s);t.expose({scrollTo:s,fixToTop:f,refRoot:r,refContent:r}),a.onMounted(()=>{var y;d=new W2(h,r.value),(y=e.scrollbar)!=null&&y.enabled&&i(r),d.install()}),a.onUnmounted(()=>{d==null||d.uninstall()});const p=a.computed(()=>e.scrollbar.enabled?[e.className]:[e.className]);return{rendAsTag:()=>{var y,b,w,C,N,S,x,_;return a.h(n,{class:p.value,style:m.value,ref:r},[((b=(y=t.slots).beforeContent)==null?void 0:b.call(y))??"",((C=(w=t.slots).default)==null?void 0:C.call(w,{data:e.list}))??"",((S=(N=t.slots).afterContent)==null?void 0:S.call(N))??"",((_=(x=t.slots).afterSection)==null?void 0:_.call(x))??""])}}},qo=ut(a.defineComponent({name:"VirtualRender",directives:{bkVirtualRender:pA},props:mA,emits:["content-scroll"],slots:Object,setup(e,t){const{renderAs:n}=e,r=ae=>typeof ae=="string"?[ae]:typeof ae=="object"&&!Array.isArray(ae)?[ae]:ae;if(!e.enabled){const{rendAsTag:ae}=gA(e,t);return ae}const i=a.ref(null),s=a.ref(0),l=a.ref(0),u=a.ref(0),d=a.ref(null),h=ae=>{let $=ae*e.groupItemCount,M=(ae+1)*e.groupItemCount;if(M>s.value){const V=M-$;M=s.value,$=M-V}return{index:$,rows:e.list.slice($,M),items:[$,M],type:"virtual"}},m=()=>typeof e.lineHeight=="function"?({index:ae})=>e.lineHeight(h(ae)):e.lineHeight,f=a.computed(()=>({lineHeight:m(),handleScrollCallback:O,pagination:N,throttleDelay:e.throttleDelay,scrollbar:e.scrollbar})),{init:p,scrollTo:y,updateScrollHeight:b,update:w}=P5(e);let C=null;const N=a.reactive({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:e.groupItemCount}),S=a.ref([]),x=()=>typeof e.height=="number"?e.height:d.value.offsetHeight,_=()=>{const ae=x();let $=Math.ceil(s.value/e.groupItemCount),M=0,V=0,z=0;for(;$>0;$--)if(V=e.lineHeight(h($)),M=M+V,M>ae){z=M-ae;break}return{diffHeight:z,startIndex:$}},O=(ae,$,M,V,z,q,se)=>{Object.assign(N,{startIndex:$,endIndex:M,scrollTop:V,translateX:q,translateY:z,scrollLeft:q,pos:se});let Ce=N.startIndex*e.groupItemCount,re=N.endIndex*e.groupItemCount;const oe=P.value.length;oe<re&&(re=oe,typeof e.lineHeight=="function"?Ce=_().startIndex:(Ce=re-Math.floor(i.value.offsetHeight/e.lineHeight),Ce=Ce<0?0:Ce));const pe=P.value.slice(Ce,re);S.value=pe,ae&&t.emit("content-scroll",[ae,N,pe])};a.onMounted(()=>{var ae;if(C=new W2(f,i.value),(ae=e.scrollbar)!=null&&ae.enabled){d.value=new fA({delegateElement:i.value,scrollHeight:l.value,onScollCallback:le}),p(d),b(u.value),C.executeThrottledRender.call(C,{offset:{x:0,y:0}});return}C.install()}),a.onUnmounted(()=>{C==null||C.uninstall()});const T=()=>{I(e.list)},I=ae=>{if(s.value=Math.ceil((ae||[]).length/e.groupItemCount),N.count=s.value,typeof e.abosuteHeight=="string"&&e.abosuteHeight==="auto")if(typeof e.lineHeight=="function"){l.value=0;let M=0;const V=Math.ceil(s.value/e.groupItemCount);for(let z=0;z<V;z++){const q=e.lineHeight.apply(this,[h(z)]);M+=typeof q=="number"?q:0}l.value=M}else l.value=e.lineHeight*s.value;else l.value=e.abosuteHeight;D()},A=(ae={left:0,top:0})=>{const $=i.value,M=typeof e.height=="number"?{scrollHeight:l.value,offsetHeight:e.height}:$;M5(e.lineHeight,O,N,M,{target:$})},P=a.computed(()=>e.rowKey!==void 0||!e.autoIndex?e.list:(e.list||[]).map((ae,$)=>({...ae,$index:$}))),k=a.computed(()=>e.scrollPosition==="content"?{}:{}),L=a.computed(()=>({height:typeof e.height=="number"?`${e.height}px`:e.height,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block",maxHeight:e.maxHeight?`${e.maxHeight}px`:!1,minHeight:e.minHeight?`${e.minHeight}px`:!1,...e.scrollPosition==="container"?k.value:{},...e.wrapperStyle})),D=()=>{u.value=l.value<e.minHeight?e.minHeight:l.value},{resolveClassName:H}=Ae(),B=a.computed(()=>[H("virtual-render"),...r(e.className),e.scrollPosition==="container"?H("virtual-content"):""]),W=()=>{T(),A(),C==null||C.executeThrottledRender.call(C,{offset:{x:0,y:0}})},{fixToTop:J}=V5(e,y),G=()=>{const ae=i.value,$=typeof e.height=="number"?{scrollHeight:l.value,offsetHeight:e.height}:ae;C==null||C.setDelegateWrapper($)},K=()=>{C==null||C.setBinding(f),T(),b(u.value),G(),w(),A(),a.nextTick(()=>{C==null||C.executeThrottledRender.call(C,{offset:{x:N.scrollLeft,y:N.scrollTop}})})};a.watch(()=>e.height,()=>{K()}),a.watch(()=>[e.list,e.list.length],()=>{K()},{immediate:!0}),t.expose({reset:W,scrollTo:y,fixToTop:J,updateScroll:w,refRoot:i,refContent:i});const le=ae=>{C.executeThrottledRender.call(C,ae)};return()=>{var ae,$,M,V,z,q,se,ce;return a.h(n||"div",{ref:i,class:[...B.value],style:L.value},[(($=(ae=t.slots).beforeContent)==null?void 0:$.call(ae))??"",((V=(M=t.slots).default)==null?void 0:V.call(M,{data:S.value}))??"",((q=(z=t.slots).afterContent)==null?void 0:q.call(z))??"",((ce=(se=t.slots).afterSection)==null?void 0:ce.call(se))??""])}}})),Qc={PINYINS:["A","AI","AN","ANG","AO","BA","BAI","BAN","BANG","BAO","BEI","BEN","BENG","BI","BIAN","BIAO","BIE","BIN","BING","BO","BU","CA","CAI","CAN","CANG","CAO","CE","CEN","CENG","CHA","CHAI","CHAN","CHANG","CHAO","CHE","CHEN","CHENG","CHI","CHONG","CHOU","CHU","CHUA","CHUAI","CHUAN","CHUANG","CHUI","CHUN","CHUO","CI","CONG","COU","CU","CUAN","CUI","CUN","CUO","DA","DAI","DAN","DANG","DAO","DE","DEN","DENG","DI","DIAN","DIAO","DIE","DING","DIU","DONG","DOU","DU","DUAN","DUI","DUN","DUO","E","EI","EN","ENG","ER","FA","FAN","FANG","FEI","FEN","FENG","FIAO","FO","FOU","FU","GA","GAI","GAN","GANG","GAO","GE","GEI","GEN","GENG","GONG","GOU","GU","GUA","GUAI","GUAN","GUANG","GUI","GUN","GUO","HA","HAI","HAN","HANG","HAO","HE","HEI","HEN","HENG","HM","HONG","HOU","HU","HUA","HUAI","HUAN","HUANG","HUI","HUN","HUO","JI","JIA","JIAN","JIANG","JIAO","JIE","JIN","JING","JIONG","JIU","JU","JUAN","JUE","JUN","KA","KAI","KAN","KANG","KAO","KE","KEN","KENG","KONG","KOU","KU","KUA","KUAI","KUAN","KUANG","KUI","KUN","KUO","LA","LAI","LAN","LANG","LAO","LE","LEI","LENG","LI","LIA","LIAN","LIANG","LIAO","LIE","LIN","LING","LIU","LO","LONG","LOU","LU","LV","LUAN","LVE","LUN","LUO","M","MA","MAI","MAN","MANG","MAO","ME","MEI","MEN","MENG","MI","MIAN","MIAO","MIE","MIN","MING","MIU","MO","MOU","MU","N","NA","NAI","NAN","NANG","NAO","NE","NEI","NEN","NENG","NI","NIAN","NIANG","NIAO","NIE","NIN","NING","NIU","NONG","NOU","NU","NV","NUAN","NVE","NUN","NUO","O","OU","PA","PAI","PAN","PANG","PAO","PEI","PEN","PENG","PI","PIAN","PIAO","PIE","PIN","PING","PO","POU","PU","QI","QIA","QIAN","QIANG","QIAO","QIE","QIN","QING","QIONG","QIU","QU","QUAN","QUE","QUN","RAN","RANG","RAO","RE","REN","RENG","RI","RONG","ROU","RU","RUA","RUAN","RUI","RUN","RUO","SA","SAI","SAN","SANG","SAO","SE","SEN","SENG","SHA","SHAI","SHAN","SHANG","SHAO","SHE","SHEN","SHENG","SHI","SHOU","SHU","SHUA","SHUAI","SHUAN","SHUANG","SHUI","SHUN","SHUO","SI","SONG","SOU","SU","SUAN","SUI","SUN","SUO","TA","TAI","TAN","TANG","TAO","TE","TENG","TI","TIAN","TIAO","TIE","TING","TONG","TOU","TU","TUAN","TUI","TUN","TUO","WA","WAI","WAN","WANG","WEI","WEN","WENG","WO","WU","XI","XIA","XIAN","XIANG","XIAO","XIE","XIN","XING","XIONG","XIU","XU","XUAN","XUE","XUN","YA","YAN","YANG","YAO","YE","YI","YIN","YING","YO","YONG","YOU","YU","YUAN","YUE","YUN","ZA","ZAI","ZAN","ZANG","ZAO","ZE","ZEI","ZEN","ZENG","ZHA","ZHAI","ZHAN","ZHANG","ZHAO","ZHE","ZHEN","ZHENG","ZHI","ZHONG","ZHOU","ZHU","ZHUA","ZHUAI","ZHUAN","ZHUANG","ZHUI","ZHUN","ZHUO","ZI","ZONG","ZOU","ZU","ZUAN","ZUI","ZUN","ZUO",""],UNIHANS:["阿","哎","安","肮","凹","八","挀","扳","邦","勹","陂","奔","伻","屄","边","灬","憋","汃","冫","癶","峬","嚓","偲","参","仓","撡","冊","嵾","曽","叉","芆","辿","伥","抄","车","抻","阷","吃","充","抽","出","欻","揣","巛","刅","吹","旾","逴","呲","匆","凑","粗","汆","崔","邨","搓","咑","呆","丹","当","刀","嘚","扥","灯","氐","甸","刁","爹","丁","丟","东","吺","厾","耑","垖","吨","多","妸","诶","奀","鞥","儿","发","帆","匚","飞","分","丰","覅","仏","紑","夫","旮","侅","甘","冈","皋","戈","给","根","刯","工","勾","估","瓜","乖","关","光","归","丨","呙","哈","咍","佄","夯","茠","诃","黒","拫","亨","噷","叿","齁","乎","花","怀","欢","巟","灰","昏","吙","丌","加","戋","江","艽","阶","巾","坕","冂","丩","凥","姢","噘","军","咔","开","刊","忼","尻","匼","肎","劥","空","抠","扝","夸","蒯","宽","匡","亏","坤","扩","垃","来","兰","啷","捞","肋","勒","崚","哩","俩","奁","良","撩","毟","拎","伶","溜","囖","龙","瞜","噜","驴","娈","掠","抡","罗","呣","妈","埋","嫚","牤","猫","么","呅","门","甿","咪","宀","喵","乜","民","名","谬","摸","哞","毪","嗯","拏","腉","囡","囔","孬","疒","娞","恁","能","妮","拈","娘","鸟","捏","囜","宁","妞","农","羺","奴","女","奻","疟","黁","挪","喔","讴","妑","拍","眅","乓","抛","呸","喷","匉","丕","囨","剽","氕","姘","乒","钋","剖","仆","七","掐","千","呛","悄","癿","亲","靑","卭","丘","区","峑","缺","夋","呥","穣","娆","惹","人","扔","日","茸","厹","邚","挼","堧","婑","瞤","捼","仨","毢","三","桒","掻","閪","森","僧","杀","筛","山","伤","弰","奢","申","升","尸","収","书","刷","衰","闩","双","脽","吮","说","厶","忪","捜","苏","狻","夊","孙","唆","他","囼","坍","汤","夲","忑","熥","剔","天","旫","帖","厅","囲","偷","凸","湍","推","吞","乇","穵","歪","弯","尣","危","昷","翁","挝","乌","夕","虲","仙","乡","灱","些","心","星","凶","休","吁","吅","削","坃","丫","恹","央","幺","倻","一","囙","应","哟","佣","优","扜","囦","曰","晕","帀","災","兂","匨","傮","则","贼","怎","増","扎","捚","沾","张","佋","蜇","贞","争","之","中","州","朱","抓","拽","专","妆","隹","宒","卓","乲","宗","邹","租","钻","厜","尊","昨","兙"],EXCEPTIONS:{曾:"ZENG",沈:"SHEN",嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬤:"MO",嬷:"MO",蹒:"PAN",蹊:"XI",丬:"PAN",霰:"XIAN",莘:"XIN",豉:"CHI",饧:"XING",筠:"JUN",长:"CHANG",帧:"ZHEN",峙:"SHI",郍:"NA",芎:"XIONG",谁:"SHUI"}},vA="阿",yA="鿿",bA=1,Go=2,q2=3;let Ko=null,eu;function wA(e){e&&(typeof e=="function"&&(e=[e]),e.forEach&&e.forEach(t=>{typeof t=="function"&&t(Qc)}))}function $5(e){return!e&&Ko!==null||(typeof Intl=="object"&&Intl.Collator?(eu=new Intl.Collator(["zh-Hans-CN","zh-CN"]),Ko=Intl.Collator.supportedLocalesOf(["zh-CN"]).length===1):Ko=!1),Ko}function F5(e){const{UNIHANS:t}=Qc,{PINYINS:n}=Qc,{EXCEPTIONS:r}=Qc,i={source:e};if(e in r)return i.type=Go,i.target=r[e],i;let s=-1,l;if(e.charCodeAt(0)<256)return i.type=bA,i.target=e,i;if(l=eu.compare(e,vA),l<0)return i.type=q2,i.target=e,i;if(l===0)i.type=Go,s=0;else{if(l=eu.compare(e,yA),l>0)return i.type=q2,i.target=e,i;l===0&&(i.type=Go,s=t.length-1)}if(i.type=Go,s<0){let u=0,d=t.length-1;for(;u<=d;){s=~~((u+d)/2);const h=t[s];if(l=eu.compare(e,h),l===0)break;l>0?u=s+1:d=s-1}}return l<0&&s--,i.target=n[s],i.target||(i.type=q2,i.target=i.source),i}function H5(e){return typeof e!="string"||!$5()?e:e.split("").map(t=>F5(t))}const tu={isSupported:$5,parse:H5,patchDict:wA,genToken:F5,convertToPinyin(e,t,n){return H5(e).map(r=>t&&r.type===Go?r.target.toLowerCase():r.target).join(n||"")}};function CA(e){e.EXCEPTIONS={嗲:"DIA",碡:"ZHOU",聒:"GUO",炔:"QUE",蚵:"KE",砉:"HUA",嬷:"MO",蹊:"XI",丬:"PAN",霰:"XIAN",豉:"CHI",饧:"XING",帧:"ZHEN",芎:"XIONG",谁:"SHUI",钶:"KE"},e.UNIHANS[91]="伕",e.UNIHANS[347]="仚",e.UNIHANS[393]="诌",e.UNIHANS[39]="婤",e.UNIHANS[50]="腠",e.UNIHANS[369]="攸",e.UNIHANS[123]="乯",e.UNIHANS[171]="刕",e.UNIHANS[102]="佝",e.UNIHANS[126]="犿",e.UNIHANS[176]="列",e.UNIHANS[178]="刢",e.UNIHANS[252]="娝",e.UNIHANS[330]="偸"}function NA(e){return typeof e!="function"?!1:e("伕").target==="FOU"&&e("仚").target==="XIA"&&e("诌").target==="ZHONG"&&e("婤").target==="CHONG"&&e("腠").target==="CONG"&&e("攸").target==="YONG"&&e("乯").target==="HOU"&&e("刕").target==="LENG"&&e("佝").target==="GONG"&&e("犿").target==="HUAI"&&e("列").target==="LIAO"&&e("刢").target==="LIN"&&e("钶").target==="E"}const B5={patcher:CA,shouldPatch:NA};tu.isSupported()&&B5.shouldPatch(tu.genToken)&&tu.patchDict(B5);var U5=function(e){return e.FILLED="filled",e.STROKE="stroke",e.UNKNOWN="",e}(U5||{});const _A=a.defineComponent({name:"Tag",props:{theme:Yl().def(""),closable:v.bool.def(!1),type:ze("tagStorkeType",{}).def(U5.UNKNOWN),checkable:v.bool.def(!1),checked:v.bool.def(!1),radius:v.string.def("2px"),size:v.size(),stopPropagation:v.bool.def(!0)},emits:["change","close"],slots:Object,setup(e,{emit:t}){const{resolveClassName:n}=Ae();return{wrapperStyle:a.computed(()=>({borderRadius:e.radius})),handleClose:l=>{l.preventDefault(),e.stopPropagation&&l.stopPropagation(),t("close",l)},handleClick:l=>{l.preventDefault(),e.stopPropagation&&l.stopPropagation(),e.checkable&&t("change",!e.checked)},resolveClassName:n}},render(){var t,n;const e={[this.resolveClassName("tag")]:!0,[this.resolveClassName("tag-closable")]:this.closable,[this.resolveClassName("tag-checkable")]:this.checkable,[this.resolveClassName("tag-check")]:this.checked,[this.resolveClassName(`tag-${this.type}`)]:this.type,[this.resolveClassName(`tag-${this.theme}`)]:this.theme,[this.resolveClassName(`tag--${this.size}`)]:!0};return a.createVNode("div",{style:this.wrapperStyle,class:e,onClick:this.handleClick},[this.$slots.icon?a.createVNode("span",{class:`${this.resolveClassName("tag-icon")}`},[this.$slots.icon()]):"",a.createVNode("span",{class:`${this.resolveClassName("tag-text")}`},[(n=(t=this.$slots).default)==null?void 0:n.call(t)]),this.closable&&a.createVNode(bn,{class:`${this.resolveClassName("tag-close")}`,onClick:this.handleClose},null)])}}),Yo=ut(_A);var xA=bm();const qa=Jt(xA),SA=a.defineComponent({name:"SelectTagInput",directives:{bkTooltips:Qr},props:{selected:{type:Array,default:()=>[]},tagTheme:Yl(),placeholder:v.string.def(""),filterable:v.bool.def(!1),allowCreate:v.bool.def(!1),disabled:v.bool.def(!1),modelValue:v.any,collapseTags:v.bool.def(!1),behavior:wf()},emits:["update:modelValue","remove","enter","keydown"],setup(e,{emit:t}){const{resolveClassName:n}=Ae(),r=a.inject(Gc,null),{modelValue:i,collapseTags:s,selected:l}=a.toRefs(e),u=a.ref(i.value),d=a.ref(),h=a.ref(null),m=a.computed(()=>l.value.slice(h.value,l.value.length).map(A=>r==null?void 0:r.handleGetLabelByValue(A.value)).join(", "));a.watch(i,()=>{u.value=i.value}),a.watch([l,s],()=>{N.value=[],_()},{flush:"post"});const f=A=>{t("remove",A)},p=()=>{var A;(A=d.value)==null||A.focus()},y=()=>{var A;(A=d.value)==null||A.blur()},b=A=>{t("update:modelValue",A)},w=A=>{t("update:modelValue",A.target.value)},C=A=>{switch(A.code){case"NumpadEnter":case"Enter":{t("enter",A.target.value,A);break}}t("keydown",A.target.value,A)},N=a.ref([]),S=a.ref(),x=A=>N.value.map(k=>k==null?void 0:k.$el).filter(k=>!!k),_=()=>{s.value&&(h.value=null,setTimeout(()=>{var k,L;const A=x(),P=A.findIndex((D,H)=>H?A[H-1].offsetTop!==D.offsetTop:!1);h.value=P>0?P:null,((k=A[h.value])==null?void 0:k.offsetTop)!==((L=S.value)==null?void 0:L.offsetTop)&&h.value>1&&(h.value-=1)}))},O=qa(_,150),T=a.ref(),I=new ResizeObserver(()=>{O()});return a.onMounted(()=>{T.value&&I.observe(T.value)}),a.onBeforeUnmount(()=>{T.value&&I.unobserve(T.value)}),{collapseTagRef:S,tagWrapperRef:T,tagsRefs:N,select:r,overflowTagIndex:h,value:u,inputRef:d,overflowContent:m,handleRemoveTag:f,focus:p,blur:y,updateModelValue:b,handleInput:w,handleKeydown:C,resolveClassName:n}},render(){var i,s,l,u,d,h,m,f;const e=(s=(i=this.$slots)==null?void 0:i.prefix)==null?void 0:s.call(i),t=Ze({[this.resolveClassName("select-tag")]:!0,[this.resolveClassName("select-tag--default")]:!0,"is-disabled":this.disabled,"collapse-tag":this.collapseTags,"has-prefix":!!e,"is-simplicity":this.behavior==="simplicity"}),n=Ze({[this.resolveClassName("select-tag-wrapper")]:!0}),r={display:this.selected.length&&!this.filterable?"none":""};return a.createVNode("div",{ref:"tagWrapperRef",class:t},[(u=(l=this.$slots)==null?void 0:l.prefix)==null?void 0:u.call(l),a.createVNode("div",{class:n},[((h=(d=this.$slots).default)==null?void 0:h.call(d))??this.selected.map((p,y)=>a.createVNode(Yo,{key:p.value,ref:b=>this.tagsRefs[y]=b,style:{display:this.collapseTags&&this.overflowTagIndex&&y>=this.overflowTagIndex?"none":""},theme:this.tagTheme,closable:!0,onClose:()=>this.handleRemoveTag(p.value)},{default:()=>{var b,w;return[((w=(b=this.$slots).tagRender)==null?void 0:w.call(b,p))??a.createVNode(c2,{type:"tips"},{default:()=>{var C;return[(C=this.select)==null?void 0:C.handleGetLabelByValue(p.value)]}})]}})),a.withDirectives(a.createVNode(Yo,{ref:"collapseTagRef",style:{display:this.overflowTagIndex&&this.collapseTags?"":"none"},class:this.resolveClassName("select-overflow-tag")},{default:()=>[a.createTextVNode("+"),this.selected.length-this.overflowTagIndex]}),[[a.resolveDirective("bk-tooltips"),{content:this.overflowContent,disabled:!this.overflowTagIndex||!this.collapseTags,extCls:this.resolveClassName("select-tooltips")}]]),a.createVNode("input",{ref:"inputRef",style:r,class:this.resolveClassName("select-tag-input"),disabled:this.disabled,placeholder:this.selected.length?"":this.placeholder,readonly:!this.filterable,type:"text",value:this.filterable?this.value:"",onInput:this.handleInput,onKeydown:this.handleKeydown},null)]),(f=(m=this.$slots)==null?void 0:m.suffix)==null?void 0:f.call(m)])}}),TA=a.defineComponent({name:"Select",directives:{clickoutside:Kr},props:{modelValue:v.any,multiple:v.bool.def(!1),disabled:v.bool.def(!1),size:v.size().def(vf.DEFAULT),clearable:v.bool.def(!0),loading:v.bool.def(!1),filterable:v.bool.def(!1),remoteMethod:v.func,scrollHeight:v.number.def(204),minHeight:v.number,showAll:v.bool.def(!1),allOptionText:v.string.def(""),allOptionId:v.oneOfType([v.number,v.string]),showSelectAll:v.bool.def(!1),popoverMinWidth:v.number.def(0),showOnInit:v.bool.def(!1),multipleMode:v.oneOf(["default","tag"]).def("default"),tagTheme:Yl(),behavior:wf(),collapseTags:v.bool.def(!1),autoHeight:v.bool.def(!0),noDataText:v.string,noMatchText:v.string,loadingText:v.string,placeholder:v.string,searchPlaceholder:v.string,selectAllText:v.string,scrollLoading:v.bool.def(!1),allowCreate:v.bool.def(!1),popoverOptions:Object,customContent:v.bool.def(!1),list:v.arrayOf(v.any).def([]),idKey:v.string.def("value"),displayKey:v.string.def("label"),withValidate:v.bool.def(!0),showSelectedIcon:v.bool.def(!0),inputSearch:v.bool.def(!1),enableVirtualRender:v.bool.def(!1),allowEmptyValues:v.array.def([]),autoFocus:v.bool.def(!1),disableFocusBehavior:v.bool.def(!1),keepSearchValue:v.bool.def(!1),prefix:v.string,selectedStyle:Z_(),filterOption:{type:Function},searchWithPinyin:v.bool.def(!0),highlightKeyword:v.bool.def(!1),trigger:{type:String,default:"default"},disableScrollToSelectedOption:v.bool.def(!1),inputTooltipsOptions:{type:Object,default:()=>({})}},emits:["update:modelValue","change","toggle","clear","scroll-end","focus","blur","tag-remove","select","deselect","search-change"],setup(e,{emit:t}){const n=St("select"),{resolveClassName:r}=Ae(),{modelValue:i,disabled:s,filterable:l,multiple:u,remoteMethod:d,loading:h,popoverMinWidth:m,showOnInit:f,multipleMode:p,allowCreate:y,customContent:b,showSelectedIcon:w,inputSearch:C,enableVirtualRender:N,showSelectAll:S,showAll:x,allOptionId:_,scrollHeight:O,list:T,displayKey:I,idKey:A,collapseTags:P,autoHeight:k,popoverOptions:L,allowEmptyValues:D,autoFocus:H,keepSearchValue:B,selectedStyle:W,filterOption:J,searchWithPinyin:G,highlightKeyword:K,disableFocusBehavior:le,trigger:ae,disableScrollToSelectedOption:$}=a.toRefs(e),M=a.ref(null),V=a.computed(()=>e.allOptionText),z=a.computed(()=>e.noDataText===void 0?n.value.noData:e.noDataText),q=a.computed(()=>e.noMatchText===void 0?n.value.noMatchedData:e.noMatchText),se=a.computed(()=>e.loadingText===void 0?n.value.loading:e.loadingText),ce=a.computed(()=>e.placeholder===void 0?n.value.pleaseSelect:e.placeholder),Ce=a.computed(()=>e.searchPlaceholder===void 0?n.value.enterKeywords:e.searchPlaceholder),re=a.computed(()=>e.selectAllText===void 0?n.value.selectAll:e.selectAllText),oe=Tr(),pe=a.ref(),Q=a.ref(),Z=a.ref(),Y=a.ref(),te=a.ref(),Ne=a.ref(),ee=a.ref(),ye=a.ref(new Map),he=a.computed(()=>[...ye.value.values()].sort((Le,Fe)=>Le.order-Fe.order)),j=a.ref(new Map),X=a.ref([]),we=a.computed(()=>X.value.reduce((Le,Fe)=>(Le[Fe.value]=Fe.label,Le),{[`${_.value}`]:n.value.all})),de=a.ref(),ne=a.computed(()=>T.value.reduce((Le,Fe)=>(Le[Fe[A.value]]=Fe[I.value],Le),{}));a.watch([ye,T],()=>{Ws()}),a.watch(i,()=>{var Le;Ws(),e.withValidate&&((Le=oe==null?void 0:oe.validate)==null||Le.call(oe,"change"))},{deep:!0}),a.watch(X,()=>{var Le;(Le=ee.value)==null||Le.updatePopover(null,rt.value)});const ge=a.computed(()=>Te.value?T.value:T.value.filter(Le=>Xe(wt.value,String(Le[I.value]),Le))),Se=a.computed(()=>s.value||h.value),Pe=a.computed(()=>X.value.map(Le=>{var Fe,Ke;return((Ke=(Fe=ye.value)==null?void 0:Fe.get(Le.value))==null?void 0:Ke.optionName)||ne.value[Le.value]||Le.label})),Be=a.computed(()=>{const Le=he.value.reduce((Fe,Ke)=>(Ke.disabled||Fe.push(Ke.optionID),Fe),[]);return Le.length<=X.value.length&&Le.every(Fe=>X.value.some(Ke=>Ke.value===Fe))}),Qe=a.computed(()=>{var Le;return X.value.length===1&&((Le=X.value[0])==null?void 0:Le.value)===_.value}),it=a.computed(()=>!!j.value.size),be=a.computed(()=>!he.value.length),xe=a.computed(()=>he.value.length&&he.value.every(Le=>!Le.visible)),Te=a.computed(()=>l.value&&typeof d.value=="function"),$e=a.computed(()=>!!(J.value&&typeof J.value=="function")),qe=a.computed(()=>b.value?!0:!(jt.value||be.value||xe.value)),at=a.computed(()=>u.value&&S.value&&(!wt.value||!l.value)),_t=a.computed(()=>u.value&&x.value),At=a.computed(()=>O.value-12-(at.value?32:0)),Ct=a.ref(32),Nt=a.computed(()=>N.value?ge.value.length*Ct.value>At.value:!1),It=a.computed(()=>Math.ceil(At.value/Ct.value)),Dt=a.computed(()=>jt.value?se.value:xe.value||T.value.length&&!ge.value.length?q.value:be.value?z.value:""),Tt=a.computed(()=>k.value?P.value&&!gr.value:P.value),rt=a.computed(()=>To({theme:`light ${r("select-popover")}`,trigger:"manual",width:$i.value,arrow:!1,placement:"bottom-start",isShow:gr.value,reference:Ne.value,offset:4,popoverDelay:0,renderType:Kl.AUTO,referenceCls:r("select-popover-reference")},L.value)),{register:st,unregister:Mn}=f2(ye),{register:$s,unregister:Fs}=f2(j),{isHover:Mi,setHover:Hs,cancelHover:ni}=W4(),xa=a.ref(!1),dn=()=>{xa.value||(xa.value=!0,t("focus"))},pr=()=>{xa.value&&(xa.value=!1,js(),t("blur"))},{popperWidth:$i,isPopoverShow:gr,hidePopover:ri,showPopover:Fi,togglePopover:Xn}=xO({popoverMinWidth:m.value},Q),Sa=()=>{ae.value!=="manual"&&ri()},Bs=()=>{ae.value!=="manual"&&Fi()},ai=a.computed(()=>l.value&&C.value&&gr.value||y.value);a.watch(gr,Le=>{t("toggle",gr.value),Le?(document.addEventListener("keydown",Bi),setTimeout(()=>{vr(),zs(),Us()},10)):(B.value||(Me.value=""),document.removeEventListener("keydown",Bi))});const Us=()=>{var Fe,Ke,Rt;if(Nt.value||$.value)return;const Le=(Ke=(Fe=Z.value)==null?void 0:Fe.querySelectorAll)==null?void 0:Ke.call(Fe,".is-selected");(Rt=Le==null?void 0:Le[0])==null||Rt.scrollIntoView({block:"center"})},zs=()=>{var Ke;const Le=X.value[0],Fe=ye.value.get(Le==null?void 0:Le.value);Fe&&!Fe.disabled&&Fe.visible?de.value=Le==null?void 0:Le.value:de.value=(Ke=he.value.find(Rt=>!Rt.disabled&&Rt.visible))==null?void 0:Ke.optionID},Xe=(Le,Fe,Ke={})=>{var Rt,Zn;if($e.value)return!!J.value(Le,{...Ke});if(G.value){const Qn=tu.parse(Fe).map(Hr=>Hr.type===2?Hr.target.toLowerCase():Hr.target),Fr=Qn.reduce((Hr,nn)=>Hr+nn[0],"");return Qn.join("").indexOf(Le)!==-1||Fr.indexOf(Le)!==-1||((Rt=xs(String(Fe)))==null?void 0:Rt.includes(xs(Le)))}return(Zn=xs(String(Fe)))==null?void 0:Zn.includes(xs(Le))},fe=Le=>{l.value&&(Le?he.value.forEach(Fe=>{Fe.visible=Xe(Le,String(Fe.optionName),{...Fe.$props,...Fe.$attrs})}):he.value.forEach(Fe=>{Fe.visible=!0}))},{searchValue:Me,customOptionName:We,curSearchValue:wt,searchLoading:jt}=SO(Te.value?d.value:fe,zs);a.watch(Me,()=>{te.value.scrollTop=0,de.value="",t("search-change",Me.value)});const yt=Le=>{Le!==i.value&&(t("update:modelValue",Le,i.value),t("change",Le,i.value),Ws(),u.value&&(We.value=""))},on=()=>{Se.value||ae.value==="manual"||(dn(),Xn())},Jn=Le=>{l.value&&(We.value=Le)},Ta=(Le,Fe)=>{const Ke=String(Le);if(!y.value||!Ke)return;Fe.stopPropagation(),Fe.preventDefault();const Rt=he.value.find(Qn=>xs(String(Qn.optionName))===xs(Ke));if(l.value&&Rt){$r(Rt);return}ye.value.get(Ke)||(u.value?(X.value.push({value:Ke,label:Ke}),yt(X.value.map(Qn=>Qn.value))):(X.value=[{value:Ke,label:Ke}],yt(Ke),Sa()))},$r=Le=>{if(Se.value||!Le)return;const Fe=X.value.findIndex(Ke=>Ke.value===_.value);if(Fe>-1&&X.value.splice(Fe,1),u.value){const Ke=X.value.findIndex(Rt=>Rt.value===Le.optionID);Ke>-1?(X.value.splice(Ke,1),yt(X.value.map(Rt=>Rt.value)),t("deselect",Le.optionID)):(X.value.push({value:Le.optionID,label:Le.optionName||Le.optionID}),yt(X.value.map(Rt=>Rt.value)),t("select",Le.optionID),Wt()),vr()}else X.value=[{label:Le.optionName||Le.optionID,value:Le.optionID}],yt(Le.optionID),t("select",Le.optionID),Sa(),pr()},Wt=()=>{var Le;["tag"].includes(p.value)&&ai.value&&((Le=Ne.value)==null||Le.updateModelValue(""))},vr=()=>{le.value||setTimeout(()=>{var Le,Fe,Ke;!C.value&&!y.value?(Le=Y.value)==null||Le.focus():p.value==="tag"?(Fe=Ne.value)==null||Fe.focus():(Ke=pe.value)==null||Ke.focus()},0)},js=()=>{setTimeout(()=>{var Le,Fe;p.value==="tag"?(Le=Ne.value)==null||Le.blur():(Fe=pe.value)==null||Fe.blur()},0)},b6=Le=>{Le.stopPropagation(),X.value=[],We.value="",Wt(),yt(u.value?[]:""),t("clear",u.value?[]:""),Sa()},w6=()=>{de.value=""},C6=()=>{var Le;if(Be.value)X.value=[];else{const Fe=new Map;he.value.forEach(Ke=>{Ke.disabled||Fe.has(Ke.optionID)||Fe.set(Ke.optionID,Ke.optionName||Ke.optionID)}),(Le=T.value)==null||Le.forEach(Ke=>{Ke.disabled||Fe.has(Ke[A.value])||Fe.set(Ke[A.value],Ke[I.value])}),X.value=Array.from(Fe.keys()).map(Ke=>({value:Ke,label:Fe.get(Ke)}))}yt(X.value.map(Fe=>Fe.value)),vr()},Zu=()=>{if(!_t.value)return;X.value.findIndex(Fe=>Fe.value===_.value)>-1?X.value=[]:X.value=[{value:_.value,label:n.value.all}],yt(X.value.map(Fe=>Fe.value)),vr()},Qu=Le=>{const{scrollTop:Fe,clientHeight:Ke,scrollHeight:Rt}=Le.target;Fe+Ke===Rt&&t("scroll-end")},ed=Le=>{if(Se.value)return;const Fe=X.value.findIndex(Ke=>Ke.value===Le);Fe>-1&&(X.value.splice(Fe,1),yt(X.value.map(Ke=>Ke.value)),t("tag-remove",Le))},Hi=Le=>{var Ke,Rt;let Fe=Le;if(typeof Fe=="object"){for(const Zn of ye.value.keys())if(U2(Zn,Fe)){Fe=Zn;break}}return((Rt=(Ke=ye.value)==null?void 0:Ke.get(Fe))==null?void 0:Rt.optionName)||ne.value[Fe]||we.value[Fe]||Fe},Ws=()=>{Array.isArray(i.value)?X.value=[...i.value.map(Le=>({value:Le,label:Hi(Le)}))]:i.value||D.value.includes(i.value)?X.value=[{value:i.value,label:Hi(i.value)}]:X.value=[]},td=Le=>{X.value=Le.map(Fe=>({label:Fe[I.value],value:Fe[A.value]}))},Bi=Le=>{var Rt,Zn,Qn,Fr,Hr;if(!gr.value||Nt.value)return;const Fe=he.value.filter(nn=>!nn.disabled&&nn.visible),Ke=Fe.findIndex(nn=>nn.optionID===de.value);switch(Le.code){case"ArrowUp":case"ArrowDown":{Le.preventDefault();let nn=0;Le.code==="ArrowDown"?nn=Ke>=Fe.length-1?0:Ke+1:nn=Ke===0?Fe.length-1:Ke-1,TO((Rt=Fe[nn])==null?void 0:Rt.$el,Z.value)||(Qn=(Zn=Fe[nn])==null?void 0:Zn.$el)==null||Qn.scrollIntoView(),de.value=(Fr=Fe[nn])==null?void 0:Fr.optionID;break}case"Backspace":{if(!u.value||!X.value.length||We.value.length||Le.target===Y.value)return;X.value.pop(),yt(X.value.map(nn=>nn.value));break}case"NumpadEnter":case"Enter":{const{value:nn}=Le.target;if(y.value&&nn||Le.target===Y.value&&((Hr=Y.value)!=null&&Hr.value))return;const _6=ye.value.get(de.value);$r(_6);break}}},nd=({event:Le})=>{var Ke;const{target:Fe}=Le;(Ke=Q.value)!=null&&Ke.contains(Fe)||Q.value===Fe||(Sa(),pr())};return a.provide(Gc,a.reactive({multiple:u,selected:X,activeOptionValue:de,showSelectedIcon:w,selectedStyle:W,curSearchValue:wt,highlightKeyword:K,isSearchEmpty:xe,register:st,unregister:Mn,registerGroup:$s,unregisterGroup:Fs,handleOptionSelected:$r,handleGetLabelByValue:Hi})),a.onMounted(()=>{Ws(),setTimeout(()=>{f.value&&Bs(),H.value&&vr()})}),{t:n,selected:X,isInput:ai,options:he,isDisabled:Se,selectedLabel:Pe,isPopoverShow:gr,isHover:Mi,popperWidth:$i,inputRef:pe,triggerRef:Q,contentRef:Z,searchRef:Y,scrollContainerRef:te,selectTagInputRef:Ne,popoverRef:ee,searchLoading:jt,isOptionsEmpty:be,isSearchEmpty:xe,isFocus:xa,isShowSelectContent:qe,curContentText:Dt,isGroup:it,searchValue:Me,curSearchValue:wt,customOptionName:We,isShowAll:_t,isShowSelectAll:at,virtualHeight:At,filterList:ge,isCollapseTags:Tt,popoverConfig:rt,isAllSelected:Be,isAll:Qe,displayAllText:V,focusInput:vr,setHover:Hs,cancelHover:ni,handleFocus:dn,handleBlur:pr,handleTogglePopover:on,handleClear:b6,hidePopover:ri,showPopover:Fi,toggleSelectAll:C6,toggleAll:Zu,handleOptionSelected:$r,handleClickOutside:nd,handleScroll:Qu,handleDeleteTag:ed,handleInputChange:Jn,handleSelectedAllOptionMouseEnter:w6,localLoadingText:se,localPlaceholder:ce,localSearchPlaceholder:Ce,localSelectAllText:re,resolveClassName:r,handleCreateCustomOption:Ta,handlePopoverShown:()=>{var Le;(Le=M.value)==null||Le.scrollTo(0,1)},virtualLineHeight:Ct,isEnableVirtualRender:Nt,preloadItemCount:It,virtualRenderRef:M,setSelected:td,handleExtensionClick:Le=>{Le.stopPropagation()}}},render(){const e=Ze({[`${this.resolveClassName("select")}`]:!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable,[this.size]:!0,[this.behavior]:!0}),t=()=>{var f,p,y;return this.loading?a.createVNode($a,{class:"spinner",loading:!0,mode:"spin",size:"mini",theme:"primary"},null):this.clearable&&this.isHover&&this.selected.length&&!this.isDisabled||this.allowCreate&&this.isHover&&this.customOptionName&&!this.isDisabled?a.createVNode(Rn,{class:"clear-icon",onClick:this.handleClear},null):(f=this.$slots)!=null&&f.suffix?a.createVNode("span",{class:"angle-down"},[(y=(p=this.$slots)==null?void 0:p.suffix)==null?void 0:y.call(p)]):a.createVNode(fs,{class:"angle-down"},null)},n=()=>{var f;return this.prefix?()=>a.createVNode("div",{class:`${this.resolveClassName("select--prefix-area")}`},[a.createVNode("span",null,[this.prefix])]):(f=this.$slots)!=null&&f.prefix?()=>{var p,y;return(y=(p=this.$slots)==null?void 0:p.prefix)==null?void 0:y.call(p)}:void 0},r=()=>{if(this.isShowSelectAll)return a.createVNode("li",{class:this.resolveClassName("select-option"),onClick:this.toggleSelectAll,onMouseenter:this.handleSelectedAllOptionMouseEnter},[this.selectedStyle==="checkbox"&&a.createVNode(wn,{class:this.resolveClassName("select-checkbox"),indeterminate:!this.isAllSelected&&!!this.selected.length&&!this.isAll,modelValue:this.isAllSelected},null),this.localSelectAllText])},i=()=>{var f,p;return((p=(f=this.$slots)==null?void 0:f.allOptionIcon)==null?void 0:p.call(f))||a.createVNode(Vc,{class:"select-all-icon"},null)},s=()=>a.createVNode("span",null,[this.displayAllText||this.t.all]),l=()=>{var f;if(this.isShowAll)return a.createVNode("div",{class:this.resolveClassName("select-all")},[a.createVNode("div",{class:["wrapper",this.selected.length===1&&((f=this.selected[0])==null?void 0:f.value)===this.allOptionId?"active":""],onClick:this.toggleAll},[i(),s()])])},u=()=>{var f,p,y;return this.multipleMode==="tag"?a.createVNode(SA,{ref:"selectTagInputRef",modelValue:this.customOptionName,"onUpdate:modelValue":b=>this.customOptionName=b,behavior:this.behavior,collapseTags:this.isCollapseTags,disabled:this.isDisabled,filterable:this.isInput,placeholder:this.localPlaceholder,selected:this.selected,tagTheme:this.tagTheme,onEnter:this.handleCreateCustomOption,onRemove:this.handleDeleteTag},{prefix:n(),default:((f=this.$slots)==null?void 0:f.tag)&&(()=>{var b;return(b=this.$slots)==null?void 0:b.tag({selected:this.selected})}),tagRender:((p=this.$slots)==null?void 0:p.tagRender)&&(b=>{var w;return(w=this.$slots)==null?void 0:w.tagRender(b)}),suffix:()=>t()}):a.createVNode(za,a.mergeProps({ref:"inputRef",behavior:this.behavior,disabled:this.isDisabled,modelValue:this.isInput&&this.customOptionName?this.customOptionName:this.selectedLabel.join(","),placeholder:this.isInput?this.selectedLabel.join(",")||this.localPlaceholder:this.localPlaceholder,readonly:!this.isInput,selectReadonly:!0,size:this.size,stopPropagation:!1,tooltipsOptions:this.inputTooltipsOptions,type:"text",withValidate:!1,onEnter:this.handleCreateCustomOption,onInput:this.handleInputChange},this.prefix?{prefix:this.prefix}:null),{...typeof((y=this.$slots)==null?void 0:y.prefix)=="function"?{prefix:()=>{var b,w;return(w=(b=this.$slots)==null?void 0:b.prefix)==null?void 0:w.call(b)}}:null,suffix:()=>t()})},d=()=>{var f,p;return a.createVNode("div",{ref:"triggerRef",style:{height:this.autoHeight&&this.collapseTags?"32px":""},class:this.resolveClassName("select-trigger"),onClick:this.handleTogglePopover,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[((p=(f=this.$slots)==null?void 0:f.trigger)==null?void 0:p.call(f,{selected:this.selected}))||u()])},h=()=>this.isEnableVirtualRender?a.createVNode(qo,{ref:"virtualRenderRef",height:this.virtualHeight,lineHeight:this.virtualLineHeight,list:this.filterList,preloadItemCount:this.preloadItemCount,scrollbar:{enabled:!0,size:"small"}},{default:({data:f})=>{var y,b;const p=((y=this.$slots)==null?void 0:y.optionRender)||((b=this.$slots)==null?void 0:b.virtualScrollRender);return f.map(w=>a.createVNode(Yc,{id:w[this.idKey],key:w[this.idKey],disabled:!!w.disabled,name:w[this.displayKey]},typeof p=="function"?{default:()=>p({item:w})}:null))}}):this.filterList.map(f=>{var y,b;const p=((y=this.$slots)==null?void 0:y.optionRender)||((b=this.$slots)==null?void 0:b.virtualScrollRender);return a.createVNode(Yc,{id:f[this.idKey],key:f[this.idKey],disabled:!!f.disabled,name:f[this.displayKey]},typeof p=="function"?{default:()=>p({item:f})}:null)}),m=()=>{var f,p,y,b;return a.createVNode("div",{ref:"contentRef",class:this.resolveClassName("select-content-wrapper")},[l(),this.filterable&&!this.inputSearch&&a.createVNode("div",{class:this.resolveClassName("select-search-wrapper")},[a.createVNode(xi,{width:16,height:16,class:"icon-search"},null),a.withDirectives(a.createVNode("input",{ref:"searchRef",class:this.resolveClassName("select-search-input"),"onUpdate:modelValue":w=>this.searchValue=w,placeholder:this.localSearchPlaceholder},null),[[a.vModelText,this.searchValue]])]),!this.isShowSelectContent&&a.createVNode("div",{class:this.resolveClassName("select-empty")},[this.searchLoading&&a.createVNode($a,{class:"mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.curContentText])]),a.createVNode("div",{class:this.resolveClassName("select-content")},[a.withDirectives(a.createVNode("div",{ref:"scrollContainerRef",style:{maxHeight:`${this.scrollHeight}px`,minHeight:`${this.minHeight}px`},class:this.isEnableVirtualRender?"":this.resolveClassName("select-dropdown"),onScroll:this.handleScroll},[a.createVNode("ul",{class:this.resolveClassName("select-options")},[r(),h(),(p=(f=this.$slots)==null?void 0:f.default)==null?void 0:p.call(f),this.scrollLoading&&a.createVNode("li",{class:this.resolveClassName("select-options-loading")},[a.createVNode($a,{class:"spinner mr5",loading:!0,mode:"spin",size:"mini",theme:"primary"},null),a.createVNode("span",null,[this.localLoadingText])])])]),[[a.vShow,this.isShowSelectContent]]),((y=this.$slots)==null?void 0:y.extension)&&a.createVNode("div",{class:this.resolveClassName("select-extension"),onClick:this.handleExtensionClick},[(b=this.$slots)==null?void 0:b.extension()])])])};return a.createVNode("div",{class:e},[a.createVNode(In,a.mergeProps(this.popoverConfig,{ref:"popoverRef",onAfterShow:this.handlePopoverShown,onClickoutside:this.handleClickOutside}),{default:()=>d(),content:()=>m()})])}}),G2=yn(TA,{Option:Yc,Group:YO}),ya=10;function EA(e){const t=a.reactive({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:t,initPage:(i=[])=>{t.curPage=1,t.totalSize=i.length,t.totalPage=Math.ceil(t.totalSize/t.pageSize)||1;const s=[];if(t.pageSize>0)for(let l=0;l<t.totalSize;l+=t.pageSize)s.push(i.slice(l,l+t.pageSize));t.renderListPaged.splice(0,t.renderListPaged.length,...s),t.curPageList.splice(0,t.curPageList.length,...t.renderListPaged[t.curPage-1]||[])},pageChange:i=>{t.curPage=i,t.curPageList.splice(t.curPageList.length,0,...t.renderListPaged[t.curPage-1]||[]),t.isPageLoading=!1}}}function OA(e){const{useGroup:t,saveKey:n,displayKey:r,list:i}=a.toRefs(e),s=a.ref([]),l=a.ref({});return a.watch([t,n,r,i],()=>{s.value=[];let u=a.markRaw(i.value);t.value&&(u=u.reduce((d,h)=>{let m=[];return h.children&&(m=h.children.map(f=>({group:{groupId:h[n.value],groupName:h[r.value]},...f}))),d.concat(m)},[])),s.value=u,l.value=u.reduce((d,h)=>(d[h[n.value]]=h,d),{})},{immediate:!0,deep:!0}),{flatList:s,saveKeyMap:l}}const z5=e=>{const t=e.length;let n=0;for(let r=0;r<t;r++)(e.charCodeAt(r)&65280)!==0&&(n+=1),n+=1;return n},j5=(e,t,n)=>{a.watch([n,t],()=>{i()},{flush:"post"});const r=a.ref(null),i=()=>{t.value&&(r.value=null,setTimeout(()=>{const s=Array.from(e.value.querySelectorAll(".tag-item")),l=s.findIndex((u,d)=>d?s[d-1].offsetTop!==u.offsetTop:!1);r.value=l>0?l-1:null}))};return{overflowTagIndex:r}};var K2,W5;function AA(){if(W5)return K2;W5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return K2=e,K2}var Y2,q5;function G5(){if(q5)return Y2;q5=1;var e=mo(),t=AA(),n=jn(),r=Ul(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function l(u){if(typeof u=="string")return u;if(n(u))return t(u,l)+"";if(r(u))return s?s.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return Y2=l,Y2}var X2,K5;function LA(){if(K5)return X2;K5=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++i<s;)l[i]=t[i+n];return l}return X2=e,X2}var J2,Y5;function DA(){if(Y5)return J2;Y5=1;var e=LA();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return J2=t,J2}var Z2,X5;function RA(){if(X5)return Z2;X5=1;function e(t,n,r,i){for(var s=t.length,l=r+(i?1:-1);i?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return Z2=e,Z2}var Q2,J5;function IA(){if(J5)return Q2;J5=1;function e(t){return t!==t}return Q2=e,Q2}var e1,Z5;function VA(){if(Z5)return e1;Z5=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return e1=e,e1}var t1,Q5;function e8(){if(Q5)return t1;Q5=1;var e=RA(),t=IA(),n=VA();function r(i,s,l){return s===s?n(i,s,l):e(i,t,l)}return t1=r,t1}var n1,t8;function PA(){if(t8)return n1;t8=1;var e=e8();function t(n,r){for(var i=n.length;i--&&e(r,n[i],0)>-1;);return i}return n1=t,n1}var r1,n8;function kA(){if(n8)return r1;n8=1;var e=e8();function t(n,r){for(var i=-1,s=n.length;++i<s&&e(r,n[i],0)>-1;);return i}return r1=t,r1}var a1,r8;function MA(){if(r8)return a1;r8=1;function e(t){return t.split("")}return a1=e,a1}var i1,a8;function $A(){if(a8)return i1;a8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",u=RegExp("["+l+e+i+s+"]");function d(h){return u.test(h)}return i1=d,i1}var s1,i8;function FA(){if(i8)return s1;i8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",u="["+i+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+u+"|"+d+")",m="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",y="\\u200d",b=h+"?",w="["+s+"]?",C="(?:"+y+"(?:"+[m,f,p].join("|")+")"+w+b+")*",N=w+b+C,S="(?:"+[m+u+"?",u,f,p,l].join("|")+")",x=RegExp(d+"(?="+d+")|"+S+N,"g");function _(O){return O.match(x)||[]}return s1=_,s1}var o1,s8;function HA(){if(s8)return o1;s8=1;var e=MA(),t=$A(),n=FA();function r(i){return t(i)?n(i):e(i)}return o1=r,o1}var l1,o8;function l8(){if(o8)return l1;o8=1;var e=G5();function t(n){return n==null?"":e(n)}return l1=t,l1}var c1,c8;function BA(){if(c8)return c1;c8=1;var e=G5(),t=cm(),n=DA(),r=PA(),i=kA(),s=HA(),l=l8();function u(d,h,m){if(d=l(d),d&&(m||h===void 0))return t(d);if(!d||!(h=e(h)))return d;var f=s(d),p=s(h),y=i(f,p),b=r(f,p)+1;return n(f,y,b).join("")}return c1=u,c1}var UA=BA();const zA=Jt(UA);var u1,u8;function jA(){if(u8)return u1;u8=1;var e=Ip(),t=jo();function n(r,i){return r&&e(r,i,t)}return u1=n,u1}var d1,d8;function WA(){if(d8)return d1;d8=1;var e=ls();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var l=i.length,u=r?l:-1,d=Object(i);(r?u--:++u<l)&&s(d[u],u,d)!==!1;);return i}}return d1=t,d1}var f1,f8;function qA(){if(f8)return f1;f8=1;var e=jA(),t=WA(),n=t(e);return f1=n,f1}var h1,h8;function GA(){if(h8)return h1;h8=1;var e=qA();function t(n,r){var i=[];return e(n,function(s,l,u){r(s,l,u)&&i.push(s)}),i}return h1=t,h1}var m1,m8;function KA(){if(m8)return m1;m8=1;var e=rc(),t=H2(),n=1,r=2;function i(s,l,u,d){var h=u.length,m=h,f=!d;if(s==null)return!m;for(s=Object(s);h--;){var p=u[h];if(f&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++h<m;){p=u[h];var y=p[0],b=s[y],w=p[1];if(f&&p[2]){if(b===void 0&&!(y in s))return!1}else{var C=new e;if(d)var N=d(b,w,y,s,l,C);if(!(N===void 0?t(w,b,n|r,d,C):N))return!1}}return!0}return m1=i,m1}var p1,p8;function g8(){if(p8)return p1;p8=1;var e=cr();function t(n){return n===n&&!e(n)}return p1=t,p1}var g1,v8;function YA(){if(v8)return g1;v8=1;var e=g8(),t=jo();function n(r){for(var i=t(r),s=i.length;s--;){var l=i[s],u=r[l];i[s]=[l,u,e(u)]}return i}return g1=n,g1}var v1,y8;function b8(){if(y8)return v1;y8=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return v1=e,v1}var y1,w8;function XA(){if(w8)return y1;w8=1;var e=KA(),t=YA(),n=b8();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===i||e(l,i,s)}}return y1=r,y1}var b1,C8;function w1(){if(C8)return b1;C8=1;var e=jn(),t=Ul(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,l){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return b1=i,b1}var C1,N8;function JA(){if(N8)return C1;N8=1;var e=a0(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var l=arguments,u=i?i.apply(this,l):l[0],d=s.cache;if(d.has(u))return d.get(u);var h=r.apply(this,l);return s.cache=d.set(u,h)||d,h};return s.cache=new(n.Cache||e),s}return n.Cache=e,C1=n,C1}var N1,_8;function ZA(){if(_8)return N1;_8=1;var e=JA(),t=500;function n(r){var i=e(r,function(l){return s.size===t&&s.clear(),l}),s=i.cache;return i}return N1=n,N1}var _1,x8;function QA(){if(x8)return _1;x8=1;var e=ZA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(l,u,d,h){s.push(d?h.replace(n,"$1"):u||l)}),s});return _1=r,_1}var x1,S8;function T8(){if(S8)return x1;S8=1;var e=jn(),t=w1(),n=QA(),r=l8();function i(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return x1=i,x1}var S1,E8;function nu(){if(E8)return S1;E8=1;var e=Ul();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return S1=t,S1}var T1,O8;function A8(){if(O8)return T1;O8=1;var e=T8(),t=nu();function n(r,i){i=e(i,r);for(var s=0,l=i.length;r!=null&&s<l;)r=r[t(i[s++])];return s&&s==l?r:void 0}return T1=n,T1}var E1,L8;function D8(){if(L8)return E1;L8=1;var e=A8();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return E1=t,E1}var O1,R8;function eL(){if(R8)return O1;R8=1;function e(t,n){return t!=null&&n in Object(t)}return O1=e,O1}var A1,I8;function V8(){if(I8)return A1;I8=1;var e=T8(),t=ic(),n=jn(),r=B0(),i=O0(),s=nu();function l(u,d,h){d=e(d,u);for(var m=-1,f=d.length,p=!1;++m<f;){var y=s(d[m]);if(!(p=u!=null&&h(u,y)))break;u=u[y]}return p||++m!=f?p:(f=u==null?0:u.length,!!f&&i(f)&&r(y,f)&&(n(u)||t(u)))}return A1=l,A1}var L1,P8;function tL(){if(P8)return L1;P8=1;var e=eL(),t=V8();function n(r,i){return r!=null&&t(r,i,e)}return L1=n,L1}var D1,k8;function nL(){if(k8)return D1;k8=1;var e=H2(),t=D8(),n=tL(),r=w1(),i=g8(),s=b8(),l=nu(),u=1,d=2;function h(m,f){return r(m)&&i(f)?s(l(m),f):function(p){var y=t(p,m);return y===void 0&&y===f?n(p,m):e(f,y,u|d)}}return D1=h,D1}var R1,M8;function rL(){if(M8)return R1;M8=1;function e(t){return function(n){return n==null?void 0:n[t]}}return R1=e,R1}var I1,$8;function aL(){if($8)return I1;$8=1;var e=A8();function t(n){return function(r){return e(r,n)}}return I1=t,I1}var V1,F8;function iL(){if(F8)return V1;F8=1;var e=rL(),t=aL(),n=w1(),r=nu();function i(s){return n(s)?e(r(s)):t(s)}return V1=i,V1}var P1,H8;function sL(){if(H8)return P1;H8=1;var e=XA(),t=nL(),n=X0(),r=jn(),i=iL();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):i(l)}return P1=s,P1}var k1,B8;function oL(){if(B8)return k1;B8=1;var e=l5(),t=GA(),n=sL(),r=jn();function i(s,l){var u=r(s)?e:t;return u(s,n(l,3))}return k1=i,k1}var lL=oL();const cL=Jt(lL);/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:U8,setPrototypeOf:z8,isFrozen:uL,getPrototypeOf:dL,getOwnPropertyDescriptor:fL}=Object;let{freeze:Cn,seal:dr,create:j8}=Object,{apply:M1,construct:$1}=typeof Reflect<"u"&&Reflect;Cn||(Cn=function(t){return t}),dr||(dr=function(t){return t}),M1||(M1=function(t,n,r){return t.apply(n,r)}),$1||($1=function(t,n){return new t(...n)});const ru=_n(Array.prototype.forEach),hL=_n(Array.prototype.lastIndexOf),W8=_n(Array.prototype.pop),Xo=_n(Array.prototype.push),mL=_n(Array.prototype.splice),au=_n(String.prototype.toLowerCase),F1=_n(String.prototype.toString),q8=_n(String.prototype.match),Jo=_n(String.prototype.replace),pL=_n(String.prototype.indexOf),gL=_n(String.prototype.trim),Ir=_n(Object.prototype.hasOwnProperty),Nn=_n(RegExp.prototype.test),Zo=vL(TypeError);function _n(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return M1(e,t,r)}}function vL(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $1(e,n)}}function pt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:au;z8&&z8(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(uL(t)||(t[r]=s),i=s)}e[i]=!0}return e}function yL(e){for(let t=0;t<e.length;t++)Ir(e,t)||(e[t]=null);return e}function ba(e){const t=j8(null);for(const[n,r]of U8(e))Ir(e,n)&&(Array.isArray(r)?t[n]=yL(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=ba(r):t[n]=r);return t}function Qo(e,t){for(;e!==null;){const r=fL(e,t);if(r){if(r.get)return _n(r.get);if(typeof r.value=="function")return _n(r.value)}e=dL(e)}function n(){return null}return n}const G8=Cn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H1=Cn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B1=Cn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bL=Cn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U1=Cn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wL=Cn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K8=Cn(["#text"]),Y8=Cn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z1=Cn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),X8=Cn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),iu=Cn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),CL=dr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),NL=dr(/<%[\w\W]*|[\w\W]*%>/gm),_L=dr(/\$\{[\w\W]*/gm),xL=dr(/^data-[\-\w.\u00B7-\uFFFF]+$/),SL=dr(/^aria-[\-\w]+$/),J8=dr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TL=dr(/^(?:\w+script|data):/i),EL=dr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z8=dr(/^html$/i),OL=dr(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q8=Object.freeze({__proto__:null,ARIA_ATTR:SL,ATTR_WHITESPACE:EL,CUSTOM_ELEMENT:OL,DATA_ATTR:xL,DOCTYPE_NAME:Z8,ERB_EXPR:NL,IS_ALLOWED_URI:J8,IS_SCRIPT_OR_DATA:TL,MUSTACHE_EXPR:CL,TMPLIT_EXPR:_L});const el={element:1,text:3,progressingInstruction:7,comment:8,document:9},AL=function(){return typeof window>"u"?null:window},LL=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},ev=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:AL();const t=Xe=>tv(Xe);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==el.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:u,Element:d,NodeFilter:h,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:y}=e,b=d.prototype,w=Qo(b,"cloneNode"),C=Qo(b,"remove"),N=Qo(b,"nextSibling"),S=Qo(b,"childNodes"),x=Qo(b,"parentNode");if(typeof l=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let _,O="";const{implementation:T,createNodeIterator:I,createDocumentFragment:A,getElementsByTagName:P}=n,{importNode:k}=r;let L=ev();t.isSupported=typeof U8=="function"&&typeof x=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:H,TMPLIT_EXPR:B,DATA_ATTR:W,ARIA_ATTR:J,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:le}=Q8;let{IS_ALLOWED_URI:ae}=Q8,$=null;const M=pt({},[...G8,...H1,...B1,...U1,...K8]);let V=null;const z=pt({},[...Y8,...z1,...X8,...iu]);let q=Object.seal(j8(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,ce=null,Ce=!0,re=!0,oe=!1,pe=!0,Q=!1,Z=!0,Y=!1,te=!1,Ne=!1,ee=!1,ye=!1,he=!1,j=!0,X=!1;const we="user-content-";let de=!0,ne=!1,ge={},Se=null;const Pe=pt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const Qe=pt({},["audio","video","img","source","image","track"]);let it=null;const be=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let qe=$e,at=!1,_t=null;const At=pt({},[xe,Te,$e],F1);let Ct=pt({},["mi","mo","mn","ms","mtext"]),Nt=pt({},["annotation-xml"]);const It=pt({},["title","style","font","a","script"]);let Dt=null;const Tt=["application/xhtml+xml","text/html"],rt="text/html";let st=null,Mn=null;const $s=n.createElement("form"),Fs=function(fe){return fe instanceof RegExp||fe instanceof Function},Mi=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===fe)){if((!fe||typeof fe!="object")&&(fe={}),fe=ba(fe),Dt=Tt.indexOf(fe.PARSER_MEDIA_TYPE)===-1?rt:fe.PARSER_MEDIA_TYPE,st=Dt==="application/xhtml+xml"?F1:au,$=Ir(fe,"ALLOWED_TAGS")?pt({},fe.ALLOWED_TAGS,st):M,V=Ir(fe,"ALLOWED_ATTR")?pt({},fe.ALLOWED_ATTR,st):z,_t=Ir(fe,"ALLOWED_NAMESPACES")?pt({},fe.ALLOWED_NAMESPACES,F1):At,it=Ir(fe,"ADD_URI_SAFE_ATTR")?pt(ba(be),fe.ADD_URI_SAFE_ATTR,st):be,Be=Ir(fe,"ADD_DATA_URI_TAGS")?pt(ba(Qe),fe.ADD_DATA_URI_TAGS,st):Qe,Se=Ir(fe,"FORBID_CONTENTS")?pt({},fe.FORBID_CONTENTS,st):Pe,se=Ir(fe,"FORBID_TAGS")?pt({},fe.FORBID_TAGS,st):ba({}),ce=Ir(fe,"FORBID_ATTR")?pt({},fe.FORBID_ATTR,st):ba({}),ge=Ir(fe,"USE_PROFILES")?fe.USE_PROFILES:!1,Ce=fe.ALLOW_ARIA_ATTR!==!1,re=fe.ALLOW_DATA_ATTR!==!1,oe=fe.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=fe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=fe.SAFE_FOR_TEMPLATES||!1,Z=fe.SAFE_FOR_XML!==!1,Y=fe.WHOLE_DOCUMENT||!1,ee=fe.RETURN_DOM||!1,ye=fe.RETURN_DOM_FRAGMENT||!1,he=fe.RETURN_TRUSTED_TYPE||!1,Ne=fe.FORCE_BODY||!1,j=fe.SANITIZE_DOM!==!1,X=fe.SANITIZE_NAMED_PROPS||!1,de=fe.KEEP_CONTENT!==!1,ne=fe.IN_PLACE||!1,ae=fe.ALLOWED_URI_REGEXP||J8,qe=fe.NAMESPACE||$e,Ct=fe.MATHML_TEXT_INTEGRATION_POINTS||Ct,Nt=fe.HTML_INTEGRATION_POINTS||Nt,q=fe.CUSTOM_ELEMENT_HANDLING||{},fe.CUSTOM_ELEMENT_HANDLING&&Fs(fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=fe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&Fs(fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=fe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),fe.CUSTOM_ELEMENT_HANDLING&&typeof fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=fe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(re=!1),ye&&(ee=!0),ge&&($=pt({},K8),V=[],ge.html===!0&&(pt($,G8),pt(V,Y8)),ge.svg===!0&&(pt($,H1),pt(V,z1),pt(V,iu)),ge.svgFilters===!0&&(pt($,B1),pt(V,z1),pt(V,iu)),ge.mathMl===!0&&(pt($,U1),pt(V,X8),pt(V,iu))),fe.ADD_TAGS&&($===M&&($=ba($)),pt($,fe.ADD_TAGS,st)),fe.ADD_ATTR&&(V===z&&(V=ba(V)),pt(V,fe.ADD_ATTR,st)),fe.ADD_URI_SAFE_ATTR&&pt(it,fe.ADD_URI_SAFE_ATTR,st),fe.FORBID_CONTENTS&&(Se===Pe&&(Se=ba(Se)),pt(Se,fe.FORBID_CONTENTS,st)),de&&($["#text"]=!0),Y&&pt($,["html","head","body"]),$.table&&(pt($,["tbody"]),delete se.tbody),fe.TRUSTED_TYPES_POLICY){if(typeof fe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof fe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=fe.TRUSTED_TYPES_POLICY,O=_.createHTML("")}else _===void 0&&(_=LL(y,i)),_!==null&&typeof O=="string"&&(O=_.createHTML(""));Cn&&Cn(fe),Mn=fe}},Hs=pt({},[...H1,...B1,...bL]),ni=pt({},[...U1,...wL]),xa=function(fe){let Me=x(fe);(!Me||!Me.tagName)&&(Me={namespaceURI:qe,tagName:"template"});const We=au(fe.tagName),wt=au(Me.tagName);return _t[fe.namespaceURI]?fe.namespaceURI===Te?Me.namespaceURI===$e?We==="svg":Me.namespaceURI===xe?We==="svg"&&(wt==="annotation-xml"||Ct[wt]):!!Hs[We]:fe.namespaceURI===xe?Me.namespaceURI===$e?We==="math":Me.namespaceURI===Te?We==="math"&&Nt[wt]:!!ni[We]:fe.namespaceURI===$e?Me.namespaceURI===Te&&!Nt[wt]||Me.namespaceURI===xe&&!Ct[wt]?!1:!ni[We]&&(It[We]||!Hs[We]):!!(Dt==="application/xhtml+xml"&&_t[fe.namespaceURI]):!1},dn=function(fe){Xo(t.removed,{element:fe});try{x(fe).removeChild(fe)}catch{C(fe)}},pr=function(fe,Me){try{Xo(t.removed,{attribute:Me.getAttributeNode(fe),from:Me})}catch{Xo(t.removed,{attribute:null,from:Me})}if(Me.removeAttribute(fe),fe==="is")if(ee||ye)try{dn(Me)}catch{}else try{Me.setAttribute(fe,"")}catch{}},$i=function(fe){let Me=null,We=null;if(Ne)fe="<remove></remove>"+fe;else{const yt=q8(fe,/^[\r\n\t ]+/);We=yt&&yt[0]}Dt==="application/xhtml+xml"&&qe===$e&&(fe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+fe+"</body></html>");const wt=_?_.createHTML(fe):fe;if(qe===$e)try{Me=new p().parseFromString(wt,Dt)}catch{}if(!Me||!Me.documentElement){Me=T.createDocument(qe,"template",null);try{Me.documentElement.innerHTML=at?O:wt}catch{}}const jt=Me.body||Me.documentElement;return fe&&We&&jt.insertBefore(n.createTextNode(We),jt.childNodes[0]||null),qe===$e?P.call(Me,Y?"html":"body")[0]:Y?Me.documentElement:jt},gr=function(fe){return I.call(fe.ownerDocument||fe,fe,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ri=function(fe){return fe instanceof f&&(typeof fe.nodeName!="string"||typeof fe.textContent!="string"||typeof fe.removeChild!="function"||!(fe.attributes instanceof m)||typeof fe.removeAttribute!="function"||typeof fe.setAttribute!="function"||typeof fe.namespaceURI!="string"||typeof fe.insertBefore!="function"||typeof fe.hasChildNodes!="function")},Fi=function(fe){return typeof u=="function"&&fe instanceof u};function Xn(Xe,fe,Me){ru(Xe,We=>{We.call(t,fe,Me,Mn)})}const Sa=function(fe){let Me=null;if(Xn(L.beforeSanitizeElements,fe,null),ri(fe))return dn(fe),!0;const We=st(fe.nodeName);if(Xn(L.uponSanitizeElement,fe,{tagName:We,allowedTags:$}),Z&&fe.hasChildNodes()&&!Fi(fe.firstElementChild)&&Nn(/<[/\w!]/g,fe.innerHTML)&&Nn(/<[/\w!]/g,fe.textContent)||fe.nodeType===el.progressingInstruction||Z&&fe.nodeType===el.comment&&Nn(/<[/\w]/g,fe.data))return dn(fe),!0;if(!$[We]||se[We]){if(!se[We]&&ai(We)&&(q.tagNameCheck instanceof RegExp&&Nn(q.tagNameCheck,We)||q.tagNameCheck instanceof Function&&q.tagNameCheck(We)))return!1;if(de&&!Se[We]){const wt=x(fe)||fe.parentNode,jt=S(fe)||fe.childNodes;if(jt&&wt){const yt=jt.length;for(let on=yt-1;on>=0;--on){const Jn=w(jt[on],!0);Jn.__removalCount=(fe.__removalCount||0)+1,wt.insertBefore(Jn,N(fe))}}}return dn(fe),!0}return fe instanceof d&&!xa(fe)||(We==="noscript"||We==="noembed"||We==="noframes")&&Nn(/<\/no(script|embed|frames)/i,fe.innerHTML)?(dn(fe),!0):(Q&&fe.nodeType===el.text&&(Me=fe.textContent,ru([D,H,B],wt=>{Me=Jo(Me,wt," ")}),fe.textContent!==Me&&(Xo(t.removed,{element:fe.cloneNode()}),fe.textContent=Me)),Xn(L.afterSanitizeElements,fe,null),!1)},Bs=function(fe,Me,We){if(j&&(Me==="id"||Me==="name")&&(We in n||We in $s))return!1;if(!(re&&!ce[Me]&&Nn(W,Me))){if(!(Ce&&Nn(J,Me))){if(!V[Me]||ce[Me]){if(!(ai(fe)&&(q.tagNameCheck instanceof RegExp&&Nn(q.tagNameCheck,fe)||q.tagNameCheck instanceof Function&&q.tagNameCheck(fe))&&(q.attributeNameCheck instanceof RegExp&&Nn(q.attributeNameCheck,Me)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(Me))||Me==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Nn(q.tagNameCheck,We)||q.tagNameCheck instanceof Function&&q.tagNameCheck(We))))return!1}else if(!it[Me]){if(!Nn(ae,Jo(We,K,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&fe!=="script"&&pL(We,"data:")===0&&Be[fe])){if(!(oe&&!Nn(G,Jo(We,K,"")))){if(We)return!1}}}}}}return!0},ai=function(fe){return fe!=="annotation-xml"&&q8(fe,le)},Us=function(fe){Xn(L.beforeSanitizeAttributes,fe,null);const{attributes:Me}=fe;if(!Me||ri(fe))return;const We={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let wt=Me.length;for(;wt--;){const jt=Me[wt],{name:yt,namespaceURI:on,value:Jn}=jt,Ta=st(yt),$r=Jn;let Wt=yt==="value"?$r:gL($r);if(We.attrName=Ta,We.attrValue=Wt,We.keepAttr=!0,We.forceKeepAttr=void 0,Xn(L.uponSanitizeAttribute,fe,We),Wt=We.attrValue,X&&(Ta==="id"||Ta==="name")&&(pr(yt,fe),Wt=we+Wt),Z&&Nn(/((--!?|])>)|<\/(style|title)/i,Wt)){pr(yt,fe);continue}if(We.forceKeepAttr)continue;if(!We.keepAttr){pr(yt,fe);continue}if(!pe&&Nn(/\/>/i,Wt)){pr(yt,fe);continue}Q&&ru([D,H,B],js=>{Wt=Jo(Wt,js," ")});const vr=st(fe.nodeName);if(!Bs(vr,Ta,Wt)){pr(yt,fe);continue}if(_&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!on)switch(y.getAttributeType(vr,Ta)){case"TrustedHTML":{Wt=_.createHTML(Wt);break}case"TrustedScriptURL":{Wt=_.createScriptURL(Wt);break}}if(Wt!==$r)try{on?fe.setAttributeNS(on,yt,Wt):fe.setAttribute(yt,Wt),ri(fe)?dn(fe):W8(t.removed)}catch{pr(yt,fe)}}Xn(L.afterSanitizeAttributes,fe,null)},zs=function Xe(fe){let Me=null;const We=gr(fe);for(Xn(L.beforeSanitizeShadowDOM,fe,null);Me=We.nextNode();)Xn(L.uponSanitizeShadowNode,Me,null),Sa(Me),Us(Me),Me.content instanceof s&&Xe(Me.content);Xn(L.afterSanitizeShadowDOM,fe,null)};return t.sanitize=function(Xe){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,We=null,wt=null,jt=null;if(at=!Xe,at&&(Xe="<!-->"),typeof Xe!="string"&&!Fi(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw Zo("dirty is not a string, aborting")}else throw Zo("toString is not a function");if(!t.isSupported)return Xe;if(te||Mi(fe),t.removed=[],typeof Xe=="string"&&(ne=!1),ne){if(Xe.nodeName){const Jn=st(Xe.nodeName);if(!$[Jn]||se[Jn])throw Zo("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof u)Me=$i("<!---->"),We=Me.ownerDocument.importNode(Xe,!0),We.nodeType===el.element&&We.nodeName==="BODY"||We.nodeName==="HTML"?Me=We:Me.appendChild(We);else{if(!ee&&!Q&&!Y&&Xe.indexOf("<")===-1)return _&&he?_.createHTML(Xe):Xe;if(Me=$i(Xe),!Me)return ee?null:he?O:""}Me&&Ne&&dn(Me.firstChild);const yt=gr(ne?Xe:Me);for(;wt=yt.nextNode();)Sa(wt),Us(wt),wt.content instanceof s&&zs(wt.content);if(ne)return Xe;if(ee){if(ye)for(jt=A.call(Me.ownerDocument);Me.firstChild;)jt.appendChild(Me.firstChild);else jt=Me;return(V.shadowroot||V.shadowrootmode)&&(jt=k.call(r,jt,!0)),jt}let on=Y?Me.outerHTML:Me.innerHTML;return Y&&$["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&Nn(Z8,Me.ownerDocument.doctype.name)&&(on="<!DOCTYPE "+Me.ownerDocument.doctype.name+`>
44
44
  `+on),Q&&ru([D,H,B],Jn=>{on=Jo(on,Jn," ")}),_&&he?_.createHTML(on):on},t.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mi(Xe),te=!0},t.clearConfig=function(){Mn=null,te=!1},t.isValidAttribute=function(Xe,fe,Me){Mn||Mi({});const We=st(Xe),wt=st(fe);return Bs(We,wt,Me)},t.addHook=function(Xe,fe){typeof fe=="function"&&Xo(L[Xe],fe)},t.removeHook=function(Xe,fe){if(fe!==void 0){const Me=hL(L[Xe],fe);return Me===-1?void 0:mL(L[Xe],Me,1)[0]}return W8(L[Xe])},t.removeHooks=function(Xe){L[Xe]=[]},t.removeAllHooks=function(){L=ev()},t}var su=tv();const nv=a.defineComponent({name:"ListTagRender",props:{node:v.object,searchKey:v.oneOfType([v.string,v.arrayOf(v.string)]),displayKey:v.string,searchKeyword:v.string,tpl:{type:Function},disabled:v.bool.def(!1)},render(){const{resolveClassName:e}=Ae(),t=r=>{if(this.searchKeyword&&!this.disabled){const i=new RegExp(`(${this.searchKeyword})`,"i");return su.sanitize(r.replace(i,'<strong class="highlight-text">$1</strong>'))}return su.sanitize(r)};if(this.tpl)return this.tpl(this.node,t,a.h,this);const n=this.node[this.displayKey];return a.createVNode("div",{class:`${e("selector-node")}`},[a.createVNode("span",{class:"text",innerHTML:t(n)},null)])}}),DL=()=>({modelValue:v.arrayOf(v.string).def([]),placeholder:v.string.def(""),list:v.arrayOf(v.object).def([]),disabled:v.bool.def(!1),tooltipKey:v.string.def(""),saveKey:v.string.def("id"),displayKey:v.string.def("name"),hasDeleteIcon:v.bool.def(!1),clearable:v.bool.def(!0),trigger:ze("treeTriggerType",{}).def("search"),searchKey:v.oneOfType([v.string,v.arrayOf(v.string)]).def("name"),useGroup:v.bool.def(!1),allowCreate:v.bool.def(!1),clearTextSpace:v.bool.def(!0),maxData:v.number.def(-1),maxResult:v.number.def(10),contentMaxHeight:v.number.def(300),contentWidth:v.number.def(190),separator:v.string.def(""),allowNextFocus:v.bool.def(!0),allowAutoMatch:v.bool.def(!1),showClearOnlyHover:v.bool.def(!1),isAsyncList:v.bool.def(!1),leftSpace:v.number.def(0),createTagValidator:{type:Function},filterCallback:{type:Function},tagTpl:{type:Function},tpl:{type:Function},pasteFn:{type:Function},withValidate:{type:Boolean,default:!0},popoverProps:{type:Object,default:()=>({})},collapseTags:{type:Boolean,default:!1},tagOverflowTips:{type:Object,default:()=>({})},copyable:v.bool.def(!0),copySeparator:v.string.def(`
45
45
  `)});var j1,rv;function RL(){if(rv)return j1;rv=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,i){return r!=null&&t.call(r,i)}return j1=n,j1}var W1,av;function IL(){if(av)return W1;av=1;var e=RL(),t=V8();function n(r,i){return r!=null&&t(r,i,e)}return W1=n,W1}var VL=IL();const PL=Jt(VL),kL=a.defineComponent({name:"TagRender",directives:{bkTooltips:Qr},props:{node:v.object,displayKey:v.string,tooltipKey:v.string,tpl:{type:Function},hasTips:{type:Boolean,default:!1},tagOverflowTips:{type:Object,default:()=>({})},allowCreate:{type:Boolean,default:!1}},emits:["dblclick","change"],setup(e,{emit:t}){const n=a.ref(),r=a.ref(!1),i=a.computed(()=>({boundary:"window",theme:"light",distance:12,content:e.node[e.tooltipKey],disabled:!PL(e.node,e.tooltipKey)||!r.value,...e.tagOverflowTips})),s=a.ref(),l=a.ref(!1),u=a.ref(null),d=()=>{u.value&&clearTimeout(u.value),u.value=window.setTimeout(()=>{u.value!==null&&(u.value=null)},200)},h=C=>{C.preventDefault(),C.stopPropagation(),u.value&&(clearTimeout(u.value),u.value=null),l.value=!0,t("dblclick",!0),setTimeout(()=>{var N;(N=s.value)==null||N.focus()},0)},m=()=>{l.value=!1,t("dblclick",!1)},f=()=>{l.value=!0},p=C=>{const N=C.target.value;t("change",N)},y=C=>{if((C.code==="Enter"||C.key==="Enter"||C.keyCode===13)&&!C.isComposing){const N=C.target.value;t("change",N),setTimeout(()=>{m()},100)}},b=C=>{const N=C.target.value;w.value=N},w=a.ref(e.node[e.displayKey]);return a.watch(()=>e.node[e.displayKey],C=>{w.value=C}),a.onMounted(()=>{r.value=O_(n.value)}),{overflowTips:i,tagRef:n,editRef:s,handleClick:d,handleDblclick:h,showEdit:l,handleEditBlur:m,handleEditFocus:f,handleEditChange:p,handleEditKeyDown:y,handleEditInput:b,editValue:w}},render(){return this.tpl?this.tpl(this.node,a.h,this):a.withDirectives(a.createVNode("div",{ref:"tagRef",class:"tag"},[this.showEdit?a.createVNode("input",{ref:"editRef",class:"dblclick-edit-input",type:"text",value:this.editValue,onBlur:this.handleEditBlur,onChange:this.handleEditChange,onFocus:this.handleEditFocus,onInput:this.handleEditInput,onKeydown:this.handleEditKeyDown},null):null,a.createVNode("span",{class:"text",onClick:this.allowCreate?this.handleClick:void 0,onDblclick:this.allowCreate?this.handleDblclick:void 0},[this.editValue])]),[[a.resolveDirective("bk-tooltips"),this.overflowTips]])}}),ML=a.defineComponent({name:"TagInput",directives:{bkTooltips:Qr},props:DL(),emits:["update:modelValue","change","select","focus","blur","remove","removeAll","input","copy-success"],setup(e,{emit:t}){const n=Tr(),r=St("tagInput"),i=a.reactive({isEdit:!1,isHover:!1,focusItemIndex:e.allowCreate?-1:0}),s=a.reactive({isShow:!1,width:190,offset:{mainAxis:4,crossAxis:0},...e.popoverProps}),{resolveClassName:l}=Ae(),{maxResult:u}=a.toRefs(e),{pageState:d,initPage:h,pageChange:m}=EA(u),f=a.ref(""),p=a.ref(null),y=a.ref(null),b=a.ref(null),w=a.ref(null),C=a.ref(null),N=a.ref(),S=a.ref(null),x=a.ref(!1),_=a.computed(()=>!e.disabled&&e.hasDeleteIcon),O=a.computed(()=>e.maxData===1),T=a.computed(()=>L.selectedTagList.length===0&&f.value===""&&!i.isEdit),I=a.computed(()=>e.placeholder||r.value.placeholder),A=a.computed(()=>e.clearable&&!e.disabled&&L.selectedTagList.length!==0&&(e.showClearOnlyHover?i.isHover:!0)),P=a.computed(()=>e.copyable&&L.selectedTagList.length!==0&&(e.showClearOnlyHover?i.isHover:!0)),k=a.computed(()=>({[`${l("tag-input-trigger")}`]:!0,active:i.isEdit,disabled:e.disabled})),L=a.reactive({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),D=a.computed(()=>L.selectedTagList.map(be=>be[e.saveKey])),{flatList:H,saveKeyMap:B}=OA(e),W=a.computed(()=>{if(e.useGroup){const be={};return d.curPageList.forEach((xe,Te)=>{var at,_t,At;const $e=(at=xe.group)==null?void 0:at.groupId,qe=(_t=xe.group)==null?void 0:_t.groupName;xe.__index__=Te,$e&&!be[$e]&&(be[$e]={id:$e,name:qe,children:[]}),(At=be==null?void 0:be[$e])==null||At.children.push(xe)}),Object.keys(be).map(xe=>be[xe])}return d.curPageList});a.watch([()=>H.value],()=>{a.nextTick(()=>{M()})},{deep:!0}),a.watch(()=>e.modelValue,be=>{var xe;q(D.value,be)||(a.nextTick(()=>{M()}),e.withValidate&&((xe=n==null?void 0:n.validate)==null||xe.call(n,"change")))}),a.watch(f,qa(()=>{const be=d.curPageList.length!==0,{value:xe}=f;xe!==""&&be||xe===""&&e.trigger==="focus"&&be?s.isShow=!0:(e.trigger!=="focus"||!be)&&(s.isShow=!1)},150)),a.watch(()=>s.isShow,be=>{J(),be&&C.value&&(a.nextTick(()=>{C.value.scrollTop=0}),C.value.removeEventListener("scroll",G),C.value.addEventListener("scroll",G))}),a.onMounted(()=>{M()});const J=()=>{var be;s.offset.crossAxis=O.value?0:(be=w.value)==null?void 0:be.offsetLeft},G=()=>{if(d.isPageLoading||C.value.scrollTop===0)return;const{scrollTop:be,offsetHeight:xe,scrollHeight:Te}=C.value;if(be+xe>=Te){const $e=d.curPage+1;$e<=d.totalPage&&(d.isPageLoading=!0,setTimeout(()=>{m($e)},500))}},K=()=>{var xe;return Array.from(((xe=b.value)==null?void 0:xe.childNodes)||[]).filter(Te=>![Node.TEXT_NODE,Node.COMMENT_NODE].includes(Te.nodeType))},le=be=>{if(!e.disabled){if(be!=null&&be.target){const{className:xe}=be.target;(xe.indexOf(`${l("tag-input-trigger")}`)>-1||xe.indexOf("tag-list")>-1)&&b.value.appendChild(w.value)}clearTimeout(S.value),O.value&&D.value.length&&(L.tagListCache=[...D.value],L.selectedTagListCache=[...L.selectedTagList],f.value=L.selectedTagListCache[0][e.saveKey],Se(L.selectedTagList[0]),Q()),i.isEdit=!0,setTimeout(()=>{var xe;x.value||((xe=p.value)==null||xe.focus(),e.trigger==="focus"&&L.localList.length!==0&&(V(),s.isShow?J():s.isShow=!0))},200)}},ae=be=>{x.value=be,setTimeout(()=>{i.isEdit=!1,s.isShow=!1},10)},$=(be,xe,Te)=>{if(setTimeout(()=>{i.isEdit=!1,s.isShow=!1},10),L.selectedTagList.length>=e.maxData&&e.maxData!==-1)return;const{separator:$e,saveKey:qe,displayKey:at,createTagValidator:_t,clearTextSpace:At}=e,Ct=Dt=>typeof _t=="function"?_t(Dt):!0;let Nt;if($e){let Dt=Te.split($e);Dt=Dt.filter(rt=>(rt==null?void 0:rt.trim())&&!D.value.includes(rt)&&Ct(rt));const Tt=Dt.map(rt=>B.value[rt]||{[qe]:rt,[at]:rt});Dt.length&&L.selectedTagList.splice(xe,1,...Tt)}else{const Dt=typeof Te=="object";if(Nt=Dt?Te[qe]:Te.trim(),At&&(Nt=Nt.replace(/\s+/g,"")),Nt!==void 0&&!D.value.includes(Nt)&&Ct(Nt)){const Tt=B.value[Nt]||(Dt?Te:{[qe]:Nt,[at]:Nt});L.selectedTagList.splice(xe,1,Tt)}}const It=B.value[be[e.saveKey]];(e.allowCreate&&It||!e.allowCreate)&&!O.value&&L.localList.push(be),t("update:modelValue",D.value),t("change",D.value)},M=()=>{const{saveKey:be,modelValue:xe,displayKey:Te,allowCreate:$e,trigger:qe,isAsyncList:at}=e;if(L.selectedTagList=[],L.localList=H.value,xe.length){const _t={};L.selectedTagList=xe.map(At=>{const Ct=B.value[At];return _t[At]=1,!Ct&&$e?{[be]:At,[Te]:At}:Ct}).filter(At=>At),O.value||(L.localList=L.localList.filter(At=>!_t[At[be]]))}if(at&&f.value){V(f.value),d.curPageList.length&&(s.isShow=!0);return}qe==="focus"&&V()},V=(be="")=>{const{searchKey:xe,filterCallback:Te}=e,$e=be.toLowerCase().trim();if($e===""){h(L.localList);return}let qe=[];typeof Te=="function"?qe=Te($e,xe,L.localList)||[]:Array.isArray(xe)?qe=L.localList.filter(at=>xe.some(_t=>at[_t].toLowerCase().indexOf($e)>-1)):qe=L.localList.filter(at=>at[xe].toLowerCase().indexOf($e)>-1),h(qe)},z=(be,xe)=>{const Te={[`${l("selector-actived")}`]:!0,[`${l("selector-selected")}`]:D.value.includes(be[e.saveKey])};return e.useGroup?Te[`${l("selector-actived")}`]=be.__index__===i.focusItemIndex:Te[`${l("selector-actived")}`]=xe===i.focusItemIndex,Te};function q(be,xe){return be.length!==xe.length?!1:xe.every((Te,$e)=>be[$e]===Te)}const se=()=>{L.tagListCache=[],L.selectedTagListCache=[],L.selectedTagList=[]},ce=()=>{f.value="",p.value.style.width=`${ya}px`},Ce=()=>{if(O.value)return 0;const xe=K().filter(Te=>Te.className!=="").findIndex(({id:Te})=>Te==="tagInputItem");return xe>=0?xe:0},re=(be,xe,Te=!1)=>{if(!xe||!be)return;let $e=xe;Te&&($e=xe.nextElementSibling||null),xe.parentNode.insertBefore(be,$e)},oe=be=>{if(!z5(be)){p.value.style.width=`${ya}px`;return}const Te=document.createElement("span");Te.style.visibility="hidden",Te.style.position="absolute",Te.style.whiteSpace="pre",Te.style.font=window.getComputedStyle(p.value).font,Te.textContent=be,document.body.appendChild(Te);const $e=Te.offsetWidth;document.body.removeChild(Te),p.value.style.width=`${Math.max($e+10,ya)}px`},pe=()=>{oe(f.value)},Q=be=>{const{maxData:xe,trigger:Te,allowCreate:$e}=e;if(xe===-1||xe>D.value.length){const{value:qe}=be!=null&&be.target?be.target:f;qe?(V(qe),oe(qe)):(Te==="focus"&&V(),p.value.style.width=`${ya}px`)}else Y(),f.value="",s.isShow=!1;i.isEdit=!0,i.focusItemIndex=$e?-1:0,t("input",f.value)},Z=()=>{var be;s.width=O.value?(be=y.value)==null?void 0:be.clientWidth:e.contentWidth,t("focus")},Y=()=>{S.value=setTimeout(()=>{var xe;const be=f.value;if(ce(),i.isEdit=!1,e.allowAutoMatch&&be){if(O.value){const[$e]=L.tagListCache;be===$e&&L.selectedTagListCache.length&&ge(L.selectedTagListCache[0],"select")}const Te=d.curPageList.find($e=>Array.isArray(e.searchKey)?e.searchKey.map(at=>$e[at]).includes(be):$e[e.searchKey]===be);Te?te(Te,"select"):e.allowCreate&&te(be,"custom")}s.isShow=!1,t("blur",be,D.value),(xe=n==null?void 0:n.validate)==null||xe.call(n,"blur")},200)},te=(be,xe,Te)=>{Te==null||Te.stopPropagation(),!(!be||be.disabled)&&(O.value&&se(),ge(be,xe),ee("select"),ce(),s.isShow=!1)},Ne=(be,xe)=>{xe==null||xe.stopPropagation(),Se(be),ce(),ee("remove",be),p.value.style.width=`${ya}px`},ee=(be,xe)=>{t(be,xe),t("update:modelValue",D.value),t("change",D.value)},ye=be=>{be.stopPropagation();const xe=L.selectedTagList;L.selectedTagList=[];const Te=xe.filter($e=>B.value[$e[e.saveKey]]);(e.allowCreate&&Te.length!==0||!e.allowCreate)&&!O.value&&L.localList.push(...Te),ee("removeAll")},he=()=>{const be={height:C.value.clientHeight,yAxis:C.value.getBoundingClientRect().y};a.nextTick(()=>{const xe=C.value.querySelector(`.${l("selector-actived")}`);if(!xe)return;const Te={height:xe.clientHeight,yAxis:xe.getBoundingClientRect().y};Te.yAxis<be.yAxis&&(C.value.scrollTop=C.value.scrollTop-(be.yAxis-Te.yAxis));const $e=Te.yAxis+Te.height-be.yAxis;$e>be.height&&(C.value.scrollTop=C.value.scrollTop+$e-be.height)})},j=(be,xe)=>{const Te=K();re(w.value,Te[be-1]),L.selectedTagList.splice(be-1,1),le();const $e=xe&&B.value[xe[e.saveKey]];(e.allowCreate&&$e||!e.allowCreate)&&!O.value&&L.localList.push(xe),p.value.style.width=`${ya}px`,ee("remove")},X=be=>{if(d.isPageLoading||be.isComposing)return;let xe;const Te=be.target.value,$e=z5(Te),qe=Ce(),at=K();switch(be.code){case"ArrowUp":if(be.preventDefault(),!s.isShow)return;i.focusItemIndex=i.focusItemIndex-1,i.focusItemIndex=i.focusItemIndex<0?-1:i.focusItemIndex,i.focusItemIndex===-1&&(i.focusItemIndex=d.curPageList.length-1),he();break;case"ArrowDown":if(be.preventDefault(),!s.isShow)return;i.focusItemIndex=i.focusItemIndex+1,i.focusItemIndex=i.focusItemIndex>d.curPageList.length-1?d.curPageList.length:i.focusItemIndex,i.focusItemIndex===d.curPageList.length&&(i.focusItemIndex=0),he();break;case"ArrowLeft":if(i.isEdit=!0,!$e){if(qe<1)return;re(w.value,at[qe-1]),le()}break;case"ArrowRight":if(i.isEdit=!0,!$e){if(qe===at.length-1)return;re(at[qe+1],w.value),le()}break;case"Enter":case"NumpadEnter":!e.allowCreate&&s.isShow||e.allowCreate&&i.focusItemIndex>=0&&s.isShow?te(d.curPageList[i.focusItemIndex],"select",be):e.allowCreate&&f.value.trim()&&te(f.value,"custom",be),be.preventDefault();break;case"Backspace":qe!==0&&!f.value&&(xe=L.selectedTagList[qe-1],j(qe,xe));break}},we=be=>{const xe=[];return be.split(";").forEach($e=>{zA($e)&&xe.push({[e.saveKey]:$e,[e.displayKey]:$e})}),xe},de=be=>{be.preventDefault();const{maxData:xe,saveKey:Te,displayKey:$e,pasteFn:qe,allowCreate:at}=e,_t=be.clipboardData.getData("text");let Ct=(qe?qe(_t):we(_t)).map(Nt=>Nt[Te]);if(Ct.length){const Nt=K(),It=Ce(),Dt=L.localList.map(rt=>rt[Te]);if(Ct=Ct.filter(rt=>{const st=(rt==null?void 0:rt.trim())&&!D.value.includes(rt);return at?st:st&&Dt.includes(rt)}),xe!==-1){const rt=L.selectedTagList.length;if(rt<xe){const st=xe-rt;Ct.length>st&&(Ct=[...Ct.slice(0,st)])}else Ct=[]}const Tt=at?Ct.map(rt=>L.localList.find(Mn=>Mn[Te]===rt)??{[Te]:rt,[$e]:rt}):L.localList.filter(rt=>Ct.includes(rt[Te]));Ct.length&&(L.selectedTagList.splice(It,0,...Tt),re(w.value,Nt[It]),p.value.style.width=`${ya}px`,L.localList=L.localList.filter(rt=>!Ct.includes(rt[Te])),ee("select"),le())}ce()},ne=be=>{e.disabled||(re(w.value,be.currentTarget,!0),p.value.style.width=`${ya}px`,s.isShow&&J())},ge=(be,xe)=>{if(L.selectedTagList.length>=e.maxData&&e.maxData!==-1)return;const{separator:Te,saveKey:$e,displayKey:qe,createTagValidator:at,clearTextSpace:_t}=e,At=Ce();let Ct=1,Nt=!1,It;const Dt=Tt=>typeof at=="function"?at(Tt):!0;if(xe==="custom")if(Te){let Tt=be.split(Te);Tt=Tt.filter(st=>(st==null?void 0:st.trim())&&!D.value.includes(st)&&Dt(st));const rt=Tt.map(st=>B.value[st]||{[$e]:st,[qe]:st});Tt.length&&(L.selectedTagList.splice(At,0,...rt),Ct=rt.length,Nt=!0)}else{const Tt=typeof be=="object";if(It=Tt?be[$e]:be.trim(),_t&&(It=It.replace(/\s+/g,"")),It!==void 0&&!D.value.includes(It)&&Dt(It)){const rt=B.value[It]||(Tt?be:{[$e]:It,[qe]:It});L.selectedTagList.splice(At,0,rt),Nt=!0}}else be&&(It=be[$e],It!==void 0&&!D.value.includes(It)&&(L.selectedTagList.splice(At,0,be),Nt=!0));Nt&&a.nextTick(()=>{for(let Tt=1;Tt<=Ct;Tt++){const st=K()[At+Tt];re(st,w.value)}if(p.value.style.width=`${ya}px`,!O.value){e.allowNextFocus&&le();const Tt=D.value.reduce((rt,st)=>(rt[st]=1,rt),{});L.localList=L.localList.filter(rt=>!Tt[rt[$e]])}})},Se=be=>{L.selectedTagList=cL(L.selectedTagList,Te=>Te[e.saveKey]!==be[e.saveKey]);const xe=B.value[be[e.saveKey]];(e.allowCreate&&xe||!e.allowCreate)&&!O.value&&L.localList.push(be)},Pe=a.computed(()=>e.collapseTags?e.collapseTags&&!i.isEdit:e.collapseTags),{overflowTagIndex:Be}=j5(y,Pe,D),Qe=a.computed(()=>L.selectedTagList.reduce((be,xe,Te)=>(Be.value!==null&&Te>=Be.value&&be.push(xe[e.displayKey]),be),[])),it=be=>{var $e;be.stopPropagation();const xe=L.selectedTagList;if(xe.length===0)return;const Te=xe.map(qe=>qe[e.displayKey]).join(e.copySeparator);if(($e=navigator.clipboard)!=null&&$e.writeText)navigator.clipboard.writeText(Te).catch(qe=>{console.error("Failed to copy:",qe)});else{const qe=document.createElement("textarea");qe.value=Te,qe.style.position="fixed",qe.style.opacity="0",document.body.appendChild(qe),qe.select();try{document.execCommand("copy")}catch(at){console.error("Failed to copy:",at)}document.body.removeChild(qe)}setTimeout(()=>{t("copy-success",D.value)})};return{popoverProps:s,...a.toRefs(i),...a.toRefs(L),...a.toRefs(d),isShowPlaceholder:T,isShowClear:A,isShowCopy:P,placeholderText:I,curInputValue:f,renderList:W,showTagClose:_,tagInputRef:p,bkTagSelectorRef:y,tagListRef:b,tagInputItemRef:w,inputValueRef:N,selectorListRef:C,triggerClass:k,overflowTagIndex:Be,localCollapseTags:Pe,collapseTooltip:Qe,focusInputTrigger:le,activeClass:z,handleInput:Q,handleCompositionEnd:pe,handleFocus:Z,handleBlur:Y,handleTagSelected:te,handleTagRemove:Ne,handleClear:ye,tagFocus:ne,handleKeydown:X,handlePaste:de,resolveClassName:l,handleTagDblclick:ae,handleTagDblclickChange:$,handleCopy:it}},render(){return a.createVNode("div",{ref:"bkTagSelectorRef",class:`${this.resolveClassName("tag-input")}`,onClick:this.focusInputTrigger,onMouseenter:()=>this.isHover=!0,onMouseleave:()=>this.isHover=!1},[a.createVNode(In,a.mergeProps({arrow:!1,placement:"bottom-start",referenceCls:this.resolveClassName("tag-input-popover-reference"),theme:`light ${this.resolveClassName("tag-input-popover-content")}`,trigger:"manual"},this.popoverProps),{default:()=>{var e,t;return a.createVNode("div",{class:this.triggerClass},[a.createVNode("ul",{ref:"tagListRef",style:{marginLeft:`${this.leftSpace}px`},class:"tag-list"},[this.selectedTagList.map((n,r)=>{const i=this.localCollapseTags&&this.overflowTagIndex&&r>=this.overflowTagIndex;return a.createVNode("li",{style:{display:i?"none":""},class:"tag-item",onClick:this.tagFocus},[a.createVNode(kL,{allowCreate:this.allowCreate,displayKey:this.displayKey,node:n,tagOverflowTips:this.tagOverflowTips,tooltipKey:this.tooltipKey||this.displayKey,tpl:this.tagTpl,onChange:this.allowCreate?s=>this.handleTagDblclickChange(n,r,s):void 0,onDblclick:this.allowCreate?s=>this.handleTagDblclick(s):void 0},null),this.showTagClose&&a.createVNode(bn,{class:"remove-tag",onClick:this.handleTagRemove.bind(this,n)},null)])}),a.withDirectives(a.createVNode("li",{id:"tagInputItem",ref:"tagInputItemRef",class:"tag-input-item",role:"input"},[a.withDirectives(a.createVNode("input",{ref:"tagInputRef",class:"tag-input","onUpdate:modelValue":n=>this.curInputValue=n,spellcheck:"false",type:"text",onBlur:this.handleBlur,onCompositionend:this.handleCompositionEnd,onFocus:this.handleFocus,onInput:this.handleInput,onKeydown:this.handleKeydown,onPaste:this.handlePaste},null),[[a.vModelText,this.curInputValue]])]),[[a.vShow,this.isEdit]]),!!this.overflowTagIndex&&this.localCollapseTags&&a.withDirectives(a.createVNode("li",{class:"tag-item"},[a.createVNode("div",{class:"tag"},[a.createVNode("span",{class:"text"},[a.createTextVNode("+"),this.selectedTagList.length-this.overflowTagIndex])])]),[[a.resolveDirective("bk-tooltips"),this.collapseTooltip.join(", ")]]),a.createVNode("div",{key:"inputValuePlaceholder",ref:"inputValueRef",style:"position: absolute; white-space: nowrap; border-box; visibility: hidden; z-index: 1"},[this.curInputValue])]),a.withDirectives(a.createVNode("p",{class:"placeholder"},[this.placeholderText]),[[a.vShow,this.isShowPlaceholder]]),((t=(e=this.$slots)==null?void 0:e.suffix)==null?void 0:t.call(e))??a.createVNode("div",{class:"icon-wrapper"},[this.isShowCopy&&a.createVNode(wc,{class:"copy-icon",title:"复制",onClick:this.handleCopy},null),this.isShowClear&&a.createVNode(Rn,{class:"clear-icon",onClick:this.handleClear},null)])])},content:()=>a.createVNode("div",{class:`${this.resolveClassName("selector-list")}`},[a.createVNode("ul",{ref:"selectorListRef",style:{"max-height":`${this.contentMaxHeight}px`},class:"outside-ul"},[this.renderList.map((e,t)=>this.useGroup?a.createVNode("li",{class:`${this.resolveClassName("selector-group-item")}`},[a.createVNode("span",{class:"group-name"},[e.name,a.createTextVNode(" ("),e.children.length,a.createTextVNode(")")]),a.createVNode("ul",{class:`${this.resolveClassName("selector-group-list-item")}`},[e.children.map((n,r)=>a.createVNode("li",{class:[`${this.resolveClassName("selector-list-item")}`,{disabled:n.disabled},this.activeClass(n,r)],onClick:this.handleTagSelected.bind(this,n,"select")},[a.createVNode(nv,{disabled:n.disabled,displayKey:this.displayKey,node:n,searchKey:this.searchKey,searchKeyword:this.curInputValue,tpl:this.tpl},null)]))])]):a.createVNode("li",{class:[`${this.resolveClassName("selector-list-item")}`,{disabled:e.disabled},this.activeClass(e,t)],onClick:this.handleTagSelected.bind(this,e,"select")},[a.createVNode(nv,{disabled:e.disabled,displayKey:this.displayKey,node:e,searchKey:this.searchKey,searchKeyword:this.curInputValue,tpl:this.tpl},null)])),this.isPageLoading?a.createVNode("li",{class:`${this.resolveClassName("selector-list-item")} loading`},[a.createVNode($a,{size:Si.Small,theme:"primary"},null)]):null])])})])}}),iv=ut(ML),sv=a.defineComponent({name:"CascaderPanel",props:{width:v.oneOfType([v.number,v.string]).def("auto"),height:v.oneOfType([v.number,v.string]).def(216),store:v.object.def({}),separator:v.string.def(""),suggestions:v.arrayOf(Dm()),isFiltering:v.bool.def(!1),searchKey:v.oneOfType([v.string,v.number]).def(""),modelValue:v.arrayOf(v.oneOfType([gf(),String,Number]))},emits:["update:modelValue"],setup(e,{emit:t}){const n=St("cascader"),{resolveClassName:r}=Ae(),{store:i}=a.toRefs(e),s=a.reactive({list:[e.store.getNodes()]}),l=a.ref([]),u=a.ref([]),d=A=>typeof A=="number"?`${A}px`:A,h=d(e.height),m=d(e.width),f=A=>{(!A||A.length===0)&&(s.list=s.list.slice(0,1),l.value=[]),p(A),u.value=A},p=A=>{if(u.value.length===0||!i.value.config.multiple){let k=[];if(i.value.config.multiple)for(const L of A)L.length>k.length&&(k=L);else k=A;k.forEach(L=>{const D=i.value.getNodeById(L);if(D){const H=W=>{var G;if(!W||W!=null&&W.isDisabled)return;const J=W.level;s.list=s.list.slice(0,J),l.value=l.value.slice(0,J-1),(G=W.children)!=null&&G.length&&s.list.length===J&&(s.list.push(W.children),l.value.push(W))},B=W=>{W.parent&&B(W.parent),H(W)};B(D)}})}},y=A=>{if(!A.isDisabled){if(A.config.multiple){const P=i.value.config.checkAnyLevel?i.value.getCheckedNodes():i.value.getCheckedLeafNodes();u.value=P.map(k=>k.path)}else u.value=A.path;t("update:modelValue",u.value)}},b=A=>{var P;if(!(!A||A!=null&&A.isDisabled)){if(s.list=s.list.slice(0,A.level),l.value=l.value.slice(0,A.level-1),(P=A.children)!=null&&P.length){s.list.push(A.children),l.value.push(A);return}if(i.value.config.isRemote&&!A.isLeaf){A.loading=!0;const k=L=>{i.value.appendNodes(L,A||null),s.list.push(A.children),l.value.push(A),A.loading=!1};i.value.config.remoteMethod(A,k)}}},w=A=>{const{trigger:P,checkAnyLevel:k,multiple:L}=A.config;return{onClick:H=>{(!A.isLeaf||L)&&H.stopPropagation(),P==="click"&&b(A),k&&!L&&y(A),A.isLeaf&&!L&&y(A)},onMouseenter:()=>{P==="hover"&&b(A)}}},C=A=>{const{multiple:P}=A.config;return{onClick:L=>{if(P){L.stopPropagation(),T(A,!A.checked);return}b(A),A.isLeaf&&!P&&y(A)}}},N=()=>{s.list.forEach((A,P)=>{const k=document.querySelector(`.${r("cascader-panel")}:nth-child(${P+1}) .${r("cascader-node.is-selected")}, .${r("cascader-node.is-checked")}`);k&&a.nextTick(()=>{k.scrollIntoView()})})};a.watch(()=>i.value.config.multiple,(A,P)=>{A!==P&&(s.list=[i.value.getNodes()],l.value=[],u.value=[])});const S=n.value.noData,{emptyText:x}=n.value,_=A=>(l.value[A.level-1]||{}).id===A.id,O=(A,P)=>{const{multiple:k}=A.config;return k?P.some(L=>os(L,A.path)):os(P,A.path)},T=(A,P)=>{A.setNodeCheck(P||!1),y(A)},I=A=>A.loading?a.createVNode(gs,{class:r("icon-spinner")},null):a.createVNode(Wn,{class:r("icon-angle-right")},null);return a.watch(()=>e.modelValue,A=>{f(A)},{immediate:!0}),a.watch(()=>e.store,A=>{s.list=[A.getNodes()]}),{menus:s,activePath:l,nodeExpandHandler:b,isNodeInPath:_,nodeEvent:w,isCheckedNode:O,checkValue:u,checkNode:T,iconRender:I,panelWidth:m,panelHeight:h,searchPanelEvents:C,expandByNodeList:p,noDataText:S,emptyText:x,resolveClassName:r,scrollToSelected:N}},render(){const e=parseInt(this.panelWidth,10)>200?this.panelWidth:"200px",t=()=>this.suggestions.length?a.createVNode("ul",{style:{height:this.panelHeight,width:this.panelWidth},class:[this.resolveClassName("cascader-panel"),this.resolveClassName("scroll-y")]},[this.suggestions.map(n=>a.createVNode("li",a.mergeProps({class:[this.resolveClassName("cascader-node"),{"is-selected":this.isNodeInPath(n)},{"is-disabled":n.isDisabled},{"is-checked":this.isCheckedNode(n,this.checkValue)}]},this.searchPanelEvents(n)),[n.pathNames.join(this.separator)]))]):a.createVNode("div",{style:{width:e},class:this.resolveClassName("cascader-search-empty")},[a.createVNode("span",null,[this.noDataText])]);return a.createVNode("div",{class:this.resolveClassName("cascader-panel-wrapper")},[this.isFiltering?t():this.menus.list.map((n,r)=>{var i,s;return a.createVNode("ul",{style:{height:this.panelHeight,width:this.panelWidth},class:[this.resolveClassName("cascader-panel"),this.resolveClassName("scroll-y")]},[(s=(i=this.$slots).panel)==null?void 0:s.call(i,{nodes:n,level:r,activePath:this.activePath}),n.length?n.map(l=>{var u,d;return a.createVNode("li",a.mergeProps({class:[this.resolveClassName("cascader-node"),{"is-selected":this.isNodeInPath(l)},{"is-disabled":l.isDisabled},{"is-checked":!l.config.multiple&&this.isCheckedNode(l,this.checkValue)}]},Object.assign(this.nodeEvent(l),l.config.multiple?{}:{})),[l.config.multiple&&a.createVNode(wn,{style:"margin-right: 5px",modelValue:l.checked,"onUpdate:modelValue":h=>l.checked=h,disabled:l.isDisabled,indeterminate:l.isIndeterminate,onChange:h=>this.checkNode(l,!!h)},null),(d=(u=this.$slots).default)==null?void 0:d.call(u,{node:l,data:l.data}),l.isLeaf?"":this.iconRender(l)])}):a.createVNode("div",{class:this.resolveClassName("cascader-panel-empty-wrapper")},[this.noDataText])])})])}});function ov(e){return e.data.disabled?!0:e.level!==1?ov(e.parent):e.data.disabled}let lv=class oN{constructor(t,n,r){Ve(this,"data");Ve(this,"config");Ve(this,"parent");Ve(this,"level");Ve(this,"id");Ve(this,"name");Ve(this,"loading");Ve(this,"loaded");Ve(this,"checked");Ve(this,"isIndeterminate");Ve(this,"children");Ve(this,"leaf");Ve(this,"pathNodes");Ve(this,"path");Ve(this,"pathNames");Ve(this,"nodes");this.data=t,this.config=n,this.parent=r||null,this.leaf=t.leaf,this.level=this.parent?this.parent.level+1:1,this.initState()}initState(){const{idKey:t,nameKey:n,childrenKey:r}=this.config;this.id=this.data[t],this.name=this.data[n],this.loading=!1,this.loaded=!1,this.checked=!1;const i=this.data[r];this.children=(i||[]).map(s=>new oN(s,this.config,this)),this.pathNodes=this.calculateNodesPath(),this.path=this.pathNodes.map(s=>s.id),this.pathNames=this.pathNodes.map(s=>s.name)}get isLeaf(){var t;return this.config.isRemote?this.leaf||(this.loaded?!this.children.length:!1):!(Array.isArray(this.children)&&((t=this.children)==null?void 0:t.length)!==0)}get isDisabled(){return ov(this)}broadcast(t,n){const r=`onParent${po(t)}`;this.children.forEach(i=>{var s;i&&(i.broadcast(t,n),(s=i[r])==null||s.call(i,n))})}emit(t){var i;const{parent:n}=this,r=`onChild${po(t)}`;n&&((i=n[r])==null||i.call(n),n.emit(t))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(i=>!i.isDisabled),r=n.length?n.every(i=>i.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((i,s)=>{const l=s.isIndeterminate?.5:0,u=s.checked?1:l;return i+u},0);this.checked=t,this.isIndeterminate=r!==n&&r>0}setNodeCheck(t){if(this.config.checkAnyLevel){this.checked=t;return}this.broadcast("check",t),this.setCheckState(t),this.emit("check")}calculateNodesPath(){const t=[this];let{parent:n}=this;for(;n;)t.unshift(n),n=n.parent;return t}};const cv=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(cv(r.children,t))),n),[]);class q1{constructor(t){Ve(this,"data");Ve(this,"config");Ve(this,"nodes");const{list:n}=t;this.data=n,this.config=t,this.nodes=this.data.map(r=>new lv(r,this.config))}getNodes(){return this.nodes}clearChecked(){this.getFlattedNodes().forEach(t=>{t.setNodeCheck(!1),t.isIndeterminate=!1})}removeTag(t){this.getFlattedNodes().find(n=>os(t,n.path)?(n.setNodeCheck(!1),!0):!1)}getFlattedNodes(t=!1){return cv(this.nodes,t)}setNodesCheck(t){this.getFlattedNodes().forEach(n=>{n.setNodeCheck(!1);const r=t.find(i=>os(n.path,i));r&&this.getNodeByValue(r).setNodeCheck(!0)})}getCheckedNodes(){return this.getFlattedNodes().filter(t=>t.checked)}getCheckedLeafNodes(){return this.getFlattedNodes().filter(t=>t.isLeaf&&t.checked)}getNodeByValue(t){return this.getFlattedNodes().filter(r=>os(r.path,t))[0]??null}getNodeById(t){return this.getFlattedNodes().find(n=>n.id===t)}appendNode(t,n){const r=new lv(t,this.config,n);(n?n.children:this.nodes).push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}}const $L=a.defineComponent({name:"Cascader",directives:{bkTooltips:Qr},props:{modelValue:v.arrayOf(v.oneOfType([gf(),String,Number])),list:v.array.def([]),placeholder:v.string.def(""),behavior:v.string.def("normal"),filterable:v.bool.def(!1),multiple:v.bool.def(!1),disabled:v.bool.def(!1),clearable:v.bool.def(!0),trigger:v.string.def("click"),checkAnyLevel:v.bool.def(!1),isRemote:v.bool.def(!1),remoteMethod:v.func,showCompleteName:v.bool.def(!0),idKey:v.string.def("id"),nameKey:v.string.def("name"),childrenKey:v.string.def("children"),separator:v.string.def("/"),limitOneLine:v.bool.def(!1),popoverOptions:Object,extCls:v.string.def(""),filterMethod:v.func,scrollHeight:v.oneOfType([v.number,v.string]).def(216),scrollWidth:v.oneOfType([v.number,v.string]).def("auto"),customTextFillback:v.func,customTagsFillback:v.func,changeEmitsNodes:v.bool.def(!1),collapseTags:{type:Boolean,default:!0},floatMode:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","toggle","focus"],setup(e,{emit:t,slots:n}){const r=St("cascader"),{separator:i}=e,{isHover:s,setHover:l,cancelHover:u}=W4(),d=a.ref(new q1(e)),h=a.ref(!1),m=a.ref(""),f=a.ref([]),{modelValue:p}=a.toRefs(e),y=a.ref(),b=a.ref(""),w=a.ref([]),C=a.ref(!1),N=a.ref(!1),S=a.ref(!1),x=a.ref(!1),_=a.computed({get:()=>p.value,set:se=>{t("update:modelValue",se)}}),O=a.ref(null),T=a.ref(null),I=a.ref(null),A=a.computed(()=>{const se=e.placeholder?e.placeholder:r.value.pleaseSelect;return p.value.length===0?se:""}),P=a.computed(()=>e.customTextFillback?e.customTextFillback(e.modelValue,d.value.getFlattedNodes()):m.value),k=se=>e.showCompleteName?se.pathNames.join(i):se.pathNames[se.pathNames.length-1],L=()=>{b.value=m.value},D=()=>{if(!e.multiple){b.value=m.value;return}b.value=""},H=se=>{var Ce;if(e.multiple){d.value.setNodesCheck(se),f.value=d.value.getCheckedNodes().filter(re=>d.value.config.checkAnyLevel||re.isLeaf).map(re=>({text:k(re),key:re.id})),m.value=f.value.map(re=>re.text).join(", ");return}e.checkAnyLevel||(Ce=O==null?void 0:O.value)==null||Ce.hide();const ce=d.value.getNodeByValue(se);m.value=ce?k(ce):"",L()},B=se=>{se.stopPropagation(),d.value.clearChecked(),b.value="",H([]),t("update:modelValue",[]),t("clear",JSON.parse(JSON.stringify(e.modelValue)))},W=(se,ce,Ce)=>{h.value=!0,Ce.stopPropagation();const re=JSON.parse(JSON.stringify(se)),oe=re.splice(ce,1)[0];N.value=!0,d.value.removeTag(oe),H(re),t("update:modelValue",d.value.getCheckedNodes().filter(pe=>d.value.config.checkAnyLevel||pe.isLeaf).map(pe=>pe.path)),setTimeout(()=>{N.value=S.value,h.value=!1})},J=(se,ce)=>{var re;H(se),t("update:modelValue",se);const Ce=e.changeEmitsNodes?d.value.getNodeByValue(se):se;ce!==void 0&&t("change",Ce),(re=I==null?void 0:I.value)==null||re.focus(),C.value=!1},G=()=>{d.value=new q1(e),H(e.modelValue)},K=se=>{x.value=se.isShow,t("toggle",se.isShow),N.value=se.isShow,S.value=se.isShow,a.nextTick(()=>{var ce,Ce;se.isShow&&((ce=I.value)==null||ce.focus(),(Ce=y.value)==null||Ce.scrollToSelected())}),se.isShow&&ae(),se.isShow||(C.value=!1)},le=yo(200,se=>{const ce=se.target;if(b.value=ce.value,b.value===""){C.value=!1;return}C.value=!0,C.value=!0;const Ce=e.filterMethod?e.filterMethod:oe=>(e.checkAnyLevel||oe.isLeaf)&&oe.pathNames.join(e.separator).includes(b.value),re=d.value.getFlattedNodes().filter(oe=>Ce(oe,b.value));w.value=re,!(O!=null&&O.value.isShow)&&(O==null||O.value.show())}),ae=()=>{t("focus")};a.watch(()=>e.modelValue,J,{immediate:!0}),a.watch(()=>e.list,G,{deep:!0,immediate:!0}),a.watch(()=>e.multiple,(se,ce)=>{se!==ce&&(d.value=new q1(e),f.value=[],m.value="",H(e.modelValue))},{immediate:!0});const $=a.computed(()=>e.customTagsFillback?e.customTagsFillback(e.modelValue,d.value.getFlattedNodes()):f.value.map(se=>se.text)),M=a.computed(()=>e.collapseTags?e.collapseTags&&S.value:e.collapseTags),V=a.computed(()=>e.collapseTags?e.collapseTags&&N.value:e.collapseTags),{overflowTagIndex:z}=n.trigger?{overflowTagIndex:null}:j5(T,V,$),{resolveClassName:q}=Ae();return{calcuPlaceholder:A,bkCascaderRef:T,inputRef:I,overflowTagIndex:z,isCollapse:M,isFocus:S,isAlways:h,store:d,updateValue:H,selectedText:m,checkedValue:_,handleClear:B,isHover:s,setHover:l,popover:O,cancelHover:u,selectedTags:f,removeTag:W,cascaderPanel:y,popoverChangeEmitter:K,searchKey:b,suggestions:w,isFiltering:C,searchInputHandler:le,focusEmitter:ae,tagList:$,isEdit:N,displayText:P,resolveClassName:q,isShowPanel:x,searchBlueHandler:D}},render(){const e=()=>{var u;return this.clearable&&this.isHover&&!this.disabled&&((u=this.modelValue)==null?void 0:u.length)>0?a.createVNode(Rn,{class:this.resolveClassName("icon-clear-icon"),onClick:this.handleClear},null):a.createVNode(hs,{class:[this.resolveClassName("icon-angle-up"),this.isShowPanel?"active":""]},null)};this.overflowTagIndex=this.overflowTagIndex===0?1:this.overflowTagIndex;const t=this.tagList.reduce((u,d,h)=>(this.overflowTagIndex!==null&&h>=this.overflowTagIndex&&u.push(d),u),[]),n=()=>a.createVNode("input",{ref:"inputRef",class:[this.resolveClassName("cascader-search-input"),{"is-disabled":this.disabled}],disabled:this.disabled,placeholder:this.calcuPlaceholder,type:"text",value:this.searchKey,onBlur:this.searchBlueHandler,onInput:this.searchInputHandler},null),r=()=>this.limitOneLine?a.createVNode("span",{class:"cascader-selected-text"},[this.displayText]):a.createVNode("div",{class:"cascader-tag-list"},[this.tagList.map((u,d)=>{const h=!this.isCollapse&&this.overflowTagIndex!==null&&d>=this.overflowTagIndex;return a.createVNode("span",{key:u,style:{display:h?"none":""},class:"tag-item"},[a.createVNode("span",{class:"tag-item-name"},[u]),a.createVNode(bn,{class:this.resolveClassName("icon-clear-icon"),onClick:m=>{m.stopPropagation(),this.removeTag(this.modelValue,d,m)}},null)])}),this.overflowTagIndex!==null&&!this.isCollapse&&a.withDirectives(a.createVNode(Yo,{style:"margin-top: 0"},{default:()=>[a.createTextVNode("+"),this.selectedTags.length-this.overflowTagIndex]}),[[a.resolveDirective("bk-tooltips"),t.join(", ")]]),this.filterable&&n()]),i=()=>this.multiple?null:a.createVNode("span",null,[this.displayText]),s=To({always:this.isAlways,arrow:!1,boundary:"body",disabled:this.disabled,hideIgnoreReference:!0,offset:4,placement:"bottom-start",referenceCls:this.resolveClassName("cascader-popover-reference"),theme:`light ${this.resolveClassName("cascader-popover")}`,trigger:"click"},this.popoverOptions),l=()=>a.createVNode(In,a.mergeProps({ref:"popover",class:this.resolveClassName("cascader-popover-wrapper"),onAfterHidden:this.popoverChangeEmitter,onAfterShow:this.popoverChangeEmitter},s),{default:()=>this.$slots.trigger?this.$slots.trigger({selected:this.modelValue,isShow:this.isShowPanel}):a.createVNode("div",{class:[this.resolveClassName("cascader-name"),this.resolveClassName("scroll-y")]},[this.multiple&&this.selectedTags.length>0&&r(),this.filterable?this.selectedTags.length===0&&n():i()]),content:()=>{var u,d;return a.createVNode("div",{class:this.resolveClassName("cascader-popover")},[a.createVNode(sv,{ref:"cascaderPanel",width:this.scrollWidth,height:this.scrollHeight,modelValue:this.checkedValue,"onUpdate:modelValue":h=>this.checkedValue=h,"is-filtering":this.isFiltering,"search-key":this.searchKey,separator:this.separator,store:this.store,suggestions:this.suggestions},{default:h=>this.$slots.default?this.$slots.default(h):a.createVNode(u2,{type:"tips"},{default:()=>[a.createVNode("span",{class:this.resolveClassName("cascader-node-name")},[h.node.name])]}),panel:h=>this.$slots.panel?this.$slots.panel(h):null}),(d=(u=this.$slots).extension)==null?void 0:d.call(u)])}});return a.createVNode("div",{class:[this.resolveClassName("cascader-wrapper"),this.floatMode?"float-mode":""]},[this.$slots.trigger?l():a.createVNode("div",{ref:"bkCascaderRef",class:[this.resolveClassName("cascader"),this.extCls,{"is-unselected":!this.modelValue||this.modelValue.length===0,"is-hover":this.isHover,"is-filterable":this.filterable,"is-focus":this.isFocus,"is-disabled":this.disabled,"is-simplicity":this.behavior==="simplicity"}],"data-placeholder":this.calcuPlaceholder,tabindex:"0",onMouseenter:this.setHover,onMouseleave:this.cancelHover},[e(),l()])])}}),uv=yn($L,{CascaderPanel:sv});function Ga(){}Ga.prototype={diff:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.callback;typeof r=="function"&&(i=r,r={}),this.options=r;var s=this;function l(w){return i?(setTimeout(function(){i(void 0,w)},0),!0):w}t=this.castInput(t),n=this.castInput(n),t=this.removeEmpty(this.tokenize(t)),n=this.removeEmpty(this.tokenize(n));var u=n.length,d=t.length,h=1,m=u+d,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],n,t,0);if(f[0].newPos+1>=u&&p+1>=d)return l([{value:this.join(n),count:n.length}]);function y(){for(var w=-1*h;w<=h;w+=2){var C=void 0,N=f[w-1],S=f[w+1],x=(S?S.newPos:0)-w;N&&(f[w-1]=void 0);var _=N&&N.newPos+1<u,O=S&&0<=x&&x<d;if(!_&&!O){f[w]=void 0;continue}if(!_||O&&N.newPos<S.newPos?(C=HL(S),s.pushComponent(C.components,void 0,!0)):(C=N,C.newPos++,s.pushComponent(C.components,!0,void 0)),x=s.extractCommon(C,n,t,w),C.newPos+1>=u&&x+1>=d)return l(FL(s,C.components,n,t,s.useLongestToken));f[w]=C}h++}if(i)(function w(){setTimeout(function(){if(h>m)return i();y()||w()},0)})();else for(;h<=m;){var b=y();if(b)return b}},pushComponent:function(t,n,r){var i=t[t.length-1];i&&i.added===n&&i.removed===r?t[t.length-1]={count:i.count+1,added:n,removed:r}:t.push({count:1,added:n,removed:r})},extractCommon:function(t,n,r,i){for(var s=n.length,l=r.length,u=t.newPos,d=u-i,h=0;u+1<s&&d+1<l&&this.equals(n[u+1],r[d+1]);)u++,d++,h++;return h&&t.components.push({count:h}),t.newPos=u,d},equals:function(t,n){return this.options.comparator?this.options.comparator(t,n):t===n||this.options.ignoreCase&&t.toLowerCase()===n.toLowerCase()},removeEmpty:function(t){for(var n=[],r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function FL(e,t,n,r,i){for(var s=0,l=t.length,u=0,d=0;s<l;s++){var h=t[s];if(h.removed){if(h.value=e.join(r.slice(d,d+h.count)),d+=h.count,s&&t[s-1].added){var f=t[s-1];t[s-1]=t[s],t[s]=f}}else{if(!h.added&&i){var m=n.slice(u,u+h.count);m=m.map(function(y,b){var w=r[d+b];return w.length>y.length?w:y}),h.value=e.join(m)}else h.value=e.join(n.slice(u,u+h.count));u+=h.count,h.added||(d+=h.count)}}var p=t[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&e.equals("",p.value)&&(t[l-2].value+=p.value,t.pop()),t}function HL(e){return{newPos:e.newPos,components:e.components.slice(0)}}var dv=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,fv=/\S/,hv=new Ga;hv.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!fv.test(e)&&!fv.test(t)},hv.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&dv.test(t[n])&&dv.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var G1=new Ga;G1.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function BL(e,t,n){return G1.diff(e,t,n)}var UL=new Ga;UL.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var zL=new Ga;zL.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function ou(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ou=function(t){return typeof t}:ou=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function K1(e){return jL(e)||WL(e)||qL(e)||GL()}function jL(e){if(Array.isArray(e))return Y1(e)}function WL(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qL(e,t){if(e){if(typeof e=="string")return Y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y1(e,t)}}function Y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
46
46
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var KL=Object.prototype.toString,tl=new Ga;tl.useLongestToken=!0,tl.tokenize=G1.tokenize,tl.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(s,l){return typeof l>"u"?n:l}:r;return typeof e=="string"?e:JSON.stringify(X1(e,null,null,i),i," ")},tl.equals=function(e,t){return Ga.prototype.equals.call(tl,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function X1(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return n[s];var l;if(KL.call(e)==="[object Array]"){for(t.push(e),l=new Array(e.length),n.push(l),s=0;s<e.length;s+=1)l[s]=X1(e[s],t,n,r,i);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),ou(e)==="object"&&e!==null){t.push(e),l={},n.push(l);var u=[],d;for(d in e)e.hasOwnProperty(d)&&u.push(d);for(u.sort(),s=0;s<u.length;s+=1)d=u[s],l[d]=X1(e[d],t,n,r,d);t.pop(),n.pop()}else l=e;return l}var J1=new Ga;J1.tokenize=function(e){return e.slice()},J1.join=J1.removeEmpty=function(e){return e};function YL(e,t,n,r,i,s,l){l||(l={}),typeof l.context>"u"&&(l.context=4);var u=BL(n,r,l);u.push({value:"",lines:[]});function d(N){return N.map(function(S){return" "+S})}for(var h=[],m=0,f=0,p=[],y=1,b=1,w=function(S){var x=u[S],_=x.lines||x.value.replace(/\n$/,"").split(`
@@ -386,4 +386,4 @@ __p += '`),bt&&(Ie+=`' +
386
386
  function print() { __p += __j.call(arguments, '') }
387
387
  `:`;
388
388
  `)+Ie+`return __p
389
- }`;var ht=aN(function(){return xt(U,Je+"return "+Ie).apply(n,ie)});if(ht.source=Ie,b9(ht))throw ht;return ht}function kj(o){return Et(o).toLowerCase()}function Mj(o){return Et(o).toUpperCase()}function $j(o,c,g){if(o=Et(o),o&&(g||c===n))return hw(o);if(!o||!(c=nr(c)))return o;var E=Br(o),R=Br(c),U=mw(E,R),ie=pw(E,R)+1;return fi(E,U,ie).join("")}function Fj(o,c,g){if(o=Et(o),o&&(g||c===n))return o.slice(0,vw(o)+1);if(!o||!(c=nr(c)))return o;var E=Br(o),R=pw(E,Br(c))+1;return fi(E,0,R).join("")}function Hj(o,c,g){if(o=Et(o),o&&(g||c===n))return o.replace(dn,"");if(!o||!(c=nr(c)))return o;var E=Br(o),R=mw(E,Br(c));return fi(E,R).join("")}function Bj(o,c){var g=k,E=L;if(Ut(c)){var R="separator"in c?c.separator:R;g="length"in c?ft(c.length):g,E="omission"in c?nr(c.omission):E}o=Et(o);var U=o.length;if(Gs(o)){var ie=Br(o);U=ie.length}if(g>=U)return o;var ue=g-Ks(E);if(ue<1)return E;var ve=ie?fi(ie,0,ue).join(""):o.slice(0,ue);if(R===n)return ve+E;if(ie&&(ue+=ve.length-ue),w9(R)){if(o.slice(ue).search(R)){var De,Re=ve;for(R.global||(R=k6(R.source,Et(ai.exec(R))+"g")),R.lastIndex=0;De=R.exec(Re);)var Ie=De.index;ve=ve.slice(0,Ie===n?ue:Ie)}}else if(o.indexOf(nr(R),ue)!=ue){var je=ve.lastIndexOf(R);je>-1&&(ve=ve.slice(0,je))}return ve+E}function Uj(o){return o=Et(o),o&&Tt.test(o)?o.replace(It,vF):o}var zj=to(function(o,c,g){return o+(g?" ":"")+c.toUpperCase()}),_9=iC("toUpperCase");function rN(o,c,g){return o=Et(o),c=g?n:c,c===n?fF(o)?wF(o):rF(o):o.match(c)||[]}var aN=mt(function(o,c){try{return er(o,n,c)}catch(g){return b9(g)?g:new lt(g)}}),jj=Da(function(o,c){return br(c,function(g){g=da(g),Aa(o,g,v9(o[g],o))}),o});function Wj(o){var c=o==null?0:o.length,g=et();return o=c?Ht(o,function(E){if(typeof E[1]!="function")throw new wr(l);return[g(E[0]),E[1]]}):[],mt(function(E){for(var R=-1;++R<c;){var U=o[R];if(er(U[0],this,E))return er(U[1],this,E)}})}function qj(o){return vH(Nr(o,f))}function x9(o){return function(){return o}}function Gj(o,c){return o==null||o!==o?c:o}var Kj=oC(),Yj=oC(!0);function Bn(o){return o}function S9(o){return Mw(typeof o=="function"?o:Nr(o,f))}function Xj(o){return Fw(Nr(o,f))}function Jj(o,c){return Hw(o,Nr(c,f))}var Zj=mt(function(o,c){return function(g){return Ll(g,o,c)}}),Qj=mt(function(o,c){return function(g){return Ll(o,g,c)}});function T9(o,c,g){var E=ln(c),R=Nd(c,E);g==null&&!(Ut(c)&&(R.length||!E.length))&&(g=c,c=o,o=this,R=Nd(c,ln(c)));var U=!(Ut(g)&&"chain"in g)||!!g.chain,ie=Ia(o);return br(R,function(ue){var ve=c[ue];o[ue]=ve,ie&&(o.prototype[ue]=function(){var De=this.__chain__;if(U||De){var Re=o(this.__wrapped__),Ie=Re.__actions__=$n(this.__actions__);return Ie.push({func:ve,args:arguments,thisArg:o}),Re.__chain__=De,Re}return ve.apply(o,si([this.value()],arguments))})}),o}function eW(){return fn._===this&&(fn._=TF),this}function E9(){}function tW(o){return o=ft(o),mt(function(c){return Bw(c,o)})}var nW=a9(Ht),rW=a9(lw),aW=a9(A6);function iN(o){return d9(o)?L6(da(o)):VH(o)}function iW(o){return function(c){return o==null?n:Gi(o,c)}}var sW=cC(),oW=cC(!0);function O9(){return[]}function A9(){return!1}function lW(){return{}}function cW(){return""}function uW(){return!0}function dW(o,c){if(o=ft(o),o<1||o>K)return[];var g=$,E=pn(o,$);c=et(c),o-=$;for(var R=I6(E,c);++g<o;)c(g);return R}function fW(o){return ct(o)?Ht(o,da):rr(o)?[o]:$n(SC(Et(o)))}function hW(o){var c=++xF;return Et(o)+c}var mW=Od(function(o,c){return o+c},0),pW=i9("ceil"),gW=Od(function(o,c){return o/c},1),vW=i9("floor");function yW(o){return o&&o.length?Cd(o,Bn,j6):n}function bW(o,c){return o&&o.length?Cd(o,et(c,2),j6):n}function wW(o){return dw(o,Bn)}function CW(o,c){return dw(o,et(c,2))}function NW(o){return o&&o.length?Cd(o,Bn,K6):n}function _W(o,c){return o&&o.length?Cd(o,et(c,2),K6):n}var xW=Od(function(o,c){return o*c},1),SW=i9("round"),TW=Od(function(o,c){return o-c},0);function EW(o){return o&&o.length?R6(o,Bn):0}function OW(o,c){return o&&o.length?R6(o,et(c,2)):0}return F.after=XU,F.ary=kC,F.assign=Mz,F.assignIn=XC,F.assignInWith=Bd,F.assignWith=$z,F.at=Fz,F.before=MC,F.bind=v9,F.bindAll=jj,F.bindKey=$C,F.castArray=lz,F.chain=IC,F.chunk=vB,F.compact=yB,F.concat=bB,F.cond=Wj,F.conforms=qj,F.constant=x9,F.countBy=EU,F.create=Hz,F.curry=FC,F.curryRight=HC,F.debounce=BC,F.defaults=Bz,F.defaultsDeep=Uz,F.defer=JU,F.delay=ZU,F.difference=wB,F.differenceBy=CB,F.differenceWith=NB,F.drop=_B,F.dropRight=xB,F.dropRightWhile=SB,F.dropWhile=TB,F.fill=EB,F.filter=AU,F.flatMap=RU,F.flatMapDeep=IU,F.flatMapDepth=VU,F.flatten=AC,F.flattenDeep=OB,F.flattenDepth=AB,F.flip=QU,F.flow=Kj,F.flowRight=Yj,F.fromPairs=LB,F.functions=Yz,F.functionsIn=Xz,F.groupBy=PU,F.initial=RB,F.intersection=IB,F.intersectionBy=VB,F.intersectionWith=PB,F.invert=Zz,F.invertBy=Qz,F.invokeMap=MU,F.iteratee=S9,F.keyBy=$U,F.keys=ln,F.keysIn=Hn,F.map=Pd,F.mapKeys=tj,F.mapValues=nj,F.matches=Xj,F.matchesProperty=Jj,F.memoize=Md,F.merge=rj,F.mergeWith=JC,F.method=Zj,F.methodOf=Qj,F.mixin=T9,F.negate=$d,F.nthArg=tW,F.omit=aj,F.omitBy=ij,F.once=ez,F.orderBy=FU,F.over=nW,F.overArgs=tz,F.overEvery=rW,F.overSome=aW,F.partial=y9,F.partialRight=UC,F.partition=HU,F.pick=sj,F.pickBy=ZC,F.property=iN,F.propertyOf=iW,F.pull=FB,F.pullAll=DC,F.pullAllBy=HB,F.pullAllWith=BB,F.pullAt=UB,F.range=sW,F.rangeRight=oW,F.rearg=nz,F.reject=zU,F.remove=zB,F.rest=rz,F.reverse=p9,F.sampleSize=WU,F.set=lj,F.setWith=cj,F.shuffle=qU,F.slice=jB,F.sortBy=YU,F.sortedUniq=JB,F.sortedUniqBy=ZB,F.split=Rj,F.spread=az,F.tail=QB,F.take=eU,F.takeRight=tU,F.takeRightWhile=nU,F.takeWhile=rU,F.tap=yU,F.throttle=iz,F.thru=Vd,F.toArray=GC,F.toPairs=QC,F.toPairsIn=eN,F.toPath=fW,F.toPlainObject=YC,F.transform=uj,F.unary=sz,F.union=aU,F.unionBy=iU,F.unionWith=sU,F.uniq=oU,F.uniqBy=lU,F.uniqWith=cU,F.unset=dj,F.unzip=g9,F.unzipWith=RC,F.update=fj,F.updateWith=hj,F.values=ao,F.valuesIn=mj,F.without=uU,F.words=rN,F.wrap=oz,F.xor=dU,F.xorBy=fU,F.xorWith=hU,F.zip=mU,F.zipObject=pU,F.zipObjectDeep=gU,F.zipWith=vU,F.entries=QC,F.entriesIn=eN,F.extend=XC,F.extendWith=Bd,T9(F,F),F.add=mW,F.attempt=aN,F.camelCase=yj,F.capitalize=tN,F.ceil=pW,F.clamp=pj,F.clone=cz,F.cloneDeep=dz,F.cloneDeepWith=fz,F.cloneWith=uz,F.conformsTo=hz,F.deburr=nN,F.defaultTo=Gj,F.divide=gW,F.endsWith=bj,F.eq=zr,F.escape=wj,F.escapeRegExp=Cj,F.every=OU,F.find=LU,F.findIndex=EC,F.findKey=zz,F.findLast=DU,F.findLastIndex=OC,F.findLastKey=jz,F.floor=vW,F.forEach=VC,F.forEachRight=PC,F.forIn=Wz,F.forInRight=qz,F.forOwn=Gz,F.forOwnRight=Kz,F.get=C9,F.gt=mz,F.gte=pz,F.has=Jz,F.hasIn=N9,F.head=LC,F.identity=Bn,F.includes=kU,F.indexOf=DB,F.inRange=gj,F.invoke=ej,F.isArguments=Xi,F.isArray=ct,F.isArrayBuffer=gz,F.isArrayLike=Fn,F.isArrayLikeObject=Yt,F.isBoolean=vz,F.isBuffer=hi,F.isDate=yz,F.isElement=bz,F.isEmpty=wz,F.isEqual=Cz,F.isEqualWith=Nz,F.isError=b9,F.isFinite=_z,F.isFunction=Ia,F.isInteger=zC,F.isLength=Fd,F.isMap=jC,F.isMatch=xz,F.isMatchWith=Sz,F.isNaN=Tz,F.isNative=Ez,F.isNil=Az,F.isNull=Oz,F.isNumber=WC,F.isObject=Ut,F.isObjectLike=qt,F.isPlainObject=kl,F.isRegExp=w9,F.isSafeInteger=Lz,F.isSet=qC,F.isString=Hd,F.isSymbol=rr,F.isTypedArray=ro,F.isUndefined=Dz,F.isWeakMap=Rz,F.isWeakSet=Iz,F.join=kB,F.kebabCase=Nj,F.last=xr,F.lastIndexOf=MB,F.lowerCase=_j,F.lowerFirst=xj,F.lt=Vz,F.lte=Pz,F.max=yW,F.maxBy=bW,F.mean=wW,F.meanBy=CW,F.min=NW,F.minBy=_W,F.stubArray=O9,F.stubFalse=A9,F.stubObject=lW,F.stubString=cW,F.stubTrue=uW,F.multiply=xW,F.nth=$B,F.noConflict=eW,F.noop=E9,F.now=kd,F.pad=Sj,F.padEnd=Tj,F.padStart=Ej,F.parseInt=Oj,F.random=vj,F.reduce=BU,F.reduceRight=UU,F.repeat=Aj,F.replace=Lj,F.result=oj,F.round=SW,F.runInContext=me,F.sample=jU,F.size=GU,F.snakeCase=Dj,F.some=KU,F.sortedIndex=WB,F.sortedIndexBy=qB,F.sortedIndexOf=GB,F.sortedLastIndex=KB,F.sortedLastIndexBy=YB,F.sortedLastIndexOf=XB,F.startCase=Ij,F.startsWith=Vj,F.subtract=TW,F.sum=EW,F.sumBy=OW,F.template=Pj,F.times=dW,F.toFinite=Va,F.toInteger=ft,F.toLength=KC,F.toLower=kj,F.toNumber=Sr,F.toSafeInteger=kz,F.toString=Et,F.toUpper=Mj,F.trim=$j,F.trimEnd=Fj,F.trimStart=Hj,F.truncate=Bj,F.unescape=Uj,F.uniqueId=hW,F.upperCase=zj,F.upperFirst=_9,F.each=VC,F.eachRight=PC,F.first=LC,T9(F,function(){var o={};return ca(F,function(c,g){Lt.call(F.prototype,g)||(o[g]=c)}),o}(),{chain:!1}),F.VERSION=r,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){F[o].placeholder=F}),br(["drop","take"],function(o,c){vt.prototype[o]=function(g){g=g===n?1:an(ft(g),0);var E=this.__filtered__&&!c?new vt(this):this.clone();return E.__filtered__?E.__takeCount__=pn(g,E.__takeCount__):E.__views__.push({size:pn(g,$),type:o+(E.__dir__<0?"Right":"")}),E},vt.prototype[o+"Right"]=function(g){return this.reverse()[o](g).reverse()}}),br(["filter","map","takeWhile"],function(o,c){var g=c+1,E=g==B||g==J;vt.prototype[o]=function(R){var U=this.clone();return U.__iteratees__.push({iteratee:et(R,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),br(["head","last"],function(o,c){var g="take"+(c?"Right":"");vt.prototype[o]=function(){return this[g](1).value()[0]}}),br(["initial","tail"],function(o,c){var g="drop"+(c?"":"Right");vt.prototype[o]=function(){return this.__filtered__?new vt(this):this[g](1)}}),vt.prototype.compact=function(){return this.filter(Bn)},vt.prototype.find=function(o){return this.filter(o).head()},vt.prototype.findLast=function(o){return this.reverse().find(o)},vt.prototype.invokeMap=mt(function(o,c){return typeof o=="function"?new vt(this):this.map(function(g){return Ll(g,o,c)})}),vt.prototype.reject=function(o){return this.filter($d(et(o)))},vt.prototype.slice=function(o,c){o=ft(o);var g=this;return g.__filtered__&&(o>0||c<0)?new vt(g):(o<0?g=g.takeRight(-o):o&&(g=g.drop(o)),c!==n&&(c=ft(c),g=c<0?g.dropRight(-c):g.take(c-o)),g)},vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},vt.prototype.toArray=function(){return this.take($)},ca(vt.prototype,function(o,c){var g=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),R=F[E?"take"+(c=="last"?"Right":""):c],U=E||/^find/.test(c);R&&(F.prototype[c]=function(){var ie=this.__wrapped__,ue=E?[1]:arguments,ve=ie instanceof vt,De=ue[0],Re=ve||ct(ie),Ie=function(gt){var bt=R.apply(F,si([gt],ue));return E&&je?bt[0]:bt};Re&&g&&typeof De=="function"&&De.length!=1&&(ve=Re=!1);var je=this.__chain__,Je=!!this.__actions__.length,tt=U&&!je,ht=ve&&!Je;if(!U&&Re){ie=ht?ie:new vt(this);var nt=o.apply(ie,ue);return nt.__actions__.push({func:Vd,args:[Ie],thisArg:n}),new Cr(nt,je)}return tt&&ht?o.apply(this,ue):(nt=this.thru(Ie),tt?E?nt.value()[0]:nt.value():nt)})}),br(["pop","push","shift","sort","splice","unshift"],function(o){var c=sd[o],g=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);F.prototype[o]=function(){var R=arguments;if(E&&!this.__chain__){var U=this.value();return c.apply(ct(U)?U:[],R)}return this[g](function(ie){return c.apply(ct(ie)?ie:[],R)})}}),ca(vt.prototype,function(o,c){var g=F[c];if(g){var E=g.name+"";Lt.call(Zs,E)||(Zs[E]=[]),Zs[E].push({name:c,func:g})}}),Zs[Ed(n,N).name]=[{name:"wrapper",func:n}],vt.prototype.clone=UF,vt.prototype.reverse=zF,vt.prototype.value=jF,F.prototype.at=bU,F.prototype.chain=wU,F.prototype.commit=CU,F.prototype.next=NU,F.prototype.plant=xU,F.prototype.reverse=SU,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=TU,F.prototype.first=F.prototype.head,_l&&(F.prototype[_l]=_U),F},Ys=CF();Ui?((Ui.exports=Ys)._=Ys,S6._=Ys):fn._=Ys}).call(s$)}(bl,bl.exports)),bl.exports}var l$=o$(),kn=(e=>(e.NODE_CHECKED="nodeChecked",e.NODE_CLICK="nodeClick",e.NODE_COLLAPSE="nodeCollapse",e.NODE_DRAG_LEAVE="nodeDragLeave",e.NODE_DRAG_OVER="nodeDragOver",e.NODE_DRAG_SORT="nodeDragSort",e.NODE_DRAG_START="nodeDragStart",e.NODE_DROP="nodeDrop",e.NODE_ENTER_VIEW="nodeEnterView",e.NODE_EXPAND="nodeExpand",e.NODE_SELECTED="nodeSelected",e))(kn||{});const Mr=(...e)=>!0,c$={nodeClick:Mr,nodeCollapse:Mr,nodeExpand:Mr,nodeChecked:Mr,nodeDragStart:Mr,nodeDragOver:Mr,nodeDragLeave:Mr,nodeDragSort:Mr,nodeDrop:Mr,nodeEnterView:Mr,nodeSelected:Mr};var Oe=(e=>(e.DEPTH="__depth",e.HAS_CHILD="__has_child",e.INDEX="__index",e.IS_ASYNC="__is_async",e.IS_ASYNC_INIT="__is_async_init",e.IS_CACHED="__is_cached",e.IS_CHECKED="__is_checked",e.IS_INDETERMINATE="__is_indeterminate",e.IS_LOADING="__is_loading",e.IS_MATCH="__is_match",e.IS_NULL="__IS_NULL",e.IS_OPEN="__is_open",e.IS_ROOT="__is_root",e.IS_SELECTED="__is_selected",e.ORDER="__order",e.PARENT="__parent",e.PATH="__path",e.TREE_NODE_ATTR="__attr__",e.UUID="__uuid",e))(Oe||{});const ei={__is_open:"isOpen",__is_selected:"selected",__is_match:"isMatch",__has_child:"hasChild",__is_checked:"checked",__is_async:"async",__is_loading:"loading",__is_root:"isRoot"};var Ab=(e=>(e.CLICK="click",e.COLLAPSE="collapse",e.EXPAND="expand",e.SELECTED="selected",e))(Ab||{});const u$={data:v.arrayOf(v.any).def([]),label:v.oneOfType([v.func.def(void 0),v.string.def("label")]),nodeKey:v.string.def(void 0),children:v.string.def("children"),indent:v.number.def(16),lineHeight:v.number.def(32),height:v.number,levelLine:v.oneOfType([v.bool.def(!1),v.func.def(void 0),v.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:v.bool.def(!1),prefixIcon:v.oneOfType([v.func.def(()=>{}),v.bool.def(!1)]).def(!0),async:v.shape({callback:v.func.def(void 0),cache:v.bool.def(!0),deepAutoOpen:ze("columnType",{}).def("once"),trigger:v.arrayOf(v.oneOf(["expand","click","checked"])).def(void 0)}),offsetLeft:v.number.def(5),search:v.oneOfType([v.shape({value:v.oneOfType([v.number,v.string,v.bool]).def(""),match:v.oneOfType([vn(),v.func]).def("fuzzy"),resultType:vn().def("tree"),showChildNodes:v.bool.def(!1)}),v.string,v.number,v.bool]).def(void 0),emptyText:v.string.def("没有数据"),draggable:v.bool.def(!1),disableDrag:v.func,disableDrop:Function,dragThreshold:v.number.def(.2),dragSort:v.bool.def(!1),dragSortMode:v.oneOf(["any","next"]).def("any"),selectable:v.oneOfType([v.bool,v.func]).def(!0),disabledFolderSelectable:v.bool.def(!1),showCheckbox:v.oneOfType([v.bool,v.func]).def(!1),disableCheck:v.bool.def(!1),checked:v.arrayOf(v.any).def([]),showNodeTypeIcon:v.bool.def(!0),selected:v.oneOfType([v.string,v.number,v.object]),autoCheckChildren:v.oneOfType([v.bool,v.func]).def(!0),autoOpenParentNode:v.bool.def(!0),expandAll:v.bool.def(!1),nodeContentAction:v.oneOfType([v.arrayOf(ze("nodeContentActionType",{}).def(Ab.CLICK)),v.func.def(()=>["selected"])]).def(["selected","expand","click"]),keepSlotData:v.bool.def(!1),checkStrictly:v.bool.def(!0),intersectionObserver:v.oneOfType([v.bool.def(!1),v.shape({enabled:v.bool.def(!1),callback:v.func.def(void 0)})]).def(!1)},d$=e=>({renderEmpty:t=>a.createVNode(xu,{scene:"part",type:t},{default:()=>[e.emptyText]})}),f$=e=>{const t={enabled:e.intersectionObserver,once:!1,callback:null};let n=null,r=[],i=null;const s=()=>typeof e.intersectionObserver=="boolean"?t:typeof e.intersectionObserver=="object"?Object.assign({},t,e.intersectionObserver):t,l=a.computed(s),u=p=>p instanceof NodeList?Array.from(p):Array.isArray(p)?p:[p];return{unobserveAll:()=>{r==null||r.forEach(p=>{_s(p)&&(n==null||n.unobserve(p))}),n==null||n.disconnect(),i==null||i.disconnect()},intersectionObserver:l,initIntersectionObserver:(p,y,b)=>{if(l.value.enabled){if(!p){console.error("intersectionObserver.target is undefined");return}r=u(p);const w=Object.assign({rootMargin:"0px"},y);n=new IntersectionObserver(function(C){C.forEach(N=>{var S,x,_;if(console.log("entry",N.target),N.isIntersecting){const O=((S=b==null?void 0:b.beforeResponse)==null?void 0:S.call(b,N))??N;(_=(x=l.value).callback)==null||_.call(x,O),l.value.once&&n.unobserve(N.target)}})},w),r.forEach(C=>{_s(C)&&n.observe(C)})}},initRootMutationObserver:(p,y)=>{if(l.value.enabled&&!e.virtualRender&&_s(p)){const b={attributes:!0,childList:!0,subtree:!0};i=new MutationObserver((...w)=>{y==null||y(...w)}),i.observe(p,b)}},getLastVisibleElement:(p,y)=>{const{offsetHeight:b}=y,w=y.querySelectorAll("[data-tree-node]"),C=b+p;return Array.from(w).filter(S=>S.offsetHeight+S.offsetTop>=C&&S.offsetTop<C)}}},Xu=(e,t)=>{const n=$=>e.schema.get($),r=($,M)=>{var V;return(V=n($))==null?void 0:V[M]},i=($,M,V,z)=>{if(!e.schema.has($)){console.warn("node is not in schema, please check",z,$);return}e.schema.set($,Object.assign({},n($),{[M]:V}))},s=$=>e.data.find(M=>d(M)===$),l=($,M,V)=>{if(Array.isArray($)){Array.prototype.forEach.call($,z=>i(s(z),M,V,$));return}i(s($),M,V,$)},u=$=>r($,Oe.PATH),d=$=>r($,Oe.UUID),h=$=>r($,Oe.IS_OPEN),m=$=>r($,Oe.HAS_CHILD),f=$=>r($,Oe.IS_MATCH),p=$=>r($,Oe.IS_CHECKED),y=$=>r(r($,Oe.PARENT),Oe.UUID),b=$=>r($,Oe.IS_LOADING),w=$=>r($,Oe.PARENT),C=$=>r($,Oe.IS_MATCH),N=($,M)=>{const V=e.data.find(z=>d(z)===$);return r(V,M)},S=$=>N($,Oe.INDEX),x=$=>r($,Oe.INDEX),_=$=>typeof $=="string"?N($,Oe.IS_ROOT):r($,Oe.IS_ROOT),O=$=>{const M=e.data.find(V=>d(V)===$);return y(M)},T=$=>{const M=e.data.find(V=>d(V)===$);return u(M)},I=($,M)=>{i($,Oe.IS_LOADING,M)},A=$=>typeof $=="object"?h($):typeof $=="string"?N($,Oe.IS_OPEN):!1,P=($,M)=>r(r($,Oe.PARENT),M),k=$=>A(r($,Oe.PARENT)),L=$=>_($)||A($)||k($),D=($,M)=>{const z=$.split("-").reduce((q,se)=>{const ce=Number(se);return Array.isArray(q)?q[ce]:q[t.children][ce]},t.data);return M&&Object.assign(z,{[Oe.UUID]:M}),z},H=$=>e.data.filter(M=>w(M)===$),B=$=>e.data.find(M=>d(M)===$),W=$=>{let M=$;return typeof M=="string"&&(M=B(M)),_(M)?{[t.children]:t.data}:w(M)},J=$=>({[ei[Oe.IS_LOADING]]:r($,Oe.IS_LOADING),[ei[Oe.HAS_CHILD]]:m($),[ei[Oe.IS_MATCH]]:f($),[ei[Oe.IS_CHECKED]]:p($),[ei[Oe.IS_OPEN]]:h($),[ei[Oe.IS_ROOT]]:_($),fullPath:r($,Oe.PATH),uuid:d($),parent:r($,Oe.PARENT),parentId:d(r($,Oe.PARENT))});return{getSchemaVal:n,getNodeAttr:r,getNodeId:d,getNodeById:s,getNodeParentId:y,getParentNodeData:W,getNodePathById:T,getNodeAttrById:N,getNodeParentIdById:O,getNodeIndexById:S,getNodeIndexByNode:x,getRootNodeList:()=>e.data.filter($=>_($)),getParentNodeAttr:P,getParentNode:w,setNodeAttr:i,setNodeAttrById:l,getNodePath:u,isRootNode:_,isNodeOpened:h,hasChildNode:m,isItemOpen:A,isNodeChecked:p,isNodeMatched:f,isNodeLoading:b,checkNodeIsOpen:L,getSourceNodeByPath:D,getSourceNodeByUID:B,isMatchedNode:C,resolveScopedSlotParam:J,setTreeNodeLoading:I,extendNodeAttr:$=>Object.assign({},$,{[Oe.TREE_NODE_ATTR]:J($)}),getChildNodes:H,extendNodeScopedData:$=>({data:$,attributes:J($)}),getIntersectionResponse:$=>{var ce;if(!$)return null;let M=$;_s($)&&(M=s($.getAttribute("data-tree-node")));const V=r(M,Oe.DEPTH),z=r(M,Oe.IS_ROOT),q=r(M,Oe.PARENT),se=z?r(M,Oe.INDEX):(ce=q==null?void 0:q[t.children])==null?void 0:ce.findIndex(Ce=>Ce===M);return{level:V,target:$,index:se,parent:q,node:M,isRoot:z}}}},Lb="1px dashed #c3cdd7",Db=(e,t,n=null,r=null,i=null,s=[])=>{const l=e[t];return typeof l=="boolean"?l?r:i:Rb(n,e,t,s)},Rb=(e,t,n,r=[])=>{const i=t[n];if(typeof i=="string")return typeof e=="object"&&e!==null?(Object.prototype.hasOwnProperty.call(e,i)||console.error(`cannot find node label with key ${i}`),e[i]):i;if(typeof i=="function"){const s=i.apply(void 0,[e,...r]);if(typeof s=="string")return s;console.error("props label with function return value is not string, please check and return string");return}},Ib=(e,t)=>Rb(e,t,"label"),h$=(e,t)=>({"--level-line":Db(t,"levelLine",e,Lb,null,["tree"]),"--lineHeight":`${t.lineHeight}px`,"--indent":`${t.indent}px`,"--offset-left":`${t.offsetLeft}px`}),m$=(e,t,n,r=!0)=>{var l;const{schema:i}=n,s=(l=i.get(e))==null?void 0:l[Oe.DEPTH];if(r){const u=["node"],d=()=>Db(t,"levelLine",e,Lb,null,u);return{"--depth":s,...typeof t.levelLine=="function"?{"--level-line":d()}:{}}}return{}},p$=(e,t,n,r=!0)=>{const{__is_root:i,__is_open:s}=t.get(e)||{},{resolveClassName:l}=Ae();return{"is-root":i,[`${l("tree-node")}`]:!0,"is-open":s,"is-virtual-render":n.virtualRender,"level-line":n.levelLine&&r}},g$=(e,t)=>{const{__is_checked:n,__is_selected:r}=t.get(e)||{},{resolveClassName:i}=Ae();return{"is-checked":n,"is-selected":r,"node-folder":e.is_folder,"node-leaf":e.is_leaf,[`${i("node-row")}`]:!0}},v$=(e,t,n,r,i)=>{y$(e,t,n,{[r]:i})},y$=(e,t,n,r)=>{const s=e.split("-").reduce((l,u)=>{const d=Number(u);return Array.isArray(l)?l[d]:l[n][d]},t);Object.assign(s,r||{})},wl=e=>e??{__IS_NULL:!0},Ju=(e,t,n)=>Array.isArray(t)?t.some(r=>Ju(e,r,n)):typeof t=="string"||typeof t=="number"?t===n:e===t,Vb=(e,t)=>typeof e.showCheckbox=="function"?e.showCheckbox(t):e.showCheckbox,Pb=(e,t)=>{const{setNodeAttr:n,getNodePath:r,getNodeAttr:i,resolveScopedSlotParam:s,setTreeNodeLoading:l}=Xu(t,e),u=(m,f)=>{if(typeof m=="object"&&m!==null){n(f,Oe.IS_OPEN,!0);const p=Array.isArray(m)?m:[m];return v$(r(f),e.data,e.children,e.children,p),Promise.resolve(m)}return Promise.resolve(m)},d=m=>{const{callback:f=null,cache:p=!0}=e.async||{};if(typeof f=="function"&&i(m,Oe.IS_ASYNC)){if(n(m,Oe.IS_ASYNC_INIT,!0),!i(m,Oe.IS_CACHED)){n(m,Oe.IS_CACHED,p);const y=s(m),b=f(m,w=>u(w,m),y);if(typeof b=="object"&&b!==null)return l(m,!0),b instanceof Promise?Promise.resolve(b.then(w=>u(w,m)).catch(w=>console.error("load remote data error:",w)).finally(()=>{l(m,!1),n(m,Oe.IS_CACHED,!0)})):(u(b,m),l(m,!1),Promise.resolve(!0))}return Promise.resolve(!0)}return Promise.resolve(!0)},h=()=>{const m=t.data.filter(f=>i(f,Oe.IS_ASYNC)&&f[ei[Oe.IS_OPEN]]&&!i(f,Oe.IS_ASYNC_INIT));m.length&&Promise.all(m.map(f=>d(f))).then(()=>{h()}).catch(f=>{console.warn(f)})};return{asyncNodeClick:d,deepAutoOpen:h}},b$=(e,t,n,r,i)=>{let s=e.selected;const{setNodeAttr:l,setNodeAttrById:u,getNodePath:d,getSchemaVal:h,getNodeAttr:m,getNodeId:f,getChildNodes:p,isRootNode:y,hasChildNode:b,isItemOpen:w,isNodeOpened:C,isNodeLoading:N,isNodeChecked:S,getParentNode:x,resolveScopedSlotParam:_,extendNodeAttr:O,extendNodeScopedData:T}=Xu(n,e),{resolveClassName:I}=Ae(),{registerNextLoop:A}=i,{asyncNodeClick:P,deepAutoOpen:k}=Pb(e,n),L=ee=>w(ee)?a.createVNode(Tc,{class:[I("tree-icon"),I("node-prefix")]},null):a.createVNode(Sc,{class:[I("tree-icon"),I("node-prefix")]},null),D=ee=>{if(typeof ee=="string")return ee;if(typeof ee=="object"&&ee!==null){if(a.isVNode(ee))return ee;const{node:ye,className:he,text:j,style:X}=ee;return a.h(ye,{class:he,style:X},j)}return null},H=ee=>{var ye,he;return((he=(ye=t.slots).nodeLoading)==null?void 0:he.call(ye,Y(ee)))??N(ee)?a.createVNode(gs,null,null):""},B=ee=>{if(t.slots.nodeAction)return t.slots.nodeAction(Y(ee));let ye=null;if(N(ee))return H(ee);if(typeof e.prefixIcon=="function"&&(ye=e.prefixIcon(Y(ee),"node_action"),ye!=="default"))return D(ye);if(ye==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon){const he=typeof e.autoCheckChildren=="function"?e.autoCheckChildren(ee):e.autoCheckChildren;if(b(ee)||ee.async||!he)return w(ee)?a.createVNode(Lo,{class:I("node-prefix")},null):a.createVNode(ko,{class:I("node-prefix")},null)}return null},W=ee=>{if(!e.showNodeTypeIcon)return null;if(t.slots.nodeType)return t.slots.nodeType(Y(ee));let ye=null;return typeof e.prefixIcon=="function"&&(ye=e.prefixIcon(Y(ee),"node_type"),ye!=="default")?D(ye):ye==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon?y(ee)||b(ee)?L(ee):a.createVNode(Pc,{class:[I("tree-icon"),I("node-prefix")]},null):null},J=(ee,ye)=>{const he=x(ee);if(he){const j=ye||(p(he)||[]).some(X=>S(X));l(he,Oe.IS_CHECKED,j),l(he,Oe.IS_INDETERMINATE,(p(he)||[]).some(X=>!S(X)||ae(X))),y(he)||J(he,ye)}},G=(ee,ye,he)=>{p(ee).forEach(j=>{Array.isArray(ye)?ye.forEach((X,we)=>{l(j,X,he[we])}):l(j,ye,he),G(j,ye,he)})},K=ee=>{var ye,he,j;return(he=(ye=e.async)==null?void 0:ye.trigger)!=null&&he.length?(j=e.async)==null?void 0:j.trigger.includes(ee):!0},le=(ee,ye,he)=>{he==null||he.preventDefault(),he==null||he.stopImmediatePropagation(),he==null||he.stopPropagation(),l(ee,Oe.IS_CHECKED,!!ye),ye&&l(ee,Oe.IS_INDETERMINATE,!1),e.checkStrictly&&(G(ee,[Oe.IS_CHECKED,Oe.IS_INDETERMINATE],[!!ye,!1]),J(ee,ye)),t.emit(kn.NODE_CHECKED,n.data.filter(j=>S(j)),n.data.filter(j=>ae(j))),oe(ee,he,"checked")},ae=ee=>S(ee)&&m(ee,Oe.IS_INDETERMINATE),$=ee=>Vb(e,T(ee))?a.createVNode("span",{class:"node-check-box",onClick:te},[a.createVNode(wn,{disabled:e.disableCheck,indeterminate:ae(ee),modelValue:S(ee),size:"small",onChange:(ye,he)=>le(ee,!!ye,he)},null)]):null,M=(ee,ye=null,he=null,j=!0)=>{const X=ye===null?!w(ee):!!ye;if(X||G(ee,Oe.IS_OPEN,X),l(ee,Oe.IS_OPEN,X),j){const we=w(ee)?kn.NODE_EXPAND:kn.NODE_COLLAPSE;t.emit(we,ee,_(ee),h(ee),he)}},V=(ee,ye,he)=>{if(Array.isArray(ee)){ee.forEach(j=>l(wl(j),ye,he));return}l(wl(ee),ye,he)},z=(ee,ye=!0,he=!1)=>{q(ee,Oe.IS_OPEN,ye,he&&ye)},q=(ee,ye,he,j=!1)=>{const X=wl(ee);if(X[Oe.IS_NULL])return;const we=Array.isArray(ye)?ye:[ye],de=Array.isArray(he)?he:[he];if(j){if(we.forEach((ne,ge)=>V(X,ne,de[ge])),!y(X)){const ne=x(X);we.forEach((ge,Se)=>{m(ne,ge)!==he&&q(ne,ge,de[Se],j)})}}else we.forEach((ne,ge)=>V(X,ne,de[ge]))},se=(ee,ye,he)=>{if(w(ee)){M(ee,!1,ye,!0);return}m(ee,Oe.IS_ASYNC)&&K(he)?P(ee).finally(()=>{m(ee,Oe.IS_LOADING)?A("setNodeOpenedAfterLoading",{type:"once",fn:()=>M(ee,!0,ye,!0)}):M(ee,!0,ye,!0)}):M(ee,!0,ye,!0)},ce=(ee,ye)=>{ee.stopImmediatePropagation(),ee.stopPropagation(),ee.preventDefault(),se(ye,ee,"expand")},Ce=(ee,ye=!0,he=!0,j=!1,X="")=>{const we=Array.isArray(ee)?ee:[ee];if(!we.length)return;let de=wl(we[0]);if((typeof de=="string"||typeof de=="number"||typeof de=="symbol")&&(de=n.data.find(ne=>f(ne)===de)??{[Oe.IS_NULL]:!0}),!de[Oe.IS_NULL]){if(!e.selectable||typeof e.selectable=="function"&&!e.selectable(ee)||e.disabledFolderSelectable&&de.is_folder===!0){console.warn("props.selectable is false or undefined, please set selectable with true");return}s!=null&&u(s,Oe.IS_SELECTED,!ye),e.selected&&e.selected!==s&&u(e.selected,Oe.IS_SELECTED,!ye),l(de,Oe.IS_SELECTED,ye),s=f(de),j&&t.emit(kn.NODE_SELECTED,{selected:ye,node:de}),he&&we.length===1&&z(de,!0,!0),m(de,Oe.IS_ASYNC)&&K(X)&&P(de).then(()=>{a.nextTick(()=>{we.shift(),Ce(we,ye,he,j,X)})})}},re=ee=>typeof e.nodeContentAction=="function"?Reflect.apply(e.nodeContentAction,void 0,[{node:ee}]):typeof e.nodeContentAction=="string"?[e.nodeContentAction]:Array.isArray(e.nodeContentAction)?e.nodeContentAction:["selected","expand","click"],oe=(ee,ye,he)=>{const j=re(ee),X=C(ee),we=he==="checked";if(j.includes("selected")){const ne=!(j.includes("expand")||j.includes("collapse"));Ce(ee,!0,ne,!0,he)}if(j.includes("expand")&&!X&&!we&&se(ee,ye,"expand"),j.includes("collapse")&&X&&!we&&se(ee,ye,"expand"),j.includes("click")&&!we){const de=kn.NODE_CLICK;t.emit(de,ee,_(ee),h(ee),ye)}},pe=(ee,ye)=>{if(y(ye))return!1;const he=d(ye),j=`${he}`.split("-").slice(0,ee+1);if(j.join("-")===he)return!0;const we=j.pop(),de=parseInt(we,10);j.push(`${de+1}`);const ne=j.join("-");return n.data.some(ge=>d(ge)===ne)},Q=ee=>{if(!e.levelLine)return null;const ye=j=>({"--depth":j}),he=(m(ee,Oe.DEPTH)??0)+1;return new Array(he).fill("").map((j,X)=>X).filter(j=>pe(j,ee)).filter(j=>j>0).map(j=>a.createVNode("span",{style:ye(he-j),class:"node-virtual-line"},null))},Z=ee=>{var ye,he,j,X;return t.slots.node?(he=(ye=t.slots).node)==null?void 0:he.call(ye,Y(ee)):t.slots.default?(X=(j=t.slots).default)==null?void 0:X.call(j,T(ee)):[Ib(ee,e)]},Y=ee=>e.keepSlotData?T(ee):O(ee),te=ee=>{ee.stopImmediatePropagation(),ee.stopPropagation()};return{renderTreeNode:(ee,ye=!0)=>{var j,X;const he=B(ee);return a.createVNode("div",{key:f(ee),class:g$(ee,n.schema),"data-tree-node":f(ee)},[a.createVNode("div",{style:m$(ee,e,n,ye),class:p$(ee,n.schema,e,ye),onClick:we=>oe(ee,we,"click")},[a.createVNode("div",{class:[I("node-action"),he?"":"empty-child"],onClick:we=>ce(we,ee)},[he]),a.createVNode("div",{class:I("node-content")},[[$(ee),W(ee)],a.createVNode("span",{class:I("node-text")},[Z(ee)]),(X=(j=t.slots).nodeAppend)==null?void 0:X.call(j,Y(ee))]),ye&&Q(ee)])])},handleTreeNodeClick:se,deepAutoOpen:k,asyncNodeClick:P,setNodeAction:V,setNodeOpened:M,setSelect:Ce,setOpen:z,setNodeAttribute:q,isIndeterminate:ae,deepUpdateChildNode:G,updateParentChecked:J}};function w$(){return{moveElement:(t,n,r,i=0,s=0,l="insertAfter")=>{if(n<0||r<0||n>=t.length||r>=t.length||n===r&&l==="insertAfter"||n+i>=t.length||r+s>=t.length)return Array.from(t);const u=Array.from(t),d=u.splice(n,i+1);let h=r;n<r&&(h=r-(i+1));const m=h+s+(l==="insertAfter"?1:0),f=Math.max(0,Math.min(m,u.length));return u.splice(f,0,...d),u}}}const C$=(e,t,n,r)=>{const{getSourceNodeByUID:i,getParentNode:s,extendNodeAttr:l,getNodeIndexByNode:u,setNodeAttr:d,getNodeAttr:h,getRootNodeList:m}=Xu(r,e),{resolveClassName:f}=Ae(),p=a.computed(()=>typeof e.disableDrag=="function"),y=a.computed(()=>typeof e.disableDrop=="function"),b=e.dragThreshold||.2;let w="",C=null,N=null,S=new WeakMap;const{moveElement:x}=w$(),_=V=>V.target.closest("[data-tree-node]"),O=V=>{var q;const z=(q=V==null?void 0:V.dataset)==null?void 0:q.treeNode;return i(z)},T=(V,z,q)=>{q.forEach(se=>V.classList.remove(se)),z.forEach(se=>V.classList.add(se))},I=V=>{_(V).removeEventListener("mouseup",I)},A=V=>{var se;const z=_(V),q=O(z);if((q==null?void 0:q.draggable)===!1||p.value&&((se=e.disableDrag)!=null&&se.call(e,q))){z==null||z.classList.add(`${f("tree-drag-disabled")}`);return}z==null||z.setAttribute("draggable","true"),z==null||z.addEventListener("mouseup",I)},P="drop-before",k="drop-after",L="drop-inner";let D=null;const H=vi(V=>{if(V.preventDefault(),!C)return;const z=_(V);D!==z&&(D==null||D.classList.remove(P,k,L),D=z);const q=l(O(z));S.has(z)||S.set(z,z.getBoundingClientRect());const se=V.clientY,{top:ce,height:Ce}=S.get(z),re=Ce*b,oe=se-ce;if(oe<re?T(z,[P],[k,L]):oe>Ce-re?T(z,[k],[P,L]):T(z,[L],[P,k]),t.emit(kn.NODE_DRAG_OVER,V,z,q),y.value&&(e!=null&&e.disableDrop(N,"move",q))){V.dataTransfer.effectAllowed="move",V.dataTransfer.dropEffect="none",z.classList.add(`${f("tree-drop-disabled")}`);return}z.classList.add(`${f("tree-drop-active")}`);const pe=z.getAttribute("data-tree-node"),Q=J(w,pe)?"move":"none";V.dataTransfer.effectAllowed=Q,V.dataTransfer.dropEffect=Q}),B=V=>{V.dataTransfer.effectAllowed="move",V.dataTransfer.dropEffect="move";const z=_(V);V.dataTransfer.setData("text/plain","");const q=z.getAttribute("data-tree-node");w=q,C=z,N=i(q),V.dataTransfer.setData("node-id",q),t.emit(kn.NODE_DRAG_START,V,z)},W=V=>{V.preventDefault(),V.stopPropagation();const z=_(V);if(!z)return;z.classList.remove(`${f("tree-drop-active")}`,`${f("tree-drop-disabled")}`);const q=D==null?void 0:D.classList.contains(L),se=l(O(z));if(y.value&&e.disableDrop(N,q?"child":"sort",se))return;const ce=w,Ce=z.getAttribute("data-tree-node");ce!==Ce&&(q?Reflect.apply($,void 0,[ce,Ce]):(D!=null&&D.classList.contains(k)||D!=null&&D.classList.contains(P))&&Reflect.apply(ae,void 0,[ce,Ce]),t.emit(kn.NODE_DROP,V,z,se)),S=new WeakMap,D==null||D.classList.remove(k,P,L),D=null,N=null},J=(V,z)=>V!==z,G=V=>{const z=[],q=se=>{r.data.filter(Ce=>s(Ce)===se).forEach(Ce=>{z.push(Ce),q(Ce)})};return q(V),z},K=(V,z)=>{let q=u(V),se=u(z);const ce=G(V),Ce=G(z),re=D!=null&&D.classList.contains(P)?"insertBefore":"insertAfter",oe=x(r.data,q,se,ce.length,Ce.length,re);return r.data=oe,{sourceNodeIndex:q,targetNodeIndex:se}},le=(V,z)=>{const q=(h(z,Oe.DEPTH)??-1)+1;d(V,Oe.PARENT,z),d(V,Oe.DEPTH,q),d(V,Oe.IS_ROOT,q===0);let se=0;const ce=(re,oe=0,pe="")=>{for(let Q=0;Q<re.length;Q++){const Z=re[Q],Y=pe!==""?`${pe}-${Q}`:`${Q}`;d(Z,Oe.INDEX,se),d(Z,Oe.ORDER,se),d(Z,Oe.DEPTH,oe),d(Z,Oe.PATH,Y),se+=1;const te=r.data.filter(Ne=>s(Ne)===Z);te.length>0&&ce(te,oe+1,Y)}},Ce=m();ce(Ce)},ae=(V,z)=>{if(!e.dragSort||!J(V,z))return;const q=i(V),se=i(z);if(!q||!se)return;const ce=s(q),Ce=s(se);if(e.dragSortMode==="next"&&ce!==Ce)return;const{sourceNodeIndex:re,targetNodeIndex:oe}=K(q,se);le(q,Ce),t.emit(kn.NODE_DRAG_SORT,{sourceNode:q,targetNode:se,sourceIndex:re,targetIndex:oe})},$=(V,z)=>{const q=i(V),se=i(z);K(q,se),se[e.children]||(se[e.children]=[]),le(q,se)},M=V=>{V.preventDefault();const z=_(V);S.has(z)&&S.delete(z),z.classList.remove(`${f("tree-drop-active")}`,`${f("tree-drop-disabled")}`),z.classList.remove(k,P,L),t.emit(kn.NODE_DRAG_LEAVE,V,z)};a.onMounted(()=>{if((e.draggable||e.dragSort)&&n.value){const V=n.value.$el;V.addEventListener("mousedown",A),V.addEventListener("dragstart",B),V.addEventListener("dragover",H),V.addEventListener("dragleave",M),V.addEventListener("drop",W)}}),a.onUnmounted(()=>{if((e.draggable||e.dragSort)&&n.value){const V=n.value.$el;V.removeEventListener("mousedown",A),V.removeEventListener("dragstart",B),V.removeEventListener("dragover",H),V.removeEventListener("dragleave",M),V.removeEventListener("drop",W)}})},N$=e=>{const t=a.toRef(e,"search"),{resultType:n="tree",showChildNodes:r=!0}=e.search??{},i=p=>["string","number","boolean"].includes(typeof p),s=(p,y)=>p===y,l=(p,y)=>new RegExp(`${p}`,"i").test(`${y}`),u=(p,y)=>Reflect.apply(p,void 0,y),d=t.value===void 0||t.value===!1,h=(p,y)=>{if(d)return!0;if(i(t.value))return`${t.value}`.length===0?!1:u(l,[t.value,p,y]);const{value:b="",match:w="fuzzy"}=t.value,N=typeof w=="function"?w:w==="fuzzy"?l:s;return`${b}`.length===0?!1:u(N,[b,p,y])},m=a.computed(()=>{if(t.value===!1)return!1;if(i(t.value))return`${t.value}`.length>0;const{value:p=""}=t.value;return`${p}`.length>0}),f=a.computed(()=>n==="tree");return{searchFn:h,refSearch:t,isSearchActive:m,isSearchDisabled:d,resultType:n,isTreeUI:f,showChildNodes:r}},_$=e=>{var w;const t=(C=void 0,N=null)=>{const{data:S,children:x}=e,_=[],O=[];let T=0;const I=new WeakMap;function A(K,le,ae,$){if(K!=null&&I.has(K)){const M=I.get(K);if(Object.prototype.hasOwnProperty.call(M,le)&&typeof $=="function"&&Reflect.apply($,self,[M,le,ae,K])){if(M[le]===ae)return;Object.assign(M,{[le]:ae}),A(M[Oe.PARENT],le,ae,$)}}}function P(K){let le=null;return typeof e.nodeKey=="string"&&(le=K[e.nodeKey]||Er()),le||K[Oe.UUID]||Er()}const k={[Oe.IS_OPEN]:()=>!!e.expandAll,[Oe.IS_CHECKED]:()=>!1,[Oe.IS_MATCH]:()=>!1,[Oe.IS_SELECTED]:(K,le)=>Ju(K,e.selected,le),[Oe.IS_CACHED]:()=>!1,[Oe.IS_ASYNC]:()=>null,[Oe.IS_LOADING]:()=>!1};function L(K,le,ae,$=void 0){let M=$;$===void 0&&typeof k[ae]=="function"&&(M=k[ae](le,K));const V=ei[ae];if(Object.prototype.hasOwnProperty.call(le,V))return le[V];const z=(N==null?void 0:N.get(le))??void 0;let q;return z&&(q=z[ae]),q==null&&(q=M),q}function D(K,le){if(!e.selectable)return!1;const ae=Ju(le,e.selected,K);return L(K,le,Oe.IS_SELECTED,ae)}function H(K,le,ae){var V;const $=L(K,le,Oe.IS_OPEN),M=I.has(ae)?(V=I.get(ae))==null?void 0:V[Oe.IS_OPEN]:!0;return $&&M}function B(K,le,ae){if(!Vb(e,{data:K,attributes:ae}))return!1;const M=Ju(K,e.checked,le);return L(le,K,Oe.IS_CHECKED,M)}function W(K){return!((K==null?void 0:K[Oe.IS_OPEN])??!1)}function J(K,le,ae,$){return K[Oe.IS_INDETERMINATE]=($[e.children]||[]).some(M=>{var V;return!(((V=I.get(M))==null?void 0:V[Oe.IS_CHECKED])??!1)}),!0}function G(K,le=0,ae=null,$=null){const M=K.length;for(let V=0;V<M;V++){const z=K[V];if(Array.isArray(z))G(z,le,ae,$);else if(typeof z=="object"&&z!==null){const q=$!==null?`${$}-${V}`:`${V}`,se=`${P(z)}`,ce=!!(z[x]||[]).length;let Ce=L(se,z,Oe.IS_OPEN);e.autoOpenParentNode?Ce&&A(ae,Oe.IS_OPEN,!0,W):Ce=H(se,z,ae);const re={[Oe.DEPTH]:le,[Oe.INDEX]:T,[Oe.UUID]:se,[Oe.PARENT]:ae,[Oe.HAS_CHILD]:ce,[Oe.PATH]:q,[Oe.IS_ROOT]:ae===null,[Oe.ORDER]:T,[Oe.IS_SELECTED]:D(se,z),[Oe.IS_MATCH]:L(se,z,Oe.IS_MATCH),[Oe.IS_OPEN]:Ce,[Oe.IS_CHECKED]:void 0,[Oe.IS_CACHED]:L(se,z,Oe.IS_CACHED),[Oe.IS_ASYNC]:L(se,z,Oe.IS_ASYNC),[Oe.IS_LOADING]:L(se,z,Oe.IS_LOADING),[Oe.IS_INDETERMINATE]:!1};re[Oe.IS_CHECKED]=B(z,se,re),re[Oe.IS_CHECKED]&&_.push(z),I.set(z,re),O.push(z),T+=1,Object.prototype.hasOwnProperty.call(z,x)&&G(z[x]||[],le+1,z,q)}}}return G(C??S),e.showCheckbox!==!1&&e.checkStrictly&&(_==null||_.forEach(K=>{A(K,Oe.IS_CHECKED,!0,J)})),[O,I]},n=t(),r=new Map,i=[],s=[],l=a.reactive({data:n[0],schema:n[1],levelLineSchema:{}}),{asyncNodeClick:u,deepAutoOpen:d}=Pb(e,l),h=C=>{i.push(C)},m=(C,N,S=!0)=>{S&&r.has(C)&&r.delete(C),r.set(C,N)},f=C=>typeof C=="function"?{type:"loop",fn:C}:typeof C=="object"&&typeof C.type=="string"&&typeof C.fn=="function"?C:(console.error("loop event error",C),null),p=C=>{const N=f(C);return N!==null&&Reflect.apply(N.fn,void 0,[]),(N==null?void 0:N.type)??"once"},y=()=>{Array.from(r.keys()).forEach(C=>{const N=r.get(C);if(Array.isArray(N)){const S=[];N.forEach((x,_)=>{p(x)==="once"&&S.unshift(_)}),S.length&&S.forEach(x=>N.splice(x,1)),N.length===0&&r.delete(C)}else p(N)==="once"&&r.delete(C)})};a.watch(()=>[e.data],C=>{var S,x;const N=t(C[0],l.schema);l.data=N[0],l.schema=N[1],(S=e.async)!=null&&S.callback&&((x=e.async)==null?void 0:x.deepAutoOpen)==="every"&&d(),y()},{deep:!0}),e.selectable&&a.onMounted(()=>{a.watch(()=>e.selected,C=>{s.length=0,i.forEach(N=>{Reflect.apply(N,void 0,[C]),s.push(()=>Reflect.apply(N,void 0,[C]))}),m("afterSelectWatch",s)},{immediate:!0})});const b=C=>{m("afterDataUpdate",C)};return(w=e.async)!=null&&w.callback&&d(),{flatData:l,asyncNodeClick:u,deepAutoOpen:d,afterDataUpdate:b,registerNextLoop:m,onSelected:h}},kb=ut(a.defineComponent({name:"Tree",props:u$,emits:c$,setup(e,t){const n=a.ref(),{flatData:r,onSelected:i,registerNextLoop:s}=_$(e),{checkNodeIsOpen:l,isRootNode:u,isNodeOpened:d,isNodeChecked:h,isNodeMatched:m,hasChildNode:f,getNodePath:p,getNodeId:y,getNodeAttr:b,getNodeById:w,getParentNode:C,getRootNodeList:N,getIntersectionResponse:S}=Xu(r,e),{searchFn:x,isSearchActive:_,refSearch:O,isSearchDisabled:T,isTreeUI:I,showChildNodes:A}=N$(e),P=a.reactive([]),k=te=>{if(_.value){if(A){const ee=`${p(te)??""}-`,ye=l(te),he=m(te),j=u(te);return ye?j?he:he||P.some(X=>ee.indexOf(`${X}-`)===0):!1}return l(te)&&m(te)}return l(te)},L=a.computed(()=>r.data.filter(te=>k(te))),{getLastVisibleElement:D,intersectionObserver:H}=f$(e),{renderTreeNode:B,handleTreeNodeClick:W,setOpen:J,setNodeAction:G,setSelect:K,asyncNodeClick:le,setNodeAttribute:ae,isIndeterminate:$,deepUpdateChildNode:M,updateParentChecked:V}=b$(e,t,r,L,{registerNextLoop:s}),z=yo(120,()=>{P.length=0,r.data.forEach(te=>{const Ne=x(Ib(te,e),te);Ne&&P.push(p(te)),ae(te,[Oe.IS_MATCH],[Ne],I.value&&Ne)})});T||a.watch([O],()=>{z()},{deep:!0,immediate:!0}),a.onMounted(()=>{e.virtualRender&&a.nextTick(()=>{re()})});const q=(te,Ne=!0,ee=!1)=>{(j=>{if(Array.isArray(j))return j.map(X=>typeof X=="string"||typeof X=="number"?w(X):X).filter(Boolean);if(typeof j=="string"||typeof j=="number"){const X=w(j);return X?[X]:[]}return[j].filter(Boolean)})(te).forEach(j=>{const X=wl(j);G(X,Oe.IS_CHECKED,Ne),Ne&&G(X,Oe.IS_INDETERMINATE,!1),e.checkStrictly&&(M(X,[Oe.IS_CHECKED,Oe.IS_INDETERMINATE],[Ne,!1]),V(X,Ne))}),ee&&t.emit(kn.NODE_CHECKED,r.data.filter(j=>h(j)),r.data.filter(j=>$(j)))};i(te=>{K(te,!0,e.autoOpenParentNode,!0)});const se=()=>{const te=Ne=>(Ne??[]).map(ee=>{const ye=l$.cloneDeep(ee);if(!ye)return ye;const he=r.data.filter(j=>C(j)===ee);return ye[e.children]=te(he),ye});return te(N())},ce=te=>te?{data:se(),schema:r.schema,levelLineSchema:r.levelLineSchema}:r;a.watch(()=>[e.checked],()=>{r.data.forEach(te=>{(h(te)||$(te))&&(G(te,Oe.IS_CHECKED,!1),G(te,Oe.IS_INDETERMINATE,!1))}),q(e.checked,!0)},{immediate:!0});const Ce=()=>{var te;(te=n.value)==null||te.reset()},re=te=>{if(te==null){n.value.fixToTop({index:1});return}if(e.nodeKey&&Object.prototype.hasOwnProperty.call(te,e.nodeKey)){n.value.fixToTop({index:L.value.findIndex(ee=>ee[e.nodeKey]===te[e.nodeKey])+1});return}if(te.id!==void 0&&te.id!==null){n.value.fixToTop({index:L.value.findIndex(ee=>ee[e.nodeKey]===te.id)+1});return}if(te.index>=0){n.value.fixToTop({index:te.index});return}const Ne=y(te);if(Ne){n.value.fixToTop({index:L.value.findIndex(ee=>y(ee)===Ne)+1});return}},oe=(te,Ne=!0,ee=!1)=>{q(w(te),Ne,ee)};t.expose({handleTreeNodeClick:W,isNodeChecked:h,isRootNode:u,isNodeOpened:d,isNodeMatched:m,hasChildNode:f,setOpen:J,setChecked:q,setCheckedById:oe,setNodeAction:G,setNodeOpened:J,setSelect:K,scrollToTop:re,asyncNodeClick:le,getData:ce,reset:Ce,getNodeAttr:b,getParentNode:C});const{renderEmpty:pe}=d$(e);C$(e,t,n,r);const Q=te=>{var ee,ye;if(te.length)return te.map(he=>B(he,!_.value||I.value));const Ne=_.value?"search-empty":"empty";return((ye=(ee=t.slots).empty)==null?void 0:ye.call(ee))??pe(Ne)},Z=([te,Ne,ee])=>{var ye,he,j,X;if(H.value.enabled&&te.offset.y>5){if(!e.virtualRender){const de=D(te.offset.y,n.value.refRoot),ne=S(de[0]);(he=(ye=H.value)==null?void 0:ye.callback)==null||he.call(ye,ne),t.emit(kn.NODE_ENTER_VIEW,ne);return}const we=S(ee.slice(-1)[0]);(X=(j=H.value)==null?void 0:j.callback)==null||X.call(j,we),t.emit(kn.NODE_ENTER_VIEW,we);return}},{resolveClassName:Y}=Ae();return()=>a.createVNode(qo,{ref:n,style:h$(null,e),height:e.height,class:Y("tree"),contentClassName:Y("container"),enabled:e.virtualRender,keepAlive:!0,lineHeight:e.lineHeight,list:L.value,rowKey:Oe.UUID,throttleDelay:0,onContentScroll:Z},{default:te=>Q(te.data||[])})}})),ki="upload";var _a=(e=>(e.BUTTON="button",e.DRAGGABLE="draggable",e.PICTURE="picture",e))(_a||{}),g6=(e=>(e.BINARY="binary",e.FORMDATA="formdata",e))(g6||{}),Ms=(e=>(e.FAIL="fail",e.NEW="new",e.SUCCESS="success",e.UPLOADING="uploading",e))(Ms||{});const Mb=[_a.BUTTON,_a.DRAGGABLE,_a.PICTURE],$b=[g6.FORMDATA,g6.BINARY],mr={type:{type:String,default:"formdata",validator:e=>!e||$b.includes(e)?!0:(console.error(`invalid type, ${e}, the type must be one of 【${$b.join(" | ")}】`),!1)},theme:{type:String,default:"draggable",validator:e=>!e||Mb.includes(e)?!0:(console.error(`invalid theme, ${e}, the theme must be one of 【${Mb.join(" | ")}】`),!1)},files:{type:Array,default:()=>[]},name:{type:String,default:"upload_file"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},accept:{type:String},delayTime:{type:Number,default:0},url:{type:String,required:!1},method:{type:String,default:"post"},size:{type:[Number,Object],default(){return{maxFileSize:5,maxImgSize:1}}},handleResCode:{type:Function,default(e){return!!(e&&e.code===0)}},headers:{type:Object,default:()=>({})},header:{type:[Array,Object],default:()=>[]},tip:{type:String,default:""},validateName:{type:RegExp},withCredentials:{type:Boolean,default:!1},limit:Number,data:{type:[Array,Object],default:()=>[]},formDataAttributes:{type:[Array,Object],default:()=>[]},extCls:{type:String,default:""},customRequest:Function,selectChange:{type:Function},beforeUpload:{type:Function},beforeRemove:{type:Function},sliceUpload:{type:Boolean,default:!1},sliceUrl:{type:String,default:""},mergeUrl:{type:String,default:""},chunkSize:{type:Number,default:10},isShowPreview:{type:Boolean,default:!0}};function Fb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const x$=a.defineComponent({name:"UploadList",props:{theme:mr.theme,disabled:mr.disabled,files:mr.files,multiple:mr.multiple,isShowPreview:mr.isShowPreview},emits:["remove","preview","retry"],setup(e,{slots:t,emit:n}){const r=St("upload"),{resolveClassName:i}=Ae(),{theme:s,disabled:l,multiple:u,isShowPreview:d}=a.toRefs(e),h=`${i(ki)}-list`,m=a.computed(()=>s.value===_a.PICTURE),f=a.computed(()=>m.value&&!u.value),p=a.computed(()=>Ze({[h]:!0,[`${h}--${s.value}`]:!0,[`${h}--disabled`]:l.value}));function y(T){const I=["Bytes","KB","MB","GB","TB"],A=Math.floor(Math.log(T)/Math.log(1024));return`${(T/1024**A).toFixed(2)}${I[A]}`}function b(T,I,A){n("preview",T,I,A)}function w(T,I){n("remove",T,I)}function C(T,I){n("retry",T,I)}const N=()=>{let T;return a.createVNode(a.TransitionGroup,{name:`${h}__item`},Fb(T=e.files.map(I=>{const A=Ze({[`${h}__item`]:!0,[`${h}__item-picture`]:!0,[`${h}__item--${I.status}`]:!0});return a.createVNode("li",{key:I.uid,class:A},[t!=null&&t.file?t.file({file:I}):S(I)])}))?T:{default:()=>[T]})},S=T=>[a.withDirectives(a.createVNode("img",{class:`${h}__picture-item-thumbnail`,alt:"",src:T.url},null),[[a.vShow,T.status!=="uploading"]]),a.createVNode(a.Fragment,null,[T.status==="uploading"&&a.createVNode(pl,{width:50,class:`${h}__picture-item-progress`,bgColor:"#333",color:"#3a84ff",percent:T.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!l.value&&a.createVNode("div",{class:`${h}__picture-item-actions`},[d.value&&a.createVNode(ps,{class:"action-icon",onClick:I=>b(T,e.files,I)},null),a.createVNode(ms,{class:"action-icon",onClick:I=>w(T,I)},null)])])],x=()=>{let T;return a.createVNode(a.TransitionGroup,{name:`${h}__item`},Fb(T=e.files.map(I=>{const A=Ze({[`${h}__item`]:!0,[`${h}__item--${I.status}`]:!0});return a.createVNode("li",{key:I.uid,class:A},[t!=null&&t.file?t.file({file:I}):O(I)])}))?T:{default:()=>[T]})},_=T=>{var D;const I=(D=T==null?void 0:T.raw)==null?void 0:D.type,[A]=(I==null?void 0:I.split("/"))||"";let k={text:ys,image:Ac,application:ys,video:Fc,audio:vc}[A]||ys;return["application/zip","application/rar","application/tar","application/gz","application/x-gzip"].includes(I)&&(k=hc),a.h(k,{class:`${h}__item-file-icon`})},O=T=>[a.createVNode("div",{class:`${h}__item-icon`},[T.isPic?a.createVNode("img",{class:`${h}__item-thumbnail`,alt:"",src:T.url},null):_(T)]),a.createVNode("div",{class:`${h}__item-summary`},[a.createVNode("div",{class:`${h}__item-name`,title:T.name},[T.name]),T.status!=="uploading"&&a.createVNode("div",{class:`${h}__item-message`,title:T.statusText},[T.status==="success"&&a.createVNode(a.Fragment,null,[a.createVNode(_i,{class:`${h}__item-message-success-icon`},null),T.statusText||r.value.uploadSuccess]),T.status==="fail"&&a.createVNode(a.Fragment,null,[T.statusText||r.value.uploadFailed])]),T.status==="uploading"&&a.createVNode(pl,{class:`${h}__item-progress`,percent:T.percentage,showText:!1,size:"small"},null),T.status!=="fail"&&a.createVNode("div",{class:`${h}__item-speed`},[a.withDirectives(a.createVNode("span",{class:`${h}__item-speed-size`},[y(T.size)]),[[a.vShow,T.size]]),a.withDirectives(a.createVNode("span",{class:`${h}__item-speed-percentage`},[T.percentage,a.createTextVNode("%")]),[[a.vShow,T.status==="uploading"]])]),!l.value&&a.createVNode("div",{class:`${h}__item-actions`},[T.status==="fail"&&a.createVNode(Rc,{class:`${h}__item-retry-icon`,onClick:I=>C(T,I)},null),a.createVNode(ms,{class:`${h}__item-del-icon`,onClick:I=>w(T,I)},null)])])];return()=>{var T,I,A;return a.createVNode(a.Fragment,null,[f.value?(I=t==null?void 0:t.innerTrigger)==null?void 0:I.call(t,(T=e.files)==null?void 0:T[0]):a.createVNode("ul",{class:p.value},[m.value?N():x(),(A=t==null?void 0:t.innerTrigger)==null?void 0:A.call(t)])])}}}),Hb=a.defineComponent({name:"UploadTrigger",props:{theme:mr.theme,disabled:mr.disabled,multiple:mr.multiple,accept:mr.accept,file:{type:Object},selectChange:mr.selectChange,isShowPreview:mr.isShowPreview},emits:["change","remove","preview"],setup(e,{slots:t,emit:n}){const r=St("upload"),{resolveClassName:i}=Ae(),{theme:s,disabled:l,file:u,multiple:d,accept:h,isShowPreview:m}=a.toRefs(e),f=`${i(ki)}-trigger`,p=a.computed(()=>s.value===_a.BUTTON),y=a.computed(()=>s.value===_a.DRAGGABLE),b=a.computed(()=>s.value===_a.PICTURE),w=a.computed(()=>b.value&&!d.value),C=a.computed(()=>b.value&&!h.value?"image/png,image/jpeg,image/jpg":h.value),N=a.ref(null),S=a.computed(()=>{var J;return Ze({[f]:!0,[`${f}--${s.value}`]:!0,[`${f}--single-picture`]:w.value,[`${f}--has-file`]:u.value??!1,[`${f}--${(J=u.value)==null?void 0:J.status}`]:u.value??!1,[`${f}--dragover`]:P.value,[`${f}--disabled`]:l.value})}),x=()=>{N.value.value=null,N.value.click()},_=J=>{var K;if(e.selectChange&&((K=e.selectChange)==null?void 0:K.call(e,J))===!1)return!1;const{files:G}=J.target;n("change",Array.from(G))},O=()=>{e.disabled||x()},T=J=>{J.defaultPrevented||J.target!==J.currentTarget||((J.code==="Enter"||J.code==="Space")&&x(),J.preventDefault())};function I(J,G){n("remove",J,G),G.stopPropagation(),G.preventDefault()}function A(J,G){n("preview",J,[J],G),G.stopPropagation(),G.preventDefault()}const P=a.ref(!1),k=()=>{const J=ae=>{var M;if(l.value)return;if(ae.preventDefault(),P.value=!1,e.selectChange&&((M=e.selectChange)==null?void 0:M.call(e,ae))===!1)return!1;const $=Array.from(ae.dataTransfer.files);n("change",$)},G=ae=>{ae.preventDefault(),P.value=!0},K=()=>{P.value=!1},le=Ze({[`${f}__draggable`]:!0});return a.createVNode("div",{class:le,onDragleave:K,onDragover:G,onDrop:J},[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode(Mo,{class:`${f}__draggable-icon`},null),a.createVNode("div",{class:`${f}__draggable-text`},[r.value.drapFileOr,a.createVNode("span",{class:`${f}__draggable-upload-link`},[r.value.clickUpload])])])])},L=()=>a.createVNode(a.Fragment,null,[w.value&&e.file?H(e.file):D()]),D=()=>a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode("div",{class:`${f}__picture-inner`},[a.createVNode(Po,{class:`${f}__picture-icon`},null),a.createVNode("div",{class:`${f}__picture-text`},[r.value.clickUpload])])]),H=J=>[a.withDirectives(a.createVNode("img",{class:`${f}__picture-thumbnail`,alt:"",src:J.url},null),[[a.vShow,J.status!=="uploading"]]),a.createVNode(a.Fragment,null,[J.status==="uploading"&&a.createVNode(pl,{width:50,class:`${f}__picture-progress`,bgColor:"#333",color:"#3a84ff",percent:J.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!e.disabled&&a.createVNode("div",{class:`${f}__picture-actions`},[m.value&&a.createVNode(ps,{class:"action-icon",onClick:G=>A(J,G)},null),a.createVNode(ms,{class:"action-icon",onClick:G=>I(J,G)},null)])])],B=()=>a.createVNode(en,{disabled:l.value},{default:()=>[a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode(Mo,{class:`${f}__button-icon`},null),a.createVNode("span",{class:`${f}__button-text`},[r.value.uploadLabel])])])]}),W=()=>{if(p.value)return B();if(y.value)return k();if(b.value)return L()};return()=>{var J;return a.createVNode("div",{class:S.value,tabindex:"0",onClick:O,onKeydown:T},[t.trigger?[t.trigger(),(J=t==null?void 0:t.default)==null?void 0:J.call(t)]:W(),a.createVNode("input",{ref:N,class:`${f}__input-file`,accept:C.value,disabled:l.value,multiple:d.value,tabindex:"-1",type:"file",onChange:_},null)])}}});var v6={exports:{}},Bb;function S$(){return Bb||(Bb=1,function(e,t){(function(n){e.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(N,S){var x=N[0],_=N[1],O=N[2],T=N[3];x+=(_&O|~_&T)+S[0]-680876936|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[1]-389564586|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[2]+606105819|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[3]-1044525330|0,_=(_<<22|_>>>10)+O|0,x+=(_&O|~_&T)+S[4]-176418897|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[5]+1200080426|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[6]-1473231341|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[7]-45705983|0,_=(_<<22|_>>>10)+O|0,x+=(_&O|~_&T)+S[8]+1770035416|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[9]-1958414417|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[10]-42063|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[11]-1990404162|0,_=(_<<22|_>>>10)+O|0,x+=(_&O|~_&T)+S[12]+1804603682|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[13]-40341101|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[14]-1502002290|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[15]+1236535329|0,_=(_<<22|_>>>10)+O|0,x+=(_&T|O&~T)+S[1]-165796510|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[6]-1069501632|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[11]+643717713|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[0]-373897302|0,_=(_<<20|_>>>12)+O|0,x+=(_&T|O&~T)+S[5]-701558691|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[10]+38016083|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[15]-660478335|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[4]-405537848|0,_=(_<<20|_>>>12)+O|0,x+=(_&T|O&~T)+S[9]+568446438|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[14]-1019803690|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[3]-187363961|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[8]+1163531501|0,_=(_<<20|_>>>12)+O|0,x+=(_&T|O&~T)+S[13]-1444681467|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[2]-51403784|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[7]+1735328473|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[12]-1926607734|0,_=(_<<20|_>>>12)+O|0,x+=(_^O^T)+S[5]-378558|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[8]-2022574463|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[11]+1839030562|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[14]-35309556|0,_=(_<<23|_>>>9)+O|0,x+=(_^O^T)+S[1]-1530992060|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[4]+1272893353|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[7]-155497632|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[10]-1094730640|0,_=(_<<23|_>>>9)+O|0,x+=(_^O^T)+S[13]+681279174|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[0]-358537222|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[3]-722521979|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[6]+76029189|0,_=(_<<23|_>>>9)+O|0,x+=(_^O^T)+S[9]-640364487|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[12]-421815835|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[15]+530742520|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[2]-995338651|0,_=(_<<23|_>>>9)+O|0,x+=(O^(_|~T))+S[0]-198630844|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[7]+1126891415|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[14]-1416354905|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[5]-57434055|0,_=(_<<21|_>>>11)+O|0,x+=(O^(_|~T))+S[12]+1700485571|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[3]-1894986606|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[10]-1051523|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[1]-2054922799|0,_=(_<<21|_>>>11)+O|0,x+=(O^(_|~T))+S[8]+1873313359|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[15]-30611744|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[6]-1560198380|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[13]+1309151649|0,_=(_<<21|_>>>11)+O|0,x+=(O^(_|~T))+S[4]-145523070|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[11]-1120210379|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[2]+718787259|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[9]-343485551|0,_=(_<<21|_>>>11)+O|0,N[0]=x+N[0]|0,N[1]=_+N[1]|0,N[2]=O+N[2]|0,N[3]=T+N[3]|0}function s(N){var S=[],x;for(x=0;x<64;x+=4)S[x>>2]=N.charCodeAt(x)+(N.charCodeAt(x+1)<<8)+(N.charCodeAt(x+2)<<16)+(N.charCodeAt(x+3)<<24);return S}function l(N){var S=[],x;for(x=0;x<64;x+=4)S[x>>2]=N[x]+(N[x+1]<<8)+(N[x+2]<<16)+(N[x+3]<<24);return S}function u(N){var S=N.length,x=[1732584193,-271733879,-1732584194,271733878],_,O,T,I,A,P;for(_=64;_<=S;_+=64)i(x,s(N.substring(_-64,_)));for(N=N.substring(_-64),O=N.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<O;_+=1)T[_>>2]|=N.charCodeAt(_)<<(_%4<<3);if(T[_>>2]|=128<<(_%4<<3),_>55)for(i(x,T),_=0;_<16;_+=1)T[_]=0;return I=S*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(I[2],16),P=parseInt(I[1],16)||0,T[14]=A,T[15]=P,i(x,T),x}function d(N){var S=N.length,x=[1732584193,-271733879,-1732584194,271733878],_,O,T,I,A,P;for(_=64;_<=S;_+=64)i(x,l(N.subarray(_-64,_)));for(N=_-64<S?N.subarray(_-64):new Uint8Array(0),O=N.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<O;_+=1)T[_>>2]|=N[_]<<(_%4<<3);if(T[_>>2]|=128<<(_%4<<3),_>55)for(i(x,T),_=0;_<16;_+=1)T[_]=0;return I=S*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(I[2],16),P=parseInt(I[1],16)||0,T[14]=A,T[15]=P,i(x,T),x}function h(N){var S="",x;for(x=0;x<4;x+=1)S+=r[N>>x*8+4&15]+r[N>>x*8&15];return S}function m(N){var S;for(S=0;S<N.length;S+=1)N[S]=h(N[S]);return N.join("")}m(u("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function N(S,x){return S=S|0||0,S<0?Math.max(S+x,0):Math.min(S,x)}ArrayBuffer.prototype.slice=function(S,x){var _=this.byteLength,O=N(S,_),T=_,I,A,P,k;return x!==n&&(T=N(x,_)),O>T?new ArrayBuffer(0):(I=T-O,A=new ArrayBuffer(I),P=new Uint8Array(A),k=new Uint8Array(this,O,I),P.set(k),A)}}();function f(N){return/[\u0080-\uFFFF]/.test(N)&&(N=unescape(encodeURIComponent(N))),N}function p(N,S){var x=N.length,_=new ArrayBuffer(x),O=new Uint8Array(_),T;for(T=0;T<x;T+=1)O[T]=N.charCodeAt(T);return S?O:_}function y(N){return String.fromCharCode.apply(null,new Uint8Array(N))}function b(N,S,x){var _=new Uint8Array(N.byteLength+S.byteLength);return _.set(new Uint8Array(N)),_.set(new Uint8Array(S),N.byteLength),_}function w(N){var S=[],x=N.length,_;for(_=0;_<x-1;_+=2)S.push(parseInt(N.substr(_,2),16));return String.fromCharCode.apply(String,S)}function C(){this.reset()}return C.prototype.append=function(N){return this.appendBinary(f(N)),this},C.prototype.appendBinary=function(N){this._buff+=N,this._length+=N.length;var S=this._buff.length,x;for(x=64;x<=S;x+=64)i(this._hash,s(this._buff.substring(x-64,x)));return this._buff=this._buff.substring(x-64),this},C.prototype.end=function(N){var S=this._buff,x=S.length,_,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(_=0;_<x;_+=1)O[_>>2]|=S.charCodeAt(_)<<(_%4<<3);return this._finish(O,x),T=m(this._hash),N&&(T=w(T)),this.reset(),T},C.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},C.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},C.prototype.setState=function(N){return this._buff=N.buff,this._length=N.length,this._hash=N.hash,this},C.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},C.prototype._finish=function(N,S){var x=S,_,O,T;if(N[x>>2]|=128<<(x%4<<3),x>55)for(i(this._hash,N),x=0;x<16;x+=1)N[x]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(_[2],16),T=parseInt(_[1],16)||0,N[14]=O,N[15]=T,i(this._hash,N)},C.hash=function(N,S){return C.hashBinary(f(N),S)},C.hashBinary=function(N,S){var x=u(N),_=m(x);return S?w(_):_},C.ArrayBuffer=function(){this.reset()},C.ArrayBuffer.prototype.append=function(N){var S=b(this._buff.buffer,N),x=S.length,_;for(this._length+=N.byteLength,_=64;_<=x;_+=64)i(this._hash,l(S.subarray(_-64,_)));return this._buff=_-64<x?new Uint8Array(S.buffer.slice(_-64)):new Uint8Array(0),this},C.ArrayBuffer.prototype.end=function(N){var S=this._buff,x=S.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O,T;for(O=0;O<x;O+=1)_[O>>2]|=S[O]<<(O%4<<3);return this._finish(_,x),T=m(this._hash),N&&(T=w(T)),this.reset(),T},C.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},C.ArrayBuffer.prototype.getState=function(){var N=C.prototype.getState.call(this);return N.buff=y(N.buff),N},C.ArrayBuffer.prototype.setState=function(N){return N.buff=p(N.buff,!0),C.prototype.setState.call(this,N)},C.ArrayBuffer.prototype.destroy=C.prototype.destroy,C.ArrayBuffer.prototype._finish=C.prototype._finish,C.ArrayBuffer.hash=function(N,S){var x=d(new Uint8Array(N)),_=m(x);return S?w(_):_},C})}(v6)),v6.exports}var T$=S$();const Ub=Jt(T$),ti="An error occurred during upload";function Cl(e){const t=e.responseText||e.response;if(!t)return t||{};try{return JSON.parse(t)}catch{return t}}const E$=e=>{if(typeof XMLHttpRequest>"u")throw new Error("XMLHttpRequest is undefined");const t=new XMLHttpRequest,{action:n,type:r}=e,i=r==="formdata";t.upload&&t.upload.addEventListener("progress",u=>{const d=u;d.percent=u.total>0?u.loaded/u.total*100:0,e.onProgress(d)});const s=new FormData;if(i&&e.data){let u=e.data;Array.isArray(u)||(u=[u]),u.forEach(d=>{for(const[h,m]of Object.entries(d))Array.isArray(m)?s.append(h,...m):s.append(h,m)})}if(i&&e.formDataAttributes){let u=e.formDataAttributes;Array.isArray(u)||(u=[u]),u.forEach(d=>{Array.isArray(d.value)?s.append(d.name,...d.value):s.append(d.name,d.value)})}if(i&&s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{let u=new Error(ti);const d=Cl(t);d&&(u=new Error(d.message||ti)),console.log(d,u),e.onError(u)}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300){const u=Cl(t);let d=new Error(ti);return u&&(d=new Error(u.message||ti)),e.onError(d)}e.onSuccess(Cl(t))}),t.addEventListener("loadend",()=>{e.onComplete()}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0),e.header)if(Array.isArray(e.header))e.header.forEach(u=>{const d=u.name,h=u.value;t.setRequestHeader(d,h)});else{const u=e.header.name,d=e.header.value;t.setRequestHeader(u,d)}const l=e.headers||{};if(l instanceof Headers)l.forEach((u,d)=>t.setRequestHeader(d,u));else for(const[u,d]of Object.entries(l))L9(d)||t.setRequestHeader(u,String(d));return t.send(i?s:e.file),t},zb=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,O$=async e=>{const t=e.chunkSize*1024*1024,{file:n}=e;if(!n)throw new Error("File not found");const r=Math.ceil(n.size/t),i=await L$(n,t),s=[];A$(e,n,r,i,s,t),await Promise.all(s).then(()=>{const l={size:n.size,name:n.name,total:r,hash:i},u=new XMLHttpRequest;u.open(e.method,e.mergeUrl,!0),u.onreadystatechange=()=>{if(u.readyState===4){const d=Cl(u);if(u.status<200||u.status>=300){let h=new Error(ti);return d&&(h=new Error(d.message||ti)),e.onError(h)}e.onSuccess(d)}},u.onloadend=()=>{e.onComplete()},u.setRequestHeader("Content-type","application/JSON"),u.send(JSON.stringify(l))})},A$=(e,t,n,r,i,s)=>{for(let l=0;l<n;l++){const u=new Promise((d,h)=>{const m=l*s,f=Math.min(t.size,m+s),p=new FormData;if(e.data){let w=e.data;Array.isArray(w)||(w=[w]),w.forEach(C=>{for(const[N,S]of Object.entries(C))Array.isArray(S)?p.append(N,...S):p.append(N,S)})}if(e.formDataAttributes){let w=e.formDataAttributes;Array.isArray(w)||(w=[w]),w.forEach(C=>{Array.isArray(C.value)?p.append(C.name,...C.value):p.append(C.name,C.value)})}p.append("file",zb.call(t,m,f)),p.append("name",t.name),p.append("total",n.toString()),p.append("index",l.toString()),p.append("size",t.size.toString()),p.append("hash",r.toString());const y=new XMLHttpRequest;if(y.onreadystatechange=()=>{if(y.readyState===4){const w=Cl(y);if(y.status<200||y.status>=300){h(w);let C=new Error(ti);w&&(C=new Error(w.message||ti)),e.onError(C)}else d("reponseText")}},y.upload.addEventListener("progress",w=>{const C=w;e.onProgress(C,l)},!1),e.withCredentials&&"withCredentials"in y&&(y.withCredentials=!0),y.open(e.method,e.sliceUrl,!0),e.header)if(Array.isArray(e.header))e.header.forEach(w=>{const C=w.name,N=w.value;y.setRequestHeader(C,N)});else{const w=e.header.name,C=e.header.value;y.setRequestHeader(w,C)}const b=e.headers||{};if(b instanceof Headers)b.forEach((w,C)=>y.setRequestHeader(C,w));else for(const[w,C]of Object.entries(b))L9(C)||y.setRequestHeader(w,String(C));y.send(p)});i.push(u)}},L$=(e,t)=>new Promise((n,r)=>{const i=Math.ceil(e.size/t);let s=0;const l=new Ub.ArrayBuffer,u=new FileReader;function d(){const h=s*t,m=h+t>=e.size?e.size:h+t;u.readAsArrayBuffer(zb.call(e,h,m))}u.onload=h=>{if(l.append(h.target.result),s+=1,s<i)d();else{const m=l.end(),f=new Ub;f.append(m),f.append(e.name);const p=f.end();n(p)}},u.onerror=()=>{r(new Error("File slice failed"))},d()}).catch(n=>{console.log(n)});function jb(e){return Date.now()+e}const D$=(e,t)=>{const n=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),r=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),i=a.ref([]);function s(p){return i.value.find(y=>y.uid===p.uid)}let l=0;function u(p){var C;l+=1,p.uid=jb(l);const y={uid:p.uid,name:p.name,status:Ms.NEW,size:p.size,raw:p},b=p.type.startsWith("image/");let w=null;if(b){try{y.url=window.URL.createObjectURL(p)}catch(N){console.error(N)}y.isPic=!0}return e.validateName&&!((C=e.validateName)!=null&&C.test(y.name))&&(y.status=Ms.FAIL,y.statusText="invalid filename",w=new Error(y.statusText)),b&&p.size>n.value*1024**2&&(y.status=Ms.FAIL,y.statusText="invalid file size",w=new Error(y.statusText)),!b&&p.size>r.value*1024**2&&(y.status=Ms.FAIL,y.statusText="invalid file size",w=new Error(y.statusText)),i.value.push(y),w}async function d(p){var w;const y=p instanceof File?s(p):p,b=C=>{var N;t.onRemove(C,i.value),i.value.splice(i.value.indexOf(y),1),(N=C.url)!=null&&N.startsWith("blob:")&&URL.revokeObjectURL(C.url)};e.beforeRemove?await((w=e.beforeRemove)==null?void 0:w.call(e,y,i.value))!==!1&&b(y):b(y)}async function h(p,y,b){const w=s(y);w&&(w.status="fail",w.statusText=p.message,w.response=b)}async function m(p,y){const b=s(y);b&&(b.status="success",b.response=p)}async function f(p,y){const b=s(y);b&&(b.status="uploading",b.percentage=Math.round(p.percent))}return a.watch(()=>e.files,p=>{i.value=p.map(y=>(l+=1,{...y,uid:y.uid??jb(l),status:y.status??Ms.SUCCESS}))},{immediate:!0,deep:!0}),{fileList:i,handlePreprocess:u,handleRemove:d,handleError:h,handleSuccess:m,handleProgress:f}},Wb=ut(a.defineComponent({name:"Upload",props:mr,emits:["exceed","progress","success","error","delete","done","preview"],setup(e,{slots:t,emit:n,expose:r}){const{resolveClassName:i}=Ae(),s=a.shallowRef({}),l=a.computed(()=>e.theme===_a.PICTURE),u=a.computed(()=>l.value&&!e.multiple),d=a.computed(()=>Ze({[`${i(ki)}`]:!0,[`${i(ki)}--${e.theme}`]:!0,[`${i(ki)}--disabled`]:e.disabled,[`${i(ki)}--single-picture`]:u.value,[e.extCls]:e.extCls??!1})),h=a.computed(()=>({theme:e.theme,multiple:e.multiple,disabled:e.disabled,accept:e.accept,isShowPreview:e.isShowPreview,selectChange:e.selectChange}));function m(I,A){T(I),n("delete",I,A)}const{fileList:f,handlePreprocess:p,handleRemove:y,handleProgress:b,handleSuccess:w,handleError:C}=D$(e,{onRemove:m});function N(I){if(!I.length)return;if(e.limit>1&&f.value.length+I.length>e.limit){n("exceed",I,f.value);return}!e.multiple&&e.limit===1&&(f.value=[]);let A=I;(!e.multiple||e.limit===1)&&(A=I.slice(0,1));for(const P of A){const k=P,L=p(k);if(L){n("error",k,f.value,L);return}e.autoUpload&&_(k,A)}}function S(I,A){n("preview",I,A)}function x(I){O(I.raw)}async function _(I,A){var k;if(!e.beforeUpload)return O(I,A);let P;try{P=await((k=e.beforeUpload)==null?void 0:k.call(e,I,A))}catch{P=!1}if(P===!1){y(I);return}O(I,A)}function O(I,A){const{type:P,headers:k,header:L,data:D,formDataAttributes:H,method:B,withCredentials:W,name:J,url:G,sliceUrl:K,mergeUrl:le,chunkSize:ae,customRequest:$}=e,{uid:M}=I,V={type:P,headers:k,header:L,withCredentials:W,file:I,data:D,formDataAttributes:H,method:B,filename:J,action:G,sliceUrl:K,mergeUrl:le,chunkSize:ae,onProgress:se=>{b(se,I),n("progress",se,I,f.value)},onSuccess:se=>{var Ce;const ce=se;if((Ce=e==null?void 0:e.handleResCode)!=null&&Ce.call(e,ce))w(se,I),n("success",se,I,f.value);else{const re=new Error((ce==null?void 0:ce.message)||"unknow error");C(re,I,se),n("error",I,f.value,re)}delete s.value[M]},onError:se=>{C(se,I),n("error",I,f.value,se),delete s.value[M]},onComplete:()=>{A&&A.indexOf(I)===A.length-1&&n("done",f.value)}};let z=e.sliceUpload?O$:E$;$&&(z=$);const q=z(V);s.value[M]=q,q instanceof Promise&&q.then(V.onSuccess,V.onError)}function T(I){let A=s.value;I&&(A={[I.uid]:s.value[I.uid]}),Object.keys(A).forEach(P=>{if(A[P]instanceof XMLHttpRequest){const k=A[P];k==null||k.abort()}delete s.value[P]})}return a.onBeforeUnmount(()=>{f.value.forEach(({url:I})=>{I!=null&&I.startsWith("blob:")&&URL.revokeObjectURL(I)})}),r({handlePreview:S,handleRemove:y,handleRetry:x}),()=>a.createVNode("div",{class:d.value},[!l.value&&a.createVNode(Hb,a.mergeProps(h.value,{onChange:N}),t),t.tip?t.tip():e.tip&&a.createVNode("div",{class:`${i(ki)}__tip`},[e.tip]),a.createVNode(x$,{disabled:e.disabled,files:f.value,isShowPreview:e.isShowPreview,multiple:e.multiple,theme:e.theme,onPreview:S,onRemove:y,onRetry:x},{innerTrigger:I=>l.value&&a.createVNode(Hb,a.mergeProps(h.value,{file:I,onChange:N,onPreview:S,onRemove:y}),t),file:t.file})])}})),y6=Object.freeze(Object.defineProperty({__proto__:null,$bkPopover:t2,Affix:$g,Alert:Hg,AnimateNumber:Bg,Backtop:Ug,Badge:zg,Breadcrumb:Wg,Button:en,Card:z4,Cascader:uv,Checkbox:wn,CodeDiff:Lv,Collapse:Rv,ColorPicker:My,ConfigProvider:Mg,Container:$y,DatePicker:Ty,Dialog:Hy,Divider:By,Dropdown:Uy,Exception:xu,FixedNavbar:jy,Form:e7,InfoBox:n7,Input:za,Link:a7,Loading:$a,Menu:l7,Message:w7,Modal:hl,Navigation:N7,Notify:x7,OverflowTitle:u2,Pagination:n6,PopConfirm:S7,Popover:In,Popover2:T7,Process:E7,Progress:pl,Radio:Au,Rate:R7,ResizeLayout:I7,SearchSelect:U7,Select:G2,Sideslider:j7,Slider:q7,Steps:Y7,Swiper:X7,Switcher:J7,Tab:nb,Table:xb,Tag:Yo,TagInput:iv,TimePicker:Sb,Timeline:Tb,Transfer:Eb,Tree:kb,Upload:Wb,VirtualRender:qo,scrollbar:j2},Symbol.toStringTag,{value:"Module"})),qb=(e="Bk")=>(t,n)=>{const r=t.config.globalProperties.bkUIPrefix||e;Object.keys(y6).forEach(i=>{const s=y6[i];"install"in s?t.use(s,{prefix:r}):t.component(r+i,y6[i])}),n&&lh(n,t)},R$={createInstall:qb,install:qb()},Gb="2.0.2-beta.86";window.__bkui_vue_version__=Gb,Ue.$bkPopover=t2,Ue.Affix=$g,Ue.Alert=Hg,Ue.AnimateNumber=Bg,Ue.Backtop=Ug,Ue.Badge=zg,Ue.Breadcrumb=Wg,Ue.Button=en,Ue.Card=z4,Ue.Cascader=uv,Ue.Checkbox=wn,Ue.CodeDiff=Lv,Ue.Collapse=Rv,Ue.ColorPicker=My,Ue.ConfigProvider=Mg,Ue.Container=$y,Ue.DatePicker=Ty,Ue.Dialog=Hy,Ue.Divider=By,Ue.Dropdown=Uy,Ue.Exception=xu,Ue.FixedNavbar=jy,Ue.Form=e7,Ue.InfoBox=n7,Ue.Input=za,Ue.Link=a7,Ue.Loading=$a,Ue.Menu=l7,Ue.Message=w7,Ue.Modal=hl,Ue.Navigation=N7,Ue.Notify=x7,Ue.OverflowTitle=u2,Ue.Pagination=n6,Ue.PopConfirm=S7,Ue.Popover=In,Ue.Popover2=T7,Ue.Process=E7,Ue.Progress=pl,Ue.Radio=Au,Ue.Rate=R7,Ue.ResizeLayout=I7,Ue.SearchSelect=U7,Ue.Select=G2,Ue.Sideslider=j7,Ue.Slider=q7,Ue.Steps=Y7,Ue.Swiper=X7,Ue.Switcher=J7,Ue.Tab=nb,Ue.Table=xb,Ue.Tag=Yo,Ue.TagInput=iv,Ue.TimePicker=Sb,Ue.Timeline=Tb,Ue.Transfer=Eb,Ue.Tree=kb,Ue.Upload=Wb,Ue.VirtualRender=qo,Ue.bkEllipsis=ZE,Ue.bkEllipsisInstance=n2,Ue.bkLoading=Gg,Ue.bkTooltips=Qr,Ue.clickoutside=Kr,Ue.default=R$,Ue.defaultRootConfig=Ni,Ue.mousewheel=lO,Ue.overflowTitle=gO,Ue.provideGlobalConfig=lh,Ue.rootProviderKey=cs,Ue.scrollbar=j2,Ue.setPrefixVariable=oh,Ue.useGlobalConfig=Xx,Ue.useLocale=St,Ue.usePrefix=Ae,Ue.version=Gb,Object.defineProperties(Ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
389
+ }`;var ht=aN(function(){return xt(U,Je+"return "+Ie).apply(n,ie)});if(ht.source=Ie,b9(ht))throw ht;return ht}function kj(o){return Et(o).toLowerCase()}function Mj(o){return Et(o).toUpperCase()}function $j(o,c,g){if(o=Et(o),o&&(g||c===n))return hw(o);if(!o||!(c=nr(c)))return o;var E=Br(o),R=Br(c),U=mw(E,R),ie=pw(E,R)+1;return fi(E,U,ie).join("")}function Fj(o,c,g){if(o=Et(o),o&&(g||c===n))return o.slice(0,vw(o)+1);if(!o||!(c=nr(c)))return o;var E=Br(o),R=pw(E,Br(c))+1;return fi(E,0,R).join("")}function Hj(o,c,g){if(o=Et(o),o&&(g||c===n))return o.replace(dn,"");if(!o||!(c=nr(c)))return o;var E=Br(o),R=mw(E,Br(c));return fi(E,R).join("")}function Bj(o,c){var g=k,E=L;if(Ut(c)){var R="separator"in c?c.separator:R;g="length"in c?ft(c.length):g,E="omission"in c?nr(c.omission):E}o=Et(o);var U=o.length;if(Gs(o)){var ie=Br(o);U=ie.length}if(g>=U)return o;var ue=g-Ks(E);if(ue<1)return E;var ve=ie?fi(ie,0,ue).join(""):o.slice(0,ue);if(R===n)return ve+E;if(ie&&(ue+=ve.length-ue),w9(R)){if(o.slice(ue).search(R)){var De,Re=ve;for(R.global||(R=k6(R.source,Et(ai.exec(R))+"g")),R.lastIndex=0;De=R.exec(Re);)var Ie=De.index;ve=ve.slice(0,Ie===n?ue:Ie)}}else if(o.indexOf(nr(R),ue)!=ue){var je=ve.lastIndexOf(R);je>-1&&(ve=ve.slice(0,je))}return ve+E}function Uj(o){return o=Et(o),o&&Tt.test(o)?o.replace(It,vF):o}var zj=to(function(o,c,g){return o+(g?" ":"")+c.toUpperCase()}),_9=iC("toUpperCase");function rN(o,c,g){return o=Et(o),c=g?n:c,c===n?fF(o)?wF(o):rF(o):o.match(c)||[]}var aN=mt(function(o,c){try{return er(o,n,c)}catch(g){return b9(g)?g:new lt(g)}}),jj=Da(function(o,c){return br(c,function(g){g=da(g),Aa(o,g,v9(o[g],o))}),o});function Wj(o){var c=o==null?0:o.length,g=et();return o=c?Ht(o,function(E){if(typeof E[1]!="function")throw new wr(l);return[g(E[0]),E[1]]}):[],mt(function(E){for(var R=-1;++R<c;){var U=o[R];if(er(U[0],this,E))return er(U[1],this,E)}})}function qj(o){return vH(Nr(o,f))}function x9(o){return function(){return o}}function Gj(o,c){return o==null||o!==o?c:o}var Kj=oC(),Yj=oC(!0);function Bn(o){return o}function S9(o){return Mw(typeof o=="function"?o:Nr(o,f))}function Xj(o){return Fw(Nr(o,f))}function Jj(o,c){return Hw(o,Nr(c,f))}var Zj=mt(function(o,c){return function(g){return Ll(g,o,c)}}),Qj=mt(function(o,c){return function(g){return Ll(o,g,c)}});function T9(o,c,g){var E=ln(c),R=Nd(c,E);g==null&&!(Ut(c)&&(R.length||!E.length))&&(g=c,c=o,o=this,R=Nd(c,ln(c)));var U=!(Ut(g)&&"chain"in g)||!!g.chain,ie=Ia(o);return br(R,function(ue){var ve=c[ue];o[ue]=ve,ie&&(o.prototype[ue]=function(){var De=this.__chain__;if(U||De){var Re=o(this.__wrapped__),Ie=Re.__actions__=$n(this.__actions__);return Ie.push({func:ve,args:arguments,thisArg:o}),Re.__chain__=De,Re}return ve.apply(o,si([this.value()],arguments))})}),o}function eW(){return fn._===this&&(fn._=TF),this}function E9(){}function tW(o){return o=ft(o),mt(function(c){return Bw(c,o)})}var nW=a9(Ht),rW=a9(lw),aW=a9(A6);function iN(o){return d9(o)?L6(da(o)):VH(o)}function iW(o){return function(c){return o==null?n:Gi(o,c)}}var sW=cC(),oW=cC(!0);function O9(){return[]}function A9(){return!1}function lW(){return{}}function cW(){return""}function uW(){return!0}function dW(o,c){if(o=ft(o),o<1||o>K)return[];var g=$,E=pn(o,$);c=et(c),o-=$;for(var R=I6(E,c);++g<o;)c(g);return R}function fW(o){return ct(o)?Ht(o,da):rr(o)?[o]:$n(SC(Et(o)))}function hW(o){var c=++xF;return Et(o)+c}var mW=Od(function(o,c){return o+c},0),pW=i9("ceil"),gW=Od(function(o,c){return o/c},1),vW=i9("floor");function yW(o){return o&&o.length?Cd(o,Bn,j6):n}function bW(o,c){return o&&o.length?Cd(o,et(c,2),j6):n}function wW(o){return dw(o,Bn)}function CW(o,c){return dw(o,et(c,2))}function NW(o){return o&&o.length?Cd(o,Bn,K6):n}function _W(o,c){return o&&o.length?Cd(o,et(c,2),K6):n}var xW=Od(function(o,c){return o*c},1),SW=i9("round"),TW=Od(function(o,c){return o-c},0);function EW(o){return o&&o.length?R6(o,Bn):0}function OW(o,c){return o&&o.length?R6(o,et(c,2)):0}return F.after=XU,F.ary=kC,F.assign=Mz,F.assignIn=XC,F.assignInWith=Bd,F.assignWith=$z,F.at=Fz,F.before=MC,F.bind=v9,F.bindAll=jj,F.bindKey=$C,F.castArray=lz,F.chain=IC,F.chunk=vB,F.compact=yB,F.concat=bB,F.cond=Wj,F.conforms=qj,F.constant=x9,F.countBy=EU,F.create=Hz,F.curry=FC,F.curryRight=HC,F.debounce=BC,F.defaults=Bz,F.defaultsDeep=Uz,F.defer=JU,F.delay=ZU,F.difference=wB,F.differenceBy=CB,F.differenceWith=NB,F.drop=_B,F.dropRight=xB,F.dropRightWhile=SB,F.dropWhile=TB,F.fill=EB,F.filter=AU,F.flatMap=RU,F.flatMapDeep=IU,F.flatMapDepth=VU,F.flatten=AC,F.flattenDeep=OB,F.flattenDepth=AB,F.flip=QU,F.flow=Kj,F.flowRight=Yj,F.fromPairs=LB,F.functions=Yz,F.functionsIn=Xz,F.groupBy=PU,F.initial=RB,F.intersection=IB,F.intersectionBy=VB,F.intersectionWith=PB,F.invert=Zz,F.invertBy=Qz,F.invokeMap=MU,F.iteratee=S9,F.keyBy=$U,F.keys=ln,F.keysIn=Hn,F.map=Pd,F.mapKeys=tj,F.mapValues=nj,F.matches=Xj,F.matchesProperty=Jj,F.memoize=Md,F.merge=rj,F.mergeWith=JC,F.method=Zj,F.methodOf=Qj,F.mixin=T9,F.negate=$d,F.nthArg=tW,F.omit=aj,F.omitBy=ij,F.once=ez,F.orderBy=FU,F.over=nW,F.overArgs=tz,F.overEvery=rW,F.overSome=aW,F.partial=y9,F.partialRight=UC,F.partition=HU,F.pick=sj,F.pickBy=ZC,F.property=iN,F.propertyOf=iW,F.pull=FB,F.pullAll=DC,F.pullAllBy=HB,F.pullAllWith=BB,F.pullAt=UB,F.range=sW,F.rangeRight=oW,F.rearg=nz,F.reject=zU,F.remove=zB,F.rest=rz,F.reverse=p9,F.sampleSize=WU,F.set=lj,F.setWith=cj,F.shuffle=qU,F.slice=jB,F.sortBy=YU,F.sortedUniq=JB,F.sortedUniqBy=ZB,F.split=Rj,F.spread=az,F.tail=QB,F.take=eU,F.takeRight=tU,F.takeRightWhile=nU,F.takeWhile=rU,F.tap=yU,F.throttle=iz,F.thru=Vd,F.toArray=GC,F.toPairs=QC,F.toPairsIn=eN,F.toPath=fW,F.toPlainObject=YC,F.transform=uj,F.unary=sz,F.union=aU,F.unionBy=iU,F.unionWith=sU,F.uniq=oU,F.uniqBy=lU,F.uniqWith=cU,F.unset=dj,F.unzip=g9,F.unzipWith=RC,F.update=fj,F.updateWith=hj,F.values=ao,F.valuesIn=mj,F.without=uU,F.words=rN,F.wrap=oz,F.xor=dU,F.xorBy=fU,F.xorWith=hU,F.zip=mU,F.zipObject=pU,F.zipObjectDeep=gU,F.zipWith=vU,F.entries=QC,F.entriesIn=eN,F.extend=XC,F.extendWith=Bd,T9(F,F),F.add=mW,F.attempt=aN,F.camelCase=yj,F.capitalize=tN,F.ceil=pW,F.clamp=pj,F.clone=cz,F.cloneDeep=dz,F.cloneDeepWith=fz,F.cloneWith=uz,F.conformsTo=hz,F.deburr=nN,F.defaultTo=Gj,F.divide=gW,F.endsWith=bj,F.eq=zr,F.escape=wj,F.escapeRegExp=Cj,F.every=OU,F.find=LU,F.findIndex=EC,F.findKey=zz,F.findLast=DU,F.findLastIndex=OC,F.findLastKey=jz,F.floor=vW,F.forEach=VC,F.forEachRight=PC,F.forIn=Wz,F.forInRight=qz,F.forOwn=Gz,F.forOwnRight=Kz,F.get=C9,F.gt=mz,F.gte=pz,F.has=Jz,F.hasIn=N9,F.head=LC,F.identity=Bn,F.includes=kU,F.indexOf=DB,F.inRange=gj,F.invoke=ej,F.isArguments=Xi,F.isArray=ct,F.isArrayBuffer=gz,F.isArrayLike=Fn,F.isArrayLikeObject=Yt,F.isBoolean=vz,F.isBuffer=hi,F.isDate=yz,F.isElement=bz,F.isEmpty=wz,F.isEqual=Cz,F.isEqualWith=Nz,F.isError=b9,F.isFinite=_z,F.isFunction=Ia,F.isInteger=zC,F.isLength=Fd,F.isMap=jC,F.isMatch=xz,F.isMatchWith=Sz,F.isNaN=Tz,F.isNative=Ez,F.isNil=Az,F.isNull=Oz,F.isNumber=WC,F.isObject=Ut,F.isObjectLike=qt,F.isPlainObject=kl,F.isRegExp=w9,F.isSafeInteger=Lz,F.isSet=qC,F.isString=Hd,F.isSymbol=rr,F.isTypedArray=ro,F.isUndefined=Dz,F.isWeakMap=Rz,F.isWeakSet=Iz,F.join=kB,F.kebabCase=Nj,F.last=xr,F.lastIndexOf=MB,F.lowerCase=_j,F.lowerFirst=xj,F.lt=Vz,F.lte=Pz,F.max=yW,F.maxBy=bW,F.mean=wW,F.meanBy=CW,F.min=NW,F.minBy=_W,F.stubArray=O9,F.stubFalse=A9,F.stubObject=lW,F.stubString=cW,F.stubTrue=uW,F.multiply=xW,F.nth=$B,F.noConflict=eW,F.noop=E9,F.now=kd,F.pad=Sj,F.padEnd=Tj,F.padStart=Ej,F.parseInt=Oj,F.random=vj,F.reduce=BU,F.reduceRight=UU,F.repeat=Aj,F.replace=Lj,F.result=oj,F.round=SW,F.runInContext=me,F.sample=jU,F.size=GU,F.snakeCase=Dj,F.some=KU,F.sortedIndex=WB,F.sortedIndexBy=qB,F.sortedIndexOf=GB,F.sortedLastIndex=KB,F.sortedLastIndexBy=YB,F.sortedLastIndexOf=XB,F.startCase=Ij,F.startsWith=Vj,F.subtract=TW,F.sum=EW,F.sumBy=OW,F.template=Pj,F.times=dW,F.toFinite=Va,F.toInteger=ft,F.toLength=KC,F.toLower=kj,F.toNumber=Sr,F.toSafeInteger=kz,F.toString=Et,F.toUpper=Mj,F.trim=$j,F.trimEnd=Fj,F.trimStart=Hj,F.truncate=Bj,F.unescape=Uj,F.uniqueId=hW,F.upperCase=zj,F.upperFirst=_9,F.each=VC,F.eachRight=PC,F.first=LC,T9(F,function(){var o={};return ca(F,function(c,g){Lt.call(F.prototype,g)||(o[g]=c)}),o}(),{chain:!1}),F.VERSION=r,br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){F[o].placeholder=F}),br(["drop","take"],function(o,c){vt.prototype[o]=function(g){g=g===n?1:an(ft(g),0);var E=this.__filtered__&&!c?new vt(this):this.clone();return E.__filtered__?E.__takeCount__=pn(g,E.__takeCount__):E.__views__.push({size:pn(g,$),type:o+(E.__dir__<0?"Right":"")}),E},vt.prototype[o+"Right"]=function(g){return this.reverse()[o](g).reverse()}}),br(["filter","map","takeWhile"],function(o,c){var g=c+1,E=g==B||g==J;vt.prototype[o]=function(R){var U=this.clone();return U.__iteratees__.push({iteratee:et(R,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),br(["head","last"],function(o,c){var g="take"+(c?"Right":"");vt.prototype[o]=function(){return this[g](1).value()[0]}}),br(["initial","tail"],function(o,c){var g="drop"+(c?"":"Right");vt.prototype[o]=function(){return this.__filtered__?new vt(this):this[g](1)}}),vt.prototype.compact=function(){return this.filter(Bn)},vt.prototype.find=function(o){return this.filter(o).head()},vt.prototype.findLast=function(o){return this.reverse().find(o)},vt.prototype.invokeMap=mt(function(o,c){return typeof o=="function"?new vt(this):this.map(function(g){return Ll(g,o,c)})}),vt.prototype.reject=function(o){return this.filter($d(et(o)))},vt.prototype.slice=function(o,c){o=ft(o);var g=this;return g.__filtered__&&(o>0||c<0)?new vt(g):(o<0?g=g.takeRight(-o):o&&(g=g.drop(o)),c!==n&&(c=ft(c),g=c<0?g.dropRight(-c):g.take(c-o)),g)},vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},vt.prototype.toArray=function(){return this.take($)},ca(vt.prototype,function(o,c){var g=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),R=F[E?"take"+(c=="last"?"Right":""):c],U=E||/^find/.test(c);R&&(F.prototype[c]=function(){var ie=this.__wrapped__,ue=E?[1]:arguments,ve=ie instanceof vt,De=ue[0],Re=ve||ct(ie),Ie=function(gt){var bt=R.apply(F,si([gt],ue));return E&&je?bt[0]:bt};Re&&g&&typeof De=="function"&&De.length!=1&&(ve=Re=!1);var je=this.__chain__,Je=!!this.__actions__.length,tt=U&&!je,ht=ve&&!Je;if(!U&&Re){ie=ht?ie:new vt(this);var nt=o.apply(ie,ue);return nt.__actions__.push({func:Vd,args:[Ie],thisArg:n}),new Cr(nt,je)}return tt&&ht?o.apply(this,ue):(nt=this.thru(Ie),tt?E?nt.value()[0]:nt.value():nt)})}),br(["pop","push","shift","sort","splice","unshift"],function(o){var c=sd[o],g=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);F.prototype[o]=function(){var R=arguments;if(E&&!this.__chain__){var U=this.value();return c.apply(ct(U)?U:[],R)}return this[g](function(ie){return c.apply(ct(ie)?ie:[],R)})}}),ca(vt.prototype,function(o,c){var g=F[c];if(g){var E=g.name+"";Lt.call(Zs,E)||(Zs[E]=[]),Zs[E].push({name:c,func:g})}}),Zs[Ed(n,N).name]=[{name:"wrapper",func:n}],vt.prototype.clone=UF,vt.prototype.reverse=zF,vt.prototype.value=jF,F.prototype.at=bU,F.prototype.chain=wU,F.prototype.commit=CU,F.prototype.next=NU,F.prototype.plant=xU,F.prototype.reverse=SU,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=TU,F.prototype.first=F.prototype.head,_l&&(F.prototype[_l]=_U),F},Ys=CF();Ui?((Ui.exports=Ys)._=Ys,S6._=Ys):fn._=Ys}).call(s$)}(bl,bl.exports)),bl.exports}var l$=o$(),kn=(e=>(e.NODE_CHECKED="nodeChecked",e.NODE_CLICK="nodeClick",e.NODE_COLLAPSE="nodeCollapse",e.NODE_DRAG_LEAVE="nodeDragLeave",e.NODE_DRAG_OVER="nodeDragOver",e.NODE_DRAG_SORT="nodeDragSort",e.NODE_DRAG_START="nodeDragStart",e.NODE_DROP="nodeDrop",e.NODE_ENTER_VIEW="nodeEnterView",e.NODE_EXPAND="nodeExpand",e.NODE_SELECTED="nodeSelected",e))(kn||{});const Mr=(...e)=>!0,c$={nodeClick:Mr,nodeCollapse:Mr,nodeExpand:Mr,nodeChecked:Mr,nodeDragStart:Mr,nodeDragOver:Mr,nodeDragLeave:Mr,nodeDragSort:Mr,nodeDrop:Mr,nodeEnterView:Mr,nodeSelected:Mr};var Oe=(e=>(e.DEPTH="__depth",e.HAS_CHILD="__has_child",e.INDEX="__index",e.IS_ASYNC="__is_async",e.IS_ASYNC_INIT="__is_async_init",e.IS_CACHED="__is_cached",e.IS_CHECKED="__is_checked",e.IS_INDETERMINATE="__is_indeterminate",e.IS_LOADING="__is_loading",e.IS_MATCH="__is_match",e.IS_NULL="__IS_NULL",e.IS_OPEN="__is_open",e.IS_ROOT="__is_root",e.IS_SELECTED="__is_selected",e.ORDER="__order",e.PARENT="__parent",e.PATH="__path",e.TREE_NODE_ATTR="__attr__",e.UUID="__uuid",e))(Oe||{});const ei={__is_open:"isOpen",__is_selected:"selected",__is_match:"isMatch",__has_child:"hasChild",__is_checked:"checked",__is_async:"async",__is_loading:"loading",__is_root:"isRoot"};var Ab=(e=>(e.CLICK="click",e.COLLAPSE="collapse",e.EXPAND="expand",e.SELECTED="selected",e))(Ab||{});const u$={data:v.arrayOf(v.any).def([]),label:v.oneOfType([v.func.def(void 0),v.string.def("label")]),nodeKey:v.string.def(void 0),children:v.string.def("children"),indent:v.number.def(16),lineHeight:v.number.def(32),height:v.number,levelLine:v.oneOfType([v.bool.def(!1),v.func.def(void 0),v.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:v.bool.def(!1),prefixIcon:v.oneOfType([v.func.def(()=>{}),v.bool.def(!1)]).def(!0),async:v.shape({callback:v.func.def(void 0),cache:v.bool.def(!0),deepAutoOpen:ze("columnType",{}).def("once"),trigger:v.arrayOf(v.oneOf(["expand","click","checked"])).def(void 0)}),offsetLeft:v.number.def(5),search:v.oneOfType([v.shape({value:v.oneOfType([v.number,v.string,v.bool]).def(""),match:v.oneOfType([vn(),v.func]).def("fuzzy"),resultType:vn().def("tree"),showChildNodes:v.bool.def(!1)}),v.string,v.number,v.bool]).def(void 0),emptyText:v.string.def("没有数据"),draggable:v.bool.def(!1),disableDrag:v.func,disableDrop:Function,dragThreshold:v.number.def(.2),dragSort:v.bool.def(!1),dragSortMode:v.oneOf(["any","next"]).def("any"),selectable:v.oneOfType([v.bool,v.func]).def(!0),disabledFolderSelectable:v.bool.def(!1),showCheckbox:v.oneOfType([v.bool,v.func]).def(!1),disableCheck:v.bool.def(!1),checked:v.arrayOf(v.any).def([]),showNodeTypeIcon:v.bool.def(!0),selected:v.oneOfType([v.string,v.number,v.object]),autoCheckChildren:v.oneOfType([v.bool,v.func]).def(!0),autoOpenParentNode:v.bool.def(!0),expandAll:v.bool.def(!1),nodeContentAction:v.oneOfType([v.arrayOf(ze("nodeContentActionType",{}).def(Ab.CLICK)),v.func.def(()=>["selected"])]).def(["selected","expand","click"]),keepSlotData:v.bool.def(!1),checkStrictly:v.bool.def(!0),intersectionObserver:v.oneOfType([v.bool.def(!1),v.shape({enabled:v.bool.def(!1),callback:v.func.def(void 0)})]).def(!1)},d$=e=>({renderEmpty:t=>a.createVNode(xu,{scene:"part",type:t},{default:()=>[e.emptyText]})}),f$=e=>{const t={enabled:e.intersectionObserver,once:!1,callback:null};let n=null,r=[],i=null;const s=()=>typeof e.intersectionObserver=="boolean"?t:typeof e.intersectionObserver=="object"?Object.assign({},t,e.intersectionObserver):t,l=a.computed(s),u=p=>p instanceof NodeList?Array.from(p):Array.isArray(p)?p:[p];return{unobserveAll:()=>{r==null||r.forEach(p=>{_s(p)&&(n==null||n.unobserve(p))}),n==null||n.disconnect(),i==null||i.disconnect()},intersectionObserver:l,initIntersectionObserver:(p,y,b)=>{if(l.value.enabled){if(!p){console.error("intersectionObserver.target is undefined");return}r=u(p);const w=Object.assign({rootMargin:"0px"},y);n=new IntersectionObserver(function(C){C.forEach(N=>{var S,x,_;if(console.log("entry",N.target),N.isIntersecting){const O=((S=b==null?void 0:b.beforeResponse)==null?void 0:S.call(b,N))??N;(_=(x=l.value).callback)==null||_.call(x,O),l.value.once&&n.unobserve(N.target)}})},w),r.forEach(C=>{_s(C)&&n.observe(C)})}},initRootMutationObserver:(p,y)=>{if(l.value.enabled&&!e.virtualRender&&_s(p)){const b={attributes:!0,childList:!0,subtree:!0};i=new MutationObserver((...w)=>{y==null||y(...w)}),i.observe(p,b)}},getLastVisibleElement:(p,y)=>{const{offsetHeight:b}=y,w=y.querySelectorAll("[data-tree-node]"),C=b+p;return Array.from(w).filter(S=>S.offsetHeight+S.offsetTop>=C&&S.offsetTop<C)}}},Xu=(e,t)=>{const n=$=>e.schema.get($),r=($,M)=>{var V;return(V=n($))==null?void 0:V[M]},i=($,M,V,z)=>{if(!e.schema.has($)){console.warn("node is not in schema, please check",z,$);return}e.schema.set($,Object.assign({},n($),{[M]:V}))},s=$=>e.data.find(M=>d(M)===$),l=($,M,V)=>{if(Array.isArray($)){Array.prototype.forEach.call($,z=>i(s(z),M,V,$));return}i(s($),M,V,$)},u=$=>r($,Oe.PATH),d=$=>r($,Oe.UUID),h=$=>r($,Oe.IS_OPEN),m=$=>r($,Oe.HAS_CHILD),f=$=>r($,Oe.IS_MATCH),p=$=>r($,Oe.IS_CHECKED),y=$=>r(r($,Oe.PARENT),Oe.UUID),b=$=>r($,Oe.IS_LOADING),w=$=>r($,Oe.PARENT),C=$=>r($,Oe.IS_MATCH),N=($,M)=>{const V=e.data.find(z=>d(z)===$);return r(V,M)},S=$=>N($,Oe.INDEX),x=$=>r($,Oe.INDEX),_=$=>typeof $=="string"?N($,Oe.IS_ROOT):r($,Oe.IS_ROOT),O=$=>{const M=e.data.find(V=>d(V)===$);return y(M)},T=$=>{const M=e.data.find(V=>d(V)===$);return u(M)},I=($,M)=>{i($,Oe.IS_LOADING,M)},A=$=>typeof $=="object"?h($):typeof $=="string"?N($,Oe.IS_OPEN):!1,P=($,M)=>r(r($,Oe.PARENT),M),k=$=>A(r($,Oe.PARENT)),L=$=>_($)||A($)||k($),D=($,M)=>{const z=$.split("-").reduce((q,se)=>{const ce=Number(se);return Array.isArray(q)?q[ce]:q[t.children][ce]},t.data);return M&&Object.assign(z,{[Oe.UUID]:M}),z},H=$=>e.data.filter(M=>w(M)===$),B=$=>e.data.find(M=>d(M)===$),W=$=>{let M=$;return typeof M=="string"&&(M=B(M)),_(M)?{[t.children]:t.data}:w(M)},J=$=>({[ei[Oe.IS_LOADING]]:r($,Oe.IS_LOADING),[ei[Oe.HAS_CHILD]]:m($),[ei[Oe.IS_MATCH]]:f($),[ei[Oe.IS_CHECKED]]:p($),[ei[Oe.IS_OPEN]]:h($),[ei[Oe.IS_ROOT]]:_($),fullPath:r($,Oe.PATH),uuid:d($),parent:r($,Oe.PARENT),parentId:d(r($,Oe.PARENT))});return{getSchemaVal:n,getNodeAttr:r,getNodeId:d,getNodeById:s,getNodeParentId:y,getParentNodeData:W,getNodePathById:T,getNodeAttrById:N,getNodeParentIdById:O,getNodeIndexById:S,getNodeIndexByNode:x,getRootNodeList:()=>e.data.filter($=>_($)),getParentNodeAttr:P,getParentNode:w,setNodeAttr:i,setNodeAttrById:l,getNodePath:u,isRootNode:_,isNodeOpened:h,hasChildNode:m,isItemOpen:A,isNodeChecked:p,isNodeMatched:f,isNodeLoading:b,checkNodeIsOpen:L,getSourceNodeByPath:D,getSourceNodeByUID:B,isMatchedNode:C,resolveScopedSlotParam:J,setTreeNodeLoading:I,extendNodeAttr:$=>Object.assign({},$,{[Oe.TREE_NODE_ATTR]:J($)}),getChildNodes:H,extendNodeScopedData:$=>({data:$,attributes:J($)}),getIntersectionResponse:$=>{var ce;if(!$)return null;let M=$;_s($)&&(M=s($.getAttribute("data-tree-node")));const V=r(M,Oe.DEPTH),z=r(M,Oe.IS_ROOT),q=r(M,Oe.PARENT),se=z?r(M,Oe.INDEX):(ce=q==null?void 0:q[t.children])==null?void 0:ce.findIndex(Ce=>Ce===M);return{level:V,target:$,index:se,parent:q,node:M,isRoot:z}}}},Lb="1px dashed #c3cdd7",Db=(e,t,n=null,r=null,i=null,s=[])=>{const l=e[t];return typeof l=="boolean"?l?r:i:Rb(n,e,t,s)},Rb=(e,t,n,r=[])=>{const i=t[n];if(typeof i=="string")return typeof e=="object"&&e!==null?(Object.prototype.hasOwnProperty.call(e,i)||console.error(`cannot find node label with key ${i}`),e[i]):i;if(typeof i=="function"){const s=i.apply(void 0,[e,...r]);if(typeof s=="string")return s;console.error("props label with function return value is not string, please check and return string");return}},Ib=(e,t)=>Rb(e,t,"label"),h$=(e,t)=>({"--level-line":Db(t,"levelLine",e,Lb,null,["tree"]),"--lineHeight":`${t.lineHeight}px`,"--indent":`${t.indent}px`,"--offset-left":`${t.offsetLeft}px`}),m$=(e,t,n,r=!0)=>{var l;const{schema:i}=n,s=(l=i.get(e))==null?void 0:l[Oe.DEPTH];if(r){const u=["node"],d=()=>Db(t,"levelLine",e,Lb,null,u);return{"--depth":s,...typeof t.levelLine=="function"?{"--level-line":d()}:{}}}return{}},p$=(e,t,n,r=!0)=>{const{__is_root:i,__is_open:s}=t.get(e)||{},{resolveClassName:l}=Ae();return{"is-root":i,[`${l("tree-node")}`]:!0,"is-open":s,"is-virtual-render":n.virtualRender,"level-line":n.levelLine&&r}},g$=(e,t)=>{const{__is_checked:n,__is_selected:r}=t.get(e)||{},{resolveClassName:i}=Ae();return{"is-checked":n,"is-selected":r,"node-folder":e.is_folder,"node-leaf":e.is_leaf,[`${i("node-row")}`]:!0}},v$=(e,t,n,r,i)=>{y$(e,t,n,{[r]:i})},y$=(e,t,n,r)=>{const s=e.split("-").reduce((l,u)=>{const d=Number(u);return Array.isArray(l)?l[d]:l[n][d]},t);Object.assign(s,r||{})},wl=e=>e??{__IS_NULL:!0},Ju=(e,t,n)=>Array.isArray(t)?t.some(r=>Ju(e,r,n)):typeof t=="string"||typeof t=="number"?t===n:e===t,Vb=(e,t)=>typeof e.showCheckbox=="function"?e.showCheckbox(t):e.showCheckbox,Pb=(e,t)=>{const{setNodeAttr:n,getNodePath:r,getNodeAttr:i,resolveScopedSlotParam:s,setTreeNodeLoading:l}=Xu(t,e),u=(m,f)=>{if(typeof m=="object"&&m!==null){n(f,Oe.IS_OPEN,!0);const p=Array.isArray(m)?m:[m];return v$(r(f),e.data,e.children,e.children,p),Promise.resolve(m)}return Promise.resolve(m)},d=m=>{const{callback:f=null,cache:p=!0}=e.async||{};if(typeof f=="function"&&i(m,Oe.IS_ASYNC)){if(n(m,Oe.IS_ASYNC_INIT,!0),!i(m,Oe.IS_CACHED)){n(m,Oe.IS_CACHED,p);const y=s(m),b=f(m,w=>u(w,m),y);if(typeof b=="object"&&b!==null)return l(m,!0),b instanceof Promise?Promise.resolve(b.then(w=>u(w,m)).catch(w=>console.error("load remote data error:",w)).finally(()=>{l(m,!1),n(m,Oe.IS_CACHED,!0)})):(u(b,m),l(m,!1),Promise.resolve(!0))}return Promise.resolve(!0)}return Promise.resolve(!0)},h=()=>{const m=t.data.filter(f=>i(f,Oe.IS_ASYNC)&&f[ei[Oe.IS_OPEN]]&&!i(f,Oe.IS_ASYNC_INIT));m.length&&Promise.all(m.map(f=>d(f))).then(()=>{h()}).catch(f=>{console.warn(f)})};return{asyncNodeClick:d,deepAutoOpen:h}},b$=(e,t,n,r,i)=>{let s=e.selected;const{setNodeAttr:l,setNodeAttrById:u,getNodePath:d,getSchemaVal:h,getNodeAttr:m,getNodeId:f,getChildNodes:p,isRootNode:y,hasChildNode:b,isItemOpen:w,isNodeOpened:C,isNodeLoading:N,isNodeChecked:S,getParentNode:x,resolveScopedSlotParam:_,extendNodeAttr:O,extendNodeScopedData:T}=Xu(n,e),{resolveClassName:I}=Ae(),{registerNextLoop:A}=i,{asyncNodeClick:P,deepAutoOpen:k}=Pb(e,n),L=ee=>w(ee)?a.createVNode(Tc,{class:[I("tree-icon"),I("node-prefix")]},null):a.createVNode(Sc,{class:[I("tree-icon"),I("node-prefix")]},null),D=ee=>{if(typeof ee=="string")return ee;if(typeof ee=="object"&&ee!==null){if(a.isVNode(ee))return ee;const{node:ye,className:he,text:j,style:X}=ee;return a.h(ye,{class:he,style:X},j)}return null},H=ee=>{var ye,he;return((he=(ye=t.slots).nodeLoading)==null?void 0:he.call(ye,Y(ee)))??N(ee)?a.createVNode(gs,null,null):""},B=ee=>{if(t.slots.nodeAction)return t.slots.nodeAction(Y(ee));let ye=null;if(N(ee))return H(ee);if(typeof e.prefixIcon=="function"&&(ye=e.prefixIcon(Y(ee),"node_action"),ye!=="default"))return D(ye);if(ye==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon){const he=typeof e.autoCheckChildren=="function"?e.autoCheckChildren(ee):e.autoCheckChildren;if(b(ee)||ee.async||!he)return w(ee)?a.createVNode(Lo,{class:I("node-prefix")},null):a.createVNode(ko,{class:I("node-prefix")},null)}return null},W=ee=>{if(!e.showNodeTypeIcon)return null;if(t.slots.nodeType)return t.slots.nodeType(Y(ee));let ye=null;return typeof e.prefixIcon=="function"&&(ye=e.prefixIcon(Y(ee),"node_type"),ye!=="default")?D(ye):ye==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon?y(ee)||b(ee)?L(ee):a.createVNode(Pc,{class:[I("tree-icon"),I("node-prefix")]},null):null},J=(ee,ye)=>{const he=x(ee);if(he){const j=ye||(p(he)||[]).some(X=>S(X));l(he,Oe.IS_CHECKED,j),l(he,Oe.IS_INDETERMINATE,(p(he)||[]).some(X=>!S(X)||ae(X))),y(he)||J(he,ye)}},G=(ee,ye,he)=>{p(ee).forEach(j=>{Array.isArray(ye)?ye.forEach((X,we)=>{l(j,X,he[we])}):l(j,ye,he),G(j,ye,he)})},K=ee=>{var ye,he,j;return(he=(ye=e.async)==null?void 0:ye.trigger)!=null&&he.length?(j=e.async)==null?void 0:j.trigger.includes(ee):!0},le=(ee,ye,he)=>{he==null||he.preventDefault(),he==null||he.stopImmediatePropagation(),he==null||he.stopPropagation(),l(ee,Oe.IS_CHECKED,!!ye),ye&&l(ee,Oe.IS_INDETERMINATE,!1),e.checkStrictly&&(G(ee,[Oe.IS_CHECKED,Oe.IS_INDETERMINATE],[!!ye,!1]),J(ee,ye)),t.emit(kn.NODE_CHECKED,n.data.filter(j=>S(j)),n.data.filter(j=>ae(j))),oe(ee,he,"checked")},ae=ee=>S(ee)&&m(ee,Oe.IS_INDETERMINATE),$=ee=>Vb(e,T(ee))?a.createVNode("span",{class:"node-check-box",onClick:te},[a.createVNode(wn,{disabled:e.disableCheck,indeterminate:ae(ee),modelValue:S(ee),size:"small",onChange:(ye,he)=>le(ee,!!ye,he)},null)]):null,M=(ee,ye=null,he=null,j=!0)=>{const X=ye===null?!w(ee):!!ye;if(X||G(ee,Oe.IS_OPEN,X),l(ee,Oe.IS_OPEN,X),j){const we=w(ee)?kn.NODE_EXPAND:kn.NODE_COLLAPSE;t.emit(we,ee,_(ee),h(ee),he)}},V=(ee,ye,he)=>{if(Array.isArray(ee)){ee.forEach(j=>l(wl(j),ye,he));return}l(wl(ee),ye,he)},z=(ee,ye=!0,he=!1)=>{q(ee,Oe.IS_OPEN,ye,he&&ye)},q=(ee,ye,he,j=!1)=>{const X=wl(ee);if(X[Oe.IS_NULL])return;const we=Array.isArray(ye)?ye:[ye],de=Array.isArray(he)?he:[he];if(j){if(we.forEach((ne,ge)=>V(X,ne,de[ge])),!y(X)){const ne=x(X);we.forEach((ge,Se)=>{m(ne,ge)!==he&&q(ne,ge,de[Se],j)})}}else we.forEach((ne,ge)=>V(X,ne,de[ge]))},se=(ee,ye,he)=>{if(w(ee)){M(ee,!1,ye,!0);return}m(ee,Oe.IS_ASYNC)&&K(he)?P(ee).finally(()=>{m(ee,Oe.IS_LOADING)?A("setNodeOpenedAfterLoading",{type:"once",fn:()=>M(ee,!0,ye,!0)}):M(ee,!0,ye,!0)}):M(ee,!0,ye,!0)},ce=(ee,ye)=>{ee.stopImmediatePropagation(),ee.stopPropagation(),ee.preventDefault(),se(ye,ee,"expand")},Ce=(ee,ye=!0,he=!0,j=!1,X="")=>{const we=Array.isArray(ee)?ee:[ee];if(!we.length)return;let de=wl(we[0]);if((typeof de=="string"||typeof de=="number"||typeof de=="symbol")&&(de=n.data.find(ne=>f(ne)===de)??{[Oe.IS_NULL]:!0}),!de[Oe.IS_NULL]){if(!e.selectable||typeof e.selectable=="function"&&!e.selectable(ee)||e.disabledFolderSelectable&&de.is_folder===!0){console.warn("props.selectable is false or undefined, please set selectable with true");return}s!=null&&u(s,Oe.IS_SELECTED,!ye),e.selected&&e.selected!==s&&u(e.selected,Oe.IS_SELECTED,!ye),l(de,Oe.IS_SELECTED,ye),s=f(de),j&&t.emit(kn.NODE_SELECTED,{selected:ye,node:de}),he&&we.length===1&&z(de,!0,!0),m(de,Oe.IS_ASYNC)&&K(X)&&P(de).then(()=>{a.nextTick(()=>{we.shift(),Ce(we,ye,he,j,X)})})}},re=ee=>typeof e.nodeContentAction=="function"?Reflect.apply(e.nodeContentAction,void 0,[{node:ee}]):typeof e.nodeContentAction=="string"?[e.nodeContentAction]:Array.isArray(e.nodeContentAction)?e.nodeContentAction:["selected","expand","click"],oe=(ee,ye,he)=>{const j=re(ee),X=C(ee),we=he==="checked";if(j.includes("selected")){const ne=!(j.includes("expand")||j.includes("collapse"));Ce(ee,!0,ne,!0,he)}if(j.includes("expand")&&!X&&!we&&se(ee,ye,"expand"),j.includes("collapse")&&X&&!we&&se(ee,ye,"expand"),j.includes("click")&&!we){const de=kn.NODE_CLICK;t.emit(de,ee,_(ee),h(ee),ye)}},pe=(ee,ye)=>{if(y(ye))return!1;const he=d(ye),j=`${he}`.split("-").slice(0,ee+1);if(j.join("-")===he)return!0;const we=j.pop(),de=parseInt(we,10);j.push(`${de+1}`);const ne=j.join("-");return n.data.some(ge=>d(ge)===ne)},Q=ee=>{if(!e.levelLine)return null;const ye=j=>({"--depth":j}),he=(m(ee,Oe.DEPTH)??0)+1;return new Array(he).fill("").map((j,X)=>X).filter(j=>pe(j,ee)).filter(j=>j>0).map(j=>a.createVNode("span",{style:ye(he-j),class:"node-virtual-line"},null))},Z=ee=>{var ye,he,j,X;return t.slots.node?(he=(ye=t.slots).node)==null?void 0:he.call(ye,Y(ee)):t.slots.default?(X=(j=t.slots).default)==null?void 0:X.call(j,T(ee)):[Ib(ee,e)]},Y=ee=>e.keepSlotData?T(ee):O(ee),te=ee=>{ee.stopImmediatePropagation(),ee.stopPropagation()};return{renderTreeNode:(ee,ye=!0)=>{var j,X;const he=B(ee);return a.createVNode("div",{key:f(ee),class:g$(ee,n.schema),"data-tree-node":f(ee)},[a.createVNode("div",{style:m$(ee,e,n,ye),class:p$(ee,n.schema,e,ye),onClick:we=>oe(ee,we,"click")},[a.createVNode("div",{class:[I("node-action"),he?"":"empty-child"],onClick:we=>ce(we,ee)},[he]),a.createVNode("div",{class:I("node-content")},[[$(ee),W(ee)],a.createVNode("span",{class:I("node-text")},[Z(ee)]),(X=(j=t.slots).nodeAppend)==null?void 0:X.call(j,Y(ee))]),ye&&Q(ee)])])},handleTreeNodeClick:se,deepAutoOpen:k,asyncNodeClick:P,setNodeAction:V,setNodeOpened:M,setSelect:Ce,setOpen:z,setNodeAttribute:q,isIndeterminate:ae,deepUpdateChildNode:G,updateParentChecked:J}};function w$(){return{moveElement:(t,n,r,i=0,s=0,l="insertAfter")=>{if(n<0||r<0||n>=t.length||r>=t.length||n===r&&l==="insertAfter"||n+i>=t.length||r+s>=t.length)return Array.from(t);const u=Array.from(t),d=u.splice(n,i+1);let h=r;n<r&&(h=r-(i+1));const m=h+s+(l==="insertAfter"?1:0),f=Math.max(0,Math.min(m,u.length));return u.splice(f,0,...d),u}}}const C$=(e,t,n,r)=>{const{getSourceNodeByUID:i,getParentNode:s,extendNodeAttr:l,getNodeIndexByNode:u,setNodeAttr:d,getNodeAttr:h,getRootNodeList:m}=Xu(r,e),{resolveClassName:f}=Ae(),p=a.computed(()=>typeof e.disableDrag=="function"),y=a.computed(()=>typeof e.disableDrop=="function"),b=e.dragThreshold||.2;let w="",C=null,N=null,S=new WeakMap;const{moveElement:x}=w$(),_=V=>V.target.closest("[data-tree-node]"),O=V=>{var q;const z=(q=V==null?void 0:V.dataset)==null?void 0:q.treeNode;return i(z)},T=(V,z,q)=>{q.forEach(se=>V.classList.remove(se)),z.forEach(se=>V.classList.add(se))},I=V=>{_(V).removeEventListener("mouseup",I)},A=V=>{var se;const z=_(V),q=O(z);if((q==null?void 0:q.draggable)===!1||p.value&&((se=e.disableDrag)!=null&&se.call(e,q))){z==null||z.classList.add(`${f("tree-drag-disabled")}`);return}z==null||z.setAttribute("draggable","true"),z==null||z.addEventListener("mouseup",I)},P="drop-before",k="drop-after",L="drop-inner";let D=null;const H=vi(V=>{if(V.preventDefault(),!C)return;const z=_(V);D!==z&&(D==null||D.classList.remove(P,k,L),D=z);const q=l(O(z));S.has(z)||S.set(z,z.getBoundingClientRect());const se=V.clientY,{top:ce,height:Ce}=S.get(z),re=Ce*b,oe=se-ce;if(oe<re?T(z,[P],[k,L]):oe>Ce-re?T(z,[k],[P,L]):T(z,[L],[P,k]),t.emit(kn.NODE_DRAG_OVER,V,z,q),y.value&&(e!=null&&e.disableDrop(N,"move",q))){V.dataTransfer.effectAllowed="move",V.dataTransfer.dropEffect="none",z.classList.add(`${f("tree-drop-disabled")}`);return}z.classList.add(`${f("tree-drop-active")}`);const pe=z.getAttribute("data-tree-node"),Q=J(w,pe)?"move":"none";V.dataTransfer.effectAllowed=Q,V.dataTransfer.dropEffect=Q}),B=V=>{V.dataTransfer.effectAllowed="move",V.dataTransfer.dropEffect="move";const z=_(V);V.dataTransfer.setData("text/plain","");const q=z.getAttribute("data-tree-node");w=q,C=z,N=i(q),V.dataTransfer.setData("node-id",q),t.emit(kn.NODE_DRAG_START,V,z)},W=V=>{V.preventDefault(),V.stopPropagation();const z=_(V);if(!z)return;z.classList.remove(`${f("tree-drop-active")}`,`${f("tree-drop-disabled")}`);const q=D==null?void 0:D.classList.contains(L),se=l(O(z));if(y.value&&e.disableDrop(N,q?"child":"sort",se))return;const ce=w,Ce=z.getAttribute("data-tree-node");ce!==Ce&&(q?Reflect.apply($,void 0,[ce,Ce]):(D!=null&&D.classList.contains(k)||D!=null&&D.classList.contains(P))&&Reflect.apply(ae,void 0,[ce,Ce]),t.emit(kn.NODE_DROP,V,z,se)),S=new WeakMap,D==null||D.classList.remove(k,P,L),D=null,N=null},J=(V,z)=>V!==z,G=V=>{const z=[],q=se=>{r.data.filter(Ce=>s(Ce)===se).forEach(Ce=>{z.push(Ce),q(Ce)})};return q(V),z},K=(V,z)=>{let q=u(V),se=u(z);const ce=G(V),Ce=G(z),re=D!=null&&D.classList.contains(P)?"insertBefore":"insertAfter",oe=x(r.data,q,se,ce.length,Ce.length,re);return r.data=oe,{sourceNodeIndex:q,targetNodeIndex:se}},le=(V,z)=>{const q=(h(z,Oe.DEPTH)??-1)+1;d(V,Oe.PARENT,z),d(V,Oe.DEPTH,q),d(V,Oe.IS_ROOT,q===0);let se=0;const ce=(re,oe=0,pe="")=>{for(let Q=0;Q<re.length;Q++){const Z=re[Q],Y=pe!==""?`${pe}-${Q}`:`${Q}`;d(Z,Oe.INDEX,se),d(Z,Oe.ORDER,se),d(Z,Oe.DEPTH,oe),d(Z,Oe.PATH,Y),se+=1;const te=r.data.filter(Ne=>s(Ne)===Z);te.length>0&&ce(te,oe+1,Y)}},Ce=m();ce(Ce)},ae=(V,z)=>{if(!e.dragSort||!J(V,z))return;const q=i(V),se=i(z);if(!q||!se)return;const ce=s(q),Ce=s(se);if(e.dragSortMode==="next"&&ce!==Ce)return;const{sourceNodeIndex:re,targetNodeIndex:oe}=K(q,se);le(q,Ce),t.emit(kn.NODE_DRAG_SORT,{sourceNode:q,targetNode:se,sourceIndex:re,targetIndex:oe})},$=(V,z)=>{const q=i(V),se=i(z);K(q,se),se[e.children]||(se[e.children]=[]),le(q,se)},M=V=>{V.preventDefault();const z=_(V);S.has(z)&&S.delete(z),z.classList.remove(`${f("tree-drop-active")}`,`${f("tree-drop-disabled")}`),z.classList.remove(k,P,L),t.emit(kn.NODE_DRAG_LEAVE,V,z)};a.onMounted(()=>{if((e.draggable||e.dragSort)&&n.value){const V=n.value.$el;V.addEventListener("mousedown",A),V.addEventListener("dragstart",B),V.addEventListener("dragover",H),V.addEventListener("dragleave",M),V.addEventListener("drop",W)}}),a.onUnmounted(()=>{if((e.draggable||e.dragSort)&&n.value){const V=n.value.$el;V.removeEventListener("mousedown",A),V.removeEventListener("dragstart",B),V.removeEventListener("dragover",H),V.removeEventListener("dragleave",M),V.removeEventListener("drop",W)}})},N$=e=>{const t=a.toRef(e,"search"),{resultType:n="tree",showChildNodes:r=!0}=e.search??{},i=p=>["string","number","boolean"].includes(typeof p),s=(p,y)=>p===y,l=(p,y)=>new RegExp(`${p}`,"i").test(`${y}`),u=(p,y)=>Reflect.apply(p,void 0,y),d=t.value===void 0||t.value===!1,h=(p,y)=>{if(d)return!0;if(i(t.value))return`${t.value}`.length===0?!1:u(l,[t.value,p,y]);const{value:b="",match:w="fuzzy"}=t.value,N=typeof w=="function"?w:w==="fuzzy"?l:s;return`${b}`.length===0?!1:u(N,[b,p,y])},m=a.computed(()=>{if(t.value===!1)return!1;if(i(t.value))return`${t.value}`.length>0;const{value:p=""}=t.value;return`${p}`.length>0}),f=a.computed(()=>n==="tree");return{searchFn:h,refSearch:t,isSearchActive:m,isSearchDisabled:d,resultType:n,isTreeUI:f,showChildNodes:r}},_$=e=>{var w;const t=(C=void 0,N=null)=>{const{data:S,children:x}=e,_=[],O=[];let T=0;const I=new WeakMap;function A(K,le,ae,$){if(K!=null&&I.has(K)){const M=I.get(K);if(Object.prototype.hasOwnProperty.call(M,le)&&typeof $=="function"&&Reflect.apply($,self,[M,le,ae,K])){if(M[le]===ae)return;Object.assign(M,{[le]:ae}),A(M[Oe.PARENT],le,ae,$)}}}function P(K){let le=null;return typeof e.nodeKey=="string"&&(le=K[e.nodeKey]||Er()),le||K[Oe.UUID]||Er()}const k={[Oe.IS_OPEN]:()=>!!e.expandAll,[Oe.IS_CHECKED]:()=>!1,[Oe.IS_MATCH]:()=>!1,[Oe.IS_SELECTED]:(K,le)=>Ju(K,e.selected,le),[Oe.IS_CACHED]:()=>!1,[Oe.IS_ASYNC]:()=>null,[Oe.IS_LOADING]:()=>!1};function L(K,le,ae,$=void 0){let M=$;$===void 0&&typeof k[ae]=="function"&&(M=k[ae](le,K));const V=ei[ae];if(Object.prototype.hasOwnProperty.call(le,V))return le[V];const z=(N==null?void 0:N.get(le))??void 0;let q;return z&&(q=z[ae]),q==null&&(q=M),q}function D(K,le){if(!e.selectable)return!1;const ae=Ju(le,e.selected,K);return L(K,le,Oe.IS_SELECTED,ae)}function H(K,le,ae){var V;const $=L(K,le,Oe.IS_OPEN),M=I.has(ae)?(V=I.get(ae))==null?void 0:V[Oe.IS_OPEN]:!0;return $&&M}function B(K,le,ae){if(!Vb(e,{data:K,attributes:ae}))return!1;const M=Ju(K,e.checked,le);return L(le,K,Oe.IS_CHECKED,M)}function W(K){return!((K==null?void 0:K[Oe.IS_OPEN])??!1)}function J(K,le,ae,$){return K[Oe.IS_INDETERMINATE]=($[e.children]||[]).some(M=>{var V;return!(((V=I.get(M))==null?void 0:V[Oe.IS_CHECKED])??!1)}),!0}function G(K,le=0,ae=null,$=null){const M=K.length;for(let V=0;V<M;V++){const z=K[V];if(Array.isArray(z))G(z,le,ae,$);else if(typeof z=="object"&&z!==null){const q=$!==null?`${$}-${V}`:`${V}`,se=`${P(z)}`,ce=!!(z[x]||[]).length;let Ce=L(se,z,Oe.IS_OPEN);e.autoOpenParentNode?Ce&&A(ae,Oe.IS_OPEN,!0,W):Ce=H(se,z,ae);const re={[Oe.DEPTH]:le,[Oe.INDEX]:T,[Oe.UUID]:se,[Oe.PARENT]:ae,[Oe.HAS_CHILD]:ce,[Oe.PATH]:q,[Oe.IS_ROOT]:ae===null,[Oe.ORDER]:T,[Oe.IS_SELECTED]:D(se,z),[Oe.IS_MATCH]:L(se,z,Oe.IS_MATCH),[Oe.IS_OPEN]:Ce,[Oe.IS_CHECKED]:void 0,[Oe.IS_CACHED]:L(se,z,Oe.IS_CACHED),[Oe.IS_ASYNC]:L(se,z,Oe.IS_ASYNC),[Oe.IS_LOADING]:L(se,z,Oe.IS_LOADING),[Oe.IS_INDETERMINATE]:!1};re[Oe.IS_CHECKED]=B(z,se,re),re[Oe.IS_CHECKED]&&_.push(z),I.set(z,re),O.push(z),T+=1,Object.prototype.hasOwnProperty.call(z,x)&&G(z[x]||[],le+1,z,q)}}}return G(C??S),e.showCheckbox!==!1&&e.checkStrictly&&(_==null||_.forEach(K=>{A(K,Oe.IS_CHECKED,!0,J)})),[O,I]},n=t(),r=new Map,i=[],s=[],l=a.reactive({data:n[0],schema:n[1],levelLineSchema:{}}),{asyncNodeClick:u,deepAutoOpen:d}=Pb(e,l),h=C=>{i.push(C)},m=(C,N,S=!0)=>{S&&r.has(C)&&r.delete(C),r.set(C,N)},f=C=>typeof C=="function"?{type:"loop",fn:C}:typeof C=="object"&&typeof C.type=="string"&&typeof C.fn=="function"?C:(console.error("loop event error",C),null),p=C=>{const N=f(C);return N!==null&&Reflect.apply(N.fn,void 0,[]),(N==null?void 0:N.type)??"once"},y=()=>{Array.from(r.keys()).forEach(C=>{const N=r.get(C);if(Array.isArray(N)){const S=[];N.forEach((x,_)=>{p(x)==="once"&&S.unshift(_)}),S.length&&S.forEach(x=>N.splice(x,1)),N.length===0&&r.delete(C)}else p(N)==="once"&&r.delete(C)})};a.watch(()=>[e.data],C=>{var S,x;const N=t(C[0],l.schema);l.data=N[0],l.schema=N[1],(S=e.async)!=null&&S.callback&&((x=e.async)==null?void 0:x.deepAutoOpen)==="every"&&d(),y()},{deep:!0}),e.selectable&&a.onMounted(()=>{a.watch(()=>e.selected,C=>{s.length=0,i.forEach(N=>{Reflect.apply(N,void 0,[C]),s.push(()=>Reflect.apply(N,void 0,[C]))}),m("afterSelectWatch",s)},{immediate:!0})});const b=C=>{m("afterDataUpdate",C)};return(w=e.async)!=null&&w.callback&&d(),{flatData:l,asyncNodeClick:u,deepAutoOpen:d,afterDataUpdate:b,registerNextLoop:m,onSelected:h}},kb=ut(a.defineComponent({name:"Tree",props:u$,emits:c$,setup(e,t){const n=a.ref(),{flatData:r,onSelected:i,registerNextLoop:s}=_$(e),{checkNodeIsOpen:l,isRootNode:u,isNodeOpened:d,isNodeChecked:h,isNodeMatched:m,hasChildNode:f,getNodePath:p,getNodeId:y,getNodeAttr:b,getNodeById:w,getParentNode:C,getRootNodeList:N,getIntersectionResponse:S}=Xu(r,e),{searchFn:x,isSearchActive:_,refSearch:O,isSearchDisabled:T,isTreeUI:I,showChildNodes:A}=N$(e),P=a.reactive([]),k=te=>{if(_.value){if(A){const ee=`${p(te)??""}-`,ye=l(te),he=m(te),j=u(te);return ye?j?he:he||P.some(X=>ee.indexOf(`${X}-`)===0):!1}return l(te)&&m(te)}return l(te)},L=a.computed(()=>r.data.filter(te=>k(te))),{getLastVisibleElement:D,intersectionObserver:H}=f$(e),{renderTreeNode:B,handleTreeNodeClick:W,setOpen:J,setNodeAction:G,setSelect:K,asyncNodeClick:le,setNodeAttribute:ae,isIndeterminate:$,deepUpdateChildNode:M,updateParentChecked:V}=b$(e,t,r,L,{registerNextLoop:s}),z=yo(120,()=>{P.length=0,r.data.forEach(te=>{const Ne=x(Ib(te,e),te);Ne&&P.push(p(te)),ae(te,[Oe.IS_MATCH],[Ne],I.value&&Ne)})});T||a.watch([O],()=>{z()},{deep:!0,immediate:!0}),a.onMounted(()=>{e.virtualRender&&a.nextTick(()=>{re()})});const q=(te,Ne=!0,ee=!1)=>{(j=>{if(Array.isArray(j))return j.map(X=>typeof X=="string"||typeof X=="number"?w(X):X).filter(Boolean);if(typeof j=="string"||typeof j=="number"){const X=w(j);return X?[X]:[]}return[j].filter(Boolean)})(te).forEach(j=>{const X=wl(j);G(X,Oe.IS_CHECKED,Ne),Ne&&G(X,Oe.IS_INDETERMINATE,!1),e.checkStrictly&&(M(X,[Oe.IS_CHECKED,Oe.IS_INDETERMINATE],[Ne,!1]),V(X,Ne))}),ee&&t.emit(kn.NODE_CHECKED,r.data.filter(j=>h(j)),r.data.filter(j=>$(j)))};i(te=>{K(te,!0,e.autoOpenParentNode,!0)});const se=()=>{const te=Ne=>(Ne??[]).map(ee=>{const ye=l$.cloneDeep(ee);if(!ye)return ye;const he=r.data.filter(j=>C(j)===ee);return ye[e.children]=te(he),ye});return te(N())},ce=te=>te?{data:se(),schema:r.schema,levelLineSchema:r.levelLineSchema}:r;a.watch(()=>[e.checked],()=>{r.data.forEach(te=>{(h(te)||$(te))&&(G(te,Oe.IS_CHECKED,!1),G(te,Oe.IS_INDETERMINATE,!1))}),q(e.checked,!0)},{immediate:!0});const Ce=()=>{var te;(te=n.value)==null||te.reset()},re=te=>{if(te==null){n.value.fixToTop({index:1});return}if(e.nodeKey&&Object.prototype.hasOwnProperty.call(te,e.nodeKey)){n.value.fixToTop({index:L.value.findIndex(ee=>ee[e.nodeKey]===te[e.nodeKey])+1});return}if(te.id!==void 0&&te.id!==null){n.value.fixToTop({index:L.value.findIndex(ee=>ee[e.nodeKey]===te.id)+1});return}if(te.index>=0){n.value.fixToTop({index:te.index});return}const Ne=y(te);if(Ne){n.value.fixToTop({index:L.value.findIndex(ee=>y(ee)===Ne)+1});return}},oe=(te,Ne=!0,ee=!1)=>{q(w(te),Ne,ee)};t.expose({handleTreeNodeClick:W,isNodeChecked:h,isRootNode:u,isNodeOpened:d,isNodeMatched:m,hasChildNode:f,setOpen:J,setChecked:q,setCheckedById:oe,setNodeAction:G,setNodeOpened:J,setSelect:K,scrollToTop:re,asyncNodeClick:le,getData:ce,reset:Ce,getNodeAttr:b,getParentNode:C});const{renderEmpty:pe}=d$(e);C$(e,t,n,r);const Q=te=>{var ee,ye;if(te.length)return te.map(he=>B(he,!_.value||I.value));const Ne=_.value?"search-empty":"empty";return((ye=(ee=t.slots).empty)==null?void 0:ye.call(ee))??pe(Ne)},Z=([te,Ne,ee])=>{var ye,he,j,X;if(H.value.enabled&&te.offset.y>5){if(!e.virtualRender){const de=D(te.offset.y,n.value.refRoot),ne=S(de[0]);(he=(ye=H.value)==null?void 0:ye.callback)==null||he.call(ye,ne),t.emit(kn.NODE_ENTER_VIEW,ne);return}const we=S(ee.slice(-1)[0]);(X=(j=H.value)==null?void 0:j.callback)==null||X.call(j,we),t.emit(kn.NODE_ENTER_VIEW,we);return}},{resolveClassName:Y}=Ae();return()=>a.createVNode(qo,{ref:n,style:h$(null,e),height:e.height,class:Y("tree"),contentClassName:Y("container"),enabled:e.virtualRender,keepAlive:!0,lineHeight:e.lineHeight,list:L.value,rowKey:Oe.UUID,throttleDelay:0,onContentScroll:Z},{default:te=>Q(te.data||[])})}})),ki="upload";var _a=(e=>(e.BUTTON="button",e.DRAGGABLE="draggable",e.PICTURE="picture",e))(_a||{}),g6=(e=>(e.BINARY="binary",e.FORMDATA="formdata",e))(g6||{}),Ms=(e=>(e.FAIL="fail",e.NEW="new",e.SUCCESS="success",e.UPLOADING="uploading",e))(Ms||{});const Mb=[_a.BUTTON,_a.DRAGGABLE,_a.PICTURE],$b=[g6.FORMDATA,g6.BINARY],mr={type:{type:String,default:"formdata",validator:e=>!e||$b.includes(e)?!0:(console.error(`invalid type, ${e}, the type must be one of 【${$b.join(" | ")}】`),!1)},theme:{type:String,default:"draggable",validator:e=>!e||Mb.includes(e)?!0:(console.error(`invalid theme, ${e}, the theme must be one of 【${Mb.join(" | ")}】`),!1)},files:{type:Array,default:()=>[]},name:{type:String,default:"upload_file"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},accept:{type:String},delayTime:{type:Number,default:0},url:{type:String,required:!1},method:{type:String,default:"post"},size:{type:[Number,Object],default(){return{maxFileSize:5,maxImgSize:1}}},handleResCode:{type:Function,default(e){return!!(e&&e.code===0)}},headers:{type:Object,default:()=>({})},header:{type:[Array,Object],default:()=>[]},tip:{type:String,default:""},validateName:{type:RegExp},withCredentials:{type:Boolean,default:!1},limit:Number,data:{type:[Array,Object],default:()=>[]},formDataAttributes:{type:[Array,Object],default:()=>[]},extCls:{type:String,default:""},customRequest:Function,selectChange:{type:Function},beforeUpload:{type:Function},beforeRemove:{type:Function},sliceUpload:{type:Boolean,default:!1},sliceUrl:{type:String,default:""},mergeUrl:{type:String,default:""},chunkSize:{type:Number,default:10},isShowPreview:{type:Boolean,default:!0}};function Fb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const x$=a.defineComponent({name:"UploadList",props:{theme:mr.theme,disabled:mr.disabled,files:mr.files,multiple:mr.multiple,isShowPreview:mr.isShowPreview},emits:["remove","preview","retry"],setup(e,{slots:t,emit:n}){const r=St("upload"),{resolveClassName:i}=Ae(),{theme:s,disabled:l,multiple:u,isShowPreview:d}=a.toRefs(e),h=`${i(ki)}-list`,m=a.computed(()=>s.value===_a.PICTURE),f=a.computed(()=>m.value&&!u.value),p=a.computed(()=>Ze({[h]:!0,[`${h}--${s.value}`]:!0,[`${h}--disabled`]:l.value}));function y(T){const I=["Bytes","KB","MB","GB","TB"],A=Math.floor(Math.log(T)/Math.log(1024));return`${(T/1024**A).toFixed(2)}${I[A]}`}function b(T,I,A){n("preview",T,I,A)}function w(T,I){n("remove",T,I)}function C(T,I){n("retry",T,I)}const N=()=>{let T;return a.createVNode(a.TransitionGroup,{name:`${h}__item`},Fb(T=e.files.map(I=>{const A=Ze({[`${h}__item`]:!0,[`${h}__item-picture`]:!0,[`${h}__item--${I.status}`]:!0});return a.createVNode("li",{key:I.uid,class:A},[t!=null&&t.file?t.file({file:I}):S(I)])}))?T:{default:()=>[T]})},S=T=>[a.withDirectives(a.createVNode("img",{class:`${h}__picture-item-thumbnail`,alt:"",src:T.url},null),[[a.vShow,T.status!=="uploading"]]),a.createVNode(a.Fragment,null,[T.status==="uploading"&&a.createVNode(pl,{width:50,class:`${h}__picture-item-progress`,bgColor:"#333",color:"#3a84ff",percent:T.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!l.value&&a.createVNode("div",{class:`${h}__picture-item-actions`},[d.value&&a.createVNode(ps,{class:"action-icon",onClick:I=>b(T,e.files,I)},null),a.createVNode(ms,{class:"action-icon",onClick:I=>w(T,I)},null)])])],x=()=>{let T;return a.createVNode(a.TransitionGroup,{name:`${h}__item`},Fb(T=e.files.map(I=>{const A=Ze({[`${h}__item`]:!0,[`${h}__item--${I.status}`]:!0});return a.createVNode("li",{key:I.uid,class:A},[t!=null&&t.file?t.file({file:I}):O(I)])}))?T:{default:()=>[T]})},_=T=>{var D;const I=(D=T==null?void 0:T.raw)==null?void 0:D.type,[A]=(I==null?void 0:I.split("/"))||"";let k={text:ys,image:Ac,application:ys,video:Fc,audio:vc}[A]||ys;return["application/zip","application/rar","application/tar","application/gz","application/x-gzip"].includes(I)&&(k=hc),a.h(k,{class:`${h}__item-file-icon`})},O=T=>[a.createVNode("div",{class:`${h}__item-icon`},[T.isPic?a.createVNode("img",{class:`${h}__item-thumbnail`,alt:"",src:T.url},null):_(T)]),a.createVNode("div",{class:`${h}__item-summary`},[a.createVNode("div",{class:`${h}__item-name`,title:T.name},[T.name]),T.status!=="uploading"&&a.createVNode("div",{class:`${h}__item-message`,title:T.statusText},[T.status==="success"&&a.createVNode(a.Fragment,null,[a.createVNode(_i,{class:`${h}__item-message-success-icon`},null),T.statusText||r.value.uploadSuccess]),T.status==="fail"&&a.createVNode(a.Fragment,null,[T.statusText||r.value.uploadFailed])]),T.status==="uploading"&&a.createVNode(pl,{class:`${h}__item-progress`,percent:T.percentage,showText:!1,size:"small"},null),T.status!=="fail"&&a.createVNode("div",{class:`${h}__item-speed`},[a.withDirectives(a.createVNode("span",{class:`${h}__item-speed-size`},[y(T.size)]),[[a.vShow,T.size]]),a.withDirectives(a.createVNode("span",{class:`${h}__item-speed-percentage`},[T.percentage,a.createTextVNode("%")]),[[a.vShow,T.status==="uploading"]])]),!l.value&&a.createVNode("div",{class:`${h}__item-actions`},[T.status==="fail"&&a.createVNode(Rc,{class:`${h}__item-retry-icon`,onClick:I=>C(T,I)},null),a.createVNode(ms,{class:`${h}__item-del-icon`,onClick:I=>w(T,I)},null)])])];return()=>{var T,I,A;return a.createVNode(a.Fragment,null,[f.value?(I=t==null?void 0:t.innerTrigger)==null?void 0:I.call(t,(T=e.files)==null?void 0:T[0]):a.createVNode("ul",{class:p.value},[m.value?N():x(),(A=t==null?void 0:t.innerTrigger)==null?void 0:A.call(t)])])}}}),Hb=a.defineComponent({name:"UploadTrigger",props:{theme:mr.theme,disabled:mr.disabled,multiple:mr.multiple,accept:mr.accept,file:{type:Object},selectChange:mr.selectChange,isShowPreview:mr.isShowPreview},emits:["change","remove","preview"],setup(e,{slots:t,emit:n}){const r=St("upload"),{resolveClassName:i}=Ae(),{theme:s,disabled:l,file:u,multiple:d,accept:h,isShowPreview:m}=a.toRefs(e),f=`${i(ki)}-trigger`,p=a.computed(()=>s.value===_a.BUTTON),y=a.computed(()=>s.value===_a.DRAGGABLE),b=a.computed(()=>s.value===_a.PICTURE),w=a.computed(()=>b.value&&!d.value),C=a.computed(()=>b.value&&!h.value?"image/png,image/jpeg,image/jpg":h.value),N=a.ref(null),S=a.computed(()=>{var J;return Ze({[f]:!0,[`${f}--${s.value}`]:!0,[`${f}--single-picture`]:w.value,[`${f}--has-file`]:u.value??!1,[`${f}--${(J=u.value)==null?void 0:J.status}`]:u.value??!1,[`${f}--dragover`]:P.value,[`${f}--disabled`]:l.value})}),x=()=>{N.value.value=null,N.value.click()},_=J=>{var K;if(e.selectChange&&((K=e.selectChange)==null?void 0:K.call(e,J))===!1)return!1;const{files:G}=J.target;n("change",Array.from(G))},O=()=>{e.disabled||x()},T=J=>{J.defaultPrevented||J.target!==J.currentTarget||((J.code==="Enter"||J.code==="Space")&&x(),J.preventDefault())};function I(J,G){n("remove",J,G),G.stopPropagation(),G.preventDefault()}function A(J,G){n("preview",J,[J],G),G.stopPropagation(),G.preventDefault()}const P=a.ref(!1),k=()=>{const J=ae=>{var M;if(l.value)return;if(ae.preventDefault(),P.value=!1,e.selectChange&&((M=e.selectChange)==null?void 0:M.call(e,ae))===!1)return!1;const $=Array.from(ae.dataTransfer.files);n("change",$)},G=ae=>{ae.preventDefault(),P.value=!0},K=()=>{P.value=!1},le=Ze({[`${f}__draggable`]:!0});return a.createVNode("div",{class:le,onDragleave:K,onDragover:G,onDrop:J},[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode(Mo,{class:`${f}__draggable-icon`},null),a.createVNode("div",{class:`${f}__draggable-text`},[r.value.drapFileOr,a.createVNode("span",{class:`${f}__draggable-upload-link`},[r.value.clickUpload])])])])},L=()=>a.createVNode(a.Fragment,null,[w.value&&e.file?H(e.file):D()]),D=()=>a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode("div",{class:`${f}__picture-inner`},[a.createVNode(Po,{class:`${f}__picture-icon`},null),a.createVNode("div",{class:`${f}__picture-text`},[r.value.clickUpload])])]),H=J=>[a.withDirectives(a.createVNode("img",{class:`${f}__picture-thumbnail`,alt:"",src:J.url},null),[[a.vShow,J.status!=="uploading"]]),a.createVNode(a.Fragment,null,[J.status==="uploading"&&a.createVNode(pl,{width:50,class:`${f}__picture-progress`,bgColor:"#333",color:"#3a84ff",percent:J.percentage,titleStyle:{color:"#fff"},type:"circle"},null)]),a.createVNode(a.Fragment,null,[!e.disabled&&a.createVNode("div",{class:`${f}__picture-actions`},[m.value&&a.createVNode(ps,{class:"action-icon",onClick:G=>A(J,G)},null),a.createVNode(ms,{class:"action-icon",onClick:G=>I(J,G)},null)])])],B=()=>a.createVNode(en,{disabled:l.value},{default:()=>[a.createVNode(a.Fragment,null,[t.default?t.default():a.createVNode(a.Fragment,null,[a.createVNode(Mo,{class:`${f}__button-icon`},null),a.createVNode("span",{class:`${f}__button-text`},[r.value.uploadLabel])])])]}),W=()=>{if(p.value)return B();if(y.value)return k();if(b.value)return L()};return()=>{var J;return a.createVNode("div",{class:S.value,tabindex:"0",onClick:O,onKeydown:T},[t.trigger?[t.trigger(),(J=t==null?void 0:t.default)==null?void 0:J.call(t)]:W(),a.createVNode("input",{ref:N,class:`${f}__input-file`,accept:C.value,disabled:l.value,multiple:d.value,tabindex:"-1",type:"file",onChange:_},null)])}}});var v6={exports:{}},Bb;function S$(){return Bb||(Bb=1,function(e,t){(function(n){e.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(N,S){var x=N[0],_=N[1],O=N[2],T=N[3];x+=(_&O|~_&T)+S[0]-680876936|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[1]-389564586|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[2]+606105819|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[3]-1044525330|0,_=(_<<22|_>>>10)+O|0,x+=(_&O|~_&T)+S[4]-176418897|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[5]+1200080426|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[6]-1473231341|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[7]-45705983|0,_=(_<<22|_>>>10)+O|0,x+=(_&O|~_&T)+S[8]+1770035416|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[9]-1958414417|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[10]-42063|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[11]-1990404162|0,_=(_<<22|_>>>10)+O|0,x+=(_&O|~_&T)+S[12]+1804603682|0,x=(x<<7|x>>>25)+_|0,T+=(x&_|~x&O)+S[13]-40341101|0,T=(T<<12|T>>>20)+x|0,O+=(T&x|~T&_)+S[14]-1502002290|0,O=(O<<17|O>>>15)+T|0,_+=(O&T|~O&x)+S[15]+1236535329|0,_=(_<<22|_>>>10)+O|0,x+=(_&T|O&~T)+S[1]-165796510|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[6]-1069501632|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[11]+643717713|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[0]-373897302|0,_=(_<<20|_>>>12)+O|0,x+=(_&T|O&~T)+S[5]-701558691|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[10]+38016083|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[15]-660478335|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[4]-405537848|0,_=(_<<20|_>>>12)+O|0,x+=(_&T|O&~T)+S[9]+568446438|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[14]-1019803690|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[3]-187363961|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[8]+1163531501|0,_=(_<<20|_>>>12)+O|0,x+=(_&T|O&~T)+S[13]-1444681467|0,x=(x<<5|x>>>27)+_|0,T+=(x&O|_&~O)+S[2]-51403784|0,T=(T<<9|T>>>23)+x|0,O+=(T&_|x&~_)+S[7]+1735328473|0,O=(O<<14|O>>>18)+T|0,_+=(O&x|T&~x)+S[12]-1926607734|0,_=(_<<20|_>>>12)+O|0,x+=(_^O^T)+S[5]-378558|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[8]-2022574463|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[11]+1839030562|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[14]-35309556|0,_=(_<<23|_>>>9)+O|0,x+=(_^O^T)+S[1]-1530992060|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[4]+1272893353|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[7]-155497632|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[10]-1094730640|0,_=(_<<23|_>>>9)+O|0,x+=(_^O^T)+S[13]+681279174|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[0]-358537222|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[3]-722521979|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[6]+76029189|0,_=(_<<23|_>>>9)+O|0,x+=(_^O^T)+S[9]-640364487|0,x=(x<<4|x>>>28)+_|0,T+=(x^_^O)+S[12]-421815835|0,T=(T<<11|T>>>21)+x|0,O+=(T^x^_)+S[15]+530742520|0,O=(O<<16|O>>>16)+T|0,_+=(O^T^x)+S[2]-995338651|0,_=(_<<23|_>>>9)+O|0,x+=(O^(_|~T))+S[0]-198630844|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[7]+1126891415|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[14]-1416354905|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[5]-57434055|0,_=(_<<21|_>>>11)+O|0,x+=(O^(_|~T))+S[12]+1700485571|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[3]-1894986606|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[10]-1051523|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[1]-2054922799|0,_=(_<<21|_>>>11)+O|0,x+=(O^(_|~T))+S[8]+1873313359|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[15]-30611744|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[6]-1560198380|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[13]+1309151649|0,_=(_<<21|_>>>11)+O|0,x+=(O^(_|~T))+S[4]-145523070|0,x=(x<<6|x>>>26)+_|0,T+=(_^(x|~O))+S[11]-1120210379|0,T=(T<<10|T>>>22)+x|0,O+=(x^(T|~_))+S[2]+718787259|0,O=(O<<15|O>>>17)+T|0,_+=(T^(O|~x))+S[9]-343485551|0,_=(_<<21|_>>>11)+O|0,N[0]=x+N[0]|0,N[1]=_+N[1]|0,N[2]=O+N[2]|0,N[3]=T+N[3]|0}function s(N){var S=[],x;for(x=0;x<64;x+=4)S[x>>2]=N.charCodeAt(x)+(N.charCodeAt(x+1)<<8)+(N.charCodeAt(x+2)<<16)+(N.charCodeAt(x+3)<<24);return S}function l(N){var S=[],x;for(x=0;x<64;x+=4)S[x>>2]=N[x]+(N[x+1]<<8)+(N[x+2]<<16)+(N[x+3]<<24);return S}function u(N){var S=N.length,x=[1732584193,-271733879,-1732584194,271733878],_,O,T,I,A,P;for(_=64;_<=S;_+=64)i(x,s(N.substring(_-64,_)));for(N=N.substring(_-64),O=N.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<O;_+=1)T[_>>2]|=N.charCodeAt(_)<<(_%4<<3);if(T[_>>2]|=128<<(_%4<<3),_>55)for(i(x,T),_=0;_<16;_+=1)T[_]=0;return I=S*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(I[2],16),P=parseInt(I[1],16)||0,T[14]=A,T[15]=P,i(x,T),x}function d(N){var S=N.length,x=[1732584193,-271733879,-1732584194,271733878],_,O,T,I,A,P;for(_=64;_<=S;_+=64)i(x,l(N.subarray(_-64,_)));for(N=_-64<S?N.subarray(_-64):new Uint8Array(0),O=N.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<O;_+=1)T[_>>2]|=N[_]<<(_%4<<3);if(T[_>>2]|=128<<(_%4<<3),_>55)for(i(x,T),_=0;_<16;_+=1)T[_]=0;return I=S*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(I[2],16),P=parseInt(I[1],16)||0,T[14]=A,T[15]=P,i(x,T),x}function h(N){var S="",x;for(x=0;x<4;x+=1)S+=r[N>>x*8+4&15]+r[N>>x*8&15];return S}function m(N){var S;for(S=0;S<N.length;S+=1)N[S]=h(N[S]);return N.join("")}m(u("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function N(S,x){return S=S|0||0,S<0?Math.max(S+x,0):Math.min(S,x)}ArrayBuffer.prototype.slice=function(S,x){var _=this.byteLength,O=N(S,_),T=_,I,A,P,k;return x!==n&&(T=N(x,_)),O>T?new ArrayBuffer(0):(I=T-O,A=new ArrayBuffer(I),P=new Uint8Array(A),k=new Uint8Array(this,O,I),P.set(k),A)}}();function f(N){return/[\u0080-\uFFFF]/.test(N)&&(N=unescape(encodeURIComponent(N))),N}function p(N,S){var x=N.length,_=new ArrayBuffer(x),O=new Uint8Array(_),T;for(T=0;T<x;T+=1)O[T]=N.charCodeAt(T);return S?O:_}function y(N){return String.fromCharCode.apply(null,new Uint8Array(N))}function b(N,S,x){var _=new Uint8Array(N.byteLength+S.byteLength);return _.set(new Uint8Array(N)),_.set(new Uint8Array(S),N.byteLength),_}function w(N){var S=[],x=N.length,_;for(_=0;_<x-1;_+=2)S.push(parseInt(N.substr(_,2),16));return String.fromCharCode.apply(String,S)}function C(){this.reset()}return C.prototype.append=function(N){return this.appendBinary(f(N)),this},C.prototype.appendBinary=function(N){this._buff+=N,this._length+=N.length;var S=this._buff.length,x;for(x=64;x<=S;x+=64)i(this._hash,s(this._buff.substring(x-64,x)));return this._buff=this._buff.substring(x-64),this},C.prototype.end=function(N){var S=this._buff,x=S.length,_,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T;for(_=0;_<x;_+=1)O[_>>2]|=S.charCodeAt(_)<<(_%4<<3);return this._finish(O,x),T=m(this._hash),N&&(T=w(T)),this.reset(),T},C.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},C.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},C.prototype.setState=function(N){return this._buff=N.buff,this._length=N.length,this._hash=N.hash,this},C.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},C.prototype._finish=function(N,S){var x=S,_,O,T;if(N[x>>2]|=128<<(x%4<<3),x>55)for(i(this._hash,N),x=0;x<16;x+=1)N[x]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(_[2],16),T=parseInt(_[1],16)||0,N[14]=O,N[15]=T,i(this._hash,N)},C.hash=function(N,S){return C.hashBinary(f(N),S)},C.hashBinary=function(N,S){var x=u(N),_=m(x);return S?w(_):_},C.ArrayBuffer=function(){this.reset()},C.ArrayBuffer.prototype.append=function(N){var S=b(this._buff.buffer,N),x=S.length,_;for(this._length+=N.byteLength,_=64;_<=x;_+=64)i(this._hash,l(S.subarray(_-64,_)));return this._buff=_-64<x?new Uint8Array(S.buffer.slice(_-64)):new Uint8Array(0),this},C.ArrayBuffer.prototype.end=function(N){var S=this._buff,x=S.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O,T;for(O=0;O<x;O+=1)_[O>>2]|=S[O]<<(O%4<<3);return this._finish(_,x),T=m(this._hash),N&&(T=w(T)),this.reset(),T},C.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},C.ArrayBuffer.prototype.getState=function(){var N=C.prototype.getState.call(this);return N.buff=y(N.buff),N},C.ArrayBuffer.prototype.setState=function(N){return N.buff=p(N.buff,!0),C.prototype.setState.call(this,N)},C.ArrayBuffer.prototype.destroy=C.prototype.destroy,C.ArrayBuffer.prototype._finish=C.prototype._finish,C.ArrayBuffer.hash=function(N,S){var x=d(new Uint8Array(N)),_=m(x);return S?w(_):_},C})}(v6)),v6.exports}var T$=S$();const Ub=Jt(T$),ti="An error occurred during upload";function Cl(e){const t=e.responseText||e.response;if(!t)return t||{};try{return JSON.parse(t)}catch{return t}}const E$=e=>{if(typeof XMLHttpRequest>"u")throw new Error("XMLHttpRequest is undefined");const t=new XMLHttpRequest,{action:n,type:r}=e,i=r==="formdata";t.upload&&t.upload.addEventListener("progress",u=>{const d=u;d.percent=u.total>0?u.loaded/u.total*100:0,e.onProgress(d)});const s=new FormData;if(i&&e.data){let u=e.data;Array.isArray(u)||(u=[u]),u.forEach(d=>{for(const[h,m]of Object.entries(d))Array.isArray(m)?s.append(h,...m):s.append(h,m)})}if(i&&e.formDataAttributes){let u=e.formDataAttributes;Array.isArray(u)||(u=[u]),u.forEach(d=>{Array.isArray(d.value)?s.append(d.name,...d.value):s.append(d.name,d.value)})}if(i&&s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{let u=new Error(ti);const d=Cl(t);d&&(u=new Error(d.message||ti)),console.log(d,u),e.onError(u)}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300){const u=Cl(t);let d=new Error(ti);return u&&(d=new Error(u.message||ti)),e.onError(d)}e.onSuccess(Cl(t))}),t.addEventListener("loadend",()=>{e.onComplete()}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0),e.header)if(Array.isArray(e.header))e.header.forEach(u=>{const d=u.name,h=u.value;t.setRequestHeader(d,h)});else{const u=e.header.name,d=e.header.value;t.setRequestHeader(u,d)}const l=e.headers||{};if(l instanceof Headers)l.forEach((u,d)=>t.setRequestHeader(d,u));else for(const[u,d]of Object.entries(l))L9(d)||t.setRequestHeader(u,String(d));return t.send(i?s:e.file),t},zb=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,O$=async e=>{const t=e.chunkSize*1024*1024,{file:n}=e;if(!n)throw new Error("File not found");const r=Math.ceil(n.size/t),i=await L$(n,t),s=[];A$(e,n,r,i,s,t),await Promise.all(s).then(()=>{const l={size:n.size,name:n.name,total:r,hash:i},u=new XMLHttpRequest;u.open(e.method,e.mergeUrl,!0),u.onreadystatechange=()=>{if(u.readyState===4){const d=Cl(u);if(u.status<200||u.status>=300){let h=new Error(ti);return d&&(h=new Error(d.message||ti)),e.onError(h)}e.onSuccess(d)}},u.onloadend=()=>{e.onComplete()},u.setRequestHeader("Content-type","application/JSON"),u.send(JSON.stringify(l))})},A$=(e,t,n,r,i,s)=>{for(let l=0;l<n;l++){const u=new Promise((d,h)=>{const m=l*s,f=Math.min(t.size,m+s),p=new FormData;if(e.data){let w=e.data;Array.isArray(w)||(w=[w]),w.forEach(C=>{for(const[N,S]of Object.entries(C))Array.isArray(S)?p.append(N,...S):p.append(N,S)})}if(e.formDataAttributes){let w=e.formDataAttributes;Array.isArray(w)||(w=[w]),w.forEach(C=>{Array.isArray(C.value)?p.append(C.name,...C.value):p.append(C.name,C.value)})}p.append("file",zb.call(t,m,f)),p.append("name",t.name),p.append("total",n.toString()),p.append("index",l.toString()),p.append("size",t.size.toString()),p.append("hash",r.toString());const y=new XMLHttpRequest;if(y.onreadystatechange=()=>{if(y.readyState===4){const w=Cl(y);if(y.status<200||y.status>=300){h(w);let C=new Error(ti);w&&(C=new Error(w.message||ti)),e.onError(C)}else d("reponseText")}},y.upload.addEventListener("progress",w=>{const C=w;e.onProgress(C,l)},!1),e.withCredentials&&"withCredentials"in y&&(y.withCredentials=!0),y.open(e.method,e.sliceUrl,!0),e.header)if(Array.isArray(e.header))e.header.forEach(w=>{const C=w.name,N=w.value;y.setRequestHeader(C,N)});else{const w=e.header.name,C=e.header.value;y.setRequestHeader(w,C)}const b=e.headers||{};if(b instanceof Headers)b.forEach((w,C)=>y.setRequestHeader(C,w));else for(const[w,C]of Object.entries(b))L9(C)||y.setRequestHeader(w,String(C));y.send(p)});i.push(u)}},L$=(e,t)=>new Promise((n,r)=>{const i=Math.ceil(e.size/t);let s=0;const l=new Ub.ArrayBuffer,u=new FileReader;function d(){const h=s*t,m=h+t>=e.size?e.size:h+t;u.readAsArrayBuffer(zb.call(e,h,m))}u.onload=h=>{if(l.append(h.target.result),s+=1,s<i)d();else{const m=l.end(),f=new Ub;f.append(m),f.append(e.name);const p=f.end();n(p)}},u.onerror=()=>{r(new Error("File slice failed"))},d()}).catch(n=>{console.log(n)});function jb(e){return Date.now()+e}const D$=(e,t)=>{const n=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),r=a.computed(()=>{var p;return typeof e.size=="number"?e.size:(p=e==null?void 0:e.size)==null?void 0:p.maxImgSize}),i=a.ref([]);function s(p){return i.value.find(y=>y.uid===p.uid)}let l=0;function u(p){var C;l+=1,p.uid=jb(l);const y={uid:p.uid,name:p.name,status:Ms.NEW,size:p.size,raw:p},b=p.type.startsWith("image/");let w=null;if(b){try{y.url=window.URL.createObjectURL(p)}catch(N){console.error(N)}y.isPic=!0}return e.validateName&&!((C=e.validateName)!=null&&C.test(y.name))&&(y.status=Ms.FAIL,y.statusText="invalid filename",w=new Error(y.statusText)),b&&p.size>n.value*1024**2&&(y.status=Ms.FAIL,y.statusText="invalid file size",w=new Error(y.statusText)),!b&&p.size>r.value*1024**2&&(y.status=Ms.FAIL,y.statusText="invalid file size",w=new Error(y.statusText)),i.value.push(y),w}async function d(p){var w;const y=p instanceof File?s(p):p,b=C=>{var N;t.onRemove(C,i.value),i.value.splice(i.value.indexOf(y),1),(N=C.url)!=null&&N.startsWith("blob:")&&URL.revokeObjectURL(C.url)};e.beforeRemove?await((w=e.beforeRemove)==null?void 0:w.call(e,y,i.value))!==!1&&b(y):b(y)}async function h(p,y,b){const w=s(y);w&&(w.status="fail",w.statusText=p.message,w.response=b)}async function m(p,y){const b=s(y);b&&(b.status="success",b.response=p)}async function f(p,y){const b=s(y);b&&(b.status="uploading",b.percentage=Math.round(p.percent))}return a.watch(()=>e.files,p=>{i.value=p.map(y=>(l+=1,{...y,uid:y.uid??jb(l),status:y.status??Ms.SUCCESS}))},{immediate:!0,deep:!0}),{fileList:i,handlePreprocess:u,handleRemove:d,handleError:h,handleSuccess:m,handleProgress:f}},Wb=ut(a.defineComponent({name:"Upload",props:mr,emits:["exceed","progress","success","error","delete","done","preview"],setup(e,{slots:t,emit:n,expose:r}){const{resolveClassName:i}=Ae(),s=a.shallowRef({}),l=a.computed(()=>e.theme===_a.PICTURE),u=a.computed(()=>l.value&&!e.multiple),d=a.computed(()=>Ze({[`${i(ki)}`]:!0,[`${i(ki)}--${e.theme}`]:!0,[`${i(ki)}--disabled`]:e.disabled,[`${i(ki)}--single-picture`]:u.value,[e.extCls]:e.extCls??!1})),h=a.computed(()=>({theme:e.theme,multiple:e.multiple,disabled:e.disabled,accept:e.accept,isShowPreview:e.isShowPreview,selectChange:e.selectChange}));function m(I,A){T(I),n("delete",I,A)}const{fileList:f,handlePreprocess:p,handleRemove:y,handleProgress:b,handleSuccess:w,handleError:C}=D$(e,{onRemove:m});function N(I){if(!I.length)return;if(e.limit>1&&f.value.length+I.length>e.limit){n("exceed",I,f.value);return}!e.multiple&&e.limit===1&&(f.value=[]);let A=I;(!e.multiple||e.limit===1)&&(A=I.slice(0,1));for(const P of A){const k=P,L=p(k);if(L){n("error",k,f.value,L);return}e.autoUpload&&_(k,A)}}function S(I,A){n("preview",I,A)}function x(I){O(I.raw)}async function _(I,A){var k;if(!e.beforeUpload)return O(I,A);let P;try{P=await((k=e.beforeUpload)==null?void 0:k.call(e,I,A))}catch{P=!1}if(P===!1){y(I);return}O(I,A)}function O(I,A){const{type:P,headers:k,header:L,data:D,formDataAttributes:H,method:B,withCredentials:W,name:J,url:G,sliceUrl:K,mergeUrl:le,chunkSize:ae,customRequest:$}=e,{uid:M}=I,V={type:P,headers:k,header:L,withCredentials:W,file:I,data:D,formDataAttributes:H,method:B,filename:J,action:G,sliceUrl:K,mergeUrl:le,chunkSize:ae,onProgress:se=>{b(se,I),n("progress",se,I,f.value)},onSuccess:se=>{var Ce;const ce=se;if((Ce=e==null?void 0:e.handleResCode)!=null&&Ce.call(e,ce))w(se,I),n("success",se,I,f.value);else{const re=new Error((ce==null?void 0:ce.message)||"unknow error");C(re,I,se),n("error",I,f.value,re)}delete s.value[M]},onError:se=>{C(se,I),n("error",I,f.value,se),delete s.value[M]},onComplete:()=>{A&&A.indexOf(I)===A.length-1&&n("done",f.value)}};let z=e.sliceUpload?O$:E$;$&&(z=$);const q=z(V);s.value[M]=q,q instanceof Promise&&q.then(V.onSuccess,V.onError)}function T(I){let A=s.value;I&&(A={[I.uid]:s.value[I.uid]}),Object.keys(A).forEach(P=>{if(A[P]instanceof XMLHttpRequest){const k=A[P];k==null||k.abort()}delete s.value[P]})}return a.onBeforeUnmount(()=>{f.value.forEach(({url:I})=>{I!=null&&I.startsWith("blob:")&&URL.revokeObjectURL(I)})}),r({handlePreview:S,handleRemove:y,handleRetry:x}),()=>a.createVNode("div",{class:d.value},[!l.value&&a.createVNode(Hb,a.mergeProps(h.value,{onChange:N}),t),t.tip?t.tip():e.tip&&a.createVNode("div",{class:`${i(ki)}__tip`},[e.tip]),a.createVNode(x$,{disabled:e.disabled,files:f.value,isShowPreview:e.isShowPreview,multiple:e.multiple,theme:e.theme,onPreview:S,onRemove:y,onRetry:x},{innerTrigger:I=>l.value&&a.createVNode(Hb,a.mergeProps(h.value,{file:I,onChange:N,onPreview:S,onRemove:y}),t),file:t.file})])}})),y6=Object.freeze(Object.defineProperty({__proto__:null,$bkPopover:t2,Affix:$g,Alert:Hg,AnimateNumber:Bg,Backtop:Ug,Badge:zg,Breadcrumb:Wg,Button:en,Card:z4,Cascader:uv,Checkbox:wn,CodeDiff:Lv,Collapse:Rv,ColorPicker:My,ConfigProvider:Mg,Container:$y,DatePicker:Ty,Dialog:Hy,Divider:By,Dropdown:Uy,Exception:xu,FixedNavbar:jy,Form:e7,InfoBox:n7,Input:za,Link:a7,Loading:$a,Menu:l7,Message:w7,Modal:hl,Navigation:N7,Notify:x7,OverflowTitle:u2,Pagination:n6,PopConfirm:S7,Popover:In,Popover2:T7,Process:E7,Progress:pl,Radio:Au,Rate:R7,ResizeLayout:I7,SearchSelect:U7,Select:G2,Sideslider:j7,Slider:q7,Steps:Y7,Swiper:X7,Switcher:J7,Tab:nb,Table:xb,Tag:Yo,TagInput:iv,TimePicker:Sb,Timeline:Tb,Transfer:Eb,Tree:kb,Upload:Wb,VirtualRender:qo,scrollbar:j2},Symbol.toStringTag,{value:"Module"})),qb=(e="Bk")=>(t,n)=>{const r=t.config.globalProperties.bkUIPrefix||e;Object.keys(y6).forEach(i=>{const s=y6[i];"install"in s?t.use(s,{prefix:r}):t.component(r+i,y6[i])}),n&&lh(n,t)},R$={createInstall:qb,install:qb()},Gb="2.0.2-beta.87";window.__bkui_vue_version__=Gb,Ue.$bkPopover=t2,Ue.Affix=$g,Ue.Alert=Hg,Ue.AnimateNumber=Bg,Ue.Backtop=Ug,Ue.Badge=zg,Ue.Breadcrumb=Wg,Ue.Button=en,Ue.Card=z4,Ue.Cascader=uv,Ue.Checkbox=wn,Ue.CodeDiff=Lv,Ue.Collapse=Rv,Ue.ColorPicker=My,Ue.ConfigProvider=Mg,Ue.Container=$y,Ue.DatePicker=Ty,Ue.Dialog=Hy,Ue.Divider=By,Ue.Dropdown=Uy,Ue.Exception=xu,Ue.FixedNavbar=jy,Ue.Form=e7,Ue.InfoBox=n7,Ue.Input=za,Ue.Link=a7,Ue.Loading=$a,Ue.Menu=l7,Ue.Message=w7,Ue.Modal=hl,Ue.Navigation=N7,Ue.Notify=x7,Ue.OverflowTitle=u2,Ue.Pagination=n6,Ue.PopConfirm=S7,Ue.Popover=In,Ue.Popover2=T7,Ue.Process=E7,Ue.Progress=pl,Ue.Radio=Au,Ue.Rate=R7,Ue.ResizeLayout=I7,Ue.SearchSelect=U7,Ue.Select=G2,Ue.Sideslider=j7,Ue.Slider=q7,Ue.Steps=Y7,Ue.Swiper=X7,Ue.Switcher=J7,Ue.Tab=nb,Ue.Table=xb,Ue.Tag=Yo,Ue.TagInput=iv,Ue.TimePicker=Sb,Ue.Timeline=Tb,Ue.Transfer=Eb,Ue.Tree=kb,Ue.Upload=Wb,Ue.VirtualRender=qo,Ue.bkEllipsis=ZE,Ue.bkEllipsisInstance=n2,Ue.bkLoading=Gg,Ue.bkTooltips=Qr,Ue.clickoutside=Kr,Ue.default=R$,Ue.defaultRootConfig=Ni,Ue.mousewheel=lO,Ue.overflowTitle=gO,Ue.provideGlobalConfig=lh,Ue.rootProviderKey=cs,Ue.scrollbar=j2,Ue.setPrefixVariable=oh,Ue.useGlobalConfig=Xx,Ue.useLocale=St,Ue.usePrefix=Ae,Ue.version=Gb,Object.defineProperties(Ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});