@abi-software/scaffoldvuer 0.4.0-vue3.1 → 0.4.0-vue3.3
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/scaffoldvuer.js +11 -12
- package/dist/scaffoldvuer.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +0 -8
- package/src/components/OpacityControls.vue +0 -3
- package/src/components/PrimitiveControls.vue +0 -4
- package/src/components/ScaffoldTooltip.vue +0 -1
- package/src/components/ScaffoldVuer.vue +12 -17
- package/src/components/TextureSlidesControls.vue +0 -6
- package/src/components/TreeControls.vue +0 -7
|
@@ -24,7 +24,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
24
24
|
z-index:-1000 !important;
|
|
25
25
|
top:0 !important;
|
|
26
26
|
right:0 !important;
|
|
27
|
-
`,oJ=["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 aJ(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),o=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:oJ.map(l=>`${l}:${e.getPropertyValue(l)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function yC(t,e=1,n){var r;ta||(ta=document.createElement("textarea"),document.body.appendChild(ta));const{paddingSize:o,borderSize:a,boxSizing:l,contextStyle:s}=aJ(t);ta.setAttribute("style",`${s};${iJ}`),ta.value=t.value||t.placeholder||"";let h=ta.scrollHeight;const u={};l==="border-box"?h=h+a:l==="content-box"&&(h=h-o),ta.value="";const d=ta.scrollHeight-o;if(hr(e)){let p=d*e;l==="border-box"&&(p=p+o+a),h=Math.max(p,h),u.minHeight=`${p}px`}if(hr(n)){let p=d*n;l==="border-box"&&(p=p+o+a),h=Math.min(p,h)}return u.height=`${h}px`,(r=ta.parentNode)==null||r.removeChild(ta),ta=void 0,u}const sJ=Wn({id:{type:String,default:void 0},size:Ss,disabled:Boolean,modelValue:{type:gn([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:gn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Ms},prefixIcon:{type:Ms},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:gn([Object,Array,String]),default:()=>V2({})},autofocus:{type:Boolean,default:!1}}),lJ={[rr]:t=>si(t),input:t=>si(t),change:t=>si(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},cJ=["role"],uJ=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],hJ=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],dJ=c.defineComponent({name:"ElInput",inheritAttrs:!1}),pJ=c.defineComponent({...dJ,props:sJ,emits:lJ,setup(t,{expose:e,emit:n}){const r=t,o=c.useAttrs(),a=c.useSlots(),l=c.computed(()=>{const Je={};return r.containerRole==="combobox"&&(Je["aria-haspopup"]=o["aria-haspopup"],Je["aria-owns"]=o["aria-owns"],Je["aria-expanded"]=o["aria-expanded"]),Je}),s=c.computed(()=>[r.type==="textarea"?_.b():v.b(),v.m(m.value),v.is("disabled",y.value),v.is("exceed",Ae.value),{[v.b("group")]:a.prepend||a.append,[v.bm("group","append")]:a.append,[v.bm("group","prepend")]:a.prepend,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:ee.value&&oe.value},o.class]),h=c.computed(()=>[v.e("wrapper"),v.is("focus",z.value)]),u=oX({excludeKeys:c.computed(()=>Object.keys(l.value))}),{form:d,formItem:p}=Es(),{inputId:f}=a0(r,{formItemContext:p}),m=Cs(),y=o0(),v=Ln("input"),_=Ln("textarea"),x=c.shallowRef(),L=c.shallowRef(),S=c.ref(!1),C=c.ref(!1),A=c.ref(!1),H=c.ref(),k=c.shallowRef(r.inputStyle),B=c.computed(()=>x.value||L.value),{wrapperRef:D,isFocused:z,handleFocus:q,handleBlur:F}=vg(B,{afterBlur(){var Je;r.validateEvent&&((Je=p==null?void 0:p.validate)==null||Je.call(p,"blur").catch(et=>Fr(et)))}}),Z=c.computed(()=>{var Je;return(Je=d==null?void 0:d.statusIcon)!=null?Je:!1}),K=c.computed(()=>(p==null?void 0:p.validateState)||""),X=c.computed(()=>K.value&&HS[K.value]),te=c.computed(()=>A.value?Yq:Zq),J=c.computed(()=>[o.style]),he=c.computed(()=>[r.inputStyle,k.value,{resize:r.resize}]),xe=c.computed(()=>d1(r.modelValue)?"":String(r.modelValue)),ee=c.computed(()=>r.clearable&&!y.value&&!r.readonly&&!!xe.value&&(z.value||S.value)),oe=c.computed(()=>r.showPassword&&!y.value&&!r.readonly&&!!xe.value&&(!!xe.value||z.value)),de=c.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!y.value&&!r.readonly&&!r.showPassword),fe=c.computed(()=>xe.value.length),Ae=c.computed(()=>!!de.value&&fe.value>Number(r.maxlength)),Se=c.computed(()=>!!a.suffix||!!r.suffixIcon||ee.value||r.showPassword||de.value||!!K.value&&Z.value),[Qe,Le]=ZK(x);vs(L,Je=>{if(me(),!de.value||r.resize!=="both")return;const et=Je[0],{width:Xe}=et.contentRect;H.value={right:`calc(100% - ${Xe+15+6}px)`}});const Ce=()=>{const{type:Je,autosize:et}=r;if(!(!Dr||Je!=="textarea"||!L.value))if(et){const Xe=Yi(et)?et.minRows:void 0,Lt=Yi(et)?et.maxRows:void 0,vt=yC(L.value,Xe,Lt);k.value={overflowY:"hidden",...vt},c.nextTick(()=>{L.value.offsetHeight,k.value=vt})}else k.value={minHeight:yC(L.value).minHeight}},me=(Je=>{let et=!1;return()=>{var Xe;if(et||!r.autosize)return;((Xe=L.value)==null?void 0:Xe.offsetParent)===null||(Je(),et=!0)}})(Ce),Ne=()=>{const Je=B.value,et=r.formatter?r.formatter(xe.value):xe.value;!Je||Je.value===et||(Je.value=et)},Ie=async Je=>{Qe();let{value:et}=Je.target;if(r.formatter&&(et=r.parser?r.parser(et):et),!C.value){if(et===xe.value){Ne();return}n(rr,et),n("input",et),await c.nextTick(),Ne(),Le()}},Ke=Je=>{n("change",Je.target.value)},Ye=Je=>{n("compositionstart",Je),C.value=!0},ht=Je=>{var et;n("compositionupdate",Je);const Xe=(et=Je.target)==null?void 0:et.value,Lt=Xe[Xe.length-1]||"";C.value=!VS(Lt)},dt=Je=>{n("compositionend",Je),C.value&&(C.value=!1,Ie(Je))},Ee=()=>{A.value=!A.value,ye()},ye=async()=>{var Je;await c.nextTick(),(Je=B.value)==null||Je.focus()},it=()=>{var Je;return(Je=B.value)==null?void 0:Je.blur()},Ve=Je=>{S.value=!1,n("mouseleave",Je)},yt=Je=>{S.value=!0,n("mouseenter",Je)},bt=Je=>{n("keydown",Je)},_t=()=>{var Je;(Je=B.value)==null||Je.select()},nt=()=>{n(rr,""),n("change",""),n("clear"),n("input","")};return c.watch(()=>r.modelValue,()=>{var Je;c.nextTick(()=>Ce()),r.validateEvent&&((Je=p==null?void 0:p.validate)==null||Je.call(p,"change").catch(et=>Fr(et)))}),c.watch(xe,()=>Ne()),c.watch(()=>r.type,async()=>{await c.nextTick(),Ne(),Ce()}),c.onMounted(()=>{!r.formatter&&r.parser&&Fr("ElInput","If you set the parser, you also need to set the formatter."),Ne(),c.nextTick(Ce)}),e({input:x,textarea:L,ref:B,textareaStyle:he,autosize:c.toRef(r,"autosize"),focus:ye,blur:it,select:_t,clear:nt,resizeTextarea:Ce}),(Je,et)=>c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps(c.unref(l),{class:c.unref(s),style:c.unref(J),role:Je.containerRole,onMouseenter:yt,onMouseleave:Ve}),[c.createCommentVNode(" input "),Je.type!=="textarea"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createCommentVNode(" prepend slot "),Je.$slots.prepend?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(v).be("group","prepend"))},[c.renderSlot(Je.$slots,"prepend")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref_key:"wrapperRef",ref:D,class:c.normalizeClass(c.unref(h))},[c.createCommentVNode(" prefix slot "),Je.$slots.prefix||Je.prefixIcon?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(v).e("prefix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v).e("prefix-inner"))},[c.renderSlot(Je.$slots,"prefix"),Je.prefixIcon?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(v).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(Je.prefixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("input",c.mergeProps({id:c.unref(f),ref_key:"input",ref:x,class:c.unref(v).e("inner")},c.unref(u),{minlength:Je.minlength,maxlength:Je.maxlength,type:Je.showPassword?A.value?"text":"password":Je.type,disabled:c.unref(y),readonly:Je.readonly,autocomplete:Je.autocomplete,tabindex:Je.tabindex,"aria-label":Je.label,placeholder:Je.placeholder,style:Je.inputStyle,form:Je.form,autofocus:Je.autofocus,onCompositionstart:Ye,onCompositionupdate:ht,onCompositionend:dt,onInput:Ie,onFocus:et[0]||(et[0]=(...Xe)=>c.unref(q)&&c.unref(q)(...Xe)),onBlur:et[1]||(et[1]=(...Xe)=>c.unref(F)&&c.unref(F)(...Xe)),onChange:Ke,onKeydown:bt}),null,16,uJ),c.createCommentVNode(" suffix slot "),c.unref(Se)?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(c.unref(v).e("suffix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v).e("suffix-inner"))},[!c.unref(ee)||!c.unref(oe)||!c.unref(de)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.renderSlot(Je.$slots,"suffix"),Je.suffixIcon?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(v).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(Je.suffixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],64)):c.createCommentVNode("v-if",!0),c.unref(ee)?(c.openBlock(),c.createBlock(c.unref(zr),{key:1,class:c.normalizeClass([c.unref(v).e("icon"),c.unref(v).e("clear")]),onMousedown:c.withModifiers(c.unref(bs),["prevent"]),onClick:nt},{default:c.withCtx(()=>[c.createVNode(c.unref(rg))]),_:1},8,["class","onMousedown"])):c.createCommentVNode("v-if",!0),c.unref(oe)?(c.openBlock(),c.createBlock(c.unref(zr),{key:2,class:c.normalizeClass([c.unref(v).e("icon"),c.unref(v).e("password")]),onClick:Ee},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(te))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),c.unref(de)?(c.openBlock(),c.createElementBlock("span",{key:3,class:c.normalizeClass(c.unref(v).e("count"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v).e("count-inner"))},c.toDisplayString(c.unref(fe))+" / "+c.toDisplayString(Je.maxlength),3)],2)):c.createCommentVNode("v-if",!0),c.unref(K)&&c.unref(X)&&c.unref(Z)?(c.openBlock(),c.createBlock(c.unref(zr),{key:4,class:c.normalizeClass([c.unref(v).e("icon"),c.unref(v).e("validateIcon"),c.unref(v).is("loading",c.unref(K)==="validating")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(X))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0)],2),c.createCommentVNode(" append slot "),Je.$slots.append?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(c.unref(v).be("group","append"))},[c.renderSlot(Je.$slots,"append")],2)):c.createCommentVNode("v-if",!0)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createCommentVNode(" textarea "),c.createElementVNode("textarea",c.mergeProps({id:c.unref(f),ref_key:"textarea",ref:L,class:c.unref(_).e("inner")},c.unref(u),{tabindex:Je.tabindex,disabled:c.unref(y),readonly:Je.readonly,autocomplete:Je.autocomplete,style:c.unref(he),"aria-label":Je.label,placeholder:Je.placeholder,form:Je.form,autofocus:Je.autofocus,onCompositionstart:Ye,onCompositionupdate:ht,onCompositionend:dt,onInput:Ie,onFocus:et[2]||(et[2]=(...Xe)=>c.unref(q)&&c.unref(q)(...Xe)),onBlur:et[3]||(et[3]=(...Xe)=>c.unref(F)&&c.unref(F)(...Xe)),onChange:Ke,onKeydown:bt}),null,16,hJ),c.unref(de)?(c.openBlock(),c.createElementBlock("span",{key:0,style:c.normalizeStyle(H.value),class:c.normalizeClass(c.unref(v).e("count"))},c.toDisplayString(c.unref(fe))+" / "+c.toDisplayString(Je.maxlength),7)):c.createCommentVNode("v-if",!0)],64))],16,cJ)),[[c.vShow,Je.type!=="hidden"]])}});var fJ=En(pJ,[["__file","input.vue"]]);const xg=Ui(fJ),s0=4,TJ={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},QJ=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),vC=Symbol("scrollbarContextKey"),mJ=Wn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),gJ="Thumb";var bC=En(c.defineComponent({__name:"thumb",props:mJ,setup(t){const e=t,n=c.inject(vC),r=Ln("scrollbar");n||s4(gJ,"can not inject scrollbar context");const o=c.ref(),a=c.ref(),l=c.ref({}),s=c.ref(!1);let h=!1,u=!1,d=Dr?document.onselectstart:null;const p=c.computed(()=>TJ[e.vertical?"vertical":"horizontal"]),f=c.computed(()=>QJ({size:e.size,move:e.move,bar:p.value})),m=c.computed(()=>o.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/e.ratio/a.value[p.value.offset]),y=H=>{var k;if(H.stopPropagation(),H.ctrlKey||[1,2].includes(H.button))return;(k=window.getSelection())==null||k.removeAllRanges(),_(H);const B=H.currentTarget;B&&(l.value[p.value.axis]=B[p.value.offset]-(H[p.value.client]-B.getBoundingClientRect()[p.value.direction]))},v=H=>{if(!a.value||!o.value||!n.wrapElement)return;const k=Math.abs(H.target.getBoundingClientRect()[p.value.direction]-H[p.value.client]),B=a.value[p.value.offset]/2,D=(k-B)*100*m.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=D*n.wrapElement[p.value.scrollSize]/100},_=H=>{H.stopImmediatePropagation(),h=!0,document.addEventListener("mousemove",x),document.addEventListener("mouseup",L),d=document.onselectstart,document.onselectstart=()=>!1},x=H=>{if(!o.value||!a.value||h===!1)return;const k=l.value[p.value.axis];if(!k)return;const B=(o.value.getBoundingClientRect()[p.value.direction]-H[p.value.client])*-1,D=a.value[p.value.offset]-k,z=(B-D)*100*m.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=z*n.wrapElement[p.value.scrollSize]/100},L=()=>{h=!1,l.value[p.value.axis]=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",L),A(),u&&(s.value=!1)},S=()=>{u=!1,s.value=!!e.size},C=()=>{u=!0,s.value=h};c.onBeforeUnmount(()=>{A(),document.removeEventListener("mouseup",L)});const A=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return k1(c.toRef(n,"scrollbarElement"),"mousemove",S),k1(c.toRef(n,"scrollbarElement"),"mouseleave",C),(H,k)=>(c.openBlock(),c.createBlock(c.Transition,{name:c.unref(r).b("fade"),persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{ref_key:"instance",ref:o,class:c.normalizeClass([c.unref(r).e("bar"),c.unref(r).is(c.unref(p).key)]),onMousedown:v},[c.createElementVNode("div",{ref_key:"thumb",ref:a,class:c.normalizeClass(c.unref(r).e("thumb")),style:c.normalizeStyle(c.unref(f)),onMousedown:y},null,38)],34),[[c.vShow,H.always||s.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const yJ=Wn({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var vJ=En(c.defineComponent({__name:"bar",props:yJ,setup(t,{expose:e}){const n=t,r=c.ref(0),o=c.ref(0);return e({handleScroll:l=>{if(l){const s=l.offsetHeight-s0,h=l.offsetWidth-s0;o.value=l.scrollTop*100/s*n.ratioY,r.value=l.scrollLeft*100/h*n.ratioX}}}),(l,s)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(bC,{move:r.value,ratio:l.ratioX,size:l.width,always:l.always},null,8,["move","ratio","size","always"]),c.createVNode(bC,{move:o.value,ratio:l.ratioY,size:l.height,vertical:"",always:l.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const bJ=Wn({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:gn([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),xJ={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(hr)},_g="ElScrollbar",_J=c.defineComponent({name:_g}),LJ=c.defineComponent({..._J,props:bJ,emits:xJ,setup(t,{expose:e,emit:n}){const r=t,o=Ln("scrollbar");let a,l;const s=c.ref(),h=c.ref(),u=c.ref(),d=c.ref("0"),p=c.ref("0"),f=c.ref(),m=c.ref(1),y=c.ref(1),v=c.computed(()=>{const k={};return r.height&&(k.height=A2(r.height)),r.maxHeight&&(k.maxHeight=A2(r.maxHeight)),[r.wrapStyle,k]}),_=c.computed(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),x=c.computed(()=>[o.e("view"),r.viewClass]),L=()=>{var k;h.value&&((k=f.value)==null||k.handleScroll(h.value),n("scroll",{scrollTop:h.value.scrollTop,scrollLeft:h.value.scrollLeft}))};function S(k,B){Yi(k)?h.value.scrollTo(k):hr(k)&&hr(B)&&h.value.scrollTo(k,B)}const C=k=>{if(!hr(k)){Fr(_g,"value must be a number");return}h.value.scrollTop=k},A=k=>{if(!hr(k)){Fr(_g,"value must be a number");return}h.value.scrollLeft=k},H=()=>{if(!h.value)return;const k=h.value.offsetHeight-s0,B=h.value.offsetWidth-s0,D=k**2/h.value.scrollHeight,z=B**2/h.value.scrollWidth,q=Math.max(D,r.minSize),F=Math.max(z,r.minSize);m.value=D/(k-D)/(q/(k-q)),y.value=z/(B-z)/(F/(B-F)),p.value=q+s0<k?`${q}px`:"",d.value=F+s0<B?`${F}px`:""};return c.watch(()=>r.noresize,k=>{k?(a==null||a(),l==null||l()):({stop:a}=vs(u,H),l=k1("resize",H))},{immediate:!0}),c.watch(()=>[r.maxHeight,r.height],()=>{r.native||c.nextTick(()=>{var k;H(),h.value&&((k=f.value)==null||k.handleScroll(h.value))})}),c.provide(vC,c.reactive({scrollbarElement:s,wrapElement:h})),c.onMounted(()=>{r.native||c.nextTick(()=>{H()})}),c.onUpdated(()=>H()),e({wrapRef:h,update:H,scrollTo:S,setScrollTop:C,setScrollLeft:A,handleScroll:L}),(k,B)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"scrollbarRef",ref:s,class:c.normalizeClass(c.unref(o).b())},[c.createElementVNode("div",{ref_key:"wrapRef",ref:h,class:c.normalizeClass(c.unref(_)),style:c.normalizeStyle(c.unref(v)),onScroll:L},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(k.tag),{id:k.id,ref_key:"resizeRef",ref:u,class:c.normalizeClass(c.unref(x)),style:c.normalizeStyle(k.viewStyle),role:k.role,"aria-label":k.ariaLabel,"aria-orientation":k.ariaOrientation},{default:c.withCtx(()=>[c.renderSlot(k.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),k.native?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(vJ,{key:0,ref_key:"barRef",ref:f,height:p.value,width:d.value,always:k.always,"ratio-x":y.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var wJ=En(LJ,[["__file","scrollbar.vue"]]);const MJ=Ui(wJ),Lg=Symbol("popper"),xC=Symbol("popperContent"),_C=Wn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),SJ=c.defineComponent({name:"ElPopper",inheritAttrs:!1}),CJ=c.defineComponent({...SJ,props:_C,setup(t,{expose:e}){const n=t,r=c.ref(),o=c.ref(),a=c.ref(),l=c.ref(),s=c.computed(()=>n.role),h={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:l,role:s};return e(h),c.provide(Lg,h),(u,d)=>c.renderSlot(u.$slots,"default")}});var EJ=En(CJ,[["__file","popper.vue"]]);const LC=Wn({arrowOffset:{type:Number,default:5}}),HJ=c.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),AJ=c.defineComponent({...HJ,props:LC,setup(t,{expose:e}){const n=t,r=Ln("popper"),{arrowOffset:o,arrowRef:a,arrowStyle:l}=c.inject(xC,void 0);return c.watch(()=>n.arrowOffset,s=>{o.value=s}),c.onBeforeUnmount(()=>{a.value=void 0}),e({arrowRef:a}),(s,h)=>(c.openBlock(),c.createElementBlock("span",{ref_key:"arrowRef",ref:a,class:c.normalizeClass(c.unref(r).e("arrow")),style:c.normalizeStyle(c.unref(l)),"data-popper-arrow":""},null,6))}});var VJ=En(AJ,[["__file","arrow.vue"]]);const wg="ElOnlyChild",OJ=c.defineComponent({name:wg,setup(t,{slots:e,attrs:n}){var r;const o=c.inject(pC),a=WK((r=o==null?void 0:o.setForwardRef)!=null?r:bs);return()=>{var l;const s=(l=e.default)==null?void 0:l.call(e,n);if(!s)return null;if(s.length>1)return Fr(wg,"requires exact only one valid child."),null;const h=wC(s);return h?c.withDirectives(c.cloneVNode(h,n),[[a]]):(Fr(wg,"no valid child node found"),null)}}});function wC(t){if(!t)return null;const e=t;for(const n of e){if(Yi(n))switch(n.type){case c.Comment:continue;case c.Text:case"svg":return MC(n);case c.Fragment:return wC(n.children);default:return n}return MC(n)}return null}function MC(t){const e=Ln("only-child");return c.createVNode("span",{class:e.e("content")},[t])}const SC=Wn({virtualRef:{type:gn(Object)},virtualTriggering:Boolean,onMouseenter:{type:gn(Function)},onMouseleave:{type:gn(Function)},onClick:{type:gn(Function)},onKeydown:{type:gn(Function)},onFocus:{type:gn(Function)},onBlur:{type:gn(Function)},onContextmenu:{type:gn(Function)},id:String,open:Boolean}),kJ=c.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),PJ=c.defineComponent({...kJ,props:SC,setup(t,{expose:e}){const n=t,{role:r,triggerRef:o}=c.inject(Lg,void 0);GK(o);const a=c.computed(()=>s.value?n.id:void 0),l=c.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=c.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),h=c.computed(()=>s.value?`${n.open}`:void 0);let u;return c.onMounted(()=>{c.watch(()=>n.virtualRef,d=>{d&&(o.value=ys(d))},{immediate:!0}),c.watch(o,(d,p)=>{u==null||u(),u=void 0,lc(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var m;const y=n[f];y&&(d.addEventListener(f.slice(2).toLowerCase(),y),(m=p==null?void 0:p.removeEventListener)==null||m.call(p,f.slice(2).toLowerCase(),y))}),u=c.watch([a,l,s,h],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,y)=>{d1(f[y])?d.removeAttribute(m):d.setAttribute(m,f[y])})},{immediate:!0})),lc(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>p.removeAttribute(f))},{immediate:!0})}),c.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:o}),(d,p)=>d.virtualTriggering?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(c.unref(OJ),c.mergeProps({key:0},d.$attrs,{"aria-controls":c.unref(a),"aria-describedby":c.unref(l),"aria-expanded":c.unref(h),"aria-haspopup":c.unref(s)}),{default:c.withCtx(()=>[c.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var IJ=En(PJ,[["__file","trigger.vue"]]);const Mg="focus-trap.focus-after-trapped",Sg="focus-trap.focus-after-released",RJ="focus-trap.focusout-prevented",CC={cancelable:!0,bubbles:!1},NJ={cancelable:!0,bubbles:!1},EC="focusAfterTrapped",HC="focusAfterReleased",BJ=Symbol("elFocusTrap"),Cg=c.ref(),Zh=c.ref(0),Eg=c.ref(0);let $h=0;const AC=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},VC=(t,e)=>{for(const n of t)if(!DJ(n,e))return n},DJ=(t,e)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},FJ=t=>{const e=AC(t),n=VC(e,t),r=VC(e.reverse(),t);return[n,r]},zJ=t=>t instanceof HTMLInputElement&&"select"in t,P2=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),Eg.value=window.performance.now(),t!==n&&zJ(t)&&e&&t.select()}};function OC(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const UJ=()=>{let t=[];return{push:r=>{const o=t[0];o&&r!==o&&o.pause(),t=OC(t,r),t.unshift(r)},remove:r=>{var o,a;t=OC(t,r),(a=(o=t[0])==null?void 0:o.resume)==null||a.call(o)}}},jJ=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(P2(r,e),document.activeElement!==n)return},kC=UJ(),GJ=()=>Zh.value>Eg.value,qh=()=>{Cg.value="pointer",Zh.value=window.performance.now()},PC=()=>{Cg.value="keyboard",Zh.value=window.performance.now()},WJ=()=>(c.onMounted(()=>{$h===0&&(document.addEventListener("mousedown",qh),document.addEventListener("touchstart",qh),document.addEventListener("keydown",PC)),$h++}),c.onBeforeUnmount(()=>{$h--,$h<=0&&(document.removeEventListener("mousedown",qh),document.removeEventListener("touchstart",qh),document.removeEventListener("keydown",PC))}),{focusReason:Cg,lastUserFocusTimestamp:Zh,lastAutomatedFocusTimestamp:Eg}),Xh=t=>new CustomEvent(RJ,{...NJ,detail:t}),ZJ=c.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[EC,HC,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=c.ref();let r,o;const{focusReason:a}=WJ();DK(y=>{t.trapped&&!l.paused&&e("release-requested",y)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=y=>{if(!t.loop&&!t.trapped||l.paused)return;const{key:v,altKey:_,ctrlKey:x,metaKey:L,currentTarget:S,shiftKey:C}=y,{loop:A}=t,H=v===Mi.tab&&!_&&!x&&!L,k=document.activeElement;if(H&&k){const B=S,[D,z]=FJ(B);if(D&&z){if(!C&&k===z){const F=Xh({focusReason:a.value});e("focusout-prevented",F),F.defaultPrevented||(y.preventDefault(),A&&P2(D,!0))}else if(C&&[D,B].includes(k)){const F=Xh({focusReason:a.value});e("focusout-prevented",F),F.defaultPrevented||(y.preventDefault(),A&&P2(z,!0))}}else if(k===B){const F=Xh({focusReason:a.value});e("focusout-prevented",F),F.defaultPrevented||y.preventDefault()}}};c.provide(BJ,{focusTrapRef:n,onKeydown:s}),c.watch(()=>t.focusTrapEl,y=>{y&&(n.value=y)},{immediate:!0}),c.watch([n],([y],[v])=>{y&&(y.addEventListener("keydown",s),y.addEventListener("focusin",d),y.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",p))});const h=y=>{e(EC,y)},u=y=>e(HC,y),d=y=>{const v=c.unref(n);if(!v)return;const _=y.target,x=y.relatedTarget,L=_&&v.contains(_);t.trapped||x&&v.contains(x)||(r=x),L&&e("focusin",y),!l.paused&&t.trapped&&(L?o=_:P2(o,!0))},p=y=>{const v=c.unref(n);if(!(l.paused||!v))if(t.trapped){const _=y.relatedTarget;!d1(_)&&!v.contains(_)&&setTimeout(()=>{if(!l.paused&&t.trapped){const x=Xh({focusReason:a.value});e("focusout-prevented",x),x.defaultPrevented||P2(o,!0)}},0)}else{const _=y.target;_&&v.contains(_)||e("focusout",y)}};async function f(){await c.nextTick();const y=c.unref(n);if(y){kC.push(l);const v=y.contains(document.activeElement)?r:document.activeElement;if(r=v,!y.contains(v)){const x=new Event(Mg,CC);y.addEventListener(Mg,h),y.dispatchEvent(x),x.defaultPrevented||c.nextTick(()=>{let L=t.focusStartEl;si(L)||(P2(L),document.activeElement!==L&&(L="first")),L==="first"&&jJ(AC(y),!0),(document.activeElement===v||L==="container")&&P2(y)})}}}function m(){const y=c.unref(n);if(y){y.removeEventListener(Mg,h);const v=new CustomEvent(Sg,{...CC,detail:{focusReason:a.value}});y.addEventListener(Sg,u),y.dispatchEvent(v),!v.defaultPrevented&&(a.value=="keyboard"||!GJ()||y.contains(document.activeElement))&&P2(r??document.body),y.removeEventListener(Sg,u),kC.remove(l)}}return c.onMounted(()=>{t.trapped&&f(),c.watch(()=>t.trapped,y=>{y?f():m()})}),c.onBeforeUnmount(()=>{t.trapped&&m()}),{onKeydown:s}}});function $J(t,e,n,r,o,a){return c.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var IC=En(ZJ,[["render",$J],["__file","focus-trap.vue"]]);const qJ=["fixed","absolute"],XJ=Wn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:gn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Y6,default:"bottom"},popperOptions:{type:gn(Object),default:()=>({})},strategy:{type:String,values:qJ,default:"absolute"}}),RC=Wn({...XJ,id:String,style:{type:gn([String,Array,Object])},className:{type:gn([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:gn([String,Array,Object])},popperStyle:{type:gn([String,Array,Object])},referenceEl:{type:gn(Object)},triggerTargetEl:{type:gn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),KJ={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},JJ=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:o}=t,a={placement:n,strategy:r,...o,modifiers:[...eY(t),...e]};return tY(a,o==null?void 0:o.modifiers),a},YJ=t=>{if(Dr)return ys(t)};function eY(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function tY(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const nY=0,rY=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:o}=c.inject(Lg,void 0),a=c.ref(),l=c.ref(),s=c.computed(()=>({name:"eventListeners",enabled:!!t.visible})),h=c.computed(()=>{var x;const L=c.unref(a),S=(x=c.unref(l))!=null?x:nY;return{name:"arrow",enabled:!bS(L),options:{element:L,padding:S}}}),u=c.computed(()=>({onFirstUpdate:()=>{y()},...JJ(t,[c.unref(h),c.unref(s)])})),d=c.computed(()=>YJ(t.referenceEl)||c.unref(r)),{attributes:p,state:f,styles:m,update:y,forceUpdate:v,instanceRef:_}=IK(d,n,u);return c.watch(_,x=>e.value=x),c.onMounted(()=>{c.watch(()=>{var x;return(x=c.unref(d))==null?void 0:x.getBoundingClientRect()},()=>{y()})}),{attributes:p,arrowRef:a,contentRef:n,instanceRef:_,state:f,styles:m,role:o,forceUpdate:v,update:y}},iY=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:o}=yg(),a=Ln("popper"),l=c.computed(()=>c.unref(e).popper),s=c.ref(hr(t.zIndex)?t.zIndex:o()),h=c.computed(()=>[a.b(),a.is("pure",t.pure),a.is(t.effect),t.popperClass]),u=c.computed(()=>[{zIndex:c.unref(s)},c.unref(n).popper,t.popperStyle||{}]),d=c.computed(()=>r.value==="dialog"?"false":void 0),p=c.computed(()=>c.unref(n).arrow||{});return{ariaModal:d,arrowStyle:p,contentAttrs:l,contentClass:h,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=hr(t.zIndex)?t.zIndex:o()}}},oY=(t,e)=>{const n=c.ref(!1),r=c.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},aY=c.defineComponent({name:"ElPopperContent"}),sY=c.defineComponent({...aY,props:RC,emits:KJ,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:o,trapped:a,onFocusAfterReleased:l,onFocusAfterTrapped:s,onFocusInTrap:h,onFocusoutPrevented:u,onReleaseRequested:d}=oY(r,n),{attributes:p,arrowRef:f,contentRef:m,styles:y,instanceRef:v,role:_,update:x}=rY(r),{ariaModal:L,arrowStyle:S,contentAttrs:C,contentClass:A,contentStyle:H,updateZIndex:k}=iY(r,{styles:y,attributes:p,role:_}),B=c.inject(bc,void 0),D=c.ref();c.provide(xC,{arrowStyle:S,arrowRef:f,arrowOffset:D}),B&&(B.addInputId||B.removeInputId)&&c.provide(bc,{...B,addInputId:bs,removeInputId:bs});let z;const q=(Z=!0)=>{x(),Z&&k()},F=()=>{q(!1),r.visible&&r.focusOnShow?a.value=!0:r.visible===!1&&(a.value=!1)};return c.onMounted(()=>{c.watch(()=>r.triggerTargetEl,(Z,K)=>{z==null||z(),z=void 0;const X=c.unref(Z||m.value),te=c.unref(K||m.value);lc(X)&&(z=c.watch([_,()=>r.ariaLabel,L,()=>r.id],J=>{["role","aria-label","aria-modal","id"].forEach((he,xe)=>{d1(J[xe])?X.removeAttribute(he):X.setAttribute(he,J[xe])})},{immediate:!0})),te!==X&&lc(te)&&["role","aria-label","aria-modal","id"].forEach(J=>{te.removeAttribute(J)})},{immediate:!0}),c.watch(()=>r.visible,F,{immediate:!0})}),c.onBeforeUnmount(()=>{z==null||z(),z=void 0}),e({popperContentRef:m,popperInstanceRef:v,updatePopper:q,contentStyle:H}),(Z,K)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps({ref_key:"contentRef",ref:m},c.unref(C),{style:c.unref(H),class:c.unref(A),tabindex:"-1",onMouseenter:K[0]||(K[0]=X=>Z.$emit("mouseenter",X)),onMouseleave:K[1]||(K[1]=X=>Z.$emit("mouseleave",X))}),[c.createVNode(c.unref(IC),{trapped:c.unref(a),"trap-on-focus-in":!0,"focus-trap-el":c.unref(m),"focus-start-el":c.unref(o),onFocusAfterTrapped:c.unref(s),onFocusAfterReleased:c.unref(l),onFocusin:c.unref(h),onFocusoutPrevented:c.unref(u),onReleaseRequested:c.unref(d)},{default:c.withCtx(()=>[c.renderSlot(Z.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var lY=En(sY,[["__file","content.vue"]]);const cY=Ui(EJ),Hg=Symbol("elTooltip"),T1=Wn({...UK,...RC,appendTo:{type:gn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:gn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),xc=Wn({...SC,disabled:Boolean,trigger:{type:gn([String,Array]),default:"hover"},triggerKeys:{type:gn(Array),default:()=>[Mi.enter,Mi.space]}}),{useModelToggleProps:uY,useModelToggleEmits:hY,useModelToggle:dY}=FS("visible"),pY=Wn({..._C,...uY,...T1,...xc,...LC,showArrow:{type:Boolean,default:!0}}),fY=[...hY,"before-show","before-hide","show","hide","open","close"],TY=(t,e)=>wi(t)?t.includes(e):t===e,l0=(t,e,n)=>r=>{TY(c.unref(t),e)&&n(r)},QY=c.defineComponent({name:"ElTooltipTrigger"}),mY=c.defineComponent({...QY,props:xc,setup(t,{expose:e}){const n=t,r=Ln("tooltip"),{controlled:o,id:a,open:l,onOpen:s,onClose:h,onToggle:u}=c.inject(Hg,void 0),d=c.ref(null),p=()=>{if(c.unref(o)||n.disabled)return!0},f=c.toRef(n,"trigger"),m=gs(p,l0(f,"hover",s)),y=gs(p,l0(f,"hover",h)),v=gs(p,l0(f,"click",C=>{C.button===0&&u(C)})),_=gs(p,l0(f,"focus",s)),x=gs(p,l0(f,"focus",h)),L=gs(p,l0(f,"contextmenu",C=>{C.preventDefault(),u(C)})),S=gs(p,C=>{const{code:A}=C;n.triggerKeys.includes(A)&&(C.preventDefault(),u(C))});return e({triggerRef:d}),(C,A)=>(c.openBlock(),c.createBlock(c.unref(IJ),{id:c.unref(a),"virtual-ref":C.virtualRef,open:c.unref(l),"virtual-triggering":C.virtualTriggering,class:c.normalizeClass(c.unref(r).e("trigger")),onBlur:c.unref(x),onClick:c.unref(v),onContextmenu:c.unref(L),onFocus:c.unref(_),onMouseenter:c.unref(m),onMouseleave:c.unref(y),onKeydown:c.unref(S)},{default:c.withCtx(()=>[c.renderSlot(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var gY=En(mY,[["__file","trigger.vue"]]);const yY=c.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),vY=c.defineComponent({...yY,props:T1,setup(t,{expose:e}){const n=t,{selector:r}=dC(),o=Ln("tooltip"),a=c.ref(null),l=c.ref(!1),{controlled:s,id:h,open:u,trigger:d,onClose:p,onOpen:f,onShow:m,onHide:y,onBeforeShow:v,onBeforeHide:_}=c.inject(Hg,void 0),x=c.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),L=c.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);c.onBeforeUnmount(()=>{l.value=!0});const S=c.computed(()=>c.unref(L)?!0:c.unref(u)),C=c.computed(()=>n.disabled?!1:c.unref(u)),A=c.computed(()=>n.appendTo||r.value),H=c.computed(()=>{var J;return(J=n.style)!=null?J:{}}),k=c.computed(()=>!c.unref(u)),B=()=>{y()},D=()=>{if(c.unref(s))return!0},z=gs(D,()=>{n.enterable&&c.unref(d)==="hover"&&f()}),q=gs(D,()=>{c.unref(d)==="hover"&&p()}),F=()=>{var J,he;(he=(J=a.value)==null?void 0:J.updatePopper)==null||he.call(J),v==null||v()},Z=()=>{_==null||_()},K=()=>{m(),te=cG(c.computed(()=>{var J;return(J=a.value)==null?void 0:J.popperContentRef}),()=>{if(c.unref(s))return;c.unref(d)!=="hover"&&p()})},X=()=>{n.virtualTriggering||p()};let te;return c.watch(()=>c.unref(u),J=>{J||te==null||te()},{flush:"post"}),c.watch(()=>n.content,()=>{var J,he;(he=(J=a.value)==null?void 0:J.updatePopper)==null||he.call(J)}),e({contentRef:a}),(J,he)=>(c.openBlock(),c.createBlock(c.Teleport,{disabled:!J.teleported,to:c.unref(A)},[c.createVNode(c.Transition,{name:c.unref(x),onAfterLeave:B,onBeforeEnter:F,onAfterEnter:K,onBeforeLeave:Z},{default:c.withCtx(()=>[c.unref(S)?c.withDirectives((c.openBlock(),c.createBlock(c.unref(lY),c.mergeProps({key:0,id:c.unref(h),ref_key:"contentRef",ref:a},J.$attrs,{"aria-label":J.ariaLabel,"aria-hidden":c.unref(k),"boundaries-padding":J.boundariesPadding,"fallback-placements":J.fallbackPlacements,"gpu-acceleration":J.gpuAcceleration,offset:J.offset,placement:J.placement,"popper-options":J.popperOptions,strategy:J.strategy,effect:J.effect,enterable:J.enterable,pure:J.pure,"popper-class":J.popperClass,"popper-style":[J.popperStyle,c.unref(H)],"reference-el":J.referenceEl,"trigger-target-el":J.triggerTargetEl,visible:c.unref(C),"z-index":J.zIndex,onMouseenter:c.unref(z),onMouseleave:c.unref(q),onBlur:X,onClose:c.unref(p)}),{default:c.withCtx(()=>[l.value?c.createCommentVNode("v-if",!0):c.renderSlot(J.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[c.vShow,c.unref(C)]]):c.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var bY=En(vY,[["__file","content.vue"]]);const xY=["innerHTML"],_Y={key:1},LY=c.defineComponent({name:"ElTooltip"}),wY=c.defineComponent({...LY,props:pY,emits:fY,setup(t,{expose:e,emit:n}){const r=t;zK();const o=r0(),a=c.ref(),l=c.ref(),s=()=>{var x;const L=c.unref(a);L&&((x=L.popperInstanceRef)==null||x.update())},h=c.ref(!1),u=c.ref(),{show:d,hide:p,hasUpdateHandler:f}=dY({indicator:h,toggleReason:u}),{onOpen:m,onClose:y}=jK({showAfter:c.toRef(r,"showAfter"),hideAfter:c.toRef(r,"hideAfter"),autoClose:c.toRef(r,"autoClose"),open:d,close:p}),v=c.computed(()=>a4(r.visible)&&!f.value);c.provide(Hg,{controlled:v,id:o,open:c.readonly(h),trigger:c.toRef(r,"trigger"),onOpen:x=>{m(x)},onClose:x=>{y(x)},onToggle:x=>{c.unref(h)?y(x):m(x)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),c.watch(()=>r.disabled,x=>{x&&h.value&&(h.value=!1)});const _=x=>{var L,S;const C=(S=(L=l.value)==null?void 0:L.contentRef)==null?void 0:S.popperContentRef,A=(x==null?void 0:x.relatedTarget)||document.activeElement;return C&&C.contains(A)};return c.onDeactivated(()=>h.value&&p()),e({popperRef:a,contentRef:l,isFocusInsideContent:_,updatePopper:s,onOpen:m,onClose:y,hide:p}),(x,L)=>(c.openBlock(),c.createBlock(c.unref(cY),{ref_key:"popperRef",ref:a,role:x.role},{default:c.withCtx(()=>[c.createVNode(gY,{disabled:x.disabled,trigger:x.trigger,"trigger-keys":x.triggerKeys,"virtual-ref":x.virtualRef,"virtual-triggering":x.virtualTriggering},{default:c.withCtx(()=>[x.$slots.default?c.renderSlot(x.$slots,"default",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),c.createVNode(bY,{ref_key:"contentRef",ref:l,"aria-label":x.ariaLabel,"boundaries-padding":x.boundariesPadding,content:x.content,disabled:x.disabled,effect:x.effect,enterable:x.enterable,"fallback-placements":x.fallbackPlacements,"hide-after":x.hideAfter,"gpu-acceleration":x.gpuAcceleration,offset:x.offset,persistent:x.persistent,"popper-class":x.popperClass,"popper-style":x.popperStyle,placement:x.placement,"popper-options":x.popperOptions,pure:x.pure,"raw-content":x.rawContent,"reference-el":x.referenceEl,"trigger-target-el":x.triggerTargetEl,"show-after":x.showAfter,strategy:x.strategy,teleported:x.teleported,transition:x.transition,"virtual-triggering":x.virtualTriggering,"z-index":x.zIndex,"append-to":x.appendTo},{default:c.withCtx(()=>[c.renderSlot(x.$slots,"content",{},()=>[x.rawContent?(c.openBlock(),c.createElementBlock("span",{key:0,innerHTML:x.content},null,8,xY)):(c.openBlock(),c.createElementBlock("span",_Y,c.toDisplayString(x.content),1))]),x.showArrow?(c.openBlock(),c.createBlock(c.unref(VJ),{key:0,"arrow-offset":x.arrowOffset},null,8,["arrow-offset"])):c.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var MY=En(wY,[["__file","tooltip.vue"]]);const Kh=Ui(MY),NC=Symbol("buttonGroupContextKey"),SY=(t,e)=>{hc({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},c.computed(()=>t.type==="text"));const n=c.inject(NC,void 0),r=Wh("button"),{form:o}=Es(),a=Cs(c.computed(()=>n==null?void 0:n.size)),l=o0(),s=c.ref(),h=c.useSlots(),u=c.computed(()=>t.type||(n==null?void 0:n.type)||""),d=c.computed(()=>{var y,v,_;return(_=(v=t.autoInsertSpace)!=null?v:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?_:!1}),p=c.computed(()=>t.tag==="button"?{ariaDisabled:l.value||t.loading,disabled:l.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),f=c.computed(()=>{var y;const v=(y=h.default)==null?void 0:y.call(h);if(d.value&&(v==null?void 0:v.length)===1){const _=v[0];if((_==null?void 0:_.type)===c.Text){const x=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(x.trim())}}return!1});return{_disabled:l,_size:a,_type:u,_ref:s,_props:p,shouldAddSpace:f,handleClick:y=>{t.nativeType==="reset"&&(o==null||o.resetFields()),e("click",y)}}},Ag=Wn({size:Ss,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Ms},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ms,default:()=>ig},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:gn([String,Object]),default:"button"}}),CY={click:t=>t instanceof MouseEvent};function eo(t,e){EY(t)&&(t="100%");var n=HY(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Jh(t){return Math.min(1,Math.max(0,t))}function EY(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function HY(t){return typeof t=="string"&&t.indexOf("%")!==-1}function BC(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Yh(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Q4(t){return t.length===1?"0"+t:String(t)}function AY(t,e,n){return{r:eo(t,255)*255,g:eo(e,255)*255,b:eo(n,255)*255}}function DC(t,e,n){t=eo(t,255),e=eo(e,255),n=eo(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),a=0,l=0,s=(r+o)/2;if(r===o)l=0,a=0;else{var h=r-o;switch(l=s>.5?h/(2-r-o):h/(r+o),r){case t:a=(e-n)/h+(e<n?6:0);break;case e:a=(n-t)/h+2;break;case n:a=(t-e)/h+4;break}a/=6}return{h:a,s:l,l:s}}function Vg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function VY(t,e,n){var r,o,a;if(t=eo(t,360),e=eo(e,100),n=eo(n,100),e===0)o=n,a=n,r=n;else{var l=n<.5?n*(1+e):n+e-n*e,s=2*n-l;r=Vg(s,l,t+1/3),o=Vg(s,l,t),a=Vg(s,l,t-1/3)}return{r:r*255,g:o*255,b:a*255}}function FC(t,e,n){t=eo(t,255),e=eo(e,255),n=eo(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),a=0,l=r,s=r-o,h=r===0?0:s/r;if(r===o)a=0;else{switch(r){case t:a=(e-n)/s+(e<n?6:0);break;case e:a=(n-t)/s+2;break;case n:a=(t-e)/s+4;break}a/=6}return{h:a,s:h,v:l}}function OY(t,e,n){t=eo(t,360)*6,e=eo(e,100),n=eo(n,100);var r=Math.floor(t),o=t-r,a=n*(1-e),l=n*(1-o*e),s=n*(1-(1-o)*e),h=r%6,u=[n,l,a,a,s,n][h],d=[s,n,n,l,a,a][h],p=[a,a,s,n,n,l][h];return{r:u*255,g:d*255,b:p*255}}function zC(t,e,n,r){var o=[Q4(Math.round(t).toString(16)),Q4(Math.round(e).toString(16)),Q4(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function kY(t,e,n,r,o){var a=[Q4(Math.round(t).toString(16)),Q4(Math.round(e).toString(16)),Q4(Math.round(n).toString(16)),Q4(PY(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function PY(t){return Math.round(parseFloat(t)*255).toString(16)}function UC(t){return Q1(t)/255}function Q1(t){return parseInt(t,16)}function IY(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var Og={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function RY(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,a=null,l=!1,s=!1;return typeof t=="string"&&(t=DY(t)),typeof t=="object"&&(Hs(t.r)&&Hs(t.g)&&Hs(t.b)?(e=AY(t.r,t.g,t.b),l=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Hs(t.h)&&Hs(t.s)&&Hs(t.v)?(r=Yh(t.s),o=Yh(t.v),e=OY(t.h,r,o),l=!0,s="hsv"):Hs(t.h)&&Hs(t.s)&&Hs(t.l)&&(r=Yh(t.s),a=Yh(t.l),e=VY(t.h,r,a),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=BC(n),{ok:l,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var NY="[-\\+]?\\d+%?",BY="[-\\+]?\\d*\\.\\d+%?",I2="(?:".concat(BY,")|(?:").concat(NY,")"),kg="[\\s|\\(]+(".concat(I2,")[,|\\s]+(").concat(I2,")[,|\\s]+(").concat(I2,")\\s*\\)?"),Pg="[\\s|\\(]+(".concat(I2,")[,|\\s]+(").concat(I2,")[,|\\s]+(").concat(I2,")[,|\\s]+(").concat(I2,")\\s*\\)?"),na={CSS_UNIT:new RegExp(I2),rgb:new RegExp("rgb"+kg),rgba:new RegExp("rgba"+Pg),hsl:new RegExp("hsl"+kg),hsla:new RegExp("hsla"+Pg),hsv:new RegExp("hsv"+kg),hsva:new RegExp("hsva"+Pg),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function DY(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Og[t])t=Og[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=na.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=na.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=na.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=na.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=na.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=na.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=na.hex8.exec(t),n?{r:Q1(n[1]),g:Q1(n[2]),b:Q1(n[3]),a:UC(n[4]),format:e?"name":"hex8"}:(n=na.hex6.exec(t),n?{r:Q1(n[1]),g:Q1(n[2]),b:Q1(n[3]),format:e?"name":"hex"}:(n=na.hex4.exec(t),n?{r:Q1(n[1]+n[1]),g:Q1(n[2]+n[2]),b:Q1(n[3]+n[3]),a:UC(n[4]+n[4]),format:e?"name":"hex8"}:(n=na.hex3.exec(t),n?{r:Q1(n[1]+n[1]),g:Q1(n[2]+n[2]),b:Q1(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Hs(t){return!!na.CSS_UNIT.exec(String(t))}var FY=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=IY(e)),this.originalInput=e;var o=RY(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,o,a=e.r/255,l=e.g/255,s=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=BC(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=FC(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=FC(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=DC(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=DC(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),zC(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),kY(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(eo(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(eo(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+zC(this.r,this.g,this.b,!1),n=0,r=Object.entries(Og);n<r.length;n++){var o=r[n],a=o[0],l=o[1];if(e===l)return a}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Jh(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Jh(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Jh(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Jh(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),o=new t(e).toRgb(),a=n/100,l={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new t(l)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,a.push(new t(r));return a},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,l=[],s=1/e;e--;)l.push(new t({h:r,s:o,v:a})),a=(a+s)%1;return l},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),o=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,o=[this],a=360/e,l=1;l<e;l++)o.push(new t({h:(r+l*a)%360,s:n.s,l:n.l}));return o},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function R2(t,e=20){return t.mix("#141414",e).toString()}function zY(t){const e=o0(),n=Ln("button");return c.computed(()=>{let r={};const o=t.color;if(o){const a=new FY(o),l=t.dark?a.tint(20).toString():R2(a,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?R2(a,90):a.tint(90).toString(),"text-color":o,"border-color":t.dark?R2(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?R2(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?R2(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?R2(a,80):a.tint(80).toString());else{const s=t.dark?R2(a,30):a.tint(30).toString(),h=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":h,"border-color":o,"hover-bg-color":s,"hover-text-color":h,"hover-border-color":s,"active-bg-color":l,"active-border-color":l}),e.value){const u=t.dark?R2(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const UY=c.defineComponent({name:"ElButton"}),jY=c.defineComponent({...UY,props:Ag,emits:CY,setup(t,{expose:e,emit:n}){const r=t,o=zY(r),a=Ln("button"),{_ref:l,_size:s,_type:h,_disabled:u,_props:d,shouldAddSpace:p,handleClick:f}=SY(r,n);return e({ref:l,size:s,type:h,disabled:u,shouldAddSpace:p}),(m,y)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(m.tag),c.mergeProps({ref_key:"_ref",ref:l},c.unref(d),{class:[c.unref(a).b(),c.unref(a).m(c.unref(h)),c.unref(a).m(c.unref(s)),c.unref(a).is("disabled",c.unref(u)),c.unref(a).is("loading",m.loading),c.unref(a).is("plain",m.plain),c.unref(a).is("round",m.round),c.unref(a).is("circle",m.circle),c.unref(a).is("text",m.text),c.unref(a).is("link",m.link),c.unref(a).is("has-bg",m.bg)],style:c.unref(o),onClick:c.unref(f)}),{default:c.withCtx(()=>[m.loading?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[m.$slots.loading?c.renderSlot(m.$slots,"loading",{key:0}):(c.openBlock(),c.createBlock(c.unref(zr),{key:1,class:c.normalizeClass(c.unref(a).is("loading"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(c.openBlock(),c.createBlock(c.unref(zr),{key:1},{default:c.withCtx(()=>[m.icon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(m.icon),{key:0})):c.renderSlot(m.$slots,"icon",{key:1})]),_:3})):c.createCommentVNode("v-if",!0),m.$slots.default?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass({[c.unref(a).em("text","expand")]:c.unref(p)})},[c.renderSlot(m.$slots,"default")],2)):c.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var GY=En(jY,[["__file","button.vue"]]);const WY={size:Ag.size,type:Ag.type},ZY=c.defineComponent({name:"ElButtonGroup"}),$Y=c.defineComponent({...ZY,props:WY,setup(t){const e=t;c.provide(NC,c.reactive({size:c.toRef(e,"size"),type:c.toRef(e,"type")}));const n=Ln("button");return(r,o)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`${c.unref(n).b("group")}`)},[c.renderSlot(r.$slots,"default")],2))}});var jC=En($Y,[["__file","button-group.vue"]]);const ed=Ui(GY,{ButtonGroup:jC});Ra(jC);var N2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qY(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function td(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}const B2=new Map;let GC;Dr&&(document.addEventListener("mousedown",t=>GC=t),document.addEventListener("mouseup",t=>{for(const e of B2.values())for(const{documentHandler:n}of e)n(t,GC)}));function WC(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:lc(e.arg)&&n.push(e.arg),function(r,o){const a=e.instance.popperRef,l=r.target,s=o==null?void 0:o.target,h=!e||!e.instance,u=!l||!s,d=t.contains(l)||t.contains(s),p=t===l,f=n.length&&n.some(y=>y==null?void 0:y.contains(l))||n.length&&n.includes(s),m=a&&(a.contains(l)||a.contains(s));h||u||d||p||f||m||e.value(r,o)}}const ZC={beforeMount(t,e){B2.has(t)||B2.set(t,[]),B2.get(t).push({documentHandler:WC(t,e),bindingFn:e.value})},updated(t,e){B2.has(t)||B2.set(t,[]);const n=B2.get(t),r=n.findIndex(a=>a.bindingFn===e.oldValue),o={documentHandler:WC(t,e),bindingFn:e.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(t){B2.delete(t)}},XY=100,KY=600,$C={beforeMount(t,e){const n=e.value,{interval:r=XY,delay:o=KY}=Ao(n)?{}:n;let a,l;const s=()=>Ao(n)?n():n.handler(),h=()=>{l&&(clearTimeout(l),l=void 0),a&&(clearInterval(a),a=void 0)};t.addEventListener("mousedown",u=>{u.button===0&&(h(),s(),document.addEventListener("mouseup",()=>h(),{once:!0}),l=setTimeout(()=>{a=setInterval(()=>{s()},r)},o))})}},qC={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ss,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},XC={[rr]:t=>si(t)||hr(t)||a4(t),change:t=>si(t)||hr(t)||a4(t)},c0=Symbol("checkboxGroupContextKey"),JY=({model:t,isChecked:e})=>{const n=c.inject(c0,void 0),r=c.computed(()=>{var a,l;const s=(a=n==null?void 0:n.max)==null?void 0:a.value,h=(l=n==null?void 0:n.min)==null?void 0:l.value;return!J1(s)&&t.value.length>=s&&!e.value||!J1(h)&&t.value.length<=h&&e.value});return{isDisabled:o0(c.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},YY=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:a})=>{const l=c.inject(c0,void 0),{formItem:s}=Es(),{emit:h}=c.getCurrentInstance();function u(y){var v,_;return y===t.trueLabel||y===!0?(v=t.trueLabel)!=null?v:!0:(_=t.falseLabel)!=null?_:!1}function d(y,v){h("change",u(y),v)}function p(y){if(n.value)return;const v=y.target;h("change",u(v.checked),y)}async function f(y){n.value||!r.value&&!o.value&&a.value&&(y.composedPath().some(x=>x.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await c.nextTick(),d(e.value,y)))}const m=c.computed(()=>(l==null?void 0:l.validateEvent)||t.validateEvent);return c.watch(()=>t.modelValue,()=>{m.value&&(s==null||s.validate("change").catch(y=>Fr(y)))}),{handleChange:p,onClickRoot:f}},eee=t=>{const e=c.ref(!1),{emit:n}=c.getCurrentInstance(),r=c.inject(c0,void 0),o=c.computed(()=>J1(r)===!1),a=c.ref(!1);return{model:c.computed({get(){var s,h;return o.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(h=t.modelValue)!=null?h:e.value},set(s){var h,u;o.value&&wi(s)?(a.value=((h=r==null?void 0:r.max)==null?void 0:h.value)!==void 0&&s.length>(r==null?void 0:r.max.value),a.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(rr,s),e.value=s)}}),isGroup:o,isLimitExceeded:a}},tee=(t,e,{model:n})=>{const r=c.inject(c0,void 0),o=c.ref(!1),a=c.computed(()=>{const u=n.value;return a4(u)?u:wi(u)?Yi(t.label)?u.map(c.toRaw).some(d=>X6(d,t.label)):u.map(c.toRaw).includes(t.label):u!=null?u===t.trueLabel:!!u}),l=Cs(c.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=Cs(c.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),h=c.computed(()=>!!e.default||!d1(t.label));return{checkboxButtonSize:l,isChecked:a,isFocused:o,checkboxSize:s,hasOwnLabel:h}},nee=(t,{model:e})=>{function n(){wi(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},KC=(t,e)=>{const{formItem:n}=Es(),{model:r,isGroup:o,isLimitExceeded:a}=eee(t),{isFocused:l,isChecked:s,checkboxButtonSize:h,checkboxSize:u,hasOwnLabel:d}=tee(t,e,{model:r}),{isDisabled:p}=JY({model:r,isChecked:s}),{inputId:f,isLabeledByFormItem:m}=a0(t,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:y,onClickRoot:v}=YY(t,{model:r,isLimitExceeded:a,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:m});return nee(t,{model:r}),{inputId:f,isLabeledByFormItem:m,isChecked:s,isDisabled:p,isFocused:l,checkboxButtonSize:h,checkboxSize:u,hasOwnLabel:d,model:r,handleChange:y,onClickRoot:v}},ree=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],iee=["id","indeterminate","disabled","value","name","tabindex"],oee=c.defineComponent({name:"ElCheckbox"}),aee=c.defineComponent({...oee,props:qC,emits:XC,setup(t){const e=t,n=c.useSlots(),{inputId:r,isLabeledByFormItem:o,isChecked:a,isDisabled:l,isFocused:s,checkboxSize:h,hasOwnLabel:u,model:d,handleChange:p,onClickRoot:f}=KC(e,n),m=Ln("checkbox"),y=c.computed(()=>[m.b(),m.m(h.value),m.is("disabled",l.value),m.is("bordered",e.border),m.is("checked",a.value)]),v=c.computed(()=>[m.e("input"),m.is("disabled",l.value),m.is("checked",a.value),m.is("indeterminate",e.indeterminate),m.is("focus",s.value)]);return(_,x)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(!c.unref(u)&&c.unref(o)?"span":"label"),{class:c.normalizeClass(c.unref(y)),"aria-controls":_.indeterminate?_.controls:null,onClick:c.unref(f)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v))},[_.trueLabel||_.falseLabel?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,id:c.unref(r),"onUpdate:modelValue":x[0]||(x[0]=L=>c.isRef(d)?d.value=L:null),class:c.normalizeClass(c.unref(m).e("original")),type:"checkbox",indeterminate:_.indeterminate,name:_.name,tabindex:_.tabindex,disabled:c.unref(l),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:x[1]||(x[1]=(...L)=>c.unref(p)&&c.unref(p)(...L)),onFocus:x[2]||(x[2]=L=>s.value=!0),onBlur:x[3]||(x[3]=L=>s.value=!1),onClick:x[4]||(x[4]=c.withModifiers(()=>{},["stop"]))},null,42,ree)),[[c.vModelCheckbox,c.unref(d)]]):c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:1,id:c.unref(r),"onUpdate:modelValue":x[5]||(x[5]=L=>c.isRef(d)?d.value=L:null),class:c.normalizeClass(c.unref(m).e("original")),type:"checkbox",indeterminate:_.indeterminate,disabled:c.unref(l),value:_.label,name:_.name,tabindex:_.tabindex,onChange:x[6]||(x[6]=(...L)=>c.unref(p)&&c.unref(p)(...L)),onFocus:x[7]||(x[7]=L=>s.value=!0),onBlur:x[8]||(x[8]=L=>s.value=!1),onClick:x[9]||(x[9]=c.withModifiers(()=>{},["stop"]))},null,42,iee)),[[c.vModelCheckbox,c.unref(d)]]),c.createElementVNode("span",{class:c.normalizeClass(c.unref(m).e("inner"))},null,2)],2),c.unref(u)?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(m).e("label"))},[c.renderSlot(_.$slots,"default"),_.$slots.default?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(_.label),1)],64))],2)):c.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var see=En(aee,[["__file","checkbox.vue"]]);const lee=["name","tabindex","disabled","true-value","false-value"],cee=["name","tabindex","disabled","value"],uee=c.defineComponent({name:"ElCheckboxButton"}),hee=c.defineComponent({...uee,props:qC,emits:XC,setup(t){const e=t,n=c.useSlots(),{isFocused:r,isChecked:o,isDisabled:a,checkboxButtonSize:l,model:s,handleChange:h}=KC(e,n),u=c.inject(c0,void 0),d=Ln("checkbox"),p=c.computed(()=>{var m,y,v,_;const x=(y=(m=u==null?void 0:u.fill)==null?void 0:m.value)!=null?y:"";return{backgroundColor:x,borderColor:x,color:(_=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?_:"",boxShadow:x?`-1px 0 0 0 ${x}`:void 0}}),f=c.computed(()=>[d.b("button"),d.bm("button",l.value),d.is("disabled",a.value),d.is("checked",o.value),d.is("focus",r.value)]);return(m,y)=>(c.openBlock(),c.createElementBlock("label",{class:c.normalizeClass(c.unref(f))},[m.trueLabel||m.falseLabel?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,"onUpdate:modelValue":y[0]||(y[0]=v=>c.isRef(s)?s.value=v:null),class:c.normalizeClass(c.unref(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:c.unref(a),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:y[1]||(y[1]=(...v)=>c.unref(h)&&c.unref(h)(...v)),onFocus:y[2]||(y[2]=v=>r.value=!0),onBlur:y[3]||(y[3]=v=>r.value=!1),onClick:y[4]||(y[4]=c.withModifiers(()=>{},["stop"]))},null,42,lee)),[[c.vModelCheckbox,c.unref(s)]]):c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:1,"onUpdate:modelValue":y[5]||(y[5]=v=>c.isRef(s)?s.value=v:null),class:c.normalizeClass(c.unref(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:c.unref(a),value:m.label,onChange:y[6]||(y[6]=(...v)=>c.unref(h)&&c.unref(h)(...v)),onFocus:y[7]||(y[7]=v=>r.value=!0),onBlur:y[8]||(y[8]=v=>r.value=!1),onClick:y[9]||(y[9]=c.withModifiers(()=>{},["stop"]))},null,42,cee)),[[c.vModelCheckbox,c.unref(s)]]),m.$slots.default||m.label?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass(c.unref(d).be("button","inner")),style:c.normalizeStyle(c.unref(o)?c.unref(p):void 0)},[c.renderSlot(m.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(m.label),1)])],6)):c.createCommentVNode("v-if",!0)],2))}});var JC=En(hee,[["__file","checkbox-button.vue"]]);const dee=Wn({modelValue:{type:gn(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ss,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),pee={[rr]:t=>wi(t),change:t=>wi(t)},fee=c.defineComponent({name:"ElCheckboxGroup"}),Tee=c.defineComponent({...fee,props:dee,emits:pee,setup(t,{emit:e}){const n=t,r=Ln("checkbox"),{formItem:o}=Es(),{inputId:a,isLabeledByFormItem:l}=a0(n,{formItemContext:o}),s=async u=>{e(rr,u),await c.nextTick(),e("change",u)},h=c.computed({get(){return n.modelValue},set(u){s(u)}});return c.provide(c0,{...Eq(c.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:h,changeEvent:s}),c.watch(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>Fr(u)))}),(u,d)=>{var p;return c.openBlock(),c.createBlock(c.resolveDynamicComponent(u.tag),{id:c.unref(a),class:c.normalizeClass(c.unref(r).b("group")),role:"group","aria-label":c.unref(l)?void 0:u.label||"checkbox-group","aria-labelledby":c.unref(l)?(p=c.unref(o))==null?void 0:p.labelId:void 0},{default:c.withCtx(()=>[c.renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var YC=En(Tee,[["__file","checkbox-group.vue"]]);const eE=Ui(see,{CheckboxButton:JC,CheckboxGroup:YC});Ra(JC);const Qee=Ra(YC),tE=Wn({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:AS,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),mee={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},gee=c.defineComponent({name:"ElTag"}),yee=c.defineComponent({...gee,props:tE,emits:mee,setup(t,{emit:e}){const n=t,r=Cs(),o=Ln("tag"),a=c.computed(()=>{const{type:h,hit:u,effect:d,closable:p,round:f}=n;return[o.b(),o.is("closable",p),o.m(h),o.m(r.value),o.m(d),o.is("hit",u),o.is("round",f)]}),l=h=>{e("close",h)},s=h=>{e("click",h)};return(h,u)=>h.disableTransitions?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle({backgroundColor:h.color}),onClick:s},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(o).e("content"))},[c.renderSlot(h.$slots,"default")],2),h.closable?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(o).e("close")),onClick:c.withModifiers(l,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(uc))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)):(c.openBlock(),c.createBlock(c.Transition,{key:1,name:`${c.unref(o).namespace.value}-zoom-in-center`,appear:""},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle({backgroundColor:h.color}),onClick:s},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(o).e("content"))},[c.renderSlot(h.$slots,"default")],2),h.closable?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(o).e("close")),onClick:c.withModifiers(l,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(uc))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var vee=En(yee,[["__file","tag.vue"]]);const bee=Ui(vee),nE=Symbol("rowContextKey"),xee=Wn({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),_ee=c.defineComponent({name:"ElRow"}),Lee=c.defineComponent({..._ee,props:xee,setup(t){const e=t,n=Ln("row"),r=c.computed(()=>e.gutter);c.provide(nE,{gutter:r});const o=c.computed(()=>{const l={};return e.gutter&&(l.marginRight=l.marginLeft=`-${e.gutter/2}px`),l}),a=c.computed(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(l,s)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(l.tag),{class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle(c.unref(o))},{default:c.withCtx(()=>[c.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}});var wee=En(Lee,[["__file","row.vue"]]);const u0=Ui(wee),Mee=Wn({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:gn([Number,Object]),default:()=>V2({})},sm:{type:gn([Number,Object]),default:()=>V2({})},md:{type:gn([Number,Object]),default:()=>V2({})},lg:{type:gn([Number,Object]),default:()=>V2({})},xl:{type:gn([Number,Object]),default:()=>V2({})}}),See=c.defineComponent({name:"ElCol"}),Cee=c.defineComponent({...See,props:Mee,setup(t){const e=t,{gutter:n}=c.inject(nE,{gutter:c.computed(()=>0)}),r=Ln("col"),o=c.computed(()=>{const l={};return n.value&&(l.paddingLeft=l.paddingRight=`${n.value/2}px`),l}),a=c.computed(()=>{const l=[];return["span","offset","pull","push"].forEach(u=>{const d=e[u];hr(d)&&(u==="span"?l.push(r.b(`${e[u]}`)):d>0&&l.push(r.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{hr(e[u])?l.push(r.b(`${u}-${e[u]}`)):Yi(e[u])&&Object.entries(e[u]).forEach(([d,p])=>{l.push(d!=="span"?r.b(`${u}-${d}-${p}`):r.b(`${u}-${p}`))})}),n.value&&l.push(r.is("guttered")),[r.b(),l]});return(l,s)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(l.tag),{class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle(c.unref(o))},{default:c.withCtx(()=>[c.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}});var Eee=En(Cee,[["__file","col.vue"]]);const _c=Ui(Eee),Hee=c.defineComponent({name:"ElCollapseTransition"}),Aee=c.defineComponent({...Hee,setup(t){const e=Ln("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,a)=>(c.openBlock(),c.createBlock(c.Transition,c.mergeProps({name:c.unref(e).b()},c.toHandlers(r)),{default:c.withCtx(()=>[c.renderSlot(o.$slots,"default")]),_:3},16,["name"]))}});var nd=En(Aee,[["__file","collapse-transition.vue"]]);nd.install=t=>{t.component(nd.name,nd)};const Vee=nd,Oee=Wn({color:{type:gn(Object),required:!0},vertical:{type:Boolean,default:!1}});let Ig=!1;function Lc(t,e){if(!Dr)return;const n=function(a){var l;(l=e.drag)==null||l.call(e,a)},r=function(a){var l;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Ig=!1,(l=e.end)==null||l.call(e,a)},o=function(a){var l;Ig||(a.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Ig=!0,(l=e.start)==null||l.call(e,a))};t.addEventListener("mousedown",o),t.addEventListener("touchstart",o)}const kee=t=>{const e=c.getCurrentInstance(),n=c.shallowRef(),r=c.shallowRef();function o(l){l.target!==n.value&&a(l)}function a(l){if(!r.value||!n.value)return;const h=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:d}=Rm(l);if(t.vertical){let p=d-h.top;p=Math.max(n.value.offsetHeight/2,p),p=Math.min(p,h.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((p-n.value.offsetHeight/2)/(h.height-n.value.offsetHeight)*100))}else{let p=u-h.left;p=Math.max(n.value.offsetWidth/2,p),p=Math.min(p,h.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((p-n.value.offsetWidth/2)/(h.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:a,handleClick:o}},Pee=(t,{bar:e,thumb:n,handleDrag:r})=>{const o=c.getCurrentInstance(),a=Ln("color-alpha-slider"),l=c.ref(0),s=c.ref(0),h=c.ref();function u(){if(!n.value||t.vertical)return 0;const L=o.vnode.el,S=t.color.get("alpha");return L?Math.round(S*(L.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const L=o.vnode.el;if(!t.vertical)return 0;const S=t.color.get("alpha");return L?Math.round(S*(L.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(t.color&&t.color.value){const{r:L,g:S,b:C}=t.color.toRgb();return`linear-gradient(to right, rgba(${L}, ${S}, ${C}, 0) 0%, rgba(${L}, ${S}, ${C}, 1) 100%)`}return""}function f(){l.value=u(),s.value=d(),h.value=p()}c.onMounted(()=>{if(!e.value||!n.value)return;const L={drag:S=>{r(S)},end:S=>{r(S)}};Lc(e.value,L),Lc(n.value,L),f()}),c.watch(()=>t.color.get("alpha"),()=>f()),c.watch(()=>t.color.value,()=>f());const m=c.computed(()=>[a.b(),a.is("vertical",t.vertical)]),y=c.computed(()=>a.e("bar")),v=c.computed(()=>a.e("thumb")),_=c.computed(()=>({background:h.value})),x=c.computed(()=>({left:A2(l.value),top:A2(s.value)}));return{rootKls:m,barKls:y,barStyle:_,thumbKls:v,thumbStyle:x,update:f}},Iee=c.defineComponent({name:"ElColorAlphaSlider"}),Ree=c.defineComponent({...Iee,props:Oee,setup(t,{expose:e}){const n=t,{bar:r,thumb:o,handleDrag:a,handleClick:l}=kee(n),{rootKls:s,barKls:h,barStyle:u,thumbKls:d,thumbStyle:p,update:f}=Pee(n,{bar:r,thumb:o,handleDrag:a});return e({update:f,bar:r,thumb:o}),(m,y)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(c.unref(s))},[c.createElementVNode("div",{ref_key:"bar",ref:r,class:c.normalizeClass(c.unref(h)),style:c.normalizeStyle(c.unref(u)),onClick:y[0]||(y[0]=(...v)=>c.unref(l)&&c.unref(l)(...v))},null,6),c.createElementVNode("div",{ref_key:"thumb",ref:o,class:c.normalizeClass(c.unref(d)),style:c.normalizeStyle(c.unref(p))},null,6)],2))}});var Nee=En(Ree,[["__file","alpha-slider.vue"]]);const Bee=c.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=Ln("color-hue-slider"),n=c.getCurrentInstance(),r=c.ref(),o=c.ref(),a=c.ref(0),l=c.ref(0),s=c.computed(()=>t.color.get("hue"));c.watch(()=>s.value,()=>{f()});function h(m){m.target!==r.value&&u(m)}function u(m){if(!o.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:_,clientY:x}=Rm(m);let L;if(t.vertical){let S=x-v.top;S=Math.min(S,v.height-r.value.offsetHeight/2),S=Math.max(r.value.offsetHeight/2,S),L=Math.round((S-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let S=_-v.left;S=Math.min(S,v.width-r.value.offsetWidth/2),S=Math.max(r.value.offsetWidth/2,S),L=Math.round((S-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",L)}function d(){if(!r.value)return 0;const m=n.vnode.el;if(t.vertical)return 0;const y=t.color.get("hue");return m?Math.round(y*(m.offsetWidth-r.value.offsetWidth/2)/360):0}function p(){if(!r.value)return 0;const m=n.vnode.el;if(!t.vertical)return 0;const y=t.color.get("hue");return m?Math.round(y*(m.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){a.value=d(),l.value=p()}return c.onMounted(()=>{if(!o.value||!r.value)return;const m={drag:y=>{u(y)},end:y=>{u(y)}};Lc(o.value,m),Lc(r.value,m),f()}),{bar:o,thumb:r,thumbLeft:a,thumbTop:l,hueValue:s,handleClick:h,update:f,ns:e}}});function Dee(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[c.createElementVNode("div",{ref:"bar",class:c.normalizeClass(t.ns.e("bar")),onClick:e[0]||(e[0]=(...l)=>t.handleClick&&t.handleClick(...l))},null,2),c.createElementVNode("div",{ref:"thumb",class:c.normalizeClass(t.ns.e("thumb")),style:c.normalizeStyle({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var Fee=En(Bee,[["render",Dee],["__file","hue-slider.vue"]]);const zee=Wn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ss,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:gn(Array)},validateEvent:{type:Boolean,default:!0}}),Uee={[rr]:t=>si(t)||d1(t),[l4]:t=>si(t)||d1(t),activeChange:t=>si(t)||d1(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},rE=Symbol("colorPickerContextKey"),iE=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},jee=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},Gee=function(t){return typeof t=="string"&&t.includes("%")},h0=function(t,e){jee(t)&&(t="100%");const n=Gee(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},oE={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},rd=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${oE[e]||e}${oE[n]||n}`},aE=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${rd(t)}${rd(e)}${rd(n)}`},Rg={A:10,B:11,C:12,D:13,E:14,F:15},m4=function(t){return t.length===2?(Rg[t[0].toUpperCase()]||+t[0])*16+(Rg[t[1].toUpperCase()]||+t[1]):Rg[t[1].toUpperCase()]||+t[1]},Wee=function(t,e,n){e=e/100,n=n/100;let r=e;const o=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=o<=1?o:2-o;const a=(n+e)/2,l=n===0?2*r/(o+r):2*e/(n+e);return{h:t,s:l*100,v:a*100}},sE=(t,e,n)=>{t=h0(t,255),e=h0(e,255),n=h0(n,255);const r=Math.max(t,e,n),o=Math.min(t,e,n);let a;const l=r,s=r-o,h=r===0?0:s/r;if(r===o)a=0;else{switch(r){case t:{a=(e-n)/s+(e<n?6:0);break}case e:{a=(n-t)/s+2;break}case n:{a=(t-e)/s+4;break}}a/=6}return{h:a*360,s:h*100,v:l*100}},wc=function(t,e,n){t=h0(t,360)*6,e=h0(e,100),n=h0(n,100);const r=Math.floor(t),o=t-r,a=n*(1-e),l=n*(1-o*e),s=n*(1-(1-o)*e),h=r%6,u=[n,l,a,a,s,n][h],d=[s,n,n,l,a,a][h],p=[a,a,s,n,n,l][h];return{r:Math.round(u*255),g:Math.round(d*255),b:Math.round(p*255)}};let Mc=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in e)t4(e,n)&&(this[n]=e[n]);e.value?this.fromString(e.value):this.doOnChange()}set(e,n){if(arguments.length===1&&typeof e=="object"){for(const r in e)t4(e,r)&&this.set(r,e[r]);return}this[`_${e}`]=n,this.doOnChange()}get(e){return e==="alpha"?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return wc(this._hue,this._saturation,this._value)}fromString(e){if(!e){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,o,a)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,o)),this._value=Math.max(0,Math.min(100,a)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,a)=>a>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:a,v:l}=Wee(r[0],r[1],r[2]);n(o,a,l)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,a)=>a>2?Number.parseFloat(o):Number.parseInt(o,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,a)=>a>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:a,v:l}=sE(r[0],r[1],r[2]);n(o,a,l)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let o,a,l;r.length===3?(o=m4(r[0]+r[0]),a=m4(r[1]+r[1]),l=m4(r[2]+r[2])):(r.length===6||r.length===8)&&(o=m4(r.slice(0,2)),a=m4(r.slice(2,4)),l=m4(r.slice(4,6))),r.length===8?this._alpha=m4(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:h,v:u}=sE(o,a,l);n(s,h,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:o,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":{const l=iE(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${aE(wc(e,n,r))}${rd(o*255/100)}`;break}default:{const{r:l,g:s,b:h}=wc(e,n,r);this.value=`rgba(${l}, ${s}, ${h}, ${this.get("alpha")/100})`}}else switch(a){case"hsl":{const l=iE(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:l,g:s,b:h}=wc(e,n,r);this.value=`rgb(${l}, ${s}, ${h})`;break}default:this.value=aE(wc(e,n,r))}}};const Zee=c.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const e=Ln("color-predefine"),{currentColor:n}=c.inject(rE),r=c.ref(a(t.colors,t.color));c.watch(()=>n.value,l=>{const s=new Mc;s.fromString(l),r.value.forEach(h=>{h.selected=s.compare(h)})}),c.watchEffect(()=>{r.value=a(t.colors,t.color)});function o(l){t.color.fromString(t.colors[l])}function a(l,s){return l.map(h=>{const u=new Mc;return u.enableAlpha=!0,u.format="rgba",u.fromString(h),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:o,ns:e}}}),$ee=["onClick"];function qee(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(t.ns.b())},[c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("colors"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.rgbaColors,(l,s)=>(c.openBlock(),c.createElementBlock("div",{key:t.colors[s],class:c.normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",l._alpha<100),{selected:l.selected}]),onClick:h=>t.handleSelect(s)},[c.createElementVNode("div",{style:c.normalizeStyle({backgroundColor:l.value})},null,4)],10,$ee))),128))],2)],2)}var Xee=En(Zee,[["render",qee],["__file","predefine.vue"]]);const Kee=c.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=Ln("color-svpanel"),n=c.getCurrentInstance(),r=c.ref(0),o=c.ref(0),a=c.ref("hsl(0, 100%, 50%)"),l=c.computed(()=>{const u=t.color.get("hue"),d=t.color.get("value");return{hue:u,value:d}});function s(){const u=t.color.get("saturation"),d=t.color.get("value"),p=n.vnode.el,{clientWidth:f,clientHeight:m}=p;o.value=u*f/100,r.value=(100-d)*m/100,a.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function h(u){const p=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:m}=Rm(u);let y=f-p.left,v=m-p.top;y=Math.max(0,y),y=Math.min(y,p.width),v=Math.max(0,v),v=Math.min(v,p.height),o.value=y,r.value=v,t.color.set({saturation:y/p.width*100,value:100-v/p.height*100})}return c.watch(()=>l.value,()=>{s()}),c.onMounted(()=>{Lc(n.vnode.el,{drag:u=>{h(u)},end:u=>{h(u)}}),s()}),{cursorTop:r,cursorLeft:o,background:a,colorValue:l,handleDrag:h,update:s,ns:e}}}),Jee=[c.createElementVNode("div",null,null,-1)];function Yee(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(t.ns.b()),style:c.normalizeStyle({backgroundColor:t.background})},[c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("white"))},null,2),c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("black"))},null,2),c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("cursor")),style:c.normalizeStyle({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},Jee,6)],6)}var ete=En(Kee,[["render",Yee],["__file","sv-panel.vue"]]);const tte=["onKeydown"],nte=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],rte=c.defineComponent({name:"ElColorPicker"}),ite=c.defineComponent({...rte,props:zee,emits:Uee,setup(t,{expose:e,emit:n}){const r=t,{t:o}=u4(),a=Ln("color"),{formItem:l}=Es(),s=Cs(),h=o0(),{inputId:u,isLabeledByFormItem:d}=a0(r,{formItemContext:l}),p=c.ref(),f=c.ref(),m=c.ref(),y=c.ref(),v=c.ref(),_=c.ref(),{isFocused:x,handleFocus:L,handleBlur:S}=vg(v,{beforeBlur(me){var Ne;return(Ne=y.value)==null?void 0:Ne.isFocusInsideContent(me)},afterBlur(){te(!1),ee()}}),C=me=>{if(h.value)return je();L(me)};let A=!0;const H=c.reactive(new Mc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),k=c.ref(!1),B=c.ref(!1),D=c.ref(""),z=c.computed(()=>!r.modelValue&&!B.value?"transparent":X(H,r.showAlpha)),q=c.computed(()=>!r.modelValue&&!B.value?"":H.value),F=c.computed(()=>d.value?void 0:r.label||o("el.colorpicker.defaultLabel")),Z=c.computed(()=>d.value?l==null?void 0:l.labelId:void 0),K=c.computed(()=>[a.b("picker"),a.is("disabled",h.value),a.bm("picker",s.value),a.is("focused",x.value)]);function X(me,Ne){if(!(me instanceof Mc))throw new TypeError("color should be instance of _color Class");const{r:Ie,g:Ke,b:Ye}=me.toRgb();return Ne?`rgba(${Ie}, ${Ke}, ${Ye}, ${me.get("alpha")/100})`:`rgb(${Ie}, ${Ke}, ${Ye})`}function te(me){k.value=me}const J=Ah(te,100,{leading:!0});function he(){h.value||te(!0)}function xe(){J(!1),ee()}function ee(){c.nextTick(()=>{r.modelValue?H.fromString(r.modelValue):(H.value="",c.nextTick(()=>{B.value=!1}))})}function oe(){h.value||J(!k.value)}function de(){H.fromString(D.value)}function fe(){const me=H.value;n(rr,me),n("change",me),r.validateEvent&&(l==null||l.validate("change").catch(Ne=>Fr(Ne))),J(!1),c.nextTick(()=>{const Ne=new Mc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});H.compare(Ne)||ee()})}function Ae(){J(!1),n(rr,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(l==null||l.validate("change").catch(me=>Fr(me))),ee()}function Se(me){if(k.value&&(xe(),x.value)){const Ne=new FocusEvent("focus",me);S(Ne)}}function Qe(me){me.preventDefault(),me.stopPropagation(),te(!1),ee()}function Le(me){switch(me.code){case Mi.enter:case Mi.space:me.preventDefault(),me.stopPropagation(),he(),_.value.focus();break;case Mi.esc:Qe(me);break}}function Ce(){v.value.focus()}function je(){v.value.blur()}return c.onMounted(()=>{r.modelValue&&(D.value=q.value)}),c.watch(()=>r.modelValue,me=>{me?me&&me!==H.value&&(A=!1,H.fromString(me)):B.value=!1}),c.watch(()=>q.value,me=>{D.value=me,A&&n("activeChange",me),A=!0}),c.watch(()=>H.value,()=>{!r.modelValue&&!B.value&&(B.value=!0)}),c.watch(()=>k.value,()=>{c.nextTick(()=>{var me,Ne,Ie;(me=p.value)==null||me.update(),(Ne=f.value)==null||Ne.update(),(Ie=m.value)==null||Ie.update()})}),c.provide(rE,{currentColor:q}),e({color:H,show:he,hide:xe,focus:Ce,blur:je}),(me,Ne)=>(c.openBlock(),c.createBlock(c.unref(Kh),{ref_key:"popper",ref:y,visible:k.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[c.unref(a).be("picker","panel"),c.unref(a).b("dropdown"),me.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${c.unref(a).namespace.value}-zoom-in-top`,persistent:"",onHide:Ne[2]||(Ne[2]=Ie=>te(!1))},{content:c.withCtx(()=>[c.withDirectives((c.openBlock(),c.createElementBlock("div",{onKeydown:c.withKeys(Qe,["esc"])},[c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).be("dropdown","main-wrapper"))},[c.createVNode(Fee,{ref_key:"hue",ref:p,class:"hue-slider",color:c.unref(H),vertical:""},null,8,["color"]),c.createVNode(ete,{ref_key:"sv",ref:f,color:c.unref(H)},null,8,["color"])],2),me.showAlpha?(c.openBlock(),c.createBlock(Nee,{key:0,ref_key:"alpha",ref:m,color:c.unref(H)},null,8,["color"])):c.createCommentVNode("v-if",!0),me.predefine?(c.openBlock(),c.createBlock(Xee,{key:1,ref:"predefine",color:c.unref(H),colors:me.predefine},null,8,["color","colors"])):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).be("dropdown","btns"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).be("dropdown","value"))},[c.createVNode(c.unref(xg),{ref_key:"inputRef",ref:_,modelValue:D.value,"onUpdate:modelValue":Ne[0]||(Ne[0]=Ie=>D.value=Ie),"validate-event":!1,size:"small",onKeyup:c.withKeys(de,["enter"]),onBlur:de},null,8,["modelValue","onKeyup"])],2),c.createVNode(c.unref(ed),{class:c.normalizeClass(c.unref(a).be("dropdown","link-btn")),text:"",size:"small",onClick:Ae},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),c.createVNode(c.unref(ed),{plain:"",size:"small",class:c.normalizeClass(c.unref(a).be("dropdown","btn")),onClick:fe},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,tte)),[[c.unref(ZC),Se]])]),default:c.withCtx(()=>[c.createElementVNode("div",{id:c.unref(u),ref_key:"triggerRef",ref:v,class:c.normalizeClass(c.unref(K)),role:"button","aria-label":c.unref(F),"aria-labelledby":c.unref(Z),"aria-description":c.unref(o)("el.colorpicker.description",{color:me.modelValue||""}),"aria-disabled":c.unref(h),tabindex:c.unref(h)?-1:me.tabindex,onKeydown:Le,onFocus:C,onBlur:Ne[1]||(Ne[1]=(...Ie)=>c.unref(S)&&c.unref(S)(...Ie))},[c.unref(h)?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(a).be("picker","mask"))},null,2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).be("picker","trigger")),onClick:oe},[c.createElementVNode("span",{class:c.normalizeClass([c.unref(a).be("picker","color"),c.unref(a).is("alpha",me.showAlpha)])},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).be("picker","color-inner")),style:c.normalizeStyle({backgroundColor:c.unref(z)})},[c.withDirectives(c.createVNode(c.unref(zr),{class:c.normalizeClass([c.unref(a).be("picker","icon"),c.unref(a).is("icon-arrow-down")])},{default:c.withCtx(()=>[c.createVNode(c.unref(Ph))]),_:1},8,["class"]),[[c.vShow,me.modelValue||B.value]]),c.withDirectives(c.createVNode(c.unref(zr),{class:c.normalizeClass([c.unref(a).be("picker","empty"),c.unref(a).is("icon-close")])},{default:c.withCtx(()=>[c.createVNode(c.unref(uc))]),_:1},8,["class"]),[[c.vShow,!me.modelValue&&!B.value]])],6)],2)],2)],42,nte)]),_:1},8,["visible","popper-class","transition"]))}});var ote=En(ite,[["__file","color-picker.vue"]]);const lE=Ui(ote),ate=c.defineComponent({name:"ElContainer"}),ste=c.defineComponent({...ate,props:{direction:{type:String}},setup(t){const e=t,n=c.useSlots(),r=Ln("container"),o=c.computed(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const s=l.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(a,l)=>(c.openBlock(),c.createElementBlock("section",{class:c.normalizeClass([c.unref(r).b(),c.unref(r).is("vertical",c.unref(o))])},[c.renderSlot(a.$slots,"default")],2))}});var lte=En(ste,[["__file","container.vue"]]);const cte=c.defineComponent({name:"ElAside"}),ute=c.defineComponent({...cte,props:{width:{type:String,default:null}},setup(t){const e=t,n=Ln("aside"),r=c.computed(()=>e.width?n.cssVarBlock({width:e.width}):{});return(o,a)=>(c.openBlock(),c.createElementBlock("aside",{class:c.normalizeClass(c.unref(n).b()),style:c.normalizeStyle(c.unref(r))},[c.renderSlot(o.$slots,"default")],6))}});var cE=En(ute,[["__file","aside.vue"]]);const hte=c.defineComponent({name:"ElFooter"}),dte=c.defineComponent({...hte,props:{height:{type:String,default:null}},setup(t){const e=t,n=Ln("footer"),r=c.computed(()=>e.height?n.cssVarBlock({height:e.height}):{});return(o,a)=>(c.openBlock(),c.createElementBlock("footer",{class:c.normalizeClass(c.unref(n).b()),style:c.normalizeStyle(c.unref(r))},[c.renderSlot(o.$slots,"default")],6))}});var uE=En(dte,[["__file","footer.vue"]]);const pte=c.defineComponent({name:"ElHeader"}),fte=c.defineComponent({...pte,props:{height:{type:String,default:null}},setup(t){const e=t,n=Ln("header"),r=c.computed(()=>e.height?n.cssVarBlock({height:e.height}):{});return(o,a)=>(c.openBlock(),c.createElementBlock("header",{class:c.normalizeClass(c.unref(n).b()),style:c.normalizeStyle(c.unref(r))},[c.renderSlot(o.$slots,"default")],6))}});var hE=En(fte,[["__file","header.vue"]]);const Tte=c.defineComponent({name:"ElMain"}),Qte=c.defineComponent({...Tte,setup(t){const e=Ln("main");return(n,r)=>(c.openBlock(),c.createElementBlock("main",{class:c.normalizeClass(c.unref(e).b())},[c.renderSlot(n.$slots,"default")],2))}});var dE=En(Qte,[["__file","main.vue"]]);const id=Ui(lte,{Aside:cE,Footer:uE,Header:hE,Main:dE});Ra(cE);const pE=Ra(uE),od=Ra(hE),ad=Ra(dE),mte=Wn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:gn([String,Array,Object])},zIndex:{type:gn([String,Number])}}),gte={click:t=>t instanceof MouseEvent},yte="overlay";var vte=c.defineComponent({name:"ElOverlay",props:mte,emits:gte,setup(t,{slots:e,emit:n}){const r=Ln(yte),o=h=>{n("click",h)},{onClick:a,onMousedown:l,onMouseup:s}=NK(t.customMaskEvent?void 0:o);return()=>t.mask?c.createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:a,onMousedown:l,onMouseup:s},[c.renderSlot(e,"default")],Rh.STYLE|Rh.CLASS|Rh.PROPS,["onClick","onMouseup","onMousedown"]):c.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[c.renderSlot(e,"default")])}});const bte=vte,xte=Wn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Ms},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),_te=Wn({...xte,appendToBody:Boolean,appendTo:{type:gn(String),default:"body"},beforeClose:{type:gn(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),Lte={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[rr]:t=>a4(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},wte=(t,e)=>{var n;const o=c.getCurrentInstance().emit,{nextZIndex:a}=yg();let l="";const s=r0(),h=r0(),u=c.ref(!1),d=c.ref(!1),p=c.ref(!1),f=c.ref((n=t.zIndex)!=null?n:a());let m,y;const v=Wh("namespace",pc),_=c.computed(()=>{const X={},te=`--${v.value}-dialog`;return t.fullscreen||(t.top&&(X[`${te}-margin-top`]=t.top),t.width&&(X[`${te}-width`]=A2(t.width))),X}),x=c.computed(()=>t.alignCenter?{display:"flex"}:{});function L(){o("opened")}function S(){o("closed"),o(rr,!1),t.destroyOnClose&&(p.value=!1)}function C(){o("close")}function A(){y==null||y(),m==null||m(),t.openDelay&&t.openDelay>0?{stop:m}=xM(()=>D(),t.openDelay):D()}function H(){m==null||m(),y==null||y(),t.closeDelay&&t.closeDelay>0?{stop:y}=xM(()=>z(),t.closeDelay):z()}function k(){function X(te){te||(d.value=!0,u.value=!1)}t.beforeClose?t.beforeClose(X):H()}function B(){t.closeOnClickModal&&k()}function D(){Dr&&(u.value=!0)}function z(){u.value=!1}function q(){o("openAutoFocus")}function F(){o("closeAutoFocus")}function Z(X){var te;((te=X.detail)==null?void 0:te.focusReason)==="pointer"&&X.preventDefault()}t.lockScroll&&LX(u);function K(){t.closeOnPressEscape&&k()}return c.watch(()=>t.modelValue,X=>{X?(d.value=!1,A(),p.value=!0,f.value=bS(t.zIndex)?a():f.value++,c.nextTick(()=>{o("open"),e.value&&(e.value.scrollTop=0)})):u.value&&H()}),c.watch(()=>t.fullscreen,X=>{e.value&&(X?(l=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=l)}),c.onMounted(()=>{t.modelValue&&(u.value=!0,p.value=!0,A())}),{afterEnter:L,afterLeave:S,beforeLeave:C,handleClose:k,onModalClick:B,close:H,doClose:z,onOpenAutoFocus:q,onCloseAutoFocus:F,onCloseRequested:K,onFocusoutPrevented:Z,titleId:s,bodyId:h,closed:d,style:_,overlayDialogStyle:x,rendered:p,visible:u,zIndex:f}},Mte=Wn({..._te,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Ste=Lte,Cte=c.defineComponent({name:"ElDrawer",components:{ElOverlay:bte,ElFocusTrap:IC,ElIcon:zr,Close:uc},inheritAttrs:!1,props:Mte,emits:Ste,setup(t,{slots:e}){hc({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},c.computed(()=>!!e.title)),hc({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},c.computed(()=>!!t.customClass));const n=c.ref(),r=c.ref(),o=Ln("drawer"),{t:a}=u4(),l=c.computed(()=>t.direction==="rtl"||t.direction==="ltr"),s=c.computed(()=>A2(t.size));return{...wte(t,n),drawerRef:n,focusStartRef:r,isHorizontal:l,drawerSize:s,ns:o,t:a}}}),Ete=["aria-label","aria-labelledby","aria-describedby"],Hte=["id","aria-level"],Ate=["aria-label"],Vte=["id"];function Ote(t,e,n,r,o,a){const l=c.resolveComponent("close"),s=c.resolveComponent("el-icon"),h=c.resolveComponent("el-focus-trap"),u=c.resolveComponent("el-overlay");return c.openBlock(),c.createBlock(c.Teleport,{to:"body",disabled:!t.appendToBody},[c.createVNode(c.Transition,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createVNode(u,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:c.withCtx(()=>[c.createVNode(h,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:c.withCtx(()=>[c.createElementVNode("div",c.mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:t.titleId,"aria-describedby":t.bodyId},t.$attrs,{class:[t.ns.b(),t.direction,t.visible&&"open",t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,role:"dialog",onClick:e[1]||(e[1]=c.withModifiers(()=>{},["stop"]))}),[c.createElementVNode("span",{ref:"focusStartRef",class:c.normalizeClass(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(c.openBlock(),c.createElementBlock("header",{key:0,class:c.normalizeClass(t.ns.e("header"))},[t.$slots.title?c.renderSlot(t.$slots,"title",{key:1},()=>[c.createCommentVNode(" DEPRECATED SLOT ")]):c.renderSlot(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:c.normalizeClass(t.ns.e("title"))},c.toDisplayString(t.title),11,Hte))]),t.showClose?(c.openBlock(),c.createElementBlock("button",{key:2,"aria-label":t.t("el.drawer.close"),class:c.normalizeClass(t.ns.e("close-btn")),type:"button",onClick:e[0]||(e[0]=(...d)=>t.handleClose&&t.handleClose(...d))},[c.createVNode(s,{class:c.normalizeClass(t.ns.e("close"))},{default:c.withCtx(()=>[c.createVNode(l)]),_:1},8,["class"])],10,Ate)):c.createCommentVNode("v-if",!0)],2)):c.createCommentVNode("v-if",!0),t.rendered?(c.openBlock(),c.createElementBlock("div",{key:1,id:t.bodyId,class:c.normalizeClass(t.ns.e("body"))},[c.renderSlot(t.$slots,"default")],10,Vte)):c.createCommentVNode("v-if",!0),t.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(t.ns.e("footer"))},[c.renderSlot(t.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)],16,Ete)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[c.vShow,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var kte=En(Cte,[["render",Ote],["__file","drawer.vue"]]);const fE=Ui(kte),Pte=c.defineComponent({inheritAttrs:!1});function Ite(t,e,n,r,o,a){return c.renderSlot(t.$slots,"default")}var Rte=En(Pte,[["render",Ite],["__file","collection.vue"]]);const Nte=c.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function Bte(t,e,n,r,o,a){return c.renderSlot(t.$slots,"default")}var Dte=En(Nte,[["render",Bte],["__file","collection-item.vue"]]);const Fte="data-el-collection-item",zte=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),o=Symbol(n),a={...Rte,name:e,setup(){const s=c.ref(null),h=new Map,u=()=>{const d=c.unref(s);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${Fte}]`));return[...h.values()].sort((m,y)=>p.indexOf(m.ref)-p.indexOf(y.ref))};c.provide(r,{itemMap:h,getItems:u,collectionRef:s})}},l={...Dte,name:n,setup(s,{attrs:h}){const u=c.ref(null),d=c.inject(r,void 0);c.provide(o,{collectionItemRef:u}),c.onMounted(()=>{const p=c.unref(u);p&&d.itemMap.set(p,{ref:p,...h})}),c.onBeforeUnmount(()=>{const p=c.unref(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:l}},Ng=Wn({trigger:xc.trigger,effect:{...T1.effect,default:"light"},type:{type:gn(String)},placement:{type:gn(String),default:"bottom"},popperOptions:{type:gn(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:gn([Number,String]),default:0},maxHeight:{type:gn([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:gn(Object)},teleported:T1.teleported});Wn({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ms}}),Wn({onKeydown:{type:gn(Function)}}),zte("Dropdown");const Ute=Wn({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Ss,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||hr(t)||["min","max"].includes(t),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0}}),jte={[l4]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[c4]:t=>hr(t)||d1(t),[rr]:t=>hr(t)||d1(t)},Gte=["aria-label","onKeydown"],Wte=["aria-label","onKeydown"],Zte=c.defineComponent({name:"ElInputNumber"}),$te=c.defineComponent({...Zte,props:Ute,emits:jte,setup(t,{expose:e,emit:n}){const r=t,{t:o}=u4(),a=Ln("input-number"),l=c.ref(),s=c.reactive({currentValue:r.modelValue,userInput:null}),{formItem:h}=Es(),u=c.computed(()=>hr(r.modelValue)&&r.modelValue<=r.min),d=c.computed(()=>hr(r.modelValue)&&r.modelValue>=r.max),p=c.computed(()=>{const K=x(r.step);return J1(r.precision)?Math.max(x(r.modelValue),K):(K>r.precision&&Fr("InputNumber","precision should not be less than the decimal places of step"),r.precision)}),f=c.computed(()=>r.controls&&r.controlsPosition==="right"),m=Cs(),y=o0(),v=c.computed(()=>{if(s.userInput!==null)return s.userInput;let K=s.currentValue;if(d1(K))return"";if(hr(K)){if(Number.isNaN(K))return"";J1(r.precision)||(K=K.toFixed(r.precision))}return K}),_=(K,X)=>{if(J1(X)&&(X=p.value),X===0)return Math.round(K);let te=String(K);const J=te.indexOf(".");if(J===-1||!te.replace(".","").split("")[J+X])return K;const ee=te.length;return te.charAt(ee-1)==="5"&&(te=`${te.slice(0,Math.max(0,ee-1))}6`),Number.parseFloat(Number(te).toFixed(X))},x=K=>{if(d1(K))return 0;const X=K.toString(),te=X.indexOf(".");let J=0;return te!==-1&&(J=X.length-te-1),J},L=(K,X=1)=>hr(K)?_(K+r.step*X):s.currentValue,S=()=>{if(r.readonly||y.value||d.value)return;const K=Number(v.value)||0,X=L(K);H(X),n(c4,s.currentValue),Z()},C=()=>{if(r.readonly||y.value||u.value)return;const K=Number(v.value)||0,X=L(K,-1);H(X),n(c4,s.currentValue),Z()},A=(K,X)=>{const{max:te,min:J,step:he,precision:xe,stepStrictly:ee,valueOnClear:oe}=r;te<J&&s4("InputNumber","min should not be greater than max.");let de=Number(K);if(d1(K)||Number.isNaN(de))return null;if(K===""){if(oe===null)return null;de=si(oe)?{min:J,max:te}[oe]:oe}return ee&&(de=_(Math.round(de/he)*he,xe)),J1(xe)||(de=_(de,xe)),(de>te||de<J)&&(de=de>te?te:J,X&&n(rr,de)),de},H=(K,X=!0)=>{var te;const J=s.currentValue,he=A(K);if(!X){n(rr,he);return}J!==he&&(s.userInput=null,n(rr,he),n(l4,he,J),r.validateEvent&&((te=h==null?void 0:h.validate)==null||te.call(h,"change").catch(xe=>Fr(xe))),s.currentValue=he)},k=K=>{s.userInput=K;const X=K===""?null:Number(K);n(c4,X),H(X,!1)},B=K=>{const X=K!==""?Number(K):"";(hr(X)&&!Number.isNaN(X)||K==="")&&H(X),Z(),s.userInput=null},D=()=>{var K,X;(X=(K=l.value)==null?void 0:K.focus)==null||X.call(K)},z=()=>{var K,X;(X=(K=l.value)==null?void 0:K.blur)==null||X.call(K)},q=K=>{n("focus",K)},F=K=>{var X;s.userInput=null,n("blur",K),r.validateEvent&&((X=h==null?void 0:h.validate)==null||X.call(h,"blur").catch(te=>Fr(te)))},Z=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)};return c.watch(()=>r.modelValue,(K,X)=>{const te=A(K,!0);s.userInput===null&&te!==X&&(s.currentValue=te)},{immediate:!0}),c.onMounted(()=>{var K;const{min:X,max:te,modelValue:J}=r,he=(K=l.value)==null?void 0:K.input;if(he.setAttribute("role","spinbutton"),Number.isFinite(te)?he.setAttribute("aria-valuemax",String(te)):he.removeAttribute("aria-valuemax"),Number.isFinite(X)?he.setAttribute("aria-valuemin",String(X)):he.removeAttribute("aria-valuemin"),he.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),he.setAttribute("aria-disabled",String(y.value)),!hr(J)&&J!=null){let xe=Number(J);Number.isNaN(xe)&&(xe=null),n(rr,xe)}}),c.onUpdated(()=>{var K,X;const te=(K=l.value)==null?void 0:K.input;te==null||te.setAttribute("aria-valuenow",`${(X=s.currentValue)!=null?X:""}`)}),e({focus:D,blur:z}),(K,X)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([c.unref(a).b(),c.unref(a).m(c.unref(m)),c.unref(a).is("disabled",c.unref(y)),c.unref(a).is("without-controls",!K.controls),c.unref(a).is("controls-right",c.unref(f))]),onDragstart:X[1]||(X[1]=c.withModifiers(()=>{},["prevent"]))},[K.controls?c.withDirectives((c.openBlock(),c.createElementBlock("span",{key:0,role:"button","aria-label":c.unref(o)("el.inputNumber.decrease"),class:c.normalizeClass([c.unref(a).e("decrease"),c.unref(a).is("disabled",c.unref(u))]),onKeydown:c.withKeys(C,["enter"])},[c.createVNode(c.unref(zr),null,{default:c.withCtx(()=>[c.unref(f)?(c.openBlock(),c.createBlock(c.unref(Ph),{key:0})):(c.openBlock(),c.createBlock(c.unref(Xq),{key:1}))]),_:1})],42,Gte)),[[c.unref($C),C]]):c.createCommentVNode("v-if",!0),K.controls?c.withDirectives((c.openBlock(),c.createElementBlock("span",{key:1,role:"button","aria-label":c.unref(o)("el.inputNumber.increase"),class:c.normalizeClass([c.unref(a).e("increase"),c.unref(a).is("disabled",c.unref(d))]),onKeydown:c.withKeys(S,["enter"])},[c.createVNode(c.unref(zr),null,{default:c.withCtx(()=>[c.unref(f)?(c.openBlock(),c.createBlock(c.unref(Bq),{key:0})):(c.openBlock(),c.createBlock(c.unref(SS),{key:1}))]),_:1})],42,Wte)),[[c.unref($C),S]]):c.createCommentVNode("v-if",!0),c.createVNode(c.unref(xg),{id:K.id,ref_key:"input",ref:l,type:"number",step:K.step,"model-value":c.unref(v),placeholder:K.placeholder,readonly:K.readonly,disabled:c.unref(y),size:c.unref(m),max:K.max,min:K.min,name:K.name,label:K.label,"validate-event":!1,onWheel:X[0]||(X[0]=c.withModifiers(()=>{},["prevent"])),onKeydown:[c.withKeys(c.withModifiers(S,["prevent"]),["up"]),c.withKeys(c.withModifiers(C,["prevent"]),["down"])],onBlur:F,onFocus:q,onInput:k,onChange:B},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var qte=En($te,[["__file","input-number.vue"]]);const Bg=Ui(qte),TE=Symbol("ElSelectGroup"),sd=Symbol("ElSelect");function Xte(t,e){const n=c.inject(sd),r=c.inject(TE,{disabled:!1}),o=c.computed(()=>n.props.multiple?d(n.props.modelValue,t.value):X6(t.value,n.props.modelValue)),a=c.computed(()=>{if(n.props.multiple){const m=n.props.modelValue||[];return!o.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),l=c.computed(()=>t.label||(Yi(t.value)?"":t.value)),s=c.computed(()=>t.value||t.label||""),h=c.computed(()=>t.disabled||e.groupDisabled||a.value),u=c.getCurrentInstance(),d=(m=[],y)=>{if(Yi(t.value)){const v=n.props.valueKey;return m&&m.some(_=>c.toRaw(Ls(_,v))===Ls(y,v))}else return m&&m.includes(y)},p=()=>{!t.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},f=m=>{const y=new RegExp(Aq(m),"i");e.visible=y.test(l.value)||t.created};return c.watch(()=>l.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),c.watch(()=>t.value,(m,y)=>{const{remote:v,valueKey:_}=n.props;if(X6(m,y)||(n.onOptionDestroy(y,u.proxy),n.onOptionCreate(u.proxy)),!t.created&&!v){if(_&&Yi(m)&&Yi(y)&&m[_]===y[_])return;n.setSelected()}}),c.watch(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:l,currentValue:s,itemSelected:o,isDisabled:h,hoverItem:p,updateOption:f}}const Kte=c.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=Ln("select"),n=r0(),r=c.computed(()=>[e.be("dropdown","item"),e.is("disabled",c.unref(s)),e.is("selected",c.unref(l)),e.is("hovering",c.unref(f))]),o=c.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:a,itemSelected:l,isDisabled:s,select:h,hoverItem:u,updateOption:d}=Xte(t,o),{visible:p,hover:f}=c.toRefs(o),m=c.getCurrentInstance().proxy;h.onOptionCreate(m),c.onBeforeUnmount(()=>{const v=m.value,{selected:_}=h.states,L=(h.props.multiple?_:[_]).some(S=>S.value===m.value);c.nextTick(()=>{h.states.cachedOptions.get(v)===m&&!L&&h.states.cachedOptions.delete(v)}),h.onOptionDestroy(v,m)});function y(){t.disabled!==!0&&o.groupDisabled!==!0&&h.handleOptionSelect(m)}return{ns:e,id:n,containerKls:r,currentLabel:a,itemSelected:l,isDisabled:s,select:h,hoverItem:u,updateOption:d,visible:p,hover:f,selectOptionClick:y,states:o}}}),Jte=["id","aria-disabled","aria-selected"];function Yte(t,e,n,r,o,a){return c.withDirectives((c.openBlock(),c.createElementBlock("li",{id:t.id,class:c.normalizeClass(t.containerKls),role:"option","aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMouseenter:e[0]||(e[0]=(...l)=>t.hoverItem&&t.hoverItem(...l)),onClick:e[1]||(e[1]=c.withModifiers((...l)=>t.selectOptionClick&&t.selectOptionClick(...l),["stop"]))},[c.renderSlot(t.$slots,"default",{},()=>[c.createElementVNode("span",null,c.toDisplayString(t.currentLabel),1)])],42,Jte)),[[c.vShow,t.visible]])}var Dg=En(Kte,[["render",Yte],["__file","option.vue"]]);const ene=c.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=c.inject(sd),e=Ln("select"),n=c.computed(()=>t.props.popperClass),r=c.computed(()=>t.props.multiple),o=c.computed(()=>t.props.fitInputWidth),a=c.ref("");function l(){var s;a.value=`${(s=t.selectRef)==null?void 0:s.offsetWidth}px`}return c.onMounted(()=>{l(),vs(t.selectRef,l)}),{ns:e,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function tne(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:c.normalizeStyle({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[t.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.ns.be("dropdown","header"))},[c.renderSlot(t.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.renderSlot(t.$slots,"default"),t.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(t.ns.be("dropdown","footer"))},[c.renderSlot(t.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)],6)}var nne=En(ene,[["render",tne],["__file","select-dropdown.vue"]]);function rne(t){const e=c.ref(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:a=>{const l=a.target.value,s=l[l.length-1]||"";e.value=!VS(s)},handleCompositionEnd:a=>{e.value&&(e.value=!1,Ao(t)&&t(a))}}}const ine=11,one=(t,e)=>{const{t:n}=u4(),r=r0(),o=Ln("select"),a=Ln("input"),l=c.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:t.multiple?[]:{},selectionWidth:0,calculatorWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1});hc({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},c.computed(()=>t.suffixTransition===!1));const s=c.ref(null),h=c.ref(null),u=c.ref(null),d=c.ref(null),p=c.ref(null),f=c.ref(null),m=c.ref(null),y=c.ref(null),v=c.ref(null),_=c.ref(null),x=c.ref(null),{wrapperRef:L,isFocused:S,handleFocus:C,handleBlur:A}=vg(p,{afterFocus(){t.automaticDropdown&&!H.value&&(H.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(Me){var re,be;return((re=u.value)==null?void 0:re.isFocusInsideContent(Me))||((be=d.value)==null?void 0:be.isFocusInsideContent(Me))},afterBlur(){H.value=!1,l.menuVisibleOnFocus=!1}}),H=c.ref(!1),k=c.ref(),{form:B,formItem:D}=Es(),{inputId:z}=a0(t,{formItemContext:D}),q=c.computed(()=>t.disabled||(B==null?void 0:B.disabled)),F=c.computed(()=>t.multiple?wi(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!==""),Z=c.computed(()=>t.clearable&&!q.value&&l.inputHovering&&F.value),K=c.computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),X=c.computed(()=>o.is("reverse",K.value&&H.value&&t.suffixTransition)),te=c.computed(()=>(D==null?void 0:D.validateState)||""),J=c.computed(()=>HS[te.value]),he=c.computed(()=>t.remote?300:0),xe=c.computed(()=>t.loading?t.loadingText||n("el.select.loading"):t.remote&&!l.inputValue&&l.options.size===0?!1:t.filterable&&l.inputValue&&l.options.size>0&&ee.value===0?t.noMatchText||n("el.select.noMatch"):l.options.size===0?t.noDataText||n("el.select.noData"):null),ee=c.computed(()=>oe.value.filter(Me=>Me.visible).length),oe=c.computed(()=>{const Me=Array.from(l.options.values()),re=[];return l.optionValues.forEach(be=>{const Oe=Me.findIndex(Ze=>Ze.value===be);Oe>-1&&re.push(Me[Oe])}),re.length>=Me.length?re:Me}),de=c.computed(()=>Array.from(l.cachedOptions.values())),fe=c.computed(()=>{const Me=oe.value.filter(re=>!re.created).some(re=>re.currentLabel===l.inputValue);return t.filterable&&t.allowCreate&&l.inputValue!==""&&!Me}),Ae=()=>{t.filterable&&Ao(t.filterMethod)||t.filterable&&t.remote&&Ao(t.remoteMethod)||oe.value.forEach(Me=>{Me.updateOption(l.inputValue)})},Se=Cs(),Qe=c.computed(()=>["small"].includes(Se.value)?"small":"default"),Le=c.computed({get(){return H.value&&xe.value!==!1},set(Me){H.value=Me}}),Ce=c.computed(()=>wi(t.modelValue)?t.modelValue.length===0&&!l.inputValue:t.filterable?!l.inputValue:!0),je=c.computed(()=>{var Me;const re=(Me=t.placeholder)!=null?Me:n("el.select.placeholder");return t.multiple||!F.value?re:l.selectedLabel});c.watch(()=>t.modelValue,(Me,re)=>{t.multiple&&t.filterable&&!t.reserveKeyword&&(l.inputValue="",me("")),Ie(),!X6(Me,re)&&t.validateEvent&&(D==null||D.validate("change").catch(be=>Fr(be)))},{flush:"post",deep:!0}),c.watch(()=>H.value,Me=>{Me?me(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0),e("visible-change",Me)}),c.watch(()=>l.options.entries(),()=>{var Me;if(!Dr)return;const re=((Me=s.value)==null?void 0:Me.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!J1(t.modelValue)||!Array.from(re).includes(document.activeElement))&&Ie(),t.defaultFirstOption&&(t.filterable||t.remote)&&ee.value&&Ne()},{flush:"post"}),c.watch(()=>l.hoveringIndex,Me=>{hr(Me)&&Me>-1?k.value=oe.value[Me]||{}:k.value={},oe.value.forEach(re=>{re.hover=k.value===re})}),c.watchEffect(()=>{l.isBeforeHide||Ae()});const me=Me=>{l.previousQuery!==Me&&(l.previousQuery=Me,t.filterable&&Ao(t.filterMethod)?t.filterMethod(Me):t.filterable&&t.remote&&Ao(t.remoteMethod)&&t.remoteMethod(Me),t.defaultFirstOption&&(t.filterable||t.remote)&&ee.value?c.nextTick(Ne):c.nextTick(Ye))},Ne=()=>{const Me=oe.value.filter(Oe=>Oe.visible&&!Oe.disabled&&!Oe.states.groupDisabled),re=Me.find(Oe=>Oe.created),be=Me[0];l.hoveringIndex=Lt(oe.value,re||be)},Ie=()=>{if(t.multiple)l.selectedLabel="";else{const re=Ke(t.modelValue);l.selectedLabel=re.currentLabel,l.selected=re;return}const Me=[];wi(t.modelValue)&&t.modelValue.forEach(re=>{Me.push(Ke(re))}),l.selected=Me},Ke=Me=>{let re;const be=Nm(Me).toLowerCase()==="object",Oe=Nm(Me).toLowerCase()==="null",Ze=Nm(Me).toLowerCase()==="undefined";for(let Pt=l.cachedOptions.size-1;Pt>=0;Pt--){const xt=de.value[Pt];if(be?Ls(xt.value,t.valueKey)===Ls(Me,t.valueKey):xt.value===Me){re={value:Me,currentLabel:xt.currentLabel,isDisabled:xt.isDisabled};break}}if(re)return re;const rt=be?Me.label:!Oe&&!Ze?Me:"";return{value:Me,currentLabel:rt}},Ye=()=>{t.multiple?l.selected.length>0?l.hoveringIndex=Math.min(...l.selected.map(Me=>oe.value.findIndex(re=>ge(re)===ge(Me)))):l.hoveringIndex=-1:l.hoveringIndex=oe.value.findIndex(Me=>ge(Me)===ge(l.selected))},ht=()=>{l.selectionWidth=h.value.getBoundingClientRect().width},dt=()=>{l.calculatorWidth=f.value.getBoundingClientRect().width},Ee=()=>{var Me,re;(re=(Me=u.value)==null?void 0:Me.updatePopper)==null||re.call(Me)},ye=()=>{var Me,re;(re=(Me=d.value)==null?void 0:Me.updatePopper)==null||re.call(Me)},it=()=>{me(l.inputValue)},Ve=Me=>{if(l.inputValue=Me.target.value,l.inputValue.length>0&&!H.value&&(H.value=!0),t.remote)yt();else return it()},yt=Ah(()=>{it()},he.value),bt=Me=>{X6(t.modelValue,Me)||e(l4,Me)},_t=Me=>wq(Me,re=>!l.disabledOptions.has(re)),nt=Me=>{if(t.multiple&&Me.code!==Mi.delete&&Me.target.value.length<=0){const re=t.modelValue.slice(),be=_t(re);if(be<0)return;re.splice(be,1),e(rr,re),bt(re)}},Je=(Me,re)=>{const be=l.selected.indexOf(re);if(be>-1&&!q.value){const Oe=t.modelValue.slice();Oe.splice(be,1),e(rr,Oe),bt(Oe),e("remove-tag",re.value)}Me.stopPropagation(),Mt()},et=Me=>{Me.stopPropagation();const re=t.multiple?[]:"";if(!si(re))for(const be of l.selected)be.isDisabled&&re.push(be.value);e(rr,re),bt(re),l.hoveringIndex=-1,H.value=!1,e("clear"),Mt()},Xe=Me=>{if(t.multiple){const re=(t.modelValue||[]).slice(),be=Lt(re,Me.value);be>-1?re.splice(be,1):(t.multipleLimit<=0||re.length<t.multipleLimit)&&re.push(Me.value),e(rr,re),bt(re),Me.created&&me(""),t.filterable&&!t.reserveKeyword&&(l.inputValue="")}else e(rr,Me.value),bt(Me.value),H.value=!1;Mt(),!H.value&&c.nextTick(()=>{vt(Me)})},Lt=(Me=[],re)=>{if(!Yi(re))return Me.indexOf(re);const be=t.valueKey;let Oe=-1;return Me.some((Ze,rt)=>c.toRaw(Ls(Ze,be))===Ls(re,be)?(Oe=rt,!0):!1),Oe},vt=Me=>{var re,be,Oe,Ze,rt;const At=wi(Me)?Me[0]:Me;let Pt=null;if(At!=null&&At.value){const xt=oe.value.filter(It=>It.value===At.value);xt.length>0&&(Pt=xt[0].$el)}if(u.value&&Pt){const xt=(Ze=(Oe=(be=(re=u.value)==null?void 0:re.popperRef)==null?void 0:be.contentRef)==null?void 0:Oe.querySelector)==null?void 0:Ze.call(Oe,`.${o.be("dropdown","wrap")}`);xt&&kq(xt,Pt)}(rt=x.value)==null||rt.handleScroll()},Et=Me=>{l.options.set(Me.value,Me),l.cachedOptions.set(Me.value,Me),Me.disabled&&l.disabledOptions.set(Me.value,Me)},kt=(Me,re)=>{l.options.get(Me)===re&&l.options.delete(Me)},{handleCompositionStart:pt,handleCompositionUpdate:Qn,handleCompositionEnd:Jt}=rne(Me=>Ve(Me)),Mn=c.computed(()=>{var Me,re;return(re=(Me=u.value)==null?void 0:Me.popperRef)==null?void 0:re.contentRef}),ln=()=>{c.nextTick(()=>vt(l.selected))},Mt=()=>{var Me;(Me=p.value)==null||Me.focus()},ze=()=>{Ht()},mt=Me=>{et(Me)},Ht=Me=>{if(H.value=!1,S.value){const re=new FocusEvent("focus",Me);c.nextTick(()=>A(re))}},pn=()=>{l.inputValue.length>0?l.inputValue="":H.value=!1},Ft=()=>{q.value||(l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:H.value=!H.value)},ct=()=>{H.value?oe.value[l.hoveringIndex]&&Xe(oe.value[l.hoveringIndex]):Ft()},ge=Me=>Yi(Me.value)?Ls(Me.value,t.valueKey):Me.value,se=c.computed(()=>oe.value.filter(Me=>Me.visible).every(Me=>Me.disabled)),pe=c.computed(()=>t.multiple?t.collapseTags?l.selected.slice(0,t.maxCollapseTags):l.selected:[]),He=c.computed(()=>t.multiple?t.collapseTags?l.selected.slice(t.maxCollapseTags):[]:[]),Pe=Me=>{if(!H.value){H.value=!0;return}if(!(l.options.size===0||ee.value===0)&&!se.value){Me==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):Me==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const re=oe.value[l.hoveringIndex];(re.disabled===!0||re.states.groupDisabled===!0||!re.visible)&&Pe(Me),c.nextTick(()=>vt(k.value))}},Ue=c.computed(()=>({maxWidth:`${l.selectionWidth}px`})),ot=c.computed(()=>({width:`${Math.max(l.calculatorWidth,ine)}px`}));return t.multiple&&!wi(t.modelValue)&&e(rr,[]),!t.multiple&&wi(t.modelValue)&&e(rr,""),vs(h,ht),vs(f,dt),vs(v,Ee),vs(_,ye),c.onMounted(()=>{Ie()}),{inputId:z,contentId:r,nsSelect:o,nsInput:a,states:l,isFocused:S,expanded:H,optionsArray:oe,hoverOption:k,selectSize:Se,filteredOptionsCount:ee,resetCalculatorWidth:dt,updateTooltip:Ee,updateTagTooltip:ye,debouncedOnInputChange:yt,onInput:Ve,deletePrevTag:nt,deleteTag:Je,deleteSelected:et,handleOptionSelect:Xe,scrollToOption:vt,hasModelValue:F,shouldShowPlaceholder:Ce,currentPlaceholder:je,showClose:Z,iconComponent:K,iconReverse:X,validateState:te,validateIcon:J,showNewOption:fe,updateOptions:Ae,collapseTagSize:Qe,setSelected:Ie,selectDisabled:q,emptyText:xe,handleCompositionStart:pt,handleCompositionUpdate:Qn,handleCompositionEnd:Jt,onOptionCreate:Et,onOptionDestroy:kt,handleMenuEnter:ln,handleFocus:C,focus:Mt,blur:ze,handleBlur:A,handleClearClick:mt,handleClickOutside:Ht,handleEsc:pn,toggleMenu:Ft,selectOption:ct,getValueKey:ge,navigateOptions:Pe,dropdownMenuVisible:Le,showTagList:pe,collapseTagList:He,tagStyle:Ue,inputStyle:ot,popperRef:Mn,inputRef:p,tooltipRef:u,tagTooltipRef:d,calculatorRef:f,prefixRef:m,suffixRef:y,selectRef:s,wrapperRef:L,selectionRef:h,scrollbarRef:x,menuRef:v,tagMenuRef:_}};var ane=c.defineComponent({name:"ElOptions",setup(t,{slots:e}){const n=c.inject(sd);let r=[];return()=>{var o,a;const l=(o=e.default)==null?void 0:o.call(e),s=[];function h(u){wi(u)&&u.forEach(d=>{var p,f,m,y;const v=(p=(d==null?void 0:d.type)||{})==null?void 0:p.name;v==="ElOptionGroup"?h(!si(d.children)&&!wi(d.children)&&Ao((f=d.children)==null?void 0:f.default)?(m=d.children)==null?void 0:m.default():d.children):v==="ElOption"?s.push((y=d.props)==null?void 0:y.value):wi(d.children)&&h(d.children)})}return l.length&&h((a=l[0])==null?void 0:a.children),X6(s,r)||(r=s,n&&(n.states.optionValues=s)),l}}});const sne=Wn({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ss,effect:{type:gn(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:gn(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:T1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ms,default:rg},fitInputWidth:Boolean,suffixIcon:{type:Ms,default:Ph},tagType:{...tE.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:gn(String),values:Y6,default:"bottom-start"},ariaLabel:{type:String,default:void 0}}),QE="ElSelect",lne=c.defineComponent({name:QE,componentName:QE,components:{ElInput:xg,ElSelectMenu:nne,ElOption:Dg,ElOptions:ane,ElTag:bee,ElScrollbar:MJ,ElTooltip:Kh,ElIcon:zr},directives:{ClickOutside:ZC},props:sne,emits:[rr,l4,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=one(t,e);return c.provide(sd,c.reactive({props:t,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),cne=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],une=["textContent"];function hne(t,e,n,r,o,a){const l=c.resolveComponent("el-tag"),s=c.resolveComponent("el-tooltip"),h=c.resolveComponent("el-icon"),u=c.resolveComponent("el-option"),d=c.resolveComponent("el-options"),p=c.resolveComponent("el-scrollbar"),f=c.resolveComponent("el-select-menu"),m=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{ref:"selectRef",class:c.normalizeClass([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),onMouseenter:e[15]||(e[15]=y=>t.states.inputHovering=!0),onMouseleave:e[16]||(e[16]=y=>t.states.inputHovering=!1),onClick:e[17]||(e[17]=c.withModifiers((...y)=>t.toggleMenu&&t.toggleMenu(...y),["stop"]))},[c.createVNode(s,{ref:"tooltipRef",visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:e[14]||(e[14]=y=>t.states.isBeforeHide=!1)},{default:c.withCtx(()=>{var y;return[c.createElementVNode("div",{ref:"wrapperRef",class:c.normalizeClass([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(c.openBlock(),c.createElementBlock("div",{key:0,ref:"prefixRef",class:c.normalizeClass(t.nsSelect.e("prefix"))},[c.renderSlot(t.$slots,"prefix")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref:"selectionRef",class:c.normalizeClass([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?c.renderSlot(t.$slots,"tag",{key:0},()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.showTagList,v=>(c.openBlock(),c.createElementBlock("div",{key:t.getValueKey(v),class:c.normalizeClass(t.nsSelect.e("selected-item"))},[c.createVNode(l,{closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:c.normalizeStyle(t.tagStyle),onClose:_=>t.deleteTag(_,v)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(t.nsSelect.e("tags-text"))},c.toDisplayString(v.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(c.openBlock(),c.createBlock(s,{key:0,ref:"tagTooltipRef",disabled:!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:c.withCtx(()=>[c.createElementVNode("div",{class:c.normalizeClass(t.nsSelect.e("selected-item"))},[c.createVNode(l,{closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:c.normalizeStyle(t.tagStyle)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(t.nsSelect.e("tags-text"))}," + "+c.toDisplayString(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:c.withCtx(()=>[c.createElementVNode("div",{ref:"tagMenuRef",class:c.normalizeClass(t.nsSelect.e("selection"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.collapseTagList,v=>(c.openBlock(),c.createElementBlock("div",{key:t.getValueKey(v),class:c.normalizeClass(t.nsSelect.e("selected-item"))},[c.createVNode(l,{class:"in-tooltip",closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",onClose:_=>t.deleteTag(_,v)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(t.nsSelect.e("tags-text"))},c.toDisplayString(v.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):c.createCommentVNode("v-if",!0)]):c.createCommentVNode("v-if",!0),t.selectDisabled?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[c.withDirectives(c.createElementVNode("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":e[0]||(e[0]=v=>t.states.inputValue=v),type:"text",class:c.normalizeClass([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:c.normalizeStyle(t.inputStyle),role:"combobox",readonly:!t.filterable,spellcheck:"false","aria-activedescendant":((y=t.hoverOption)==null?void 0:y.id)||"","aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e[1]||(e[1]=(...v)=>t.handleFocus&&t.handleFocus(...v)),onBlur:e[2]||(e[2]=(...v)=>t.handleBlur&&t.handleBlur(...v)),onKeydown:[e[3]||(e[3]=c.withKeys(c.withModifiers(v=>t.navigateOptions("next"),["prevent"]),["down"])),e[4]||(e[4]=c.withKeys(c.withModifiers(v=>t.navigateOptions("prev"),["prevent"]),["up"])),e[5]||(e[5]=c.withKeys((...v)=>t.handleEsc&&t.handleEsc(...v),["esc"])),e[6]||(e[6]=c.withKeys(c.withModifiers((...v)=>t.selectOption&&t.selectOption(...v),["stop","prevent"]),["enter"])),e[7]||(e[7]=c.withKeys(c.withModifiers((...v)=>t.deletePrevTag&&t.deletePrevTag(...v),["stop"]),["delete"])),e[8]||(e[8]=c.withKeys(v=>t.expanded=!1,["tab"]))],onCompositionstart:e[9]||(e[9]=(...v)=>t.handleCompositionStart&&t.handleCompositionStart(...v)),onCompositionupdate:e[10]||(e[10]=(...v)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...v)),onCompositionend:e[11]||(e[11]=(...v)=>t.handleCompositionEnd&&t.handleCompositionEnd(...v)),onInput:e[12]||(e[12]=(...v)=>t.onInput&&t.onInput(...v)),onClick:e[13]||(e[13]=c.withModifiers(()=>{},["stop"]))},null,46,cne),[[c.vModelText,t.states.inputValue]]),t.filterable?(c.openBlock(),c.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:c.normalizeClass(t.nsSelect.e("input-calculator")),textContent:c.toDisplayString(t.states.inputValue)},null,10,une)):c.createCommentVNode("v-if",!0)],2)),t.shouldShowPlaceholder?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[c.createElementVNode("span",null,c.toDisplayString(t.currentPlaceholder),1)],2)):c.createCommentVNode("v-if",!0)],2),c.createElementVNode("div",{ref:"suffixRef",class:c.normalizeClass(t.nsSelect.e("suffix"))},[t.iconComponent&&!t.showClose?(c.openBlock(),c.createBlock(h,{key:0,class:c.normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),t.showClose&&t.clearIcon?(c.openBlock(),c.createBlock(h,{key:1,class:c.normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0),t.validateState&&t.validateIcon?(c.openBlock(),c.createBlock(h,{key:2,class:c.normalizeClass([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.validateIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)]}),content:c.withCtx(()=>[c.createVNode(f,{ref:"menuRef"},{default:c.withCtx(()=>[t.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.nsSelect.be("dropdown","header"))},[c.renderSlot(t.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createVNode(p,{id:t.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:c.normalizeClass([t.nsSelect.is("empty",t.filteredOptionsCount===0)]),role:"listbox","aria-label":t.ariaLabel,"aria-orientation":"vertical"},{default:c.withCtx(()=>[t.showNewOption?(c.openBlock(),c.createBlock(u,{key:0,value:t.states.inputValue,created:!0},null,8,["value"])):c.createCommentVNode("v-if",!0),c.createVNode(d,null,{default:c.withCtx(()=>[c.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[c.vShow,t.states.options.size>0&&!t.loading]]),t.loading||t.filteredOptionsCount===0?c.renderSlot(t.$slots,"empty",{key:1},()=>[c.createElementVNode("p",{class:c.normalizeClass(t.nsSelect.be("dropdown","empty"))},c.toDisplayString(t.emptyText),3)]):c.createCommentVNode("v-if",!0),t.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(t.nsSelect.be("dropdown","footer"))},[c.renderSlot(t.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[m,t.handleClickOutside,t.popperRef]])}var dne=En(lne,[["render",hne],["__file","select.vue"]]);const pne=c.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=Ln("select"),n=c.ref(null),r=c.getCurrentInstance(),o=c.ref([]);c.provide(TE,c.reactive({...c.toRefs(t)}));const a=c.computed(()=>o.value.some(h=>h.visible===!0)),l=h=>{const u=[];return wi(h.children)&&h.children.forEach(d=>{var p;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(p=d.children)!=null&&p.length&&u.push(...l(d))}),u},s=()=>{o.value=l(r.subTree)};return c.onMounted(()=>{s()}),mG(n,s,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:a,ns:e}}});function fne(t,e,n,r,o,a){return c.withDirectives((c.openBlock(),c.createElementBlock("ul",{ref:"groupRef",class:c.normalizeClass(t.ns.be("group","wrap"))},[c.createElementVNode("li",{class:c.normalizeClass(t.ns.be("group","title"))},c.toDisplayString(t.label),3),c.createElementVNode("li",null,[c.createElementVNode("ul",{class:c.normalizeClass(t.ns.b("group"))},[c.renderSlot(t.$slots,"default")],2)])],2)),[[c.vShow,t.visible]])}var mE=En(pne,[["render",fne],["__file","option-group.vue"]]);const Fg=Ui(dne,{Option:Dg,OptionGroup:mE}),zg=Ra(Dg);Ra(mE);const Tne=Wn({trigger:xc.trigger,placement:Ng.placement,disabled:xc.disabled,visible:T1.visible,transition:T1.transition,popperOptions:Ng.popperOptions,tabindex:Ng.tabindex,content:T1.content,popperStyle:T1.popperStyle,popperClass:T1.popperClass,enterable:{...T1.enterable,default:!0},effect:{...T1.effect,default:"light"},teleported:T1.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Qne={"update:visible":t=>a4(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},mne="onUpdate:visible",gne=c.defineComponent({name:"ElPopover"}),yne=c.defineComponent({...gne,props:Tne,emits:Qne,setup(t,{expose:e,emit:n}){const r=t,o=c.computed(()=>r[mne]),a=Ln("popover"),l=c.ref(),s=c.computed(()=>{var _;return(_=c.unref(l))==null?void 0:_.popperRef}),h=c.computed(()=>[{width:A2(r.width)},r.popperStyle]),u=c.computed(()=>[a.b(),r.popperClass,{[a.m("plain")]:!!r.content}]),d=c.computed(()=>r.transition===`${a.namespace.value}-fade-in-linear`),p=()=>{var _;(_=l.value)==null||_.hide()},f=()=>{n("before-enter")},m=()=>{n("before-leave")},y=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:s,hide:p}),(_,x)=>(c.openBlock(),c.createBlock(c.unref(Kh),c.mergeProps({ref_key:"tooltipRef",ref:l},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":c.unref(u),"popper-style":c.unref(h),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":c.unref(d),"onUpdate:visible":c.unref(o),onBeforeShow:f,onBeforeHide:m,onShow:y,onHide:v}),{content:c.withCtx(()=>[_.title?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(a).e("title")),role:"title"},c.toDisplayString(_.title),3)):c.createCommentVNode("v-if",!0),c.renderSlot(_.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(_.content),1)])]),default:c.withCtx(()=>[_.$slots.reference?c.renderSlot(_.$slots,"reference",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var vne=En(yne,[["__file","popover.vue"]]);const gE=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var bne={mounted(t,e){gE(t,e)},updated(t,e){gE(t,e)}};const xne=nX(bne,"popover"),ld=Ui(vne,{directive:xne}),yE=Symbol("sliderContextKey"),_ne=Wn({modelValue:{type:gn([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ss,inputSize:Ss,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:gn(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:gn(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Y6,default:"top"},marks:{type:gn(Object)},validateEvent:{type:Boolean,default:!0}}),Ug=t=>hr(t)||wi(t)&&t.every(hr),Lne={[rr]:Ug,[c4]:Ug,[l4]:Ug},wne=(t,e,n)=>{const r=c.ref();return c.onMounted(async()=>{t.range?(Array.isArray(t.modelValue)?(e.firstValue=Math.max(t.min,t.modelValue[0]),e.secondValue=Math.min(t.max,t.modelValue[1])):(e.firstValue=t.min,e.secondValue=t.max),e.oldValue=[e.firstValue,e.secondValue]):(typeof t.modelValue!="number"||Number.isNaN(t.modelValue)?e.firstValue=t.min:e.firstValue=Math.min(t.max,Math.max(t.min,t.modelValue)),e.oldValue=e.firstValue),k1(window,"resize",n),await c.nextTick(),n()}),{sliderWrapper:r}},Mne=t=>c.computed(()=>t.marks?Object.keys(t.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=t.max&&n>=t.min).map(n=>({point:n,position:(n-t.min)*100/(t.max-t.min),mark:t.marks[n]})):[]),Sne=(t,e,n)=>{const{form:r,formItem:o}=Es(),a=c.shallowRef(),l=c.ref(),s=c.ref(),h={firstButton:l,secondButton:s},u=c.computed(()=>t.disabled||(r==null?void 0:r.disabled)||!1),d=c.computed(()=>Math.min(e.firstValue,e.secondValue)),p=c.computed(()=>Math.max(e.firstValue,e.secondValue)),f=c.computed(()=>t.range?`${100*(p.value-d.value)/(t.max-t.min)}%`:`${100*(e.firstValue-t.min)/(t.max-t.min)}%`),m=c.computed(()=>t.range?`${100*(d.value-t.min)/(t.max-t.min)}%`:"0%"),y=c.computed(()=>t.vertical?{height:t.height}:{}),v=c.computed(()=>t.vertical?{height:f.value,bottom:m.value}:{width:f.value,left:m.value}),_=()=>{a.value&&(e.sliderSize=a.value[`client${t.vertical?"Height":"Width"}`])},x=q=>{const F=t.min+q*(t.max-t.min)/100;if(!t.range)return l;let Z;return Math.abs(d.value-F)<Math.abs(p.value-F)?Z=e.firstValue<e.secondValue?"firstButton":"secondButton":Z=e.firstValue>e.secondValue?"firstButton":"secondButton",h[Z]},L=q=>{const F=x(q);return F.value.setPosition(q),F},S=q=>{e.firstValue=q,A(t.range?[d.value,p.value]:q)},C=q=>{e.secondValue=q,t.range&&A([d.value,p.value])},A=q=>{n(rr,q),n(c4,q)},H=async()=>{await c.nextTick(),n(l4,t.range?[d.value,p.value]:t.modelValue)},k=q=>{var F,Z,K,X,te,J;if(u.value||e.dragging)return;_();let he=0;if(t.vertical){const xe=(K=(Z=(F=q.touches)==null?void 0:F.item(0))==null?void 0:Z.clientY)!=null?K:q.clientY;he=(a.value.getBoundingClientRect().bottom-xe)/e.sliderSize*100}else{const xe=(J=(te=(X=q.touches)==null?void 0:X.item(0))==null?void 0:te.clientX)!=null?J:q.clientX,ee=a.value.getBoundingClientRect().left;he=(xe-ee)/e.sliderSize*100}if(!(he<0||he>100))return L(he)};return{elFormItem:o,slider:a,firstButton:l,secondButton:s,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:y,barStyle:v,resetSize:_,setPosition:L,emitChange:H,onSliderWrapperPrevent:q=>{var F,Z;((F=h.firstButton.value)!=null&&F.dragging||(Z=h.secondButton.value)!=null&&Z.dragging)&&q.preventDefault()},onSliderClick:q=>{k(q)&&H()},onSliderDown:async q=>{const F=k(q);F&&(await c.nextTick(),F.value.onButtonDown(q))},setFirstValue:S,setSecondValue:C}},{left:Cne,down:Ene,right:Hne,up:Ane,home:Vne,end:One,pageUp:kne,pageDown:Pne}=Mi,Ine=(t,e,n)=>{const r=c.ref(),o=c.ref(!1),a=c.computed(()=>e.value instanceof Function),l=c.computed(()=>a.value&&e.value(t.modelValue)||t.modelValue),s=Ah(()=>{n.value&&(o.value=!0)},50),h=Ah(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:l,displayTooltip:s,hideTooltip:h}},Rne=(t,e,n)=>{const{disabled:r,min:o,max:a,step:l,showTooltip:s,precision:h,sliderSize:u,formatTooltip:d,emitChange:p,resetSize:f,updateDragging:m}=c.inject(yE),{tooltip:y,tooltipVisible:v,formatValue:_,displayTooltip:x,hideTooltip:L}=Ine(t,d,s),S=c.ref(),C=c.computed(()=>`${(t.modelValue-o.value)/(a.value-o.value)*100}%`),A=c.computed(()=>t.vertical?{bottom:C.value}:{left:C.value}),H=()=>{e.hovering=!0,x()},k=()=>{e.hovering=!1,e.dragging||L()},B=de=>{r.value||(de.preventDefault(),he(de),window.addEventListener("mousemove",xe),window.addEventListener("touchmove",xe),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},D=de=>{r.value||(e.newPosition=Number.parseFloat(C.value)+de/(a.value-o.value)*100,oe(e.newPosition),p())},z=()=>{D(-l.value)},q=()=>{D(l.value)},F=()=>{D(-l.value*4)},Z=()=>{D(l.value*4)},K=()=>{r.value||(oe(0),p())},X=()=>{r.value||(oe(100),p())},te=de=>{let fe=!0;[Cne,Ene].includes(de.key)?z():[Hne,Ane].includes(de.key)?q():de.key===Vne?K():de.key===One?X():de.key===Pne?F():de.key===kne?Z():fe=!1,fe&&de.preventDefault()},J=de=>{let fe,Ae;return de.type.startsWith("touch")?(Ae=de.touches[0].clientY,fe=de.touches[0].clientX):(Ae=de.clientY,fe=de.clientX),{clientX:fe,clientY:Ae}},he=de=>{e.dragging=!0,e.isClick=!0;const{clientX:fe,clientY:Ae}=J(de);t.vertical?e.startY=Ae:e.startX=fe,e.startPosition=Number.parseFloat(C.value),e.newPosition=e.startPosition},xe=de=>{if(e.dragging){e.isClick=!1,x(),f();let fe;const{clientX:Ae,clientY:Se}=J(de);t.vertical?(e.currentY=Se,fe=(e.startY-e.currentY)/u.value*100):(e.currentX=Ae,fe=(e.currentX-e.startX)/u.value*100),e.newPosition=e.startPosition+fe,oe(e.newPosition)}},ee=()=>{e.dragging&&(setTimeout(()=>{e.dragging=!1,e.hovering||L(),e.isClick||oe(e.newPosition),p()},0),window.removeEventListener("mousemove",xe),window.removeEventListener("touchmove",xe),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},oe=async de=>{if(de===null||Number.isNaN(+de))return;de<0?de=0:de>100&&(de=100);const fe=100/((a.value-o.value)/l.value);let Se=Math.round(de/fe)*fe*(a.value-o.value)*.01+o.value;Se=Number.parseFloat(Se.toFixed(h.value)),Se!==t.modelValue&&n(rr,Se),!e.dragging&&t.modelValue!==e.oldValue&&(e.oldValue=t.modelValue),await c.nextTick(),e.dragging&&x(),y.value.updatePopper()};return c.watch(()=>e.dragging,de=>{m(de)}),{disabled:r,button:S,tooltip:y,tooltipVisible:v,showTooltip:s,wrapperStyle:A,formatValue:_,handleMouseEnter:H,handleMouseLeave:k,onButtonDown:B,onKeyDown:te,setPosition:oe}},Nne=(t,e,n,r)=>({stops:c.computed(()=>{if(!t.showStops||t.min>t.max)return[];if(t.step===0)return Fr("ElSlider","step should not be 0."),[];const l=(t.max-t.min)/t.step,s=100*t.step/(t.max-t.min),h=Array.from({length:l-1}).map((u,d)=>(d+1)*s);return t.range?h.filter(u=>u<100*(n.value-t.min)/(t.max-t.min)||u>100*(r.value-t.min)/(t.max-t.min)):h.filter(u=>u>100*(e.firstValue-t.min)/(t.max-t.min))}),getStopStyle:l=>t.vertical?{bottom:`${l}%`}:{left:`${l}%`}}),Bne=(t,e,n,r,o,a)=>{const l=u=>{o(rr,u),o(c4,u)},s=()=>t.range?![n.value,r.value].every((u,d)=>u===e.oldValue[d]):t.modelValue!==e.oldValue,h=()=>{var u,d;t.min>t.max&&s4("Slider","min should not be greater than max.");const p=t.modelValue;t.range&&Array.isArray(p)?p[1]<t.min?l([t.min,t.min]):p[0]>t.max?l([t.max,t.max]):p[0]<t.min?l([t.min,p[1]]):p[1]>t.max?l([p[0],t.max]):(e.firstValue=p[0],e.secondValue=p[1],s()&&(t.validateEvent&&((u=a==null?void 0:a.validate)==null||u.call(a,"change").catch(f=>Fr(f))),e.oldValue=p.slice())):!t.range&&typeof p=="number"&&!Number.isNaN(p)&&(p<t.min?l(t.min):p>t.max?l(t.max):(e.firstValue=p,s()&&(t.validateEvent&&((d=a==null?void 0:a.validate)==null||d.call(a,"change").catch(f=>Fr(f))),e.oldValue=p)))};h(),c.watch(()=>e.dragging,u=>{u||h()}),c.watch(()=>t.modelValue,(u,d)=>{e.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((p,f)=>p===d[f])&&e.firstValue===u[0]&&e.secondValue===u[1]||h()},{deep:!0}),c.watch(()=>[t.min,t.max],()=>{h()})},Dne=Wn({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Y6,default:"top"}}),Fne={[rr]:t=>hr(t)},zne=["tabindex"],Une=c.defineComponent({name:"ElSliderButton"}),jne=c.defineComponent({...Une,props:Dne,emits:Fne,setup(t,{expose:e,emit:n}){const r=t,o=Ln("slider"),a=c.reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:l,button:s,tooltip:h,showTooltip:u,tooltipVisible:d,wrapperStyle:p,formatValue:f,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:v,onKeyDown:_,setPosition:x}=Rne(r,a,n),{hovering:L,dragging:S}=c.toRefs(a);return e({onButtonDown:v,onKeyDown:_,setPosition:x,hovering:L,dragging:S}),(C,A)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"button",ref:s,class:c.normalizeClass([c.unref(o).e("button-wrapper"),{hover:c.unref(L),dragging:c.unref(S)}]),style:c.normalizeStyle(c.unref(p)),tabindex:c.unref(l)?-1:0,onMouseenter:A[0]||(A[0]=(...H)=>c.unref(m)&&c.unref(m)(...H)),onMouseleave:A[1]||(A[1]=(...H)=>c.unref(y)&&c.unref(y)(...H)),onMousedown:A[2]||(A[2]=(...H)=>c.unref(v)&&c.unref(v)(...H)),onTouchstart:A[3]||(A[3]=(...H)=>c.unref(v)&&c.unref(v)(...H)),onFocus:A[4]||(A[4]=(...H)=>c.unref(m)&&c.unref(m)(...H)),onBlur:A[5]||(A[5]=(...H)=>c.unref(y)&&c.unref(y)(...H)),onKeydown:A[6]||(A[6]=(...H)=>c.unref(_)&&c.unref(_)(...H))},[c.createVNode(c.unref(Kh),{ref_key:"tooltip",ref:h,visible:c.unref(d),placement:C.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":C.tooltipClass,disabled:!c.unref(u),persistent:""},{content:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(c.unref(f)),1)]),default:c.withCtx(()=>[c.createElementVNode("div",{class:c.normalizeClass([c.unref(o).e("button"),{hover:c.unref(L),dragging:c.unref(S)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,zne))}});var vE=En(jne,[["__file","button.vue"]]);const Gne=Wn({mark:{type:gn([String,Object]),default:void 0}});var Wne=c.defineComponent({name:"ElSliderMarker",props:Gne,setup(t){const e=Ln("slider"),n=c.computed(()=>si(t.mark)?t.mark:t.mark.label),r=c.computed(()=>si(t.mark)?void 0:t.mark.style);return()=>c.h("div",{class:e.e("marks-text"),style:r.value},n.value)}});const Zne=["id","role","aria-label","aria-labelledby"],$ne={key:1},qne=c.defineComponent({name:"ElSlider"}),Xne=c.defineComponent({...qne,props:_ne,emits:Lne,setup(t,{expose:e,emit:n}){const r=t,o=Ln("slider"),{t:a}=u4(),l=c.reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:h,firstButton:u,secondButton:d,sliderDisabled:p,minValue:f,maxValue:m,runwayStyle:y,barStyle:v,resetSize:_,emitChange:x,onSliderWrapperPrevent:L,onSliderClick:S,onSliderDown:C,setFirstValue:A,setSecondValue:H}=Sne(r,l,n),{stops:k,getStopStyle:B}=Nne(r,l,f,m),{inputId:D,isLabeledByFormItem:z}=a0(r,{formItemContext:s}),q=Cs(),F=c.computed(()=>r.inputSize||q.value),Z=c.computed(()=>r.label||a("el.slider.defaultLabel",{min:r.min,max:r.max})),K=c.computed(()=>r.range?r.rangeStartLabel||a("el.slider.defaultRangeStartLabel"):Z.value),X=c.computed(()=>r.formatValueText?r.formatValueText(de.value):`${de.value}`),te=c.computed(()=>r.rangeEndLabel||a("el.slider.defaultRangeEndLabel")),J=c.computed(()=>r.formatValueText?r.formatValueText(fe.value):`${fe.value}`),he=c.computed(()=>[o.b(),o.m(q.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),xe=Mne(r);Bne(r,l,f,m,n,s);const ee=c.computed(()=>{const Qe=[r.min,r.max,r.step].map(Le=>{const Ce=`${Le}`.split(".")[1];return Ce?Ce.length:0});return Math.max.apply(null,Qe)}),{sliderWrapper:oe}=wne(r,l,_),{firstValue:de,secondValue:fe,sliderSize:Ae}=c.toRefs(l),Se=Qe=>{l.dragging=Qe};return c.provide(yE,{...c.toRefs(r),sliderSize:Ae,disabled:p,precision:ee,emitChange:x,resetSize:_,updateDragging:Se}),e({onSliderClick:S}),(Qe,Le)=>{var Ce,je;return c.openBlock(),c.createElementBlock("div",{id:Qe.range?c.unref(D):void 0,ref_key:"sliderWrapper",ref:oe,class:c.normalizeClass(c.unref(he)),role:Qe.range?"group":void 0,"aria-label":Qe.range&&!c.unref(z)?c.unref(Z):void 0,"aria-labelledby":Qe.range&&c.unref(z)?(Ce=c.unref(s))==null?void 0:Ce.labelId:void 0,onTouchstart:Le[2]||(Le[2]=(...me)=>c.unref(L)&&c.unref(L)(...me)),onTouchmove:Le[3]||(Le[3]=(...me)=>c.unref(L)&&c.unref(L)(...me))},[c.createElementVNode("div",{ref_key:"slider",ref:h,class:c.normalizeClass([c.unref(o).e("runway"),{"show-input":Qe.showInput&&!Qe.range},c.unref(o).is("disabled",c.unref(p))]),style:c.normalizeStyle(c.unref(y)),onMousedown:Le[0]||(Le[0]=(...me)=>c.unref(C)&&c.unref(C)(...me)),onTouchstart:Le[1]||(Le[1]=(...me)=>c.unref(C)&&c.unref(C)(...me))},[c.createElementVNode("div",{class:c.normalizeClass(c.unref(o).e("bar")),style:c.normalizeStyle(c.unref(v))},null,6),c.createVNode(vE,{id:Qe.range?void 0:c.unref(D),ref_key:"firstButton",ref:u,"model-value":c.unref(de),vertical:Qe.vertical,"tooltip-class":Qe.tooltipClass,placement:Qe.placement,role:"slider","aria-label":Qe.range||!c.unref(z)?c.unref(K):void 0,"aria-labelledby":!Qe.range&&c.unref(z)?(je=c.unref(s))==null?void 0:je.labelId:void 0,"aria-valuemin":Qe.min,"aria-valuemax":Qe.range?c.unref(fe):Qe.max,"aria-valuenow":c.unref(de),"aria-valuetext":c.unref(X),"aria-orientation":Qe.vertical?"vertical":"horizontal","aria-disabled":c.unref(p),"onUpdate:modelValue":c.unref(A)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Qe.range?(c.openBlock(),c.createBlock(vE,{key:0,ref_key:"secondButton",ref:d,"model-value":c.unref(fe),vertical:Qe.vertical,"tooltip-class":Qe.tooltipClass,placement:Qe.placement,role:"slider","aria-label":c.unref(te),"aria-valuemin":c.unref(de),"aria-valuemax":Qe.max,"aria-valuenow":c.unref(fe),"aria-valuetext":c.unref(J),"aria-orientation":Qe.vertical?"vertical":"horizontal","aria-disabled":c.unref(p),"onUpdate:modelValue":c.unref(H)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):c.createCommentVNode("v-if",!0),Qe.showStops?(c.openBlock(),c.createElementBlock("div",$ne,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(k),(me,Ne)=>(c.openBlock(),c.createElementBlock("div",{key:Ne,class:c.normalizeClass(c.unref(o).e("stop")),style:c.normalizeStyle(c.unref(B)(me))},null,6))),128))])):c.createCommentVNode("v-if",!0),c.unref(xe).length>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createElementVNode("div",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(xe),(me,Ne)=>(c.openBlock(),c.createElementBlock("div",{key:Ne,style:c.normalizeStyle(c.unref(B)(me.position)),class:c.normalizeClass([c.unref(o).e("stop"),c.unref(o).e("marks-stop")])},null,6))),128))]),c.createElementVNode("div",{class:c.normalizeClass(c.unref(o).e("marks"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(xe),(me,Ne)=>(c.openBlock(),c.createBlock(c.unref(Wne),{key:Ne,mark:me.mark,style:c.normalizeStyle(c.unref(B)(me.position))},null,8,["mark","style"]))),128))],2)],64)):c.createCommentVNode("v-if",!0)],38),Qe.showInput&&!Qe.range?(c.openBlock(),c.createBlock(c.unref(Bg),{key:0,ref:"input","model-value":c.unref(de),class:c.normalizeClass(c.unref(o).e("input")),step:Qe.step,disabled:c.unref(p),controls:Qe.showInputControls,min:Qe.min,max:Qe.max,debounce:Qe.debounce,size:c.unref(F),"onUpdate:modelValue":c.unref(A),onChange:c.unref(x)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):c.createCommentVNode("v-if",!0)],42,Zne)}}});var Kne=En(Xne,[["__file","slider.vue"]]);const d0=Ui(Kne),cd=Symbol("tabsRootContextKey"),Jne=Wn({tabs:{type:gn(Array),default:()=>V2([])}}),bE="ElTabBar",Yne=c.defineComponent({name:bE}),ere=c.defineComponent({...Yne,props:Jne,setup(t,{expose:e}){const n=t,r=c.getCurrentInstance(),o=c.inject(cd);o||s4(bE,"<el-tabs><el-tab-bar /></el-tabs>");const a=Ln("tabs"),l=c.ref(),s=c.ref(),h=()=>{let d=0,p=0;const f=["top","bottom"].includes(o.props.tabPosition)?"width":"height",m=f==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(v=>{var _,x;const L=(x=(_=r.parent)==null?void 0:_.refs)==null?void 0:x[`tab-${v.uid}`];if(!L)return!1;if(!v.active)return!0;d=L[`offset${E2(y)}`],p=L[`client${E2(f)}`];const S=window.getComputedStyle(L);return f==="width"&&(n.tabs.length>1&&(p-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight)),d+=Number.parseFloat(S.paddingLeft)),!1}),{[f]:`${p}px`,transform:`translate${E2(m)}(${d}px)`}},u=()=>s.value=h();return c.watch(()=>n.tabs,async()=>{await c.nextTick(),u()},{immediate:!0}),vs(l,()=>u()),e({ref:l,update:u}),(d,p)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"barRef",ref:l,class:c.normalizeClass([c.unref(a).e("active-bar"),c.unref(a).is(c.unref(o).props.tabPosition)]),style:c.normalizeStyle(s.value)},null,6))}});var tre=En(ere,[["__file","tab-bar.vue"]]);const nre=Wn({panes:{type:gn(Array),default:()=>V2([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),rre={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},xE="ElTabNav",ire=c.defineComponent({name:xE,props:nre,emits:rre,setup(t,{expose:e,emit:n}){const r=c.getCurrentInstance(),o=c.inject(cd);o||s4(xE,"<el-tabs><tab-nav /></el-tabs>");const a=Ln("tabs"),l=uG(),s=xG(),h=c.ref(),u=c.ref(),d=c.ref(),p=c.ref(),f=c.ref(!1),m=c.ref(0),y=c.ref(!1),v=c.ref(!0),_=c.computed(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),x=c.computed(()=>({transform:`translate${_.value==="width"?"X":"Y"}(-${m.value}px)`})),L=()=>{if(!h.value)return;const D=h.value[`offset${E2(_.value)}`],z=m.value;if(!z)return;const q=z>D?z-D:0;m.value=q},S=()=>{if(!h.value||!u.value)return;const D=u.value[`offset${E2(_.value)}`],z=h.value[`offset${E2(_.value)}`],q=m.value;if(D-q<=z)return;const F=D-q>z*2?q+z:D-z;m.value=F},C=async()=>{const D=u.value;if(!f.value||!d.value||!h.value||!D)return;await c.nextTick();const z=d.value.querySelector(".is-active");if(!z)return;const q=h.value,F=["top","bottom"].includes(o.props.tabPosition),Z=z.getBoundingClientRect(),K=q.getBoundingClientRect(),X=F?D.offsetWidth-K.width:D.offsetHeight-K.height,te=m.value;let J=te;F?(Z.left<K.left&&(J=te-(K.left-Z.left)),Z.right>K.right&&(J=te+Z.right-K.right)):(Z.top<K.top&&(J=te-(K.top-Z.top)),Z.bottom>K.bottom&&(J=te+(Z.bottom-K.bottom))),J=Math.max(J,0),m.value=Math.min(J,X)},A=()=>{var D;if(!u.value||!h.value)return;t.stretch&&((D=p.value)==null||D.update());const z=u.value[`offset${E2(_.value)}`],q=h.value[`offset${E2(_.value)}`],F=m.value;q<z?(f.value=f.value||{},f.value.prev=F,f.value.next=F+q<z,z-F<q&&(m.value=z-q)):(f.value=!1,F>0&&(m.value=0))},H=D=>{const z=D.code,{up:q,down:F,left:Z,right:K}=Mi;if(![q,F,Z,K].includes(z))return;const X=Array.from(D.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),te=X.indexOf(D.target);let J;z===Z||z===q?te===0?J=X.length-1:J=te-1:te<X.length-1?J=te+1:J=0,X[J].focus({preventScroll:!0}),X[J].click(),k()},k=()=>{v.value&&(y.value=!0)},B=()=>y.value=!1;return c.watch(l,D=>{D==="hidden"?v.value=!1:D==="visible"&&setTimeout(()=>v.value=!0,50)}),c.watch(s,D=>{D?setTimeout(()=>v.value=!0,50):v.value=!1}),vs(d,A),c.onMounted(()=>setTimeout(()=>C(),0)),c.onUpdated(()=>A()),e({scrollToActiveTab:C,removeFocus:B}),c.watch(()=>t.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const D=f.value?[c.createVNode("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:L},[c.createVNode(zr,null,{default:()=>[c.createVNode(cc,null,null)]})]),c.createVNode("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:S},[c.createVNode(zr,null,{default:()=>[c.createVNode(MS,null,null)]})])]:null,z=t.panes.map((q,F)=>{var Z,K,X,te;const J=q.uid,he=q.props.disabled,xe=(K=(Z=q.props.name)!=null?Z:q.index)!=null?K:`${F}`,ee=!he&&(q.isClosable||t.editable);q.index=`${F}`;const oe=ee?c.createVNode(zr,{class:"is-icon-close",onClick:Ae=>n("tabRemove",q,Ae)},{default:()=>[c.createVNode(uc,null,null)]}):null,de=((te=(X=q.slots).label)==null?void 0:te.call(X))||q.props.label,fe=!he&&q.active?0:-1;return c.createVNode("div",{ref:`tab-${J}`,class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",q.active),a.is("disabled",he),a.is("closable",ee),a.is("focus",y.value)],id:`tab-${xe}`,key:`tab-${J}`,"aria-controls":`pane-${xe}`,role:"tab","aria-selected":q.active,tabindex:fe,onFocus:()=>k(),onBlur:()=>B(),onClick:Ae=>{B(),n("tabClick",q,xe,Ae)},onKeydown:Ae=>{ee&&(Ae.code===Mi.delete||Ae.code===Mi.backspace)&&n("tabRemove",q,Ae)}},[de,oe])});return c.createVNode("div",{ref:d,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(o.props.tabPosition)]},[D,c.createVNode("div",{class:a.e("nav-scroll"),ref:h},[c.createVNode("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",t.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:x.value,role:"tablist",onKeydown:H},[t.type?null:c.createVNode(tre,{ref:p,tabs:[...t.panes]},null),z])])])}}}),ore=Wn({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:gn(Function),default:()=>!0},stretch:Boolean}),jg=t=>si(t)||hr(t),are={[rr]:t=>jg(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>jg(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>jg(t),tabAdd:()=>!0},sre=c.defineComponent({name:"ElTabs",props:ore,emits:are,setup(t,{emit:e,slots:n,expose:r}){var o,a;const l=Ln("tabs"),{children:s,addChild:h,removeChild:u}=qK(c.getCurrentInstance(),"ElTabPane"),d=c.ref(),p=c.ref((a=(o=t.modelValue)!=null?o:t.activeName)!=null?a:"0"),f=async(_,x=!1)=>{var L,S,C;if(!(p.value===_||J1(_)))try{await((L=t.beforeLeave)==null?void 0:L.call(t,_,p.value))!==!1&&(p.value=_,x&&(e(rr,_),e("tabChange",_)),(C=(S=d.value)==null?void 0:S.removeFocus)==null||C.call(S))}catch{}},m=(_,x,L)=>{_.props.disabled||(f(x,!0),e("tabClick",_,L))},y=(_,x)=>{_.props.disabled||J1(_.props.name)||(x.stopPropagation(),e("edit",_.props.name,"remove"),e("tabRemove",_.props.name))},v=()=>{e("edit",void 0,"add"),e("tabAdd")};return hc({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},c.computed(()=>!!t.activeName)),c.watch(()=>t.activeName,_=>f(_)),c.watch(()=>t.modelValue,_=>f(_)),c.watch(p,async()=>{var _;await c.nextTick(),(_=d.value)==null||_.scrollToActiveTab()}),c.provide(cd,{props:t,currentName:p,registerPane:h,unregisterPane:u}),r({currentName:p}),()=>{const _=n.addIcon,x=t.editable||t.addable?c.createVNode("span",{class:l.e("new-tab"),tabindex:"0",onClick:v,onKeydown:C=>{C.code===Mi.enter&&v()}},[_?c.renderSlot(n,"addIcon"):c.createVNode(zr,{class:l.is("icon-plus")},{default:()=>[c.createVNode(SS,null,null)]})]):null,L=c.createVNode("div",{class:[l.e("header"),l.is(t.tabPosition)]},[x,c.createVNode(ire,{ref:d,currentName:p.value,editable:t.editable,type:t.type,panes:s.value,stretch:t.stretch,onTabClick:m,onTabRemove:y},null)]),S=c.createVNode("div",{class:l.e("content")},[c.renderSlot(n,"default")]);return c.createVNode("div",{class:[l.b(),l.m(t.tabPosition),{[l.m("card")]:t.type==="card",[l.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[L,S]:[S,L]])}}}),lre=Wn({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),cre=["id","aria-hidden","aria-labelledby"],_E="ElTabPane",ure=c.defineComponent({name:_E}),hre=c.defineComponent({...ure,props:lre,setup(t){const e=t,n=c.getCurrentInstance(),r=c.useSlots(),o=c.inject(cd);o||s4(_E,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const a=Ln("tab-pane"),l=c.ref(),s=c.computed(()=>e.closable||o.props.closable),h=yM(()=>{var m;return o.currentName.value===((m=e.name)!=null?m:l.value)}),u=c.ref(h.value),d=c.computed(()=>{var m;return(m=e.name)!=null?m:l.value}),p=yM(()=>!e.lazy||u.value||h.value);c.watch(h,m=>{m&&(u.value=!0)});const f=c.reactive({uid:n.uid,slots:r,props:e,paneName:d,active:h,index:l,isClosable:s});return c.onMounted(()=>{o.registerPane(f)}),c.onUnmounted(()=>{o.unregisterPane(f.uid)}),(m,y)=>c.unref(p)?c.withDirectives((c.openBlock(),c.createElementBlock("div",{key:0,id:`pane-${c.unref(d)}`,class:c.normalizeClass(c.unref(a).b()),role:"tabpanel","aria-hidden":!c.unref(h),"aria-labelledby":`tab-${c.unref(d)}`},[c.renderSlot(m.$slots,"default")],10,cre)),[[c.vShow,c.unref(h)]]):c.createCommentVNode("v-if",!0)}});var LE=En(hre,[["__file","tab-pane.vue"]]);const wE=Ui(sre,{TabPane:LE}),ME=Ra(LE),p0="$treeNodeId",SE=function(t,e){!e||e[p0]||Object.defineProperty(e,p0,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Gg=function(t,e){return t?e[t]:e[p0]},Wg=(t,e,n)=>{const r=t.value.currentNode;n();const o=t.value.currentNode;r!==o&&e("current-change",o?o.data:null,o)},Zg=t=>{let e=!0,n=!0,r=!0;for(let o=0,a=t.length;o<a;o++){const l=t[o];(l.checked!==!0||l.indeterminate)&&(e=!1,l.disabled||(r=!1)),(l.checked!==!1||l.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},ud=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=Zg(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const o=t.parent;!o||o.level===0||t.store.checkStrictly||ud(o)},hd=function(t,e){const n=t.store.props,r=t.data||{},o=n[e];if(typeof o=="function")return o(r,t);if(typeof o=="string")return r[o];if(typeof o>"u"){const a=r[e];return a===void 0?"":a}};let dre=0,$g=class km{constructor(e){this.id=dre++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)t4(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const a=hd(this,"isLeaf");typeof a=="boolean"&&(this.isLeafByUser=a)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||SE(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,o=e.key;o&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),o&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||SE(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=hd(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return hd(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return hd(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof km)){if(!r){const o=this.getChildren(!0);o.includes(e.data)||(typeof n>"u"||n<0?o.push(e.data):o.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=c.reactive(new km(e)),e instanceof km&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(e);o>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const r=()=>{if(n){let o=this.parent;for(;o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(o=>{o.canFocus=!0})};this.shouldLoadData()?this.loadData(o=>{Array.isArray(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||ud(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,o){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:l,allWithoutDisable:s}=Zg(this.childNodes);!this.isLeaf&&!l&&s&&(this.checked=!1,e=!1);const h=()=>{if(n){const u=this.childNodes;for(let f=0,m=u.length;f<m;f++){const y=u[f];o=o||e!==!1;const v=y.disabled?y.checked:o;y.setChecked(v,n,!0,o)}const{half:d,all:p}=Zg(u);p||(this.checked=p,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{h(),ud(this)},{checked:e!==!1});return}else h()}const a=this.parent;!a||a.level===0||r||ud(a)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),e&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(a=>a.data),r={},o=[];e.forEach((a,l)=>{const s=a[p0];!!s&&n.findIndex(u=>u[p0]===s)>=0?r[s]={index:l,data:a}:o.push({index:l,data:a})}),this.store.lazy||n.forEach(a=>{r[a[p0]]||this.removeChildByData(a)}),o.forEach(({index:a,data:l})=>{this.insertChild({data:l},a)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,o)};this.store.load(this,r)}else e&&e.call(this)}};class pre{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)t4(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new $g({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,o=function(a){const l=a.root?a.root.childNodes:a.childNodes;if(l.forEach(s=>{s.visible=n.call(s,e,s.data,s),o(s)}),!a.visible&&l.length){let s=!0;s=!l.some(h=>h.visible),a.root?a.root.visible=s===!1:a.visible=s===!1}e&&a.visible&&!a.isLeaf&&(!r||a.loaded)&&a.expand()};o(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof $g)return e;const n=Yi(e)?Gg(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],o=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),n(a)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)t4(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const o=r.childNodes;for(let a=o.length-1;a>=0;a--){const l=o[a];this.remove(l.data)}for(let a=0,l=n.length;a<l;a++){const s=n[a];this.append(s,r.data)}}_setCheckedKeys(e,n=!1,r){const o=this._getAllNodes().sort((s,h)=>h.level-s.level),a=Object.create(null),l=Object.keys(r);o.forEach(s=>s.setChecked(!1,!1));for(let s=0,h=o.length;s<h;s++){const u=o[s],d=u.data[e].toString();if(!l.includes(d)){u.checked&&!a[d]&&u.setChecked(!1,!1);continue}let f=u.parent;for(;f&&f.level>0;)a[f.data[e]]=!0,f=f.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const m=function(y){y.childNodes.forEach(_=>{_.isLeaf||_.setChecked(!1,!1),m(_)})};m(u)}}}setCheckedNodes(e,n=!1){const r=this.key,o={};e.forEach(a=>{o[(a||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,o={};e.forEach(a=>{o[a]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const o=this.getNode(e);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],o=this.nodesMap[r];this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const fre=c.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=Ln("tree"),n=c.inject("NodeInstance"),r=c.inject("RootTree");return()=>{const o=t.node,{data:a,store:l}=o;return t.renderContent?t.renderContent(c.h,{_self:n,node:o,data:a,store:l}):c.renderSlot(r.ctx.slots,"default",{node:o,data:a},()=>[c.h("span",{class:e.be("node","label")},[o.label])])}}});var Tre=En(fre,[["__file","tree-node-content.vue"]]);function CE(t){const e=c.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),c.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const EE=Symbol("dragEvents");function Qre({props:t,ctx:e,el$:n,dropIndicator$:r,store:o}){const a=Ln("tree"),l=c.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),s=({event:d,treeNode:p})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(p.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}l.value.draggingNode=p,e.emit("node-drag-start",p.node,d)},h=({event:d,treeNode:p})=>{const f=p,m=l.value.dropNode;m&&m.node.id!==f.node.id&&H2(m.$el,a.is("drop-inner"));const y=l.value.draggingNode;if(!y||!f)return;let v=!0,_=!0,x=!0,L=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(y.node,f.node,"prev"),L=_=t.allowDrop(y.node,f.node,"inner"),x=t.allowDrop(y.node,f.node,"next")),d.dataTransfer.dropEffect=_||v||x?"move":"none",(v||_||x)&&(m==null?void 0:m.node.id)!==f.node.id&&(m&&e.emit("node-drag-leave",y.node,m.node,d),e.emit("node-drag-enter",y.node,f.node,d)),v||_||x?l.value.dropNode=f:l.value.dropNode=null,f.node.nextSibling===y.node&&(x=!1),f.node.previousSibling===y.node&&(v=!1),f.node.contains(y.node,!1)&&(_=!1),(y.node===f.node||y.node.contains(f.node))&&(v=!1,_=!1,x=!1);const S=f.$el.querySelector(`.${a.be("node","content")}`).getBoundingClientRect(),C=n.value.getBoundingClientRect();let A;const H=v?_?.25:x?.45:1:-1,k=x?_?.75:v?.55:0:1;let B=-9999;const D=d.clientY-S.top;D<S.height*H?A="before":D>S.height*k?A="after":_?A="inner":A="none";const z=f.$el.querySelector(`.${a.be("node","expand-icon")}`).getBoundingClientRect(),q=r.value;A==="before"?B=z.top-C.top:A==="after"&&(B=z.bottom-C.top),q.style.top=`${B}px`,q.style.left=`${z.right-C.left}px`,A==="inner"?Oh(f.$el,a.is("drop-inner")):H2(f.$el,a.is("drop-inner")),l.value.showDropIndicator=A==="before"||A==="after",l.value.allowDrop=l.value.showDropIndicator||L,l.value.dropType=A,e.emit("node-drag-over",y.node,f.node,d)},u=d=>{const{draggingNode:p,dropType:f,dropNode:m}=l.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",p&&m){const y={data:p.node.data};f!=="none"&&p.node.remove(),f==="before"?m.node.parent.insertBefore(y,m.node):f==="after"?m.node.parent.insertAfter(y,m.node):f==="inner"&&m.node.insertChild(y),f!=="none"&&o.value.registerNode(y),H2(m.$el,a.is("drop-inner")),e.emit("node-drag-end",p.node,m.node,f,d),f!=="none"&&e.emit("node-drop",p.node,m.node,f,d)}p&&!m&&e.emit("node-drag-end",p.node,null,f,d),l.value.showDropIndicator=!1,l.value.draggingNode=null,l.value.dropNode=null,l.value.allowDrop=!0};return c.provide(EE,{treeNodeDragStart:s,treeNodeDragOver:h,treeNodeDragEnd:u}),{dragState:l}}const mre=c.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:Vee,ElCheckbox:eE,NodeContent:Tre,ElIcon:zr,Loading:ig},props:{node:{type:$g,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=Ln("tree"),{broadcastExpanded:r}=CE(t),o=c.inject("RootTree"),a=c.ref(!1),l=c.ref(!1),s=c.ref(null),h=c.ref(null),u=c.ref(null),d=c.inject(EE),p=c.getCurrentInstance();c.provide("NodeInstance",p),o||Fr("Tree","Can not find node's tree."),t.node.expanded&&(a.value=!0,l.value=!0);const f=o.props.props.children||"children";c.watch(()=>{const D=t.node.data[f];return D&&[...D]},()=>{t.node.updateChildren()}),c.watch(()=>t.node.indeterminate,D=>{v(t.node.checked,D)}),c.watch(()=>t.node.checked,D=>{v(D,t.node.indeterminate)}),c.watch(()=>t.node.expanded,D=>{c.nextTick(()=>a.value=D),D&&(l.value=!0)});const m=D=>Gg(o.props.nodeKey,D.data),y=D=>{const z=t.props.class;if(!z)return{};let q;if(Ao(z)){const{data:F}=D;q=z(F,D)}else q=z;return si(q)?{[q]:!0}:q},v=(D,z)=>{(s.value!==D||h.value!==z)&&o.ctx.emit("check-change",t.node.data,D,z),s.value=D,h.value=z},_=D=>{Wg(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(t.node)),o.currentNode.value=t.node,o.props.expandOnClickNode&&L(),o.props.checkOnClickNode&&!t.node.disabled&&S(null,{target:{checked:!t.node.checked}}),o.ctx.emit("node-click",t.node.data,t.node,p,D)},x=D=>{o.instance.vnode.props.onNodeContextmenu&&(D.stopPropagation(),D.preventDefault()),o.ctx.emit("node-contextmenu",D,t.node.data,t.node,p)},L=()=>{t.node.isLeaf||(a.value?(o.ctx.emit("node-collapse",t.node.data,t.node,p),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,p)))},S=(D,z)=>{t.node.setChecked(z.target.checked,!o.props.checkStrictly),c.nextTick(()=>{const q=o.store.value;o.ctx.emit("check",t.node.data,{checkedNodes:q.getCheckedNodes(),checkedKeys:q.getCheckedKeys(),halfCheckedNodes:q.getHalfCheckedNodes(),halfCheckedKeys:q.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:a,childNodeRendered:l,oldChecked:s,oldIndeterminate:h,getNodeKey:m,getNodeClass:y,handleSelectChange:v,handleClick:_,handleContextMenu:x,handleExpandIconClick:L,handleCheckChange:S,handleChildNodeExpand:(D,z,q)=>{r(z),o.ctx.emit("node-expand",D,z,q)},handleDragStart:D=>{o.props.draggable&&d.treeNodeDragStart({event:D,treeNode:t})},handleDragOver:D=>{D.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:D,treeNode:{$el:u.value,node:t.node}})},handleDrop:D=>{D.preventDefault()},handleDragEnd:D=>{o.props.draggable&&d.treeNodeDragEnd(D)},CaretRight:Fq}}}),gre=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],yre=["aria-expanded"];function vre(t,e,n,r,o,a){const l=c.resolveComponent("el-icon"),s=c.resolveComponent("el-checkbox"),h=c.resolveComponent("loading"),u=c.resolveComponent("node-content"),d=c.resolveComponent("el-tree-node"),p=c.resolveComponent("el-collapse-transition");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{ref:"node$",class:c.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=c.withModifiers((...f)=>t.handleClick&&t.handleClick(...f),["stop"])),onContextmenu:e[2]||(e[2]=(...f)=>t.handleContextMenu&&t.handleContextMenu(...f)),onDragstart:e[3]||(e[3]=c.withModifiers((...f)=>t.handleDragStart&&t.handleDragStart(...f),["stop"])),onDragover:e[4]||(e[4]=c.withModifiers((...f)=>t.handleDragOver&&t.handleDragOver(...f),["stop"])),onDragend:e[5]||(e[5]=c.withModifiers((...f)=>t.handleDragEnd&&t.handleDragEnd(...f),["stop"])),onDrop:e[6]||(e[6]=c.withModifiers((...f)=>t.handleDrop&&t.handleDrop(...f),["stop"]))},[c.createElementVNode("div",{class:c.normalizeClass(t.ns.be("node","content")),style:c.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(c.openBlock(),c.createBlock(l,{key:0,class:c.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:c.withModifiers(t.handleExpandIconClick,["stop"])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0),t.showCheckbox?(c.openBlock(),c.createBlock(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=c.withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):c.createCommentVNode("v-if",!0),t.node.loading?(c.openBlock(),c.createBlock(l,{key:2,class:c.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:c.withCtx(()=>[c.createVNode(h)]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),c.createVNode(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),c.createVNode(p,null,{default:c.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?c.withDirectives((c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.node.childNodes,f=>(c.openBlock(),c.createBlock(d,{key:t.getNodeKey(f),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:f,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,yre)),[[c.vShow,t.expanded]]):c.createCommentVNode("v-if",!0)]),_:1})],42,gre)),[[c.vShow,t.node.visible]])}var bre=En(mre,[["render",vre],["__file","tree-node.vue"]]);function xre({el$:t},e){const n=Ln("tree"),r=c.shallowRef([]),o=c.shallowRef([]);c.onMounted(()=>{l()}),c.onUpdated(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),c.watch(o,s=>{s.forEach(h=>{h.setAttribute("tabindex","-1")})}),k1(t,"keydown",s=>{const h=s.target;if(!h.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=r.value.indexOf(h);let p;if([Mi.up,Mi.down].includes(u)){if(s.preventDefault(),u===Mi.up){p=d===-1?0:d!==0?d-1:r.value.length-1;const m=p;for(;!e.value.getNode(r.value[p].dataset.key).canFocus;){if(p--,p===m){p=-1;break}p<0&&(p=r.value.length-1)}}else{p=d===-1?0:d<r.value.length-1?d+1:0;const m=p;for(;!e.value.getNode(r.value[p].dataset.key).canFocus;){if(p++,p===m){p=-1;break}p>=r.value.length&&(p=0)}}p!==-1&&r.value[p].focus()}[Mi.left,Mi.right].includes(u)&&(s.preventDefault(),h.click());const f=h.querySelector('[type="checkbox"]');[Mi.enter,Mi.space].includes(u)&&f&&(s.preventDefault(),f.click())});const l=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const h=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(h.length){h[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const _re=c.defineComponent({name:"ElTree",components:{ElTreeNode:bre},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ms}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=u4(),r=Ln("tree"),o=c.ref(new pre({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));o.value.initialize();const a=c.ref(o.value.root),l=c.ref(null),s=c.ref(null),h=c.ref(null),{broadcastExpanded:u}=CE(t),{dragState:d}=Qre({props:t,ctx:e,el$:s,dropIndicator$:h,store:o});xre({el$:s},o);const p=c.computed(()=>{const{childNodes:J}=a.value;return!J||J.length===0||J.every(({visible:he})=>!he)});c.watch(()=>t.currentNodeKey,J=>{o.value.setCurrentNodeKey(J)}),c.watch(()=>t.defaultCheckedKeys,J=>{o.value.setDefaultCheckedKey(J)}),c.watch(()=>t.defaultExpandedKeys,J=>{o.value.setDefaultExpandedKeys(J)}),c.watch(()=>t.data,J=>{o.value.setData(J)},{deep:!0}),c.watch(()=>t.checkStrictly,J=>{o.value.checkStrictly=J});const f=J=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(J)},m=J=>Gg(t.nodeKey,J.data),y=J=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const he=o.value.getNode(J);if(!he)return[];const xe=[he.data];let ee=he.parent;for(;ee&&ee!==a.value;)xe.push(ee.data),ee=ee.parent;return xe.reverse()},v=(J,he)=>o.value.getCheckedNodes(J,he),_=J=>o.value.getCheckedKeys(J),x=()=>{const J=o.value.getCurrentNode();return J?J.data:null},L=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const J=x();return J?J[t.nodeKey]:null},S=(J,he)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(J,he)},C=(J,he)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(J,he)},A=(J,he,xe)=>{o.value.setChecked(J,he,xe)},H=()=>o.value.getHalfCheckedNodes(),k=()=>o.value.getHalfCheckedKeys(),B=(J,he=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Wg(o,e.emit,()=>o.value.setUserCurrentNode(J,he))},D=(J,he=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Wg(o,e.emit,()=>o.value.setCurrentNodeKey(J,he))},z=J=>o.value.getNode(J),q=J=>{o.value.remove(J)},F=(J,he)=>{o.value.append(J,he)},Z=(J,he)=>{o.value.insertBefore(J,he)},K=(J,he)=>{o.value.insertAfter(J,he)},X=(J,he,xe)=>{u(he),e.emit("node-expand",J,he,xe)},te=(J,he)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(J,he)};return c.provide("RootTree",{ctx:e,props:t,store:o,root:a,currentNode:l,instance:c.getCurrentInstance()}),c.provide(bc,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:d,el$:s,dropIndicator$:h,isEmpty:p,filter:f,getNodeKey:m,getNodePath:y,getCheckedNodes:v,getCheckedKeys:_,getCurrentNode:x,getCurrentKey:L,setCheckedNodes:S,setCheckedKeys:C,setChecked:A,getHalfCheckedNodes:H,getHalfCheckedKeys:k,setCurrentNode:B,setCurrentKey:D,t:n,getNode:z,remove:q,append:F,insertBefore:Z,insertAfter:K,handleNodeExpand:X,updateKeyChildren:te}}});function Lre(t,e,n,r,o,a){const l=c.resolveComponent("el-tree-node");return c.openBlock(),c.createElementBlock("div",{ref:"el$",class:c.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.root.childNodes,s=>(c.openBlock(),c.createBlock(l,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.ns.e("empty-block"))},[c.renderSlot(t.$slots,"empty",{},()=>{var s;return[c.createElementVNode("span",{class:c.normalizeClass(t.ns.e("empty-text"))},c.toDisplayString((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createElementVNode("div",{ref:"dropIndicator$",class:c.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[c.vShow,t.dragState.showDropIndicator]])],2)}var dd=En(_re,[["render",Lre],["__file","tree.vue"]]);dd.install=t=>{t.component(dd.name,dd)};const HE=dd;function wre(t){let e;const n=c.ref(!1),r=c.reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function o(f){r.text=f}function a(){const f=r.parent,m=p.ns;if(!f.vLoadingAddClassList){let y=f.getAttribute("loading-number");y=Number.parseInt(y)-1,y?f.setAttribute("loading-number",y.toString()):(H2(f,m.bm("parent","relative")),f.removeAttribute("loading-number")),H2(f,m.bm("parent","hidden"))}l(),d.unmount()}function l(){var f,m;(m=(f=p.$el)==null?void 0:f.parentNode)==null||m.removeChild(p.$el)}function s(){var f;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(e),e=window.setTimeout(h,400),r.visible=!1,(f=t.closed)==null||f.call(t))}function h(){if(!n.value)return;const f=r.parent;n.value=!1,f.vLoadingAddClassList=void 0,a()}const u=c.defineComponent({name:"ElLoading",setup(f,{expose:m}){const{ns:y,zIndex:v}=KK("loading");return m({ns:y,zIndex:v}),()=>{const _=r.spinner||r.svg,x=c.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",..._?{innerHTML:_}:{}},[c.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=r.text?c.h("p",{class:y.b("text")},[r.text]):void 0;return c.h(c.Transition,{name:y.b("fade"),onAfterLeave:h},{default:c.withCtx(()=>[c.withDirectives(c.createVNode("div",{style:{backgroundColor:r.background||""},class:[y.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[c.h("div",{class:y.b("spinner")},[x,L])]),[[c.vShow,r.visible]])])})}}}),d=c.createApp(u),p=d.mount(document.createElement("div"));return{...c.toRefs(r),setText:o,removeElLoadingChild:l,close:s,handleAfterLeave:h,vm:p,get $el(){return p.$el}}}let pd;const qg=function(t={}){if(!Dr)return;const e=Mre(t);if(e.fullscreen&&pd)return pd;const n=wre({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(pd=void 0)}});Sre(e,e.parent,n),AE(e,e.parent,n),e.parent.vLoadingAddClassList=()=>AE(e,e.parent,n);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(n.$el),c.nextTick(()=>n.visible.value=e.visible),e.fullscreen&&(pd=n),n},Mre=t=>{var e,n,r,o;let a;return si(t.target)?a=(e=document.querySelector(t.target))!=null?e:document.body:a=t.target||document.body,{parent:a===document.body||t.body?document.body:a,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:a===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(r=t.lock)!=null?r:!1,customClass:t.customClass||"",visible:(o=t.visible)!=null?o:!0,target:a}},Sre=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(t.fullscreen)n.originalPosition.value=K6(document.body,"position"),n.originalOverflow.value=K6(document.body,"overflow"),o.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=K6(document.body,"position"),await c.nextTick();for(const a of["top","left"]){const l=a==="top"?"scrollTop":"scrollLeft";o[a]=`${t.target.getBoundingClientRect()[a]+document.body[l]+document.documentElement[l]-Number.parseInt(K6(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])o[a]=`${t.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=K6(e,"position");for(const[a,l]of Object.entries(o))n.$el.style[a]=l},AE=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?H2(e,r.bm("parent","relative")):Oh(e,r.bm("parent","relative")),t.fullscreen&&t.lock?Oh(e,r.bm("parent","hidden")):H2(e,r.bm("parent","hidden"))},fd=Symbol("ElLoading"),VE=(t,e)=>{var n,r,o,a;const l=e.instance,s=f=>Yi(e.value)?e.value[f]:void 0,h=f=>{const m=si(f)&&(l==null?void 0:l[f])||f;return m&&c.ref(m)},u=f=>h(s(f)||t.getAttribute(`element-loading-${AG(f)}`)),d=(n=s("fullscreen"))!=null?n:e.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=s("target"))!=null?r:d?void 0:t,body:(o=s("body"))!=null?o:e.modifiers.body,lock:(a=s("lock"))!=null?a:e.modifiers.lock};t[fd]={options:p,instance:qg(p)}},Cre=(t,e)=>{for(const n of Object.keys(e))c.isRef(e[n])&&(e[n].value=t[n])},Td={mounted(t,e){e.value&&VE(t,e)},updated(t,e){const n=t[fd];e.oldValue!==e.value&&(e.value&&!e.oldValue?VE(t,e):e.value&&e.oldValue?Yi(e.value)&&Cre(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[fd])==null||e.instance.close(),t[fd]=null}},OE={install(t){t.directive("loading",Td),t.config.globalProperties.$loading=qg},directive:Td,service:qg},f0=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Ere={name:"TextureSlidesControls",components:{Col:_c,Container:id,Footer:pE,Header:od,Icon:zr,InputNumber:Bg,Main:ad,Row:u0,Slider:d0},data:function(){return{settings:[],directions:[{value:"x",label:"x"},{value:"y",label:"y"},{value:"z",label:"z"}]}},watch:{settings:function(){this.material&&this._zincObject&&this._zincObject.setAlpha(this.material.opacity)}},mounted:function(){this._zincObject=void 0},methods:{setObject:function(t){t.isTextureSlides?(this._zincObject=t,this.settings=this._zincObject.getTextureSettings()):(this._zincObject=void 0,this.settings=[])},addNewSlide:function(){const t={direction:"x",value:0},e=this._zincObject.createSlide(t);this.settings.push(e)},modifyDirection:function(t,e){e&&(e.direction=t,this._zincObject.modifySlideSettings(e))},modifySlide:function(t){t&&this._zincObject.modifySlideSettings(t)},removeSlide:function(t,e){this._zincObject.removeSlideWithId(e.id),this.settings.splice(t,1)}}},kE=t=>(c.pushScopeId("data-v-d9b913b8"),t=t(),c.popScopeId(),t),Hre=kE(()=>c.createElementVNode("div",null,"Texture Slides Settings",-1)),Are=["onClick"],Vre=kE(()=>c.createElementVNode("i",{class:"el-icon-plus"},null,-1));function Ore(t,e,n,r,o,a){const l=od,s=zg,h=Fg,u=_c,d=d0,p=Bg,f=u0,m=ad,y=pE,v=id;return c.withDirectives((c.openBlock(),c.createBlock(v,{class:"t-slides-container"},{default:c.withCtx(()=>[c.createVNode(l,{height:"30px",class:"header"},{default:c.withCtx(()=>[Hre]),_:1}),c.createVNode(m,{class:"block"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.settings,(_,x)=>(c.openBlock(),c.createBlock(f,{key:_.id},{default:c.withCtx(()=>[c.createVNode(u,{offset:0,span:2},{default:c.withCtx(()=>[c.createVNode(h,{teleported:!1,value:_.direction,placeholder:"Select",class:"input-box","popper-class":"viewer_dropdown",onChange:L=>a.modifyDirection(L,_)},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.directions,L=>(c.openBlock(),c.createBlock(s,{key:L.value,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["value","onChange"])]),_:2},1024),c.createVNode(u,{offset:0,span:14},{default:c.withCtx(()=>[c.createVNode(d,{modelValue:_.value,"onUpdate:modelValue":L=>_.value=L,class:"my-slider",step:.01,min:0,max:1,"show-tooltip":!1,onInput:L=>a.modifySlide(_)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),c.createVNode(u,{offset:0,span:3},{default:c.withCtx(()=>[c.createVNode(p,{modelValue:_.value,"onUpdate:modelValue":L=>_.value=L,step:.01,min:0,max:1,controls:!1,class:"input-box number-input"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),c.createVNode(u,{offset:2,span:2},{default:c.withCtx(()=>[c.createElementVNode("i",{class:"el-icon-close close-icon",onClick:L=>a.removeSlide(x,_)},null,8,Are)]),_:2},1024)]),_:2},1024))),128))]),_:1}),c.createVNode(y,{height:"30px",class:"add-slides-text",onClick:a.addNewSlide},{default:c.withCtx(()=>[c.createVNode(f,null,{default:c.withCtx(()=>[c.createVNode(u,{span:2},{default:c.withCtx(()=>[Vre]),_:1}),c.createVNode(u,{span:10},{default:c.withCtx(()=>[c.createTextVNode(" Add a new slide ")]),_:1})]),_:1})]),_:1},8,["onClick"])]),_:1},512)),[[c.vShow,t.settings.length>0]])}const PE=f0(Ere,[["render",Ore],["__scopeId","data-v-d9b913b8"]]),kre={name:"OpacityControls",components:{Container:id,Header:od,Main:ad,Slider:d0},props:{material:void 0,zincObject:void 0},data:function(){return{displayString:"100%"}},watch:{"material.opacity":function(){this.material&&this.zincObject&&this.zincObject.setAlpha(this.material.opacity)}},methods:{formatTooltip(t){return this.displayString=Math.floor(100*t+.5)+"%",this.displayString}}},Pre=(t=>(c.pushScopeId("data-v-b790a40b"),t=t(),c.popScopeId(),t))(()=>c.createElementVNode("div",null,"Opacity",-1)),Ire={class:"block"},Rre={class:"display"};function Nre(t,e,n,r,o,a){const l=od,s=d0,h=ad,u=id;return n.material?(c.openBlock(),c.createBlock(u,{key:0,class:"opacity-container"},{default:c.withCtx(()=>[c.createVNode(l,{height:"37px",class:"header"},{default:c.withCtx(()=>[Pre]),_:1}),c.createVNode(h,{class:"main"},{default:c.withCtx(()=>[c.createElementVNode("div",Ire,[c.createElementVNode("span",Rre,c.toDisplayString(t.displayString),1),c.createVNode(s,{modelValue:n.material.opacity,"onUpdate:modelValue":e[0]||(e[0]=d=>n.material.opacity=d),class:"my-slider",step:.01,min:0,max:1,"format-tooltip":a.formatTooltip,"show-tooltip":!1},null,8,["modelValue","format-tooltip"])])]),_:1})]),_:1})):c.createCommentVNode("",!0)}const IE=f0(kre,[["render",Nre],["__scopeId","data-v-b790a40b"]]),Bre={name:"PrimitiveControls",components:{Drawer:fE,OpacityControls:IE,TextureSlidesControls:PE},data:function(){return{material:void 0,isTextureSlides:!1,drawerOpen:!0,zincObject:void 0}},methods:{formatTooltip:function(t){return this.displayString=Math.floor(100*t+.5)+"%",this.displayString},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setObject:function(t){this.zincObject=c.shallowRef(t),t.isTextureSlides?(this.isTextureSlides=!0,this.$refs.tSlidesControls.setObject(t)):this.isTextureSlides=!1,t&&t.morph?this.material=c.ref(t.morph.material):this.material=void 0}}},Dre={class:"primitive-controls"};function Fre(t,e,n,r,o,a){const l=MS,s=zr,h=IE,u=PE,d=fE,p=cc;return c.withDirectives((c.openBlock(),c.createElementBlock("div",Dre,[c.createVNode(d,{class:c.normalizeClass({"my-drawer":!0}),modelValue:t.drawerOpen,"onUpdate:modelValue":e[1]||(e[1]=f=>t.drawerOpen=f),"append-to-body":!1,size:"300","with-header":!1,"wrapper-closable":!1,modal:!1},{default:c.withCtx(()=>[t.drawerOpen?(c.openBlock(),c.createElementBlock("div",{key:0,class:"tab-button close",onClick:e[0]||(e[0]=(...f)=>a.toggleDrawer&&a.toggleDrawer(...f))},[c.createVNode(s,null,{default:c.withCtx(()=>[c.createVNode(l)]),_:1})])):c.createCommentVNode("",!0),c.createVNode(h,{material:t.material,zincObject:t.zincObject,ref:"opacityControls"},null,8,["material","zincObject"]),c.withDirectives(c.createVNode(u,{class:"controls",ref:"tSlidesControls"},null,512),[[c.vShow,t.isTextureSlides]])]),_:1},8,["modelValue"]),t.drawerOpen?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:"tab-button open",onClick:e[2]||(e[2]=(...f)=>a.toggleDrawer&&a.toggleDrawer(...f))},[c.createVNode(s,null,{default:c.withCtx(()=>[c.createVNode(p,{class:"el-icon-arrow-left"})]),_:1})]))],512)),[[c.vShow,t.material||t.isTextureSlides]])}const RE=f0(Bre,[["render",Fre],["__scopeId","data-v-efab44db"]]),NE=(t,e)=>{if(t){let n="";t.forEach(r=>{n=r.uuid,r.region&&(n=r.region.uuid+"/"+n),r&&r.getVisibility()&&e.push(n)})}return e},BE=(t,e)=>{let n="";t.isRegion&&(n=`__r${t.regionPath}`),t.isPrimitives&&(n=`${t.regionPath}/${t.label}`),e.push(n),t.children&&t.children.forEach(r=>BE(r,e))},T0=(t,e,n,r)=>{let o=t;const a=[];if(n&&(o=t.findChildFromPath(n)),o){const l=Array.isArray(e);let s=e;l||(s=[s]),s.forEach(h=>{const u=o.findObjectsWithGroupName(h,r);a.push(...u)})}return a},Xg=(t,e,n)=>{const r=t.findIndex(a=>a.uuid===e);let o;return r>-1&&(o=t[r],n&&t.splice(i,1)),o},zre=(t,e)=>{const n=[];if(t&&e&&e.length>0){const r={},o={},a=[t,...t.getChildRegions(!0)];let l,s,h;e.forEach(u=>{const d=u.split("/");h=d[0],l=Xg(a,h,!1),l&&(o[h]||(o[h]=l.getFullPath()),d[1]?(r[h]||(r[h]=l.getAllObjects(!1)),s=Xg(r[h],d[1],!0),s&&n.push(`${o[h]}/${s.groupName}`)):n.push(`__r/${o[h]}`))})}return n},Ure=t=>{if(t){const e=[];return t.forEach(r=>{r.isZincObject?e.push(r):r.isRegion&&e.push(...r.getAllObjects(!0))}),Object.values(e.reduce((r,o)=>({...r,[o.uuid]:o}),{}))}return[]},DE=(t,e)=>{const n={label:"Multiple selections",regionPath:"",objects:[]};if(e&&t){const r={},o=t.getRootRegion();e.length>0&&(n.regionPath=e[0].data.region,n.label=e[0].data.group),e.forEach(a=>{a.data.region.includes(n.regionPath)||(n.regionPath=""),n.label!==a.data.group&&(n.label="Multiple selections");const l=o.findChildFromPath(a.data.region);r[l.uuid]||(r[l.uuid]=l.getAllObjects(!1));const s=Xg(r[l.uuid],a.data.uuid);s&&n.objects.push(s)})}return n},jre=(t,e)=>{const n=t.label.toUpperCase(),r=e.label.toUpperCase();return n<r?-1:n>r?1:0},Gre={name:"TreeControls",components:{ElIconArrowLeft:cc,Checkbox:eE,CheckboxGroup:Qee,ColorPicker:lE,Loading:OE,Row:u0,Tree:HE},props:{showColourPicker:Boolean,isReady:Boolean},data:function(){return{treeData:[{label:"Root",regionPath:"",id:void 0,children:[]}],active:[],hover:[],myPopperClass:"hide-scaffold-colour-popup",drawerOpen:!0}},watch:{showColourPicker:{immediate:!0,handler:function(){this.showColourPicker?this.myPopperClass="showPicker":this.myPopperClass="hide-scaffold-colour-popup"}}},destroyed:function(){this.sortedPrimitiveGroups=void 0},methods:{addTreeItem:function(t,e){t.some(n=>n.label===e.label)||(t.push(e),t.sort((n,r)=>jre(n,r)),this.__nodeNumbers++,this.$nextTick(()=>{this.$refs.regionTree.setChecked(e.id,!0)}))},findOrCreateRegion:function(t,e,n){if(this.rootID===void 0&&this.$module&&this.$module.scene&&(this.treeData[0].id=this.$module.scene.getRootRegion().uuid,this.treeData[0].isRegion=!0),e.length>0){const r=[...e];let o=t.children.find(s=>s.label==r[0]);const a=n+"/"+e[0],l=this.$module.scene.getRootRegion().findChildFromPath(a);return o||(o={label:r[0],id:l.uuid,children:[],regionPath:a,isRegion:!0},this.addTreeItem(t.children,o)),r.shift(),this.findOrCreateRegion(o,r,a)}else return t},zincObjectAdded:function(t){const e=t.region;if(e){const n=e.getFullSeparatedPath(),r=this.findOrCreateRegion(this.treeData[0],n,"");if(t.groupName&&r){r.children||(r.children=[]);const o={label:t.groupName,id:e.uuid+"/"+t.uuid,isPrimitives:!0,regionPath:t.region.getFullPath(),isTextureSlides:!!t.isTextureSlides};this.addTreeItem(r.children,o)}}},checkChanged:function(t,e){const n=t.isRegion,r=t.isPrimitives,o=e.checkedKeys.includes(t.id),a=this.$module.scene.getRootRegion().findChildFromPath(t.regionPath);n&&(o?a.showAllPrimitives():a.hideAllPrimitives()),r&&a.findObjectsWithGroupName(t.label).forEach(s=>{s.setVisibility(o)})},updateActiveUI:function(t){this.active.length=0,NE(t,this.active)},changeActiveByPrimitives:function(t,e){t&&t.length>0?(this.updateActiveUI(t),this.$emit("object-selected",t,e)):this.removeActive(e),this.removeHover(e)},updateHoverUI:function(t){this.hover.length=0,NE(t,this.hover)},changeHoverByPrimitives:function(t,e){t&&t.length>0?(this.updateHoverUI(t),this.$emit("object-hovered",t,e)):this.removeHover(e)},changeActiveByNames:function(t,e,n){const r=this.$module.scene.getRootRegion(),o=T0(r,t,e,!0);this.changeActiveByPrimitives(o,n)},changeHoverByNames:function(t,e,n){const r=this.$module.scene.getRootRegion(),o=T0(r,t,e,!0);this.changeHoverByPrimitives(o,n)},changeActiveByNode:function(t,e){if(t.isPrimitives||t.isRegion){const n=!!t.isRegion,r=this.getZincObjectsFromNode(t,n);this.changeActiveByPrimitives(r,e)}},changeHoverByNode:function(t,e){if(t.isPrimitives){const n=this.getZincObjectsFromNode(t,!1);this.changeHoverByPrimitives(n,e)}},removeActive:function(t){this.active=[],this.$emit("object-selected",[],t)},removeHover:function(t){this.hover=[],this.$emit("object-hovered",[],t)},clear:function(){this.active.length=0,this.hover.length=0,this.__nodeNumbers=0,this.$refs.regionTree.updateKeyChildren(this.treeData[0].id,[]),this.treeData[0].children.length=0,this.treeData[0].id=void 0,this.$emit("object-selected",[])},getColour:function(t){if(t){let n=this.getZincObjectsFromNode(t,!1)[0];if(n){let r=n.getColourHex();if(r)return"#"+r}}return"#FFFFFF"},getZincObjectsFromNode:function(t,e){const n=this.$module.scene.getRootRegion();if(t.isPrimitives)return T0(n,t.label,t.regionPath,e);if(t.isRegion&&t.regionPath){let r=n.findChildFromPath(t.regionPath);if(r)return r.getAllObjects(e)}return[]},setModule:function(t){this.$module=t,this.__nodeNumbers=0,this.$module.scene.getRootRegion().getAllObjects(!0).forEach(n=>{this.zincObjectAdded(n)}),this.$module.addOrganPartAddedCallback(this.zincObjectAdded)},setColour:function(t,e){t&&t.isPrimitives&&this.getZincObjectsFromNode(t,!1).forEach(r=>{let o=e.replace("#","0x");r.setColourHex(o)})},viewAll:function(){this.$module.viewAll()},visibilityToggle:function(t,e){this.$module.changeOrganPartsVisibility(t,e),e==!1&&(this.activeRegion===t&&this.removeActive(!0),this.hoverRegion===t&&this.removeHover(!0))},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen,this.$emit("drawer-toggled",this.drawerOpen)},setTreeVisibilityWithFullPaths:function(t,e,n,r){let o=!1,a="";t.isRegion&&(a=`__r${t.regionPath}`),t.isPrimitives&&(a=`${t.regionPath}/${t.label}`);const l=e.indexOf(a);l>-1&&(o=!0,e.splice(l,1),n.push(t.id));const s=this.$module.scene.getRootRegion().findChildFromPath(t.regionPath);a&&a!=="__r"&&t.isPrimitives&&s.findObjectsWithGroupName(t.label).forEach(u=>u.setVisibility(o)),t.children&&t.children.forEach(h=>{this.setTreeVisibilityWithFullPaths(h,e,n,!0)})},checkAllKeys:function(){const t=[],e=[];BE(this.treeData[0],t),this.setTreeVisibilityWithFullPaths(this.treeData[0],t,e,!0),this.$refs.regionTree.setCheckedKeys(e)},getState:function(){let t=this.$refs.regionTree.getCheckedKeys();return t.length===this.__nodeNumbers?{checkAll:!0,version:"2.0"}:{checkedItems:zre(this.$module.scene.getRootRegion(),t),version:"2.0"}},setState:function(t){if(t){if(t.checkAll)this.checkAllKeys();else if(t.checkedItems){let e=[];t.version!=="2.0"?(e=t.checkedItems.map(r=>"/"+r),e.shift("__r/")):e.push(...t.checkedItems);const n=[];this.setTreeVisibilityWithFullPaths(this.treeData[0],e,n,!0),this.$refs.regionTree.setCheckedKeys(n)}}}}},Wre=t=>(c.pushScopeId("data-v-020944dd"),t=t(),c.popScopeId(),t),Zre={class:"traditional-container"},$re=Wre(()=>c.createElementVNode("div",{class:"regions-display-text"}," Regions ",-1)),qre={class:"tree-container"},Xre=["onClick","onMouseover"],Kre={key:1,class:"node-options"};function Jre(t,e,n,r,o,a){const l=_c,s=u0,h=lE,u=HE,d=cc,p=zr,f=Td;return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tree-controls",{open:t.drawerOpen,close:!t.drawerOpen}])},[c.createElementVNode("div",Zre,[c.createVNode(s,null,{default:c.withCtx(()=>[c.createVNode(l,{span:12},{default:c.withCtx(()=>[$re]),_:1})]),_:1}),c.createElementVNode("div",qre,[c.withDirectives((c.openBlock(),c.createBlock(u,{ref:"regionTree","node-key":"id","show-checkbox":"","element-loading-background":"rgba(0, 0, 0, 0.3)","check-strictly":!1,data:t.treeData[0].children,"expand-on-click-node":!1,"render-after-expand":!1,onCheck:a.checkChanged},{default:c.withCtx(({node:m,data:y})=>[c.createElementVNode("span",{class:c.normalizeClass(["region-tree-node",{activeItem:t.active.includes(y.id),hoverItem:t.hover.includes(y.id)}]),onClick:v=>a.changeActiveByNode(y,!0),onMouseover:v=>a.changeHoverByNode(y,!0)},[y.isPrimitives?(c.openBlock(),c.createBlock(h,{key:0,class:c.normalizeClass({"show-picker":n.showColourPicker}),"model-value":a.getColour(y),size:"small","popper-class":t.myPopperClass,onChange:v=>a.setColour(y,v),teleported:!1},null,8,["class","model-value","popper-class","onChange"])):c.createCommentVNode("",!0),c.createElementVNode("span",null,c.toDisplayString(m.label),1),y.isTextureSlides?(c.openBlock(),c.createElementBlock("span",Kre," (Texture) ")):c.createCommentVNode("",!0)],42,Xre)]),_:1},8,["data","onCheck"])),[[f,!n.isReady]])])]),c.createElementVNode("div",{class:c.normalizeClass(["drawer-button",{open:t.drawerOpen,close:!t.drawerOpen}]),onClick:e[0]||(e[0]=(...m)=>a.toggleDrawer&&a.toggleDrawer(...m))},[c.createVNode(p,null,{default:c.withCtx(()=>[c.createVNode(d)]),_:1})],2)],2)}const FE=f0(Gre,[["render",Jre],["__scopeId","data-v-020944dd"]]),As=(t,e,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=t==null?void 0:t(r);if(n===!1||!o)return e==null?void 0:e(r)};var zE;const Ai=typeof window<"u",Yre=t=>typeof t=="string",UE=()=>{},jE=Ai&&((zE=window==null?void 0:window.navigator)==null?void 0:zE.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function GE(t){return typeof t=="function"?t():c.unref(t)}function eie(t){return t}function Kg(t){return c.getCurrentScope()?(c.onScopeDispose(t),!0):!1}function tie(t,e=!0){c.getCurrentInstance()?c.onMounted(t):e?t():c.nextTick(t)}function D2(t){var e;const n=GE(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Jg=Ai?window:void 0;function F2(...t){let e,n,r,o;if(Yre(t[0])||Array.isArray(t[0])?([n,r,o]=t,e=Jg):[e,n,r,o]=t,!e)return UE;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],l=()=>{a.forEach(d=>d()),a.length=0},s=(d,p,f,m)=>(d.addEventListener(p,f,m),()=>d.removeEventListener(p,f,m)),h=c.watch(()=>[D2(e),GE(o)],([d,p])=>{l(),d&&a.push(...n.flatMap(f=>r.map(m=>s(d,f,m,p))))},{immediate:!0,flush:"post"}),u=()=>{h(),l()};return Kg(u),u}let WE=!1;function nie(t,e,n={}){const{window:r=Jg,ignore:o=[],capture:a=!0,detectIframe:l=!1}=n;if(!r)return;jE&&!WE&&(WE=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",UE)));let s=!0;const h=d=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(f=>f===d.target||d.composedPath().includes(f));{const f=D2(p);return f&&(d.target===f||d.composedPath().includes(f))}}),u=[F2(r,"click",d=>{const p=D2(t);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(s=!h(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:a}),F2(r,"pointerdown",d=>{const p=D2(t);p&&(s=!d.composedPath().includes(p)&&!h(d))},{passive:!0}),l&&F2(r,"blur",d=>{var p;const f=D2(t);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function rie(t,e=!1){const n=c.ref(),r=()=>n.value=!!t();return r(),tie(r,e),n}const ZE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$E="__vueuse_ssr_handlers__";ZE[$E]=ZE[$E]||{};var qE=Object.getOwnPropertySymbols,iie=Object.prototype.hasOwnProperty,oie=Object.prototype.propertyIsEnumerable,aie=(t,e)=>{var n={};for(var r in t)iie.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&qE)for(var r of qE(t))e.indexOf(r)<0&&oie.call(t,r)&&(n[r]=t[r]);return n};function Qd(t,e,n={}){const r=n,{window:o=Jg}=r,a=aie(r,["window"]);let l;const s=rie(()=>o&&"ResizeObserver"in o),h=()=>{l&&(l.disconnect(),l=void 0)},u=c.watch(()=>D2(t),p=>{h(),s.value&&o&&p&&(l=new ResizeObserver(e),l.observe(p,a))},{immediate:!0,flush:"post"}),d=()=>{h(),u()};return Kg(d),{isSupported:s,stop:d}}var XE;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(XE||(XE={}));var sie=Object.defineProperty,KE=Object.getOwnPropertySymbols,lie=Object.prototype.hasOwnProperty,cie=Object.prototype.propertyIsEnumerable,JE=(t,e,n)=>e in t?sie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uie=(t,e)=>{for(var n in e||(e={}))lie.call(e,n)&&JE(t,n,e[n]);if(KE)for(var n of KE(e))cie.call(e,n)&&JE(t,n,e[n]);return t};uie({linear:eie},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const hie=()=>Ai&&/firefox/i.test(window.navigator.userAgent),Yg=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Sc=()=>{},die=Object.prototype.hasOwnProperty,g4=(t,e)=>die.call(t,e),Q0=Array.isArray,m1=t=>typeof t=="function",Vi=t=>typeof t=="string",Qo=t=>t!==null&&typeof t=="object",pie=Object.prototype.toString,fie=t=>pie.call(t),ey=t=>fie(t).slice(8,-1),YE=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Tie=/-(\w)/g,Qie=YE(t=>t.replace(Tie,(e,n)=>n?n.toUpperCase():"")),mie=/\B([A-Z])/g,gie=YE(t=>t.replace(mie,"-$1").toLowerCase());var eH=typeof global=="object"&&global&&global.Object===Object&&global,yie=typeof self=="object"&&self&&self.Object===Object&&self,Ba=eH||yie||Function("return this")(),Da=Ba.Symbol,tH=Object.prototype,vie=tH.hasOwnProperty,bie=tH.toString,Cc=Da?Da.toStringTag:void 0;function xie(t){var e=vie.call(t,Cc),n=t[Cc];try{t[Cc]=void 0;var r=!0}catch{}var o=bie.call(t);return r&&(e?t[Cc]=n:delete t[Cc]),o}var _ie=Object.prototype,Lie=_ie.toString;function wie(t){return Lie.call(t)}var Mie="[object Null]",Sie="[object Undefined]",nH=Da?Da.toStringTag:void 0;function m0(t){return t==null?t===void 0?Sie:Mie:nH&&nH in Object(t)?xie(t):wie(t)}function g0(t){return t!=null&&typeof t=="object"}var Cie="[object Symbol]";function md(t){return typeof t=="symbol"||g0(t)&&m0(t)==Cie}function Eie(t,e){for(var n=-1,r=t==null?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var Fa=Array.isArray,Hie=1/0,rH=Da?Da.prototype:void 0,iH=rH?rH.toString:void 0;function oH(t){if(typeof t=="string")return t;if(Fa(t))return Eie(t,oH)+"";if(md(t))return iH?iH.call(t):"";var e=t+"";return e=="0"&&1/t==-Hie?"-0":e}var Aie=/\s/;function Vie(t){for(var e=t.length;e--&&Aie.test(t.charAt(e)););return e}var Oie=/^\s+/;function kie(t){return t&&t.slice(0,Vie(t)+1).replace(Oie,"")}function z2(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var aH=NaN,Pie=/^[-+]0x[0-9a-f]+$/i,Iie=/^0b[01]+$/i,Rie=/^0o[0-7]+$/i,Nie=parseInt;function ty(t){if(typeof t=="number")return t;if(md(t))return aH;if(z2(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=z2(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=kie(t);var n=Iie.test(t);return n||Rie.test(t)?Nie(t.slice(2),n?2:8):Pie.test(t)?aH:+t}var sH=1/0,Bie=17976931348623157e292;function Die(t){if(!t)return t===0?t:0;if(t=ty(t),t===sH||t===-sH){var e=t<0?-1:1;return e*Bie}return t===t?t:0}function Fie(t){var e=Die(t),n=e%1;return e===e?n?e-n:e:0}function lH(t){return t}var zie="[object AsyncFunction]",Uie="[object Function]",jie="[object GeneratorFunction]",Gie="[object Proxy]";function cH(t){if(!z2(t))return!1;var e=m0(t);return e==Uie||e==jie||e==zie||e==Gie}var ny=Ba["__core-js_shared__"],uH=function(){var t=/[^.]+$/.exec(ny&&ny.keys&&ny.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Wie(t){return!!uH&&uH in t}var Zie=Function.prototype,$ie=Zie.toString;function y4(t){if(t!=null){try{return $ie.call(t)}catch{}try{return t+""}catch{}}return""}var qie=/[\\^$.*+?()[\]{}|]/g,Xie=/^\[object .+?Constructor\]$/,Kie=Function.prototype,Jie=Object.prototype,Yie=Kie.toString,eoe=Jie.hasOwnProperty,toe=RegExp("^"+Yie.call(eoe).replace(qie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function noe(t){if(!z2(t)||Wie(t))return!1;var e=cH(t)?toe:Xie;return e.test(y4(t))}function roe(t,e){return t==null?void 0:t[e]}function v4(t,e){var n=roe(t,e);return noe(n)?n:void 0}var ry=v4(Ba,"WeakMap");function ioe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var ooe=800,aoe=16,soe=Date.now;function loe(t){var e=0,n=0;return function(){var r=soe(),o=aoe-(r-n);if(n=r,o>0){if(++e>=ooe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function coe(t){return function(){return t}}var gd=function(){try{var t=v4(Object,"defineProperty");return t({},"",{}),t}catch{}}(),uoe=gd?function(t,e){return gd(t,"toString",{configurable:!0,enumerable:!1,value:coe(e),writable:!0})}:lH,hoe=loe(uoe);function doe(t,e,n,r){for(var o=t.length,a=n+(r?1:-1);r?a--:++a<o;)if(e(t[a],a,t))return a;return-1}var poe=9007199254740991,foe=/^(?:0|[1-9]\d*)$/;function iy(t,e){var n=typeof t;return e=e??poe,!!e&&(n=="number"||n!="symbol"&&foe.test(t))&&t>-1&&t%1==0&&t<e}function Toe(t,e,n){e=="__proto__"&&gd?gd(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function oy(t,e){return t===e||t!==t&&e!==e}var Qoe=Object.prototype,moe=Qoe.hasOwnProperty;function goe(t,e,n){var r=t[e];(!(moe.call(t,e)&&oy(r,n))||n===void 0&&!(e in t))&&Toe(t,e,n)}var hH=Math.max;function yoe(t,e,n){return e=hH(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=hH(r.length-e,0),l=Array(a);++o<a;)l[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(l),ioe(t,this,s)}}var voe=9007199254740991;function ay(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=voe}function boe(t){return t!=null&&ay(t.length)&&!cH(t)}var xoe=Object.prototype;function _oe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||xoe;return t===n}function Loe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var woe="[object Arguments]";function dH(t){return g0(t)&&m0(t)==woe}var pH=Object.prototype,Moe=pH.hasOwnProperty,Soe=pH.propertyIsEnumerable,sy=dH(function(){return arguments}())?dH:function(t){return g0(t)&&Moe.call(t,"callee")&&!Soe.call(t,"callee")};function Coe(){return!1}var fH=typeof $r=="object"&&$r&&!$r.nodeType&&$r,TH=fH&&typeof module=="object"&&module&&!module.nodeType&&module,Eoe=TH&&TH.exports===fH,QH=Eoe?Ba.Buffer:void 0,Hoe=QH?QH.isBuffer:void 0,ly=Hoe||Coe,Aoe="[object Arguments]",Voe="[object Array]",Ooe="[object Boolean]",koe="[object Date]",Poe="[object Error]",Ioe="[object Function]",Roe="[object Map]",Noe="[object Number]",Boe="[object Object]",Doe="[object RegExp]",Foe="[object Set]",zoe="[object String]",Uoe="[object WeakMap]",joe="[object ArrayBuffer]",Goe="[object DataView]",Woe="[object Float32Array]",Zoe="[object Float64Array]",$oe="[object Int8Array]",qoe="[object Int16Array]",Xoe="[object Int32Array]",Koe="[object Uint8Array]",Joe="[object Uint8ClampedArray]",Yoe="[object Uint16Array]",e1e="[object Uint32Array]",Or={};Or[Woe]=Or[Zoe]=Or[$oe]=Or[qoe]=Or[Xoe]=Or[Koe]=Or[Joe]=Or[Yoe]=Or[e1e]=!0,Or[Aoe]=Or[Voe]=Or[joe]=Or[Ooe]=Or[Goe]=Or[koe]=Or[Poe]=Or[Ioe]=Or[Roe]=Or[Noe]=Or[Boe]=Or[Doe]=Or[Foe]=Or[zoe]=Or[Uoe]=!1;function t1e(t){return g0(t)&&ay(t.length)&&!!Or[m0(t)]}function n1e(t){return function(e){return t(e)}}var mH=typeof $r=="object"&&$r&&!$r.nodeType&&$r,Ec=mH&&typeof module=="object"&&module&&!module.nodeType&&module,r1e=Ec&&Ec.exports===mH,cy=r1e&&eH.process,gH=function(){try{var t=Ec&&Ec.require&&Ec.require("util").types;return t||cy&&cy.binding&&cy.binding("util")}catch{}}(),yH=gH&&gH.isTypedArray,vH=yH?n1e(yH):t1e,i1e=Object.prototype,o1e=i1e.hasOwnProperty;function a1e(t,e){var n=Fa(t),r=!n&&sy(t),o=!n&&!r&&ly(t),a=!n&&!r&&!o&&vH(t),l=n||r||o||a,s=l?Loe(t.length,String):[],h=s.length;for(var u in t)(e||o1e.call(t,u))&&!(l&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||iy(u,h)))&&s.push(u);return s}function s1e(t,e){return function(n){return t(e(n))}}var l1e=s1e(Object.keys,Object),c1e=Object.prototype,u1e=c1e.hasOwnProperty;function h1e(t){if(!_oe(t))return l1e(t);var e=[];for(var n in Object(t))u1e.call(t,n)&&n!="constructor"&&e.push(n);return e}function bH(t){return boe(t)?a1e(t):h1e(t)}var d1e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p1e=/^\w*$/;function uy(t,e){if(Fa(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||md(t)?!0:p1e.test(t)||!d1e.test(t)||e!=null&&t in Object(e)}var Hc=v4(Object,"create");function f1e(){this.__data__=Hc?Hc(null):{},this.size=0}function T1e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Q1e="__lodash_hash_undefined__",m1e=Object.prototype,g1e=m1e.hasOwnProperty;function y1e(t){var e=this.__data__;if(Hc){var n=e[t];return n===Q1e?void 0:n}return g1e.call(e,t)?e[t]:void 0}var v1e=Object.prototype,b1e=v1e.hasOwnProperty;function x1e(t){var e=this.__data__;return Hc?e[t]!==void 0:b1e.call(e,t)}var _1e="__lodash_hash_undefined__";function L1e(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Hc&&e===void 0?_1e:e,this}function b4(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}b4.prototype.clear=f1e,b4.prototype.delete=T1e,b4.prototype.get=y1e,b4.prototype.has=x1e,b4.prototype.set=L1e;function w1e(){this.__data__=[],this.size=0}function yd(t,e){for(var n=t.length;n--;)if(oy(t[n][0],e))return n;return-1}var M1e=Array.prototype,S1e=M1e.splice;function C1e(t){var e=this.__data__,n=yd(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():S1e.call(e,n,1),--this.size,!0}function E1e(t){var e=this.__data__,n=yd(e,t);return n<0?void 0:e[n][1]}function H1e(t){return yd(this.__data__,t)>-1}function A1e(t,e){var n=this.__data__,r=yd(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Vs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vs.prototype.clear=w1e,Vs.prototype.delete=C1e,Vs.prototype.get=E1e,Vs.prototype.has=H1e,Vs.prototype.set=A1e;var Ac=v4(Ba,"Map");function V1e(){this.size=0,this.__data__={hash:new b4,map:new(Ac||Vs),string:new b4}}function O1e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function vd(t,e){var n=t.__data__;return O1e(e)?n[typeof e=="string"?"string":"hash"]:n.map}function k1e(t){var e=vd(this,t).delete(t);return this.size-=e?1:0,e}function P1e(t){return vd(this,t).get(t)}function I1e(t){return vd(this,t).has(t)}function R1e(t,e){var n=vd(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Os(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Os.prototype.clear=V1e,Os.prototype.delete=k1e,Os.prototype.get=P1e,Os.prototype.has=I1e,Os.prototype.set=R1e;var N1e="Expected a function";function hy(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(N1e);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var l=t.apply(this,r);return n.cache=a.set(o,l)||a,l};return n.cache=new(hy.Cache||Os),n}hy.Cache=Os;var B1e=500;function D1e(t){var e=hy(t,function(r){return n.size===B1e&&n.clear(),r}),n=e.cache;return e}var F1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z1e=/\\(\\)?/g,U1e=D1e(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(F1e,function(n,r,o,a){e.push(o?a.replace(z1e,"$1"):r||n)}),e});function j1e(t){return t==null?"":oH(t)}function bd(t,e){return Fa(t)?t:uy(t,e)?[t]:U1e(j1e(t))}var G1e=1/0;function Vc(t){if(typeof t=="string"||md(t))return t;var e=t+"";return e=="0"&&1/t==-G1e?"-0":e}function dy(t,e){e=bd(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Vc(e[n++])];return n&&n==r?t:void 0}function g1(t,e,n){var r=t==null?void 0:dy(t,e);return r===void 0?n:r}function xH(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var _H=Da?Da.isConcatSpreadable:void 0;function W1e(t){return Fa(t)||sy(t)||!!(_H&&t&&t[_H])}function LH(t,e,n,r,o){var a=-1,l=t.length;for(n||(n=W1e),o||(o=[]);++a<l;){var s=t[a];e>0&&n(s)?e>1?LH(s,e-1,n,r,o):xH(o,s):r||(o[o.length]=s)}return o}function Z1e(t){var e=t==null?0:t.length;return e?LH(t,1):[]}function $1e(t){return hoe(yoe(t,void 0,Z1e),t+"")}function q1e(){this.__data__=new Vs,this.size=0}function X1e(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function K1e(t){return this.__data__.get(t)}function J1e(t){return this.__data__.has(t)}var Y1e=200;function eae(t,e){var n=this.__data__;if(n instanceof Vs){var r=n.__data__;if(!Ac||r.length<Y1e-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Os(r)}return n.set(t,e),this.size=n.size,this}function ks(t){var e=this.__data__=new Vs(t);this.size=e.size}ks.prototype.clear=q1e,ks.prototype.delete=X1e,ks.prototype.get=K1e,ks.prototype.has=J1e,ks.prototype.set=eae;function tae(t,e){for(var n=-1,r=t==null?0:t.length,o=0,a=[];++n<r;){var l=t[n];e(l,n,t)&&(a[o++]=l)}return a}function nae(){return[]}var rae=Object.prototype,iae=rae.propertyIsEnumerable,wH=Object.getOwnPropertySymbols,oae=wH?function(t){return t==null?[]:(t=Object(t),tae(wH(t),function(e){return iae.call(t,e)}))}:nae;const aae=oae;function sae(t,e,n){var r=e(t);return Fa(t)?r:xH(r,n(t))}function MH(t){return sae(t,bH,aae)}var py=v4(Ba,"DataView"),fy=v4(Ba,"Promise"),Ty=v4(Ba,"Set"),SH="[object Map]",lae="[object Object]",CH="[object Promise]",EH="[object Set]",HH="[object WeakMap]",AH="[object DataView]",cae=y4(py),uae=y4(Ac),hae=y4(fy),dae=y4(Ty),pae=y4(ry),x4=m0;(py&&x4(new py(new ArrayBuffer(1)))!=AH||Ac&&x4(new Ac)!=SH||fy&&x4(fy.resolve())!=CH||Ty&&x4(new Ty)!=EH||ry&&x4(new ry)!=HH)&&(x4=function(t){var e=m0(t),n=e==lae?t.constructor:void 0,r=n?y4(n):"";if(r)switch(r){case cae:return AH;case uae:return SH;case hae:return CH;case dae:return EH;case pae:return HH}return e});const VH=x4;var fae=Ba.Uint8Array;const OH=fae;var Tae="__lodash_hash_undefined__";function Qae(t){return this.__data__.set(t,Tae),this}function mae(t){return this.__data__.has(t)}function xd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Os;++e<n;)this.add(t[e])}xd.prototype.add=xd.prototype.push=Qae,xd.prototype.has=mae;function gae(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function yae(t,e){return t.has(e)}var vae=1,bae=2;function kH(t,e,n,r,o,a){var l=n&vae,s=t.length,h=e.length;if(s!=h&&!(l&&h>s))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var p=-1,f=!0,m=n&bae?new xd:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var y=t[p],v=e[p];if(r)var _=l?r(v,y,p,e,t,a):r(y,v,p,t,e,a);if(_!==void 0){if(_)continue;f=!1;break}if(m){if(!gae(e,function(x,L){if(!yae(m,L)&&(y===x||o(y,x,n,r,a)))return m.push(L)})){f=!1;break}}else if(!(y===v||o(y,v,n,r,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function xae(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function _ae(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Lae=1,wae=2,Mae="[object Boolean]",Sae="[object Date]",Cae="[object Error]",Eae="[object Map]",Hae="[object Number]",Aae="[object RegExp]",Vae="[object Set]",Oae="[object String]",kae="[object Symbol]",Pae="[object ArrayBuffer]",Iae="[object DataView]",PH=Da?Da.prototype:void 0,Qy=PH?PH.valueOf:void 0;function Rae(t,e,n,r,o,a,l){switch(n){case Iae:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Pae:return!(t.byteLength!=e.byteLength||!a(new OH(t),new OH(e)));case Mae:case Sae:case Hae:return oy(+t,+e);case Cae:return t.name==e.name&&t.message==e.message;case Aae:case Oae:return t==e+"";case Eae:var s=xae;case Vae:var h=r&Lae;if(s||(s=_ae),t.size!=e.size&&!h)return!1;var u=l.get(t);if(u)return u==e;r|=wae,l.set(t,e);var d=kH(s(t),s(e),r,o,a,l);return l.delete(t),d;case kae:if(Qy)return Qy.call(t)==Qy.call(e)}return!1}var Nae=1,Bae=Object.prototype,Dae=Bae.hasOwnProperty;function Fae(t,e,n,r,o,a){var l=n&Nae,s=MH(t),h=s.length,u=MH(e),d=u.length;if(h!=d&&!l)return!1;for(var p=h;p--;){var f=s[p];if(!(l?f in e:Dae.call(e,f)))return!1}var m=a.get(t),y=a.get(e);if(m&&y)return m==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var _=l;++p<h;){f=s[p];var x=t[f],L=e[f];if(r)var S=l?r(L,x,f,e,t,a):r(x,L,f,t,e,a);if(!(S===void 0?x===L||o(x,L,n,r,a):S)){v=!1;break}_||(_=f=="constructor")}if(v&&!_){var C=t.constructor,A=e.constructor;C!=A&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof A=="function"&&A instanceof A)&&(v=!1)}return a.delete(t),a.delete(e),v}var zae=1,IH="[object Arguments]",RH="[object Array]",_d="[object Object]",Uae=Object.prototype,NH=Uae.hasOwnProperty;function jae(t,e,n,r,o,a){var l=Fa(t),s=Fa(e),h=l?RH:VH(t),u=s?RH:VH(e);h=h==IH?_d:h,u=u==IH?_d:u;var d=h==_d,p=u==_d,f=h==u;if(f&&ly(t)){if(!ly(e))return!1;l=!0,d=!1}if(f&&!d)return a||(a=new ks),l||vH(t)?kH(t,e,n,r,o,a):Rae(t,e,h,n,r,o,a);if(!(n&zae)){var m=d&&NH.call(t,"__wrapped__"),y=p&&NH.call(e,"__wrapped__");if(m||y){var v=m?t.value():t,_=y?e.value():e;return a||(a=new ks),o(v,_,n,r,a)}}return f?(a||(a=new ks),Fae(t,e,n,r,o,a)):!1}function Ld(t,e,n,r,o){return t===e?!0:t==null||e==null||!g0(t)&&!g0(e)?t!==t&&e!==e:jae(t,e,n,r,Ld,o)}var Gae=1,Wae=2;function Zae(t,e,n,r){var o=n.length,a=o,l=!r;if(t==null)return!a;for(t=Object(t);o--;){var s=n[o];if(l&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<a;){s=n[o];var h=s[0],u=t[h],d=s[1];if(l&&s[2]){if(u===void 0&&!(h in t))return!1}else{var p=new ks;if(r)var f=r(u,d,h,t,e,p);if(!(f===void 0?Ld(d,u,Gae|Wae,r,p):f))return!1}}return!0}function BH(t){return t===t&&!z2(t)}function $ae(t){for(var e=bH(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,BH(o)]}return e}function DH(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function qae(t){var e=$ae(t);return e.length==1&&e[0][2]?DH(e[0][0],e[0][1]):function(n){return n===t||Zae(n,t,e)}}function Xae(t,e){return t!=null&&e in Object(t)}function Kae(t,e,n){e=bd(e,t);for(var r=-1,o=e.length,a=!1;++r<o;){var l=Vc(e[r]);if(!(a=t!=null&&n(t,l)))break;t=t[l]}return a||++r!=o?a:(o=t==null?0:t.length,!!o&&ay(o)&&iy(l,o)&&(Fa(t)||sy(t)))}function FH(t,e){return t!=null&&Kae(t,e,Xae)}var Jae=1,Yae=2;function ese(t,e){return uy(t)&&BH(e)?DH(Vc(t),e):function(n){var r=g1(n,t);return r===void 0&&r===e?FH(n,t):Ld(e,r,Jae|Yae)}}function tse(t){return function(e){return e==null?void 0:e[t]}}function nse(t){return function(e){return dy(e,t)}}function rse(t){return uy(t)?tse(Vc(t)):nse(t)}function ise(t){return typeof t=="function"?t:t==null?lH:typeof t=="object"?Fa(t)?ese(t[0],t[1]):qae(t):rse(t)}var my=function(){return Ba.Date.now()},ose="Expected a function",ase=Math.max,sse=Math.min;function gy(t,e,n){var r,o,a,l,s,h,u=0,d=!1,p=!1,f=!0;if(typeof t!="function")throw new TypeError(ose);e=ty(e)||0,z2(n)&&(d=!!n.leading,p="maxWait"in n,a=p?ase(ty(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f);function m(H){var k=r,B=o;return r=o=void 0,u=H,l=t.apply(B,k),l}function y(H){return u=H,s=setTimeout(x,e),d?m(H):l}function v(H){var k=H-h,B=H-u,D=e-k;return p?sse(D,a-B):D}function _(H){var k=H-h,B=H-u;return h===void 0||k>=e||k<0||p&&B>=a}function x(){var H=my();if(_(H))return L(H);s=setTimeout(x,v(H))}function L(H){return s=void 0,f&&r?m(H):(r=o=void 0,l)}function S(){s!==void 0&&clearTimeout(s),u=0,r=h=o=s=void 0}function C(){return s===void 0?l:L(my())}function A(){var H=my(),k=_(H);if(r=arguments,o=this,h=H,k){if(s===void 0)return y(h);if(p)return clearTimeout(s),s=setTimeout(x,e),m(h)}return s===void 0&&(s=setTimeout(x,e)),l}return A.cancel=S,A.flush=C,A}var lse=Math.max,cse=Math.min;function use(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=Fie(n),o=n<0?lse(r+o,0):cse(o,r-1)),doe(t,ise(e),o,!0)}function wd(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}function yy(t,e){return Ld(t,e)}function U2(t){return t==null}function hse(t){return t===void 0}function dse(t,e,n,r){if(!z2(t))return t;e=bd(e,t);for(var o=-1,a=e.length,l=a-1,s=t;s!=null&&++o<a;){var h=Vc(e[o]),u=n;if(h==="__proto__"||h==="constructor"||h==="prototype")return t;if(o!=l){var d=s[h];u=r?r(d,h,s):void 0,u===void 0&&(u=z2(d)?d:iy(e[o+1])?[]:{})}goe(s,h,u),s=s[h]}return t}function pse(t,e,n){for(var r=-1,o=e.length,a={};++r<o;){var l=e[r],s=dy(t,l);n(s,l)&&dse(a,bd(l,t),s)}return a}function fse(t,e){return pse(t,e,function(n,r){return FH(t,r)})}var Tse=$1e(function(t,e){return t==null?{}:fse(t,e)});const Oc=t=>t===void 0,j2=t=>typeof t=="boolean",Oi=t=>typeof t=="number",kc=t=>typeof Element>"u"?!1:t instanceof Element,Qse=t=>Vi(t)?!Number.isNaN(Number(t)):!1,mse=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),zH=t=>Object.keys(t);class UH extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function gse(t,e){throw new UH(`[${t}] ${e}`)}function ki(t,e){if(process.env.NODE_ENV!=="production"){const n=Vi(t)?new UH(`[${t}] ${e}`):t;console.warn(n)}}const yse="utils/dom/style",jH=(t="")=>t.split(" ").filter(e=>!!e.trim()),vy=(t,e)=>{!t||!e.trim()||t.classList.add(...jH(e))},_4=(t,e)=>{!t||!e.trim()||t.classList.remove(...jH(e))},Pc=(t,e)=>{var n;if(!Ai||!t||!e)return"";let r=Qie(e);r==="float"&&(r="cssFloat");try{const o=t.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return a?a[r]:""}catch{return t.style[r]}};function y0(t,e="px"){if(!t)return"";if(Oi(t)||Qse(t))return`${t}${e}`;if(Vi(t))return t;ki(yse,"binding value must be a string or number")}function vse(t,e){if(!Ai)return;if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r!==null&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const o=e.offsetTop+n.reduce((h,u)=>h+u.offsetTop,0),a=o+e.offsetHeight,l=t.scrollTop,s=l+t.clientHeight;o<l?t.scrollTop=o:a>s&&(t.scrollTop=a-t.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var bse=c.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),v0=bse,xse=c.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Md=xse,_se=c.defineComponent({name:"CaretRight",__name:"caret-right",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Lse=_se,wse=c.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),c.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Mse=wse,Sse=c.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),by=Sse,Cse=c.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ic=Cse,Ese=c.defineComponent({name:"Edit",__name:"edit",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),c.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),GH=Ese,Hse=c.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),c.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Ase=Hse,Vse=c.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),xy=Vse,Ose=c.defineComponent({name:"Notebook",__name:"notebook",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),c.createElementVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),kse=Ose,Pse=c.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ise=Pse,Rse=c.defineComponent({name:"Warning",__name:"warning",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),WH=Rse;const ZH="__epPropKey",Pn=t=>t,Nse=t=>Qo(t)&&!!t[ZH],Sd=(t,e)=>{if(!Qo(t)||Nse(t))return t;const{values:n,required:r,default:o,type:a,validator:l}=t,s={type:a,required:!!r,validator:n||l?h=>{let u=!1,d=[];if(n&&(d=Array.from(n),g4(t,"default")&&d.push(o),u||(u=d.includes(h))),l&&(u||(u=l(h))),!u&&d.length>0){const p=[...new Set(d)].map(f=>JSON.stringify(f)).join(", ");c.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${p}], got value ${JSON.stringify(h)}.`)}return u}:void 0,[ZH]:!0};return g4(t,"default")&&(s.default=o),s},dr=t=>wd(Object.entries(t).map(([e,n])=>[e,Sd(n,e)])),G2=Pn([String,Object,Function]),$H={validating:xy,success:Mse,error:by},Vo=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},Bse=(t,e)=>(t.install=n=>{n.directive(e,t)},t),ra=t=>(t.install=Sc,t),mo={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},li="update:modelValue",Cd="change",_y=["","default","small","large"],Dse={large:40,default:32,small:24},Fse=t=>Dse[t||"default"],zse=t=>["",..._y].includes(t),qH=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),b0=t=>t,Use=["class","style"],jse=/^on[A-Z]/,Gse=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=c.computed(()=>((n==null?void 0:n.value)||[]).concat(Use)),o=c.getCurrentInstance();return o?c.computed(()=>{var a;return wd(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([l])=>!r.value.includes(l)&&!(e&&jse.test(l))))}):(ki("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),c.computed(()=>({})))},XH=({from:t,replacement:e,scope:n,version:r,ref:o,type:a="API"},l)=>{c.watch(()=>c.unref(l),s=>{s&&ki(n,`[${a}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
|
|
27
|
+
`,oJ=["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 aJ(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),o=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:oJ.map(l=>`${l}:${e.getPropertyValue(l)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function yC(t,e=1,n){var r;ta||(ta=document.createElement("textarea"),document.body.appendChild(ta));const{paddingSize:o,borderSize:a,boxSizing:l,contextStyle:s}=aJ(t);ta.setAttribute("style",`${s};${iJ}`),ta.value=t.value||t.placeholder||"";let h=ta.scrollHeight;const u={};l==="border-box"?h=h+a:l==="content-box"&&(h=h-o),ta.value="";const d=ta.scrollHeight-o;if(hr(e)){let p=d*e;l==="border-box"&&(p=p+o+a),h=Math.max(p,h),u.minHeight=`${p}px`}if(hr(n)){let p=d*n;l==="border-box"&&(p=p+o+a),h=Math.min(p,h)}return u.height=`${h}px`,(r=ta.parentNode)==null||r.removeChild(ta),ta=void 0,u}const sJ=Wn({id:{type:String,default:void 0},size:Ss,disabled:Boolean,modelValue:{type:gn([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:gn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Ms},prefixIcon:{type:Ms},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:gn([Object,Array,String]),default:()=>V2({})},autofocus:{type:Boolean,default:!1}}),lJ={[rr]:t=>si(t),input:t=>si(t),change:t=>si(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},cJ=["role"],uJ=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],hJ=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],dJ=c.defineComponent({name:"ElInput",inheritAttrs:!1}),pJ=c.defineComponent({...dJ,props:sJ,emits:lJ,setup(t,{expose:e,emit:n}){const r=t,o=c.useAttrs(),a=c.useSlots(),l=c.computed(()=>{const Je={};return r.containerRole==="combobox"&&(Je["aria-haspopup"]=o["aria-haspopup"],Je["aria-owns"]=o["aria-owns"],Je["aria-expanded"]=o["aria-expanded"]),Je}),s=c.computed(()=>[r.type==="textarea"?_.b():v.b(),v.m(m.value),v.is("disabled",y.value),v.is("exceed",Ae.value),{[v.b("group")]:a.prepend||a.append,[v.bm("group","append")]:a.append,[v.bm("group","prepend")]:a.prepend,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:ee.value&&oe.value},o.class]),h=c.computed(()=>[v.e("wrapper"),v.is("focus",z.value)]),u=oX({excludeKeys:c.computed(()=>Object.keys(l.value))}),{form:d,formItem:p}=Es(),{inputId:f}=a0(r,{formItemContext:p}),m=Cs(),y=o0(),v=Ln("input"),_=Ln("textarea"),x=c.shallowRef(),L=c.shallowRef(),S=c.ref(!1),C=c.ref(!1),A=c.ref(!1),H=c.ref(),k=c.shallowRef(r.inputStyle),B=c.computed(()=>x.value||L.value),{wrapperRef:D,isFocused:z,handleFocus:q,handleBlur:F}=vg(B,{afterBlur(){var Je;r.validateEvent&&((Je=p==null?void 0:p.validate)==null||Je.call(p,"blur").catch(et=>Fr(et)))}}),Z=c.computed(()=>{var Je;return(Je=d==null?void 0:d.statusIcon)!=null?Je:!1}),K=c.computed(()=>(p==null?void 0:p.validateState)||""),X=c.computed(()=>K.value&&HS[K.value]),te=c.computed(()=>A.value?Yq:Zq),J=c.computed(()=>[o.style]),he=c.computed(()=>[r.inputStyle,k.value,{resize:r.resize}]),xe=c.computed(()=>d1(r.modelValue)?"":String(r.modelValue)),ee=c.computed(()=>r.clearable&&!y.value&&!r.readonly&&!!xe.value&&(z.value||S.value)),oe=c.computed(()=>r.showPassword&&!y.value&&!r.readonly&&!!xe.value&&(!!xe.value||z.value)),de=c.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!y.value&&!r.readonly&&!r.showPassword),fe=c.computed(()=>xe.value.length),Ae=c.computed(()=>!!de.value&&fe.value>Number(r.maxlength)),Se=c.computed(()=>!!a.suffix||!!r.suffixIcon||ee.value||r.showPassword||de.value||!!K.value&&Z.value),[Qe,Le]=ZK(x);vs(L,Je=>{if(me(),!de.value||r.resize!=="both")return;const et=Je[0],{width:Xe}=et.contentRect;H.value={right:`calc(100% - ${Xe+15+6}px)`}});const Ce=()=>{const{type:Je,autosize:et}=r;if(!(!Dr||Je!=="textarea"||!L.value))if(et){const Xe=Yi(et)?et.minRows:void 0,Lt=Yi(et)?et.maxRows:void 0,vt=yC(L.value,Xe,Lt);k.value={overflowY:"hidden",...vt},c.nextTick(()=>{L.value.offsetHeight,k.value=vt})}else k.value={minHeight:yC(L.value).minHeight}},me=(Je=>{let et=!1;return()=>{var Xe;if(et||!r.autosize)return;((Xe=L.value)==null?void 0:Xe.offsetParent)===null||(Je(),et=!0)}})(Ce),Ne=()=>{const Je=B.value,et=r.formatter?r.formatter(xe.value):xe.value;!Je||Je.value===et||(Je.value=et)},Ie=async Je=>{Qe();let{value:et}=Je.target;if(r.formatter&&(et=r.parser?r.parser(et):et),!C.value){if(et===xe.value){Ne();return}n(rr,et),n("input",et),await c.nextTick(),Ne(),Le()}},Ke=Je=>{n("change",Je.target.value)},Ye=Je=>{n("compositionstart",Je),C.value=!0},ht=Je=>{var et;n("compositionupdate",Je);const Xe=(et=Je.target)==null?void 0:et.value,Lt=Xe[Xe.length-1]||"";C.value=!VS(Lt)},dt=Je=>{n("compositionend",Je),C.value&&(C.value=!1,Ie(Je))},Ee=()=>{A.value=!A.value,ye()},ye=async()=>{var Je;await c.nextTick(),(Je=B.value)==null||Je.focus()},it=()=>{var Je;return(Je=B.value)==null?void 0:Je.blur()},Ve=Je=>{S.value=!1,n("mouseleave",Je)},yt=Je=>{S.value=!0,n("mouseenter",Je)},bt=Je=>{n("keydown",Je)},_t=()=>{var Je;(Je=B.value)==null||Je.select()},nt=()=>{n(rr,""),n("change",""),n("clear"),n("input","")};return c.watch(()=>r.modelValue,()=>{var Je;c.nextTick(()=>Ce()),r.validateEvent&&((Je=p==null?void 0:p.validate)==null||Je.call(p,"change").catch(et=>Fr(et)))}),c.watch(xe,()=>Ne()),c.watch(()=>r.type,async()=>{await c.nextTick(),Ne(),Ce()}),c.onMounted(()=>{!r.formatter&&r.parser&&Fr("ElInput","If you set the parser, you also need to set the formatter."),Ne(),c.nextTick(Ce)}),e({input:x,textarea:L,ref:B,textareaStyle:he,autosize:c.toRef(r,"autosize"),focus:ye,blur:it,select:_t,clear:nt,resizeTextarea:Ce}),(Je,et)=>c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps(c.unref(l),{class:c.unref(s),style:c.unref(J),role:Je.containerRole,onMouseenter:yt,onMouseleave:Ve}),[c.createCommentVNode(" input "),Je.type!=="textarea"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createCommentVNode(" prepend slot "),Je.$slots.prepend?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(v).be("group","prepend"))},[c.renderSlot(Je.$slots,"prepend")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref_key:"wrapperRef",ref:D,class:c.normalizeClass(c.unref(h))},[c.createCommentVNode(" prefix slot "),Je.$slots.prefix||Je.prefixIcon?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(v).e("prefix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v).e("prefix-inner"))},[c.renderSlot(Je.$slots,"prefix"),Je.prefixIcon?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(v).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(Je.prefixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("input",c.mergeProps({id:c.unref(f),ref_key:"input",ref:x,class:c.unref(v).e("inner")},c.unref(u),{minlength:Je.minlength,maxlength:Je.maxlength,type:Je.showPassword?A.value?"text":"password":Je.type,disabled:c.unref(y),readonly:Je.readonly,autocomplete:Je.autocomplete,tabindex:Je.tabindex,"aria-label":Je.label,placeholder:Je.placeholder,style:Je.inputStyle,form:Je.form,autofocus:Je.autofocus,onCompositionstart:Ye,onCompositionupdate:ht,onCompositionend:dt,onInput:Ie,onFocus:et[0]||(et[0]=(...Xe)=>c.unref(q)&&c.unref(q)(...Xe)),onBlur:et[1]||(et[1]=(...Xe)=>c.unref(F)&&c.unref(F)(...Xe)),onChange:Ke,onKeydown:bt}),null,16,uJ),c.createCommentVNode(" suffix slot "),c.unref(Se)?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(c.unref(v).e("suffix"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v).e("suffix-inner"))},[!c.unref(ee)||!c.unref(oe)||!c.unref(de)?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.renderSlot(Je.$slots,"suffix"),Je.suffixIcon?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(v).e("icon"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(Je.suffixIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],64)):c.createCommentVNode("v-if",!0),c.unref(ee)?(c.openBlock(),c.createBlock(c.unref(zr),{key:1,class:c.normalizeClass([c.unref(v).e("icon"),c.unref(v).e("clear")]),onMousedown:c.withModifiers(c.unref(bs),["prevent"]),onClick:nt},{default:c.withCtx(()=>[c.createVNode(c.unref(rg))]),_:1},8,["class","onMousedown"])):c.createCommentVNode("v-if",!0),c.unref(oe)?(c.openBlock(),c.createBlock(c.unref(zr),{key:2,class:c.normalizeClass([c.unref(v).e("icon"),c.unref(v).e("password")]),onClick:Ee},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(te))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),c.unref(de)?(c.openBlock(),c.createElementBlock("span",{key:3,class:c.normalizeClass(c.unref(v).e("count"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v).e("count-inner"))},c.toDisplayString(c.unref(fe))+" / "+c.toDisplayString(Je.maxlength),3)],2)):c.createCommentVNode("v-if",!0),c.unref(K)&&c.unref(X)&&c.unref(Z)?(c.openBlock(),c.createBlock(c.unref(zr),{key:4,class:c.normalizeClass([c.unref(v).e("icon"),c.unref(v).e("validateIcon"),c.unref(v).is("loading",c.unref(K)==="validating")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(X))))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)):c.createCommentVNode("v-if",!0)],2),c.createCommentVNode(" append slot "),Je.$slots.append?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(c.unref(v).be("group","append"))},[c.renderSlot(Je.$slots,"append")],2)):c.createCommentVNode("v-if",!0)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createCommentVNode(" textarea "),c.createElementVNode("textarea",c.mergeProps({id:c.unref(f),ref_key:"textarea",ref:L,class:c.unref(_).e("inner")},c.unref(u),{tabindex:Je.tabindex,disabled:c.unref(y),readonly:Je.readonly,autocomplete:Je.autocomplete,style:c.unref(he),"aria-label":Je.label,placeholder:Je.placeholder,form:Je.form,autofocus:Je.autofocus,onCompositionstart:Ye,onCompositionupdate:ht,onCompositionend:dt,onInput:Ie,onFocus:et[2]||(et[2]=(...Xe)=>c.unref(q)&&c.unref(q)(...Xe)),onBlur:et[3]||(et[3]=(...Xe)=>c.unref(F)&&c.unref(F)(...Xe)),onChange:Ke,onKeydown:bt}),null,16,hJ),c.unref(de)?(c.openBlock(),c.createElementBlock("span",{key:0,style:c.normalizeStyle(H.value),class:c.normalizeClass(c.unref(v).e("count"))},c.toDisplayString(c.unref(fe))+" / "+c.toDisplayString(Je.maxlength),7)):c.createCommentVNode("v-if",!0)],64))],16,cJ)),[[c.vShow,Je.type!=="hidden"]])}});var fJ=En(pJ,[["__file","input.vue"]]);const xg=Ui(fJ),s0=4,TJ={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},QJ=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),vC=Symbol("scrollbarContextKey"),mJ=Wn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),gJ="Thumb";var bC=En(c.defineComponent({__name:"thumb",props:mJ,setup(t){const e=t,n=c.inject(vC),r=Ln("scrollbar");n||s4(gJ,"can not inject scrollbar context");const o=c.ref(),a=c.ref(),l=c.ref({}),s=c.ref(!1);let h=!1,u=!1,d=Dr?document.onselectstart:null;const p=c.computed(()=>TJ[e.vertical?"vertical":"horizontal"]),f=c.computed(()=>QJ({size:e.size,move:e.move,bar:p.value})),m=c.computed(()=>o.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/e.ratio/a.value[p.value.offset]),y=H=>{var k;if(H.stopPropagation(),H.ctrlKey||[1,2].includes(H.button))return;(k=window.getSelection())==null||k.removeAllRanges(),_(H);const B=H.currentTarget;B&&(l.value[p.value.axis]=B[p.value.offset]-(H[p.value.client]-B.getBoundingClientRect()[p.value.direction]))},v=H=>{if(!a.value||!o.value||!n.wrapElement)return;const k=Math.abs(H.target.getBoundingClientRect()[p.value.direction]-H[p.value.client]),B=a.value[p.value.offset]/2,D=(k-B)*100*m.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=D*n.wrapElement[p.value.scrollSize]/100},_=H=>{H.stopImmediatePropagation(),h=!0,document.addEventListener("mousemove",x),document.addEventListener("mouseup",L),d=document.onselectstart,document.onselectstart=()=>!1},x=H=>{if(!o.value||!a.value||h===!1)return;const k=l.value[p.value.axis];if(!k)return;const B=(o.value.getBoundingClientRect()[p.value.direction]-H[p.value.client])*-1,D=a.value[p.value.offset]-k,z=(B-D)*100*m.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=z*n.wrapElement[p.value.scrollSize]/100},L=()=>{h=!1,l.value[p.value.axis]=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",L),A(),u&&(s.value=!1)},S=()=>{u=!1,s.value=!!e.size},C=()=>{u=!0,s.value=h};c.onBeforeUnmount(()=>{A(),document.removeEventListener("mouseup",L)});const A=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return k1(c.toRef(n,"scrollbarElement"),"mousemove",S),k1(c.toRef(n,"scrollbarElement"),"mouseleave",C),(H,k)=>(c.openBlock(),c.createBlock(c.Transition,{name:c.unref(r).b("fade"),persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{ref_key:"instance",ref:o,class:c.normalizeClass([c.unref(r).e("bar"),c.unref(r).is(c.unref(p).key)]),onMousedown:v},[c.createElementVNode("div",{ref_key:"thumb",ref:a,class:c.normalizeClass(c.unref(r).e("thumb")),style:c.normalizeStyle(c.unref(f)),onMousedown:y},null,38)],34),[[c.vShow,H.always||s.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const yJ=Wn({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var vJ=En(c.defineComponent({__name:"bar",props:yJ,setup(t,{expose:e}){const n=t,r=c.ref(0),o=c.ref(0);return e({handleScroll:l=>{if(l){const s=l.offsetHeight-s0,h=l.offsetWidth-s0;o.value=l.scrollTop*100/s*n.ratioY,r.value=l.scrollLeft*100/h*n.ratioX}}}),(l,s)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(bC,{move:r.value,ratio:l.ratioX,size:l.width,always:l.always},null,8,["move","ratio","size","always"]),c.createVNode(bC,{move:o.value,ratio:l.ratioY,size:l.height,vertical:"",always:l.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const bJ=Wn({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:gn([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),xJ={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(hr)},_g="ElScrollbar",_J=c.defineComponent({name:_g}),LJ=c.defineComponent({..._J,props:bJ,emits:xJ,setup(t,{expose:e,emit:n}){const r=t,o=Ln("scrollbar");let a,l;const s=c.ref(),h=c.ref(),u=c.ref(),d=c.ref("0"),p=c.ref("0"),f=c.ref(),m=c.ref(1),y=c.ref(1),v=c.computed(()=>{const k={};return r.height&&(k.height=A2(r.height)),r.maxHeight&&(k.maxHeight=A2(r.maxHeight)),[r.wrapStyle,k]}),_=c.computed(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),x=c.computed(()=>[o.e("view"),r.viewClass]),L=()=>{var k;h.value&&((k=f.value)==null||k.handleScroll(h.value),n("scroll",{scrollTop:h.value.scrollTop,scrollLeft:h.value.scrollLeft}))};function S(k,B){Yi(k)?h.value.scrollTo(k):hr(k)&&hr(B)&&h.value.scrollTo(k,B)}const C=k=>{if(!hr(k)){Fr(_g,"value must be a number");return}h.value.scrollTop=k},A=k=>{if(!hr(k)){Fr(_g,"value must be a number");return}h.value.scrollLeft=k},H=()=>{if(!h.value)return;const k=h.value.offsetHeight-s0,B=h.value.offsetWidth-s0,D=k**2/h.value.scrollHeight,z=B**2/h.value.scrollWidth,q=Math.max(D,r.minSize),F=Math.max(z,r.minSize);m.value=D/(k-D)/(q/(k-q)),y.value=z/(B-z)/(F/(B-F)),p.value=q+s0<k?`${q}px`:"",d.value=F+s0<B?`${F}px`:""};return c.watch(()=>r.noresize,k=>{k?(a==null||a(),l==null||l()):({stop:a}=vs(u,H),l=k1("resize",H))},{immediate:!0}),c.watch(()=>[r.maxHeight,r.height],()=>{r.native||c.nextTick(()=>{var k;H(),h.value&&((k=f.value)==null||k.handleScroll(h.value))})}),c.provide(vC,c.reactive({scrollbarElement:s,wrapElement:h})),c.onMounted(()=>{r.native||c.nextTick(()=>{H()})}),c.onUpdated(()=>H()),e({wrapRef:h,update:H,scrollTo:S,setScrollTop:C,setScrollLeft:A,handleScroll:L}),(k,B)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"scrollbarRef",ref:s,class:c.normalizeClass(c.unref(o).b())},[c.createElementVNode("div",{ref_key:"wrapRef",ref:h,class:c.normalizeClass(c.unref(_)),style:c.normalizeStyle(c.unref(v)),onScroll:L},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(k.tag),{id:k.id,ref_key:"resizeRef",ref:u,class:c.normalizeClass(c.unref(x)),style:c.normalizeStyle(k.viewStyle),role:k.role,"aria-label":k.ariaLabel,"aria-orientation":k.ariaOrientation},{default:c.withCtx(()=>[c.renderSlot(k.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),k.native?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(vJ,{key:0,ref_key:"barRef",ref:f,height:p.value,width:d.value,always:k.always,"ratio-x":y.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var wJ=En(LJ,[["__file","scrollbar.vue"]]);const MJ=Ui(wJ),Lg=Symbol("popper"),xC=Symbol("popperContent"),_C=Wn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),SJ=c.defineComponent({name:"ElPopper",inheritAttrs:!1}),CJ=c.defineComponent({...SJ,props:_C,setup(t,{expose:e}){const n=t,r=c.ref(),o=c.ref(),a=c.ref(),l=c.ref(),s=c.computed(()=>n.role),h={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:l,role:s};return e(h),c.provide(Lg,h),(u,d)=>c.renderSlot(u.$slots,"default")}});var EJ=En(CJ,[["__file","popper.vue"]]);const LC=Wn({arrowOffset:{type:Number,default:5}}),HJ=c.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),AJ=c.defineComponent({...HJ,props:LC,setup(t,{expose:e}){const n=t,r=Ln("popper"),{arrowOffset:o,arrowRef:a,arrowStyle:l}=c.inject(xC,void 0);return c.watch(()=>n.arrowOffset,s=>{o.value=s}),c.onBeforeUnmount(()=>{a.value=void 0}),e({arrowRef:a}),(s,h)=>(c.openBlock(),c.createElementBlock("span",{ref_key:"arrowRef",ref:a,class:c.normalizeClass(c.unref(r).e("arrow")),style:c.normalizeStyle(c.unref(l)),"data-popper-arrow":""},null,6))}});var VJ=En(AJ,[["__file","arrow.vue"]]);const wg="ElOnlyChild",OJ=c.defineComponent({name:wg,setup(t,{slots:e,attrs:n}){var r;const o=c.inject(pC),a=WK((r=o==null?void 0:o.setForwardRef)!=null?r:bs);return()=>{var l;const s=(l=e.default)==null?void 0:l.call(e,n);if(!s)return null;if(s.length>1)return Fr(wg,"requires exact only one valid child."),null;const h=wC(s);return h?c.withDirectives(c.cloneVNode(h,n),[[a]]):(Fr(wg,"no valid child node found"),null)}}});function wC(t){if(!t)return null;const e=t;for(const n of e){if(Yi(n))switch(n.type){case c.Comment:continue;case c.Text:case"svg":return MC(n);case c.Fragment:return wC(n.children);default:return n}return MC(n)}return null}function MC(t){const e=Ln("only-child");return c.createVNode("span",{class:e.e("content")},[t])}const SC=Wn({virtualRef:{type:gn(Object)},virtualTriggering:Boolean,onMouseenter:{type:gn(Function)},onMouseleave:{type:gn(Function)},onClick:{type:gn(Function)},onKeydown:{type:gn(Function)},onFocus:{type:gn(Function)},onBlur:{type:gn(Function)},onContextmenu:{type:gn(Function)},id:String,open:Boolean}),kJ=c.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),PJ=c.defineComponent({...kJ,props:SC,setup(t,{expose:e}){const n=t,{role:r,triggerRef:o}=c.inject(Lg,void 0);GK(o);const a=c.computed(()=>s.value?n.id:void 0),l=c.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=c.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),h=c.computed(()=>s.value?`${n.open}`:void 0);let u;return c.onMounted(()=>{c.watch(()=>n.virtualRef,d=>{d&&(o.value=ys(d))},{immediate:!0}),c.watch(o,(d,p)=>{u==null||u(),u=void 0,lc(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var m;const y=n[f];y&&(d.addEventListener(f.slice(2).toLowerCase(),y),(m=p==null?void 0:p.removeEventListener)==null||m.call(p,f.slice(2).toLowerCase(),y))}),u=c.watch([a,l,s,h],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,y)=>{d1(f[y])?d.removeAttribute(m):d.setAttribute(m,f[y])})},{immediate:!0})),lc(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>p.removeAttribute(f))},{immediate:!0})}),c.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:o}),(d,p)=>d.virtualTriggering?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createBlock(c.unref(OJ),c.mergeProps({key:0},d.$attrs,{"aria-controls":c.unref(a),"aria-describedby":c.unref(l),"aria-expanded":c.unref(h),"aria-haspopup":c.unref(s)}),{default:c.withCtx(()=>[c.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var IJ=En(PJ,[["__file","trigger.vue"]]);const Mg="focus-trap.focus-after-trapped",Sg="focus-trap.focus-after-released",RJ="focus-trap.focusout-prevented",CC={cancelable:!0,bubbles:!1},NJ={cancelable:!0,bubbles:!1},EC="focusAfterTrapped",HC="focusAfterReleased",BJ=Symbol("elFocusTrap"),Cg=c.ref(),Zh=c.ref(0),Eg=c.ref(0);let $h=0;const AC=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},VC=(t,e)=>{for(const n of t)if(!DJ(n,e))return n},DJ=(t,e)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},FJ=t=>{const e=AC(t),n=VC(e,t),r=VC(e.reverse(),t);return[n,r]},zJ=t=>t instanceof HTMLInputElement&&"select"in t,P2=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),Eg.value=window.performance.now(),t!==n&&zJ(t)&&e&&t.select()}};function OC(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const UJ=()=>{let t=[];return{push:r=>{const o=t[0];o&&r!==o&&o.pause(),t=OC(t,r),t.unshift(r)},remove:r=>{var o,a;t=OC(t,r),(a=(o=t[0])==null?void 0:o.resume)==null||a.call(o)}}},jJ=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(P2(r,e),document.activeElement!==n)return},kC=UJ(),GJ=()=>Zh.value>Eg.value,qh=()=>{Cg.value="pointer",Zh.value=window.performance.now()},PC=()=>{Cg.value="keyboard",Zh.value=window.performance.now()},WJ=()=>(c.onMounted(()=>{$h===0&&(document.addEventListener("mousedown",qh),document.addEventListener("touchstart",qh),document.addEventListener("keydown",PC)),$h++}),c.onBeforeUnmount(()=>{$h--,$h<=0&&(document.removeEventListener("mousedown",qh),document.removeEventListener("touchstart",qh),document.removeEventListener("keydown",PC))}),{focusReason:Cg,lastUserFocusTimestamp:Zh,lastAutomatedFocusTimestamp:Eg}),Xh=t=>new CustomEvent(RJ,{...NJ,detail:t}),ZJ=c.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[EC,HC,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=c.ref();let r,o;const{focusReason:a}=WJ();DK(y=>{t.trapped&&!l.paused&&e("release-requested",y)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=y=>{if(!t.loop&&!t.trapped||l.paused)return;const{key:v,altKey:_,ctrlKey:x,metaKey:L,currentTarget:S,shiftKey:C}=y,{loop:A}=t,H=v===Mi.tab&&!_&&!x&&!L,k=document.activeElement;if(H&&k){const B=S,[D,z]=FJ(B);if(D&&z){if(!C&&k===z){const F=Xh({focusReason:a.value});e("focusout-prevented",F),F.defaultPrevented||(y.preventDefault(),A&&P2(D,!0))}else if(C&&[D,B].includes(k)){const F=Xh({focusReason:a.value});e("focusout-prevented",F),F.defaultPrevented||(y.preventDefault(),A&&P2(z,!0))}}else if(k===B){const F=Xh({focusReason:a.value});e("focusout-prevented",F),F.defaultPrevented||y.preventDefault()}}};c.provide(BJ,{focusTrapRef:n,onKeydown:s}),c.watch(()=>t.focusTrapEl,y=>{y&&(n.value=y)},{immediate:!0}),c.watch([n],([y],[v])=>{y&&(y.addEventListener("keydown",s),y.addEventListener("focusin",d),y.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",p))});const h=y=>{e(EC,y)},u=y=>e(HC,y),d=y=>{const v=c.unref(n);if(!v)return;const _=y.target,x=y.relatedTarget,L=_&&v.contains(_);t.trapped||x&&v.contains(x)||(r=x),L&&e("focusin",y),!l.paused&&t.trapped&&(L?o=_:P2(o,!0))},p=y=>{const v=c.unref(n);if(!(l.paused||!v))if(t.trapped){const _=y.relatedTarget;!d1(_)&&!v.contains(_)&&setTimeout(()=>{if(!l.paused&&t.trapped){const x=Xh({focusReason:a.value});e("focusout-prevented",x),x.defaultPrevented||P2(o,!0)}},0)}else{const _=y.target;_&&v.contains(_)||e("focusout",y)}};async function f(){await c.nextTick();const y=c.unref(n);if(y){kC.push(l);const v=y.contains(document.activeElement)?r:document.activeElement;if(r=v,!y.contains(v)){const x=new Event(Mg,CC);y.addEventListener(Mg,h),y.dispatchEvent(x),x.defaultPrevented||c.nextTick(()=>{let L=t.focusStartEl;si(L)||(P2(L),document.activeElement!==L&&(L="first")),L==="first"&&jJ(AC(y),!0),(document.activeElement===v||L==="container")&&P2(y)})}}}function m(){const y=c.unref(n);if(y){y.removeEventListener(Mg,h);const v=new CustomEvent(Sg,{...CC,detail:{focusReason:a.value}});y.addEventListener(Sg,u),y.dispatchEvent(v),!v.defaultPrevented&&(a.value=="keyboard"||!GJ()||y.contains(document.activeElement))&&P2(r??document.body),y.removeEventListener(Sg,u),kC.remove(l)}}return c.onMounted(()=>{t.trapped&&f(),c.watch(()=>t.trapped,y=>{y?f():m()})}),c.onBeforeUnmount(()=>{t.trapped&&m()}),{onKeydown:s}}});function $J(t,e,n,r,o,a){return c.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var IC=En(ZJ,[["render",$J],["__file","focus-trap.vue"]]);const qJ=["fixed","absolute"],XJ=Wn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:gn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Y6,default:"bottom"},popperOptions:{type:gn(Object),default:()=>({})},strategy:{type:String,values:qJ,default:"absolute"}}),RC=Wn({...XJ,id:String,style:{type:gn([String,Array,Object])},className:{type:gn([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:gn([String,Array,Object])},popperStyle:{type:gn([String,Array,Object])},referenceEl:{type:gn(Object)},triggerTargetEl:{type:gn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),KJ={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},JJ=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:o}=t,a={placement:n,strategy:r,...o,modifiers:[...eY(t),...e]};return tY(a,o==null?void 0:o.modifiers),a},YJ=t=>{if(Dr)return ys(t)};function eY(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function tY(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const nY=0,rY=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:o}=c.inject(Lg,void 0),a=c.ref(),l=c.ref(),s=c.computed(()=>({name:"eventListeners",enabled:!!t.visible})),h=c.computed(()=>{var x;const L=c.unref(a),S=(x=c.unref(l))!=null?x:nY;return{name:"arrow",enabled:!bS(L),options:{element:L,padding:S}}}),u=c.computed(()=>({onFirstUpdate:()=>{y()},...JJ(t,[c.unref(h),c.unref(s)])})),d=c.computed(()=>YJ(t.referenceEl)||c.unref(r)),{attributes:p,state:f,styles:m,update:y,forceUpdate:v,instanceRef:_}=IK(d,n,u);return c.watch(_,x=>e.value=x),c.onMounted(()=>{c.watch(()=>{var x;return(x=c.unref(d))==null?void 0:x.getBoundingClientRect()},()=>{y()})}),{attributes:p,arrowRef:a,contentRef:n,instanceRef:_,state:f,styles:m,role:o,forceUpdate:v,update:y}},iY=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:o}=yg(),a=Ln("popper"),l=c.computed(()=>c.unref(e).popper),s=c.ref(hr(t.zIndex)?t.zIndex:o()),h=c.computed(()=>[a.b(),a.is("pure",t.pure),a.is(t.effect),t.popperClass]),u=c.computed(()=>[{zIndex:c.unref(s)},c.unref(n).popper,t.popperStyle||{}]),d=c.computed(()=>r.value==="dialog"?"false":void 0),p=c.computed(()=>c.unref(n).arrow||{});return{ariaModal:d,arrowStyle:p,contentAttrs:l,contentClass:h,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=hr(t.zIndex)?t.zIndex:o()}}},oY=(t,e)=>{const n=c.ref(!1),r=c.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},aY=c.defineComponent({name:"ElPopperContent"}),sY=c.defineComponent({...aY,props:RC,emits:KJ,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:o,trapped:a,onFocusAfterReleased:l,onFocusAfterTrapped:s,onFocusInTrap:h,onFocusoutPrevented:u,onReleaseRequested:d}=oY(r,n),{attributes:p,arrowRef:f,contentRef:m,styles:y,instanceRef:v,role:_,update:x}=rY(r),{ariaModal:L,arrowStyle:S,contentAttrs:C,contentClass:A,contentStyle:H,updateZIndex:k}=iY(r,{styles:y,attributes:p,role:_}),B=c.inject(bc,void 0),D=c.ref();c.provide(xC,{arrowStyle:S,arrowRef:f,arrowOffset:D}),B&&(B.addInputId||B.removeInputId)&&c.provide(bc,{...B,addInputId:bs,removeInputId:bs});let z;const q=(Z=!0)=>{x(),Z&&k()},F=()=>{q(!1),r.visible&&r.focusOnShow?a.value=!0:r.visible===!1&&(a.value=!1)};return c.onMounted(()=>{c.watch(()=>r.triggerTargetEl,(Z,K)=>{z==null||z(),z=void 0;const X=c.unref(Z||m.value),te=c.unref(K||m.value);lc(X)&&(z=c.watch([_,()=>r.ariaLabel,L,()=>r.id],J=>{["role","aria-label","aria-modal","id"].forEach((he,xe)=>{d1(J[xe])?X.removeAttribute(he):X.setAttribute(he,J[xe])})},{immediate:!0})),te!==X&&lc(te)&&["role","aria-label","aria-modal","id"].forEach(J=>{te.removeAttribute(J)})},{immediate:!0}),c.watch(()=>r.visible,F,{immediate:!0})}),c.onBeforeUnmount(()=>{z==null||z(),z=void 0}),e({popperContentRef:m,popperInstanceRef:v,updatePopper:q,contentStyle:H}),(Z,K)=>(c.openBlock(),c.createElementBlock("div",c.mergeProps({ref_key:"contentRef",ref:m},c.unref(C),{style:c.unref(H),class:c.unref(A),tabindex:"-1",onMouseenter:K[0]||(K[0]=X=>Z.$emit("mouseenter",X)),onMouseleave:K[1]||(K[1]=X=>Z.$emit("mouseleave",X))}),[c.createVNode(c.unref(IC),{trapped:c.unref(a),"trap-on-focus-in":!0,"focus-trap-el":c.unref(m),"focus-start-el":c.unref(o),onFocusAfterTrapped:c.unref(s),onFocusAfterReleased:c.unref(l),onFocusin:c.unref(h),onFocusoutPrevented:c.unref(u),onReleaseRequested:c.unref(d)},{default:c.withCtx(()=>[c.renderSlot(Z.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var lY=En(sY,[["__file","content.vue"]]);const cY=Ui(EJ),Hg=Symbol("elTooltip"),T1=Wn({...UK,...RC,appendTo:{type:gn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:gn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),xc=Wn({...SC,disabled:Boolean,trigger:{type:gn([String,Array]),default:"hover"},triggerKeys:{type:gn(Array),default:()=>[Mi.enter,Mi.space]}}),{useModelToggleProps:uY,useModelToggleEmits:hY,useModelToggle:dY}=FS("visible"),pY=Wn({..._C,...uY,...T1,...xc,...LC,showArrow:{type:Boolean,default:!0}}),fY=[...hY,"before-show","before-hide","show","hide","open","close"],TY=(t,e)=>wi(t)?t.includes(e):t===e,l0=(t,e,n)=>r=>{TY(c.unref(t),e)&&n(r)},QY=c.defineComponent({name:"ElTooltipTrigger"}),mY=c.defineComponent({...QY,props:xc,setup(t,{expose:e}){const n=t,r=Ln("tooltip"),{controlled:o,id:a,open:l,onOpen:s,onClose:h,onToggle:u}=c.inject(Hg,void 0),d=c.ref(null),p=()=>{if(c.unref(o)||n.disabled)return!0},f=c.toRef(n,"trigger"),m=gs(p,l0(f,"hover",s)),y=gs(p,l0(f,"hover",h)),v=gs(p,l0(f,"click",C=>{C.button===0&&u(C)})),_=gs(p,l0(f,"focus",s)),x=gs(p,l0(f,"focus",h)),L=gs(p,l0(f,"contextmenu",C=>{C.preventDefault(),u(C)})),S=gs(p,C=>{const{code:A}=C;n.triggerKeys.includes(A)&&(C.preventDefault(),u(C))});return e({triggerRef:d}),(C,A)=>(c.openBlock(),c.createBlock(c.unref(IJ),{id:c.unref(a),"virtual-ref":C.virtualRef,open:c.unref(l),"virtual-triggering":C.virtualTriggering,class:c.normalizeClass(c.unref(r).e("trigger")),onBlur:c.unref(x),onClick:c.unref(v),onContextmenu:c.unref(L),onFocus:c.unref(_),onMouseenter:c.unref(m),onMouseleave:c.unref(y),onKeydown:c.unref(S)},{default:c.withCtx(()=>[c.renderSlot(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var gY=En(mY,[["__file","trigger.vue"]]);const yY=c.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),vY=c.defineComponent({...yY,props:T1,setup(t,{expose:e}){const n=t,{selector:r}=dC(),o=Ln("tooltip"),a=c.ref(null),l=c.ref(!1),{controlled:s,id:h,open:u,trigger:d,onClose:p,onOpen:f,onShow:m,onHide:y,onBeforeShow:v,onBeforeHide:_}=c.inject(Hg,void 0),x=c.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),L=c.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);c.onBeforeUnmount(()=>{l.value=!0});const S=c.computed(()=>c.unref(L)?!0:c.unref(u)),C=c.computed(()=>n.disabled?!1:c.unref(u)),A=c.computed(()=>n.appendTo||r.value),H=c.computed(()=>{var J;return(J=n.style)!=null?J:{}}),k=c.computed(()=>!c.unref(u)),B=()=>{y()},D=()=>{if(c.unref(s))return!0},z=gs(D,()=>{n.enterable&&c.unref(d)==="hover"&&f()}),q=gs(D,()=>{c.unref(d)==="hover"&&p()}),F=()=>{var J,he;(he=(J=a.value)==null?void 0:J.updatePopper)==null||he.call(J),v==null||v()},Z=()=>{_==null||_()},K=()=>{m(),te=cG(c.computed(()=>{var J;return(J=a.value)==null?void 0:J.popperContentRef}),()=>{if(c.unref(s))return;c.unref(d)!=="hover"&&p()})},X=()=>{n.virtualTriggering||p()};let te;return c.watch(()=>c.unref(u),J=>{J||te==null||te()},{flush:"post"}),c.watch(()=>n.content,()=>{var J,he;(he=(J=a.value)==null?void 0:J.updatePopper)==null||he.call(J)}),e({contentRef:a}),(J,he)=>(c.openBlock(),c.createBlock(c.Teleport,{disabled:!J.teleported,to:c.unref(A)},[c.createVNode(c.Transition,{name:c.unref(x),onAfterLeave:B,onBeforeEnter:F,onAfterEnter:K,onBeforeLeave:Z},{default:c.withCtx(()=>[c.unref(S)?c.withDirectives((c.openBlock(),c.createBlock(c.unref(lY),c.mergeProps({key:0,id:c.unref(h),ref_key:"contentRef",ref:a},J.$attrs,{"aria-label":J.ariaLabel,"aria-hidden":c.unref(k),"boundaries-padding":J.boundariesPadding,"fallback-placements":J.fallbackPlacements,"gpu-acceleration":J.gpuAcceleration,offset:J.offset,placement:J.placement,"popper-options":J.popperOptions,strategy:J.strategy,effect:J.effect,enterable:J.enterable,pure:J.pure,"popper-class":J.popperClass,"popper-style":[J.popperStyle,c.unref(H)],"reference-el":J.referenceEl,"trigger-target-el":J.triggerTargetEl,visible:c.unref(C),"z-index":J.zIndex,onMouseenter:c.unref(z),onMouseleave:c.unref(q),onBlur:X,onClose:c.unref(p)}),{default:c.withCtx(()=>[l.value?c.createCommentVNode("v-if",!0):c.renderSlot(J.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[c.vShow,c.unref(C)]]):c.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var bY=En(vY,[["__file","content.vue"]]);const xY=["innerHTML"],_Y={key:1},LY=c.defineComponent({name:"ElTooltip"}),wY=c.defineComponent({...LY,props:pY,emits:fY,setup(t,{expose:e,emit:n}){const r=t;zK();const o=r0(),a=c.ref(),l=c.ref(),s=()=>{var x;const L=c.unref(a);L&&((x=L.popperInstanceRef)==null||x.update())},h=c.ref(!1),u=c.ref(),{show:d,hide:p,hasUpdateHandler:f}=dY({indicator:h,toggleReason:u}),{onOpen:m,onClose:y}=jK({showAfter:c.toRef(r,"showAfter"),hideAfter:c.toRef(r,"hideAfter"),autoClose:c.toRef(r,"autoClose"),open:d,close:p}),v=c.computed(()=>a4(r.visible)&&!f.value);c.provide(Hg,{controlled:v,id:o,open:c.readonly(h),trigger:c.toRef(r,"trigger"),onOpen:x=>{m(x)},onClose:x=>{y(x)},onToggle:x=>{c.unref(h)?y(x):m(x)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),c.watch(()=>r.disabled,x=>{x&&h.value&&(h.value=!1)});const _=x=>{var L,S;const C=(S=(L=l.value)==null?void 0:L.contentRef)==null?void 0:S.popperContentRef,A=(x==null?void 0:x.relatedTarget)||document.activeElement;return C&&C.contains(A)};return c.onDeactivated(()=>h.value&&p()),e({popperRef:a,contentRef:l,isFocusInsideContent:_,updatePopper:s,onOpen:m,onClose:y,hide:p}),(x,L)=>(c.openBlock(),c.createBlock(c.unref(cY),{ref_key:"popperRef",ref:a,role:x.role},{default:c.withCtx(()=>[c.createVNode(gY,{disabled:x.disabled,trigger:x.trigger,"trigger-keys":x.triggerKeys,"virtual-ref":x.virtualRef,"virtual-triggering":x.virtualTriggering},{default:c.withCtx(()=>[x.$slots.default?c.renderSlot(x.$slots,"default",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),c.createVNode(bY,{ref_key:"contentRef",ref:l,"aria-label":x.ariaLabel,"boundaries-padding":x.boundariesPadding,content:x.content,disabled:x.disabled,effect:x.effect,enterable:x.enterable,"fallback-placements":x.fallbackPlacements,"hide-after":x.hideAfter,"gpu-acceleration":x.gpuAcceleration,offset:x.offset,persistent:x.persistent,"popper-class":x.popperClass,"popper-style":x.popperStyle,placement:x.placement,"popper-options":x.popperOptions,pure:x.pure,"raw-content":x.rawContent,"reference-el":x.referenceEl,"trigger-target-el":x.triggerTargetEl,"show-after":x.showAfter,strategy:x.strategy,teleported:x.teleported,transition:x.transition,"virtual-triggering":x.virtualTriggering,"z-index":x.zIndex,"append-to":x.appendTo},{default:c.withCtx(()=>[c.renderSlot(x.$slots,"content",{},()=>[x.rawContent?(c.openBlock(),c.createElementBlock("span",{key:0,innerHTML:x.content},null,8,xY)):(c.openBlock(),c.createElementBlock("span",_Y,c.toDisplayString(x.content),1))]),x.showArrow?(c.openBlock(),c.createBlock(c.unref(VJ),{key:0,"arrow-offset":x.arrowOffset},null,8,["arrow-offset"])):c.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var MY=En(wY,[["__file","tooltip.vue"]]);const Kh=Ui(MY),NC=Symbol("buttonGroupContextKey"),SY=(t,e)=>{hc({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},c.computed(()=>t.type==="text"));const n=c.inject(NC,void 0),r=Wh("button"),{form:o}=Es(),a=Cs(c.computed(()=>n==null?void 0:n.size)),l=o0(),s=c.ref(),h=c.useSlots(),u=c.computed(()=>t.type||(n==null?void 0:n.type)||""),d=c.computed(()=>{var y,v,_;return(_=(v=t.autoInsertSpace)!=null?v:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?_:!1}),p=c.computed(()=>t.tag==="button"?{ariaDisabled:l.value||t.loading,disabled:l.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),f=c.computed(()=>{var y;const v=(y=h.default)==null?void 0:y.call(h);if(d.value&&(v==null?void 0:v.length)===1){const _=v[0];if((_==null?void 0:_.type)===c.Text){const x=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(x.trim())}}return!1});return{_disabled:l,_size:a,_type:u,_ref:s,_props:p,shouldAddSpace:f,handleClick:y=>{t.nativeType==="reset"&&(o==null||o.resetFields()),e("click",y)}}},Ag=Wn({size:Ss,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Ms},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ms,default:()=>ig},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:gn([String,Object]),default:"button"}}),CY={click:t=>t instanceof MouseEvent};function eo(t,e){EY(t)&&(t="100%");var n=HY(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Jh(t){return Math.min(1,Math.max(0,t))}function EY(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function HY(t){return typeof t=="string"&&t.indexOf("%")!==-1}function BC(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Yh(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Q4(t){return t.length===1?"0"+t:String(t)}function AY(t,e,n){return{r:eo(t,255)*255,g:eo(e,255)*255,b:eo(n,255)*255}}function DC(t,e,n){t=eo(t,255),e=eo(e,255),n=eo(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),a=0,l=0,s=(r+o)/2;if(r===o)l=0,a=0;else{var h=r-o;switch(l=s>.5?h/(2-r-o):h/(r+o),r){case t:a=(e-n)/h+(e<n?6:0);break;case e:a=(n-t)/h+2;break;case n:a=(t-e)/h+4;break}a/=6}return{h:a,s:l,l:s}}function Vg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function VY(t,e,n){var r,o,a;if(t=eo(t,360),e=eo(e,100),n=eo(n,100),e===0)o=n,a=n,r=n;else{var l=n<.5?n*(1+e):n+e-n*e,s=2*n-l;r=Vg(s,l,t+1/3),o=Vg(s,l,t),a=Vg(s,l,t-1/3)}return{r:r*255,g:o*255,b:a*255}}function FC(t,e,n){t=eo(t,255),e=eo(e,255),n=eo(n,255);var r=Math.max(t,e,n),o=Math.min(t,e,n),a=0,l=r,s=r-o,h=r===0?0:s/r;if(r===o)a=0;else{switch(r){case t:a=(e-n)/s+(e<n?6:0);break;case e:a=(n-t)/s+2;break;case n:a=(t-e)/s+4;break}a/=6}return{h:a,s:h,v:l}}function OY(t,e,n){t=eo(t,360)*6,e=eo(e,100),n=eo(n,100);var r=Math.floor(t),o=t-r,a=n*(1-e),l=n*(1-o*e),s=n*(1-(1-o)*e),h=r%6,u=[n,l,a,a,s,n][h],d=[s,n,n,l,a,a][h],p=[a,a,s,n,n,l][h];return{r:u*255,g:d*255,b:p*255}}function zC(t,e,n,r){var o=[Q4(Math.round(t).toString(16)),Q4(Math.round(e).toString(16)),Q4(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function kY(t,e,n,r,o){var a=[Q4(Math.round(t).toString(16)),Q4(Math.round(e).toString(16)),Q4(Math.round(n).toString(16)),Q4(PY(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function PY(t){return Math.round(parseFloat(t)*255).toString(16)}function UC(t){return Q1(t)/255}function Q1(t){return parseInt(t,16)}function IY(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var Og={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function RY(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,a=null,l=!1,s=!1;return typeof t=="string"&&(t=DY(t)),typeof t=="object"&&(Hs(t.r)&&Hs(t.g)&&Hs(t.b)?(e=AY(t.r,t.g,t.b),l=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Hs(t.h)&&Hs(t.s)&&Hs(t.v)?(r=Yh(t.s),o=Yh(t.v),e=OY(t.h,r,o),l=!0,s="hsv"):Hs(t.h)&&Hs(t.s)&&Hs(t.l)&&(r=Yh(t.s),a=Yh(t.l),e=VY(t.h,r,a),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=BC(n),{ok:l,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var NY="[-\\+]?\\d+%?",BY="[-\\+]?\\d*\\.\\d+%?",I2="(?:".concat(BY,")|(?:").concat(NY,")"),kg="[\\s|\\(]+(".concat(I2,")[,|\\s]+(").concat(I2,")[,|\\s]+(").concat(I2,")\\s*\\)?"),Pg="[\\s|\\(]+(".concat(I2,")[,|\\s]+(").concat(I2,")[,|\\s]+(").concat(I2,")[,|\\s]+(").concat(I2,")\\s*\\)?"),na={CSS_UNIT:new RegExp(I2),rgb:new RegExp("rgb"+kg),rgba:new RegExp("rgba"+Pg),hsl:new RegExp("hsl"+kg),hsla:new RegExp("hsla"+Pg),hsv:new RegExp("hsv"+kg),hsva:new RegExp("hsva"+Pg),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function DY(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Og[t])t=Og[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=na.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=na.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=na.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=na.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=na.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=na.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=na.hex8.exec(t),n?{r:Q1(n[1]),g:Q1(n[2]),b:Q1(n[3]),a:UC(n[4]),format:e?"name":"hex8"}:(n=na.hex6.exec(t),n?{r:Q1(n[1]),g:Q1(n[2]),b:Q1(n[3]),format:e?"name":"hex"}:(n=na.hex4.exec(t),n?{r:Q1(n[1]+n[1]),g:Q1(n[2]+n[2]),b:Q1(n[3]+n[3]),a:UC(n[4]+n[4]),format:e?"name":"hex8"}:(n=na.hex3.exec(t),n?{r:Q1(n[1]+n[1]),g:Q1(n[2]+n[2]),b:Q1(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Hs(t){return!!na.CSS_UNIT.exec(String(t))}var FY=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=IY(e)),this.originalInput=e;var o=RY(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,o,a=e.r/255,l=e.g/255,s=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=BC(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=FC(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=FC(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=DC(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=DC(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),o=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),zC(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),kY(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(eo(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(eo(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+zC(this.r,this.g,this.b,!1),n=0,r=Object.entries(Og);n<r.length;n++){var o=r[n],a=o[0],l=o[1];if(e===l)return a}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Jh(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Jh(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Jh(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Jh(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),o=new t(e).toRgb(),a=n/100,l={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new t(l)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,a.push(new t(r));return a},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,l=[],s=1/e;e--;)l.push(new t({h:r,s:o,v:a})),a=(a+s)%1;return l},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),o=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,o=[this],a=360/e,l=1;l<e;l++)o.push(new t({h:(r+l*a)%360,s:n.s,l:n.l}));return o},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function R2(t,e=20){return t.mix("#141414",e).toString()}function zY(t){const e=o0(),n=Ln("button");return c.computed(()=>{let r={};const o=t.color;if(o){const a=new FY(o),l=t.dark?a.tint(20).toString():R2(a,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?R2(a,90):a.tint(90).toString(),"text-color":o,"border-color":t.dark?R2(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?R2(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?R2(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?R2(a,80):a.tint(80).toString());else{const s=t.dark?R2(a,30):a.tint(30).toString(),h=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":h,"border-color":o,"hover-bg-color":s,"hover-text-color":h,"hover-border-color":s,"active-bg-color":l,"active-border-color":l}),e.value){const u=t.dark?R2(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const UY=c.defineComponent({name:"ElButton"}),jY=c.defineComponent({...UY,props:Ag,emits:CY,setup(t,{expose:e,emit:n}){const r=t,o=zY(r),a=Ln("button"),{_ref:l,_size:s,_type:h,_disabled:u,_props:d,shouldAddSpace:p,handleClick:f}=SY(r,n);return e({ref:l,size:s,type:h,disabled:u,shouldAddSpace:p}),(m,y)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(m.tag),c.mergeProps({ref_key:"_ref",ref:l},c.unref(d),{class:[c.unref(a).b(),c.unref(a).m(c.unref(h)),c.unref(a).m(c.unref(s)),c.unref(a).is("disabled",c.unref(u)),c.unref(a).is("loading",m.loading),c.unref(a).is("plain",m.plain),c.unref(a).is("round",m.round),c.unref(a).is("circle",m.circle),c.unref(a).is("text",m.text),c.unref(a).is("link",m.link),c.unref(a).is("has-bg",m.bg)],style:c.unref(o),onClick:c.unref(f)}),{default:c.withCtx(()=>[m.loading?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[m.$slots.loading?c.renderSlot(m.$slots,"loading",{key:0}):(c.openBlock(),c.createBlock(c.unref(zr),{key:1,class:c.normalizeClass(c.unref(a).is("loading"))},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(c.openBlock(),c.createBlock(c.unref(zr),{key:1},{default:c.withCtx(()=>[m.icon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(m.icon),{key:0})):c.renderSlot(m.$slots,"icon",{key:1})]),_:3})):c.createCommentVNode("v-if",!0),m.$slots.default?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass({[c.unref(a).em("text","expand")]:c.unref(p)})},[c.renderSlot(m.$slots,"default")],2)):c.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var GY=En(jY,[["__file","button.vue"]]);const WY={size:Ag.size,type:Ag.type},ZY=c.defineComponent({name:"ElButtonGroup"}),$Y=c.defineComponent({...ZY,props:WY,setup(t){const e=t;c.provide(NC,c.reactive({size:c.toRef(e,"size"),type:c.toRef(e,"type")}));const n=Ln("button");return(r,o)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`${c.unref(n).b("group")}`)},[c.renderSlot(r.$slots,"default")],2))}});var jC=En($Y,[["__file","button-group.vue"]]);const ed=Ui(GY,{ButtonGroup:jC});Ra(jC);var N2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qY(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function td(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}const B2=new Map;let GC;Dr&&(document.addEventListener("mousedown",t=>GC=t),document.addEventListener("mouseup",t=>{for(const e of B2.values())for(const{documentHandler:n}of e)n(t,GC)}));function WC(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:lc(e.arg)&&n.push(e.arg),function(r,o){const a=e.instance.popperRef,l=r.target,s=o==null?void 0:o.target,h=!e||!e.instance,u=!l||!s,d=t.contains(l)||t.contains(s),p=t===l,f=n.length&&n.some(y=>y==null?void 0:y.contains(l))||n.length&&n.includes(s),m=a&&(a.contains(l)||a.contains(s));h||u||d||p||f||m||e.value(r,o)}}const ZC={beforeMount(t,e){B2.has(t)||B2.set(t,[]),B2.get(t).push({documentHandler:WC(t,e),bindingFn:e.value})},updated(t,e){B2.has(t)||B2.set(t,[]);const n=B2.get(t),r=n.findIndex(a=>a.bindingFn===e.oldValue),o={documentHandler:WC(t,e),bindingFn:e.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(t){B2.delete(t)}},XY=100,KY=600,$C={beforeMount(t,e){const n=e.value,{interval:r=XY,delay:o=KY}=Ao(n)?{}:n;let a,l;const s=()=>Ao(n)?n():n.handler(),h=()=>{l&&(clearTimeout(l),l=void 0),a&&(clearInterval(a),a=void 0)};t.addEventListener("mousedown",u=>{u.button===0&&(h(),s(),document.addEventListener("mouseup",()=>h(),{once:!0}),l=setTimeout(()=>{a=setInterval(()=>{s()},r)},o))})}},qC={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ss,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},XC={[rr]:t=>si(t)||hr(t)||a4(t),change:t=>si(t)||hr(t)||a4(t)},c0=Symbol("checkboxGroupContextKey"),JY=({model:t,isChecked:e})=>{const n=c.inject(c0,void 0),r=c.computed(()=>{var a,l;const s=(a=n==null?void 0:n.max)==null?void 0:a.value,h=(l=n==null?void 0:n.min)==null?void 0:l.value;return!J1(s)&&t.value.length>=s&&!e.value||!J1(h)&&t.value.length<=h&&e.value});return{isDisabled:o0(c.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},YY=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:a})=>{const l=c.inject(c0,void 0),{formItem:s}=Es(),{emit:h}=c.getCurrentInstance();function u(y){var v,_;return y===t.trueLabel||y===!0?(v=t.trueLabel)!=null?v:!0:(_=t.falseLabel)!=null?_:!1}function d(y,v){h("change",u(y),v)}function p(y){if(n.value)return;const v=y.target;h("change",u(v.checked),y)}async function f(y){n.value||!r.value&&!o.value&&a.value&&(y.composedPath().some(x=>x.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await c.nextTick(),d(e.value,y)))}const m=c.computed(()=>(l==null?void 0:l.validateEvent)||t.validateEvent);return c.watch(()=>t.modelValue,()=>{m.value&&(s==null||s.validate("change").catch(y=>Fr(y)))}),{handleChange:p,onClickRoot:f}},eee=t=>{const e=c.ref(!1),{emit:n}=c.getCurrentInstance(),r=c.inject(c0,void 0),o=c.computed(()=>J1(r)===!1),a=c.ref(!1);return{model:c.computed({get(){var s,h;return o.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(h=t.modelValue)!=null?h:e.value},set(s){var h,u;o.value&&wi(s)?(a.value=((h=r==null?void 0:r.max)==null?void 0:h.value)!==void 0&&s.length>(r==null?void 0:r.max.value),a.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(rr,s),e.value=s)}}),isGroup:o,isLimitExceeded:a}},tee=(t,e,{model:n})=>{const r=c.inject(c0,void 0),o=c.ref(!1),a=c.computed(()=>{const u=n.value;return a4(u)?u:wi(u)?Yi(t.label)?u.map(c.toRaw).some(d=>X6(d,t.label)):u.map(c.toRaw).includes(t.label):u!=null?u===t.trueLabel:!!u}),l=Cs(c.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=Cs(c.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),h=c.computed(()=>!!e.default||!d1(t.label));return{checkboxButtonSize:l,isChecked:a,isFocused:o,checkboxSize:s,hasOwnLabel:h}},nee=(t,{model:e})=>{function n(){wi(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},KC=(t,e)=>{const{formItem:n}=Es(),{model:r,isGroup:o,isLimitExceeded:a}=eee(t),{isFocused:l,isChecked:s,checkboxButtonSize:h,checkboxSize:u,hasOwnLabel:d}=tee(t,e,{model:r}),{isDisabled:p}=JY({model:r,isChecked:s}),{inputId:f,isLabeledByFormItem:m}=a0(t,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:y,onClickRoot:v}=YY(t,{model:r,isLimitExceeded:a,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:m});return nee(t,{model:r}),{inputId:f,isLabeledByFormItem:m,isChecked:s,isDisabled:p,isFocused:l,checkboxButtonSize:h,checkboxSize:u,hasOwnLabel:d,model:r,handleChange:y,onClickRoot:v}},ree=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],iee=["id","indeterminate","disabled","value","name","tabindex"],oee=c.defineComponent({name:"ElCheckbox"}),aee=c.defineComponent({...oee,props:qC,emits:XC,setup(t){const e=t,n=c.useSlots(),{inputId:r,isLabeledByFormItem:o,isChecked:a,isDisabled:l,isFocused:s,checkboxSize:h,hasOwnLabel:u,model:d,handleChange:p,onClickRoot:f}=KC(e,n),m=Ln("checkbox"),y=c.computed(()=>[m.b(),m.m(h.value),m.is("disabled",l.value),m.is("bordered",e.border),m.is("checked",a.value)]),v=c.computed(()=>[m.e("input"),m.is("disabled",l.value),m.is("checked",a.value),m.is("indeterminate",e.indeterminate),m.is("focus",s.value)]);return(_,x)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(!c.unref(u)&&c.unref(o)?"span":"label"),{class:c.normalizeClass(c.unref(y)),"aria-controls":_.indeterminate?_.controls:null,onClick:c.unref(f)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(c.unref(v))},[_.trueLabel||_.falseLabel?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,id:c.unref(r),"onUpdate:modelValue":x[0]||(x[0]=L=>c.isRef(d)?d.value=L:null),class:c.normalizeClass(c.unref(m).e("original")),type:"checkbox",indeterminate:_.indeterminate,name:_.name,tabindex:_.tabindex,disabled:c.unref(l),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:x[1]||(x[1]=(...L)=>c.unref(p)&&c.unref(p)(...L)),onFocus:x[2]||(x[2]=L=>s.value=!0),onBlur:x[3]||(x[3]=L=>s.value=!1),onClick:x[4]||(x[4]=c.withModifiers(()=>{},["stop"]))},null,42,ree)),[[c.vModelCheckbox,c.unref(d)]]):c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:1,id:c.unref(r),"onUpdate:modelValue":x[5]||(x[5]=L=>c.isRef(d)?d.value=L:null),class:c.normalizeClass(c.unref(m).e("original")),type:"checkbox",indeterminate:_.indeterminate,disabled:c.unref(l),value:_.label,name:_.name,tabindex:_.tabindex,onChange:x[6]||(x[6]=(...L)=>c.unref(p)&&c.unref(p)(...L)),onFocus:x[7]||(x[7]=L=>s.value=!0),onBlur:x[8]||(x[8]=L=>s.value=!1),onClick:x[9]||(x[9]=c.withModifiers(()=>{},["stop"]))},null,42,iee)),[[c.vModelCheckbox,c.unref(d)]]),c.createElementVNode("span",{class:c.normalizeClass(c.unref(m).e("inner"))},null,2)],2),c.unref(u)?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(m).e("label"))},[c.renderSlot(_.$slots,"default"),_.$slots.default?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createTextVNode(c.toDisplayString(_.label),1)],64))],2)):c.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var see=En(aee,[["__file","checkbox.vue"]]);const lee=["name","tabindex","disabled","true-value","false-value"],cee=["name","tabindex","disabled","value"],uee=c.defineComponent({name:"ElCheckboxButton"}),hee=c.defineComponent({...uee,props:qC,emits:XC,setup(t){const e=t,n=c.useSlots(),{isFocused:r,isChecked:o,isDisabled:a,checkboxButtonSize:l,model:s,handleChange:h}=KC(e,n),u=c.inject(c0,void 0),d=Ln("checkbox"),p=c.computed(()=>{var m,y,v,_;const x=(y=(m=u==null?void 0:u.fill)==null?void 0:m.value)!=null?y:"";return{backgroundColor:x,borderColor:x,color:(_=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?_:"",boxShadow:x?`-1px 0 0 0 ${x}`:void 0}}),f=c.computed(()=>[d.b("button"),d.bm("button",l.value),d.is("disabled",a.value),d.is("checked",o.value),d.is("focus",r.value)]);return(m,y)=>(c.openBlock(),c.createElementBlock("label",{class:c.normalizeClass(c.unref(f))},[m.trueLabel||m.falseLabel?c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:0,"onUpdate:modelValue":y[0]||(y[0]=v=>c.isRef(s)?s.value=v:null),class:c.normalizeClass(c.unref(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:c.unref(a),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:y[1]||(y[1]=(...v)=>c.unref(h)&&c.unref(h)(...v)),onFocus:y[2]||(y[2]=v=>r.value=!0),onBlur:y[3]||(y[3]=v=>r.value=!1),onClick:y[4]||(y[4]=c.withModifiers(()=>{},["stop"]))},null,42,lee)),[[c.vModelCheckbox,c.unref(s)]]):c.withDirectives((c.openBlock(),c.createElementBlock("input",{key:1,"onUpdate:modelValue":y[5]||(y[5]=v=>c.isRef(s)?s.value=v:null),class:c.normalizeClass(c.unref(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:c.unref(a),value:m.label,onChange:y[6]||(y[6]=(...v)=>c.unref(h)&&c.unref(h)(...v)),onFocus:y[7]||(y[7]=v=>r.value=!0),onBlur:y[8]||(y[8]=v=>r.value=!1),onClick:y[9]||(y[9]=c.withModifiers(()=>{},["stop"]))},null,42,cee)),[[c.vModelCheckbox,c.unref(s)]]),m.$slots.default||m.label?(c.openBlock(),c.createElementBlock("span",{key:2,class:c.normalizeClass(c.unref(d).be("button","inner")),style:c.normalizeStyle(c.unref(o)?c.unref(p):void 0)},[c.renderSlot(m.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(m.label),1)])],6)):c.createCommentVNode("v-if",!0)],2))}});var JC=En(hee,[["__file","checkbox-button.vue"]]);const dee=Wn({modelValue:{type:gn(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ss,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),pee={[rr]:t=>wi(t),change:t=>wi(t)},fee=c.defineComponent({name:"ElCheckboxGroup"}),Tee=c.defineComponent({...fee,props:dee,emits:pee,setup(t,{emit:e}){const n=t,r=Ln("checkbox"),{formItem:o}=Es(),{inputId:a,isLabeledByFormItem:l}=a0(n,{formItemContext:o}),s=async u=>{e(rr,u),await c.nextTick(),e("change",u)},h=c.computed({get(){return n.modelValue},set(u){s(u)}});return c.provide(c0,{...Eq(c.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:h,changeEvent:s}),c.watch(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>Fr(u)))}),(u,d)=>{var p;return c.openBlock(),c.createBlock(c.resolveDynamicComponent(u.tag),{id:c.unref(a),class:c.normalizeClass(c.unref(r).b("group")),role:"group","aria-label":c.unref(l)?void 0:u.label||"checkbox-group","aria-labelledby":c.unref(l)?(p=c.unref(o))==null?void 0:p.labelId:void 0},{default:c.withCtx(()=>[c.renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var YC=En(Tee,[["__file","checkbox-group.vue"]]);const eE=Ui(see,{CheckboxButton:JC,CheckboxGroup:YC});Ra(JC);const Qee=Ra(YC),tE=Wn({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:AS,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),mee={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},gee=c.defineComponent({name:"ElTag"}),yee=c.defineComponent({...gee,props:tE,emits:mee,setup(t,{emit:e}){const n=t,r=Cs(),o=Ln("tag"),a=c.computed(()=>{const{type:h,hit:u,effect:d,closable:p,round:f}=n;return[o.b(),o.is("closable",p),o.m(h),o.m(r.value),o.m(d),o.is("hit",u),o.is("round",f)]}),l=h=>{e("close",h)},s=h=>{e("click",h)};return(h,u)=>h.disableTransitions?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle({backgroundColor:h.color}),onClick:s},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(o).e("content"))},[c.renderSlot(h.$slots,"default")],2),h.closable?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(o).e("close")),onClick:c.withModifiers(l,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(uc))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)):(c.openBlock(),c.createBlock(c.Transition,{key:1,name:`${c.unref(o).namespace.value}-zoom-in-center`,appear:""},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle({backgroundColor:h.color}),onClick:s},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(o).e("content"))},[c.renderSlot(h.$slots,"default")],2),h.closable?(c.openBlock(),c.createBlock(c.unref(zr),{key:0,class:c.normalizeClass(c.unref(o).e("close")),onClick:c.withModifiers(l,["stop"])},{default:c.withCtx(()=>[c.createVNode(c.unref(uc))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var vee=En(yee,[["__file","tag.vue"]]);const bee=Ui(vee),nE=Symbol("rowContextKey"),xee=Wn({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),_ee=c.defineComponent({name:"ElRow"}),Lee=c.defineComponent({..._ee,props:xee,setup(t){const e=t,n=Ln("row"),r=c.computed(()=>e.gutter);c.provide(nE,{gutter:r});const o=c.computed(()=>{const l={};return e.gutter&&(l.marginRight=l.marginLeft=`-${e.gutter/2}px`),l}),a=c.computed(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(l,s)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(l.tag),{class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle(c.unref(o))},{default:c.withCtx(()=>[c.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}});var wee=En(Lee,[["__file","row.vue"]]);const u0=Ui(wee),Mee=Wn({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:gn([Number,Object]),default:()=>V2({})},sm:{type:gn([Number,Object]),default:()=>V2({})},md:{type:gn([Number,Object]),default:()=>V2({})},lg:{type:gn([Number,Object]),default:()=>V2({})},xl:{type:gn([Number,Object]),default:()=>V2({})}}),See=c.defineComponent({name:"ElCol"}),Cee=c.defineComponent({...See,props:Mee,setup(t){const e=t,{gutter:n}=c.inject(nE,{gutter:c.computed(()=>0)}),r=Ln("col"),o=c.computed(()=>{const l={};return n.value&&(l.paddingLeft=l.paddingRight=`${n.value/2}px`),l}),a=c.computed(()=>{const l=[];return["span","offset","pull","push"].forEach(u=>{const d=e[u];hr(d)&&(u==="span"?l.push(r.b(`${e[u]}`)):d>0&&l.push(r.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{hr(e[u])?l.push(r.b(`${u}-${e[u]}`)):Yi(e[u])&&Object.entries(e[u]).forEach(([d,p])=>{l.push(d!=="span"?r.b(`${u}-${d}-${p}`):r.b(`${u}-${p}`))})}),n.value&&l.push(r.is("guttered")),[r.b(),l]});return(l,s)=>(c.openBlock(),c.createBlock(c.resolveDynamicComponent(l.tag),{class:c.normalizeClass(c.unref(a)),style:c.normalizeStyle(c.unref(o))},{default:c.withCtx(()=>[c.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}});var Eee=En(Cee,[["__file","col.vue"]]);const _c=Ui(Eee),Hee=c.defineComponent({name:"ElCollapseTransition"}),Aee=c.defineComponent({...Hee,setup(t){const e=Ln("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,a)=>(c.openBlock(),c.createBlock(c.Transition,c.mergeProps({name:c.unref(e).b()},c.toHandlers(r)),{default:c.withCtx(()=>[c.renderSlot(o.$slots,"default")]),_:3},16,["name"]))}});var nd=En(Aee,[["__file","collapse-transition.vue"]]);nd.install=t=>{t.component(nd.name,nd)};const Vee=nd,Oee=Wn({color:{type:gn(Object),required:!0},vertical:{type:Boolean,default:!1}});let Ig=!1;function Lc(t,e){if(!Dr)return;const n=function(a){var l;(l=e.drag)==null||l.call(e,a)},r=function(a){var l;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Ig=!1,(l=e.end)==null||l.call(e,a)},o=function(a){var l;Ig||(a.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Ig=!0,(l=e.start)==null||l.call(e,a))};t.addEventListener("mousedown",o),t.addEventListener("touchstart",o)}const kee=t=>{const e=c.getCurrentInstance(),n=c.shallowRef(),r=c.shallowRef();function o(l){l.target!==n.value&&a(l)}function a(l){if(!r.value||!n.value)return;const h=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:d}=Rm(l);if(t.vertical){let p=d-h.top;p=Math.max(n.value.offsetHeight/2,p),p=Math.min(p,h.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((p-n.value.offsetHeight/2)/(h.height-n.value.offsetHeight)*100))}else{let p=u-h.left;p=Math.max(n.value.offsetWidth/2,p),p=Math.min(p,h.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((p-n.value.offsetWidth/2)/(h.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:a,handleClick:o}},Pee=(t,{bar:e,thumb:n,handleDrag:r})=>{const o=c.getCurrentInstance(),a=Ln("color-alpha-slider"),l=c.ref(0),s=c.ref(0),h=c.ref();function u(){if(!n.value||t.vertical)return 0;const L=o.vnode.el,S=t.color.get("alpha");return L?Math.round(S*(L.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const L=o.vnode.el;if(!t.vertical)return 0;const S=t.color.get("alpha");return L?Math.round(S*(L.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(t.color&&t.color.value){const{r:L,g:S,b:C}=t.color.toRgb();return`linear-gradient(to right, rgba(${L}, ${S}, ${C}, 0) 0%, rgba(${L}, ${S}, ${C}, 1) 100%)`}return""}function f(){l.value=u(),s.value=d(),h.value=p()}c.onMounted(()=>{if(!e.value||!n.value)return;const L={drag:S=>{r(S)},end:S=>{r(S)}};Lc(e.value,L),Lc(n.value,L),f()}),c.watch(()=>t.color.get("alpha"),()=>f()),c.watch(()=>t.color.value,()=>f());const m=c.computed(()=>[a.b(),a.is("vertical",t.vertical)]),y=c.computed(()=>a.e("bar")),v=c.computed(()=>a.e("thumb")),_=c.computed(()=>({background:h.value})),x=c.computed(()=>({left:A2(l.value),top:A2(s.value)}));return{rootKls:m,barKls:y,barStyle:_,thumbKls:v,thumbStyle:x,update:f}},Iee=c.defineComponent({name:"ElColorAlphaSlider"}),Ree=c.defineComponent({...Iee,props:Oee,setup(t,{expose:e}){const n=t,{bar:r,thumb:o,handleDrag:a,handleClick:l}=kee(n),{rootKls:s,barKls:h,barStyle:u,thumbKls:d,thumbStyle:p,update:f}=Pee(n,{bar:r,thumb:o,handleDrag:a});return e({update:f,bar:r,thumb:o}),(m,y)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(c.unref(s))},[c.createElementVNode("div",{ref_key:"bar",ref:r,class:c.normalizeClass(c.unref(h)),style:c.normalizeStyle(c.unref(u)),onClick:y[0]||(y[0]=(...v)=>c.unref(l)&&c.unref(l)(...v))},null,6),c.createElementVNode("div",{ref_key:"thumb",ref:o,class:c.normalizeClass(c.unref(d)),style:c.normalizeStyle(c.unref(p))},null,6)],2))}});var Nee=En(Ree,[["__file","alpha-slider.vue"]]);const Bee=c.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=Ln("color-hue-slider"),n=c.getCurrentInstance(),r=c.ref(),o=c.ref(),a=c.ref(0),l=c.ref(0),s=c.computed(()=>t.color.get("hue"));c.watch(()=>s.value,()=>{f()});function h(m){m.target!==r.value&&u(m)}function u(m){if(!o.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:_,clientY:x}=Rm(m);let L;if(t.vertical){let S=x-v.top;S=Math.min(S,v.height-r.value.offsetHeight/2),S=Math.max(r.value.offsetHeight/2,S),L=Math.round((S-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let S=_-v.left;S=Math.min(S,v.width-r.value.offsetWidth/2),S=Math.max(r.value.offsetWidth/2,S),L=Math.round((S-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",L)}function d(){if(!r.value)return 0;const m=n.vnode.el;if(t.vertical)return 0;const y=t.color.get("hue");return m?Math.round(y*(m.offsetWidth-r.value.offsetWidth/2)/360):0}function p(){if(!r.value)return 0;const m=n.vnode.el;if(!t.vertical)return 0;const y=t.color.get("hue");return m?Math.round(y*(m.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){a.value=d(),l.value=p()}return c.onMounted(()=>{if(!o.value||!r.value)return;const m={drag:y=>{u(y)},end:y=>{u(y)}};Lc(o.value,m),Lc(r.value,m),f()}),{bar:o,thumb:r,thumbLeft:a,thumbTop:l,hueValue:s,handleClick:h,update:f,ns:e}}});function Dee(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[c.createElementVNode("div",{ref:"bar",class:c.normalizeClass(t.ns.e("bar")),onClick:e[0]||(e[0]=(...l)=>t.handleClick&&t.handleClick(...l))},null,2),c.createElementVNode("div",{ref:"thumb",class:c.normalizeClass(t.ns.e("thumb")),style:c.normalizeStyle({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var Fee=En(Bee,[["render",Dee],["__file","hue-slider.vue"]]);const zee=Wn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ss,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:gn(Array)},validateEvent:{type:Boolean,default:!0}}),Uee={[rr]:t=>si(t)||d1(t),[l4]:t=>si(t)||d1(t),activeChange:t=>si(t)||d1(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},rE=Symbol("colorPickerContextKey"),iE=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},jee=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},Gee=function(t){return typeof t=="string"&&t.includes("%")},h0=function(t,e){jee(t)&&(t="100%");const n=Gee(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},oE={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},rd=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${oE[e]||e}${oE[n]||n}`},aE=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${rd(t)}${rd(e)}${rd(n)}`},Rg={A:10,B:11,C:12,D:13,E:14,F:15},m4=function(t){return t.length===2?(Rg[t[0].toUpperCase()]||+t[0])*16+(Rg[t[1].toUpperCase()]||+t[1]):Rg[t[1].toUpperCase()]||+t[1]},Wee=function(t,e,n){e=e/100,n=n/100;let r=e;const o=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=o<=1?o:2-o;const a=(n+e)/2,l=n===0?2*r/(o+r):2*e/(n+e);return{h:t,s:l*100,v:a*100}},sE=(t,e,n)=>{t=h0(t,255),e=h0(e,255),n=h0(n,255);const r=Math.max(t,e,n),o=Math.min(t,e,n);let a;const l=r,s=r-o,h=r===0?0:s/r;if(r===o)a=0;else{switch(r){case t:{a=(e-n)/s+(e<n?6:0);break}case e:{a=(n-t)/s+2;break}case n:{a=(t-e)/s+4;break}}a/=6}return{h:a*360,s:h*100,v:l*100}},wc=function(t,e,n){t=h0(t,360)*6,e=h0(e,100),n=h0(n,100);const r=Math.floor(t),o=t-r,a=n*(1-e),l=n*(1-o*e),s=n*(1-(1-o)*e),h=r%6,u=[n,l,a,a,s,n][h],d=[s,n,n,l,a,a][h],p=[a,a,s,n,n,l][h];return{r:Math.round(u*255),g:Math.round(d*255),b:Math.round(p*255)}};let Mc=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in e)t4(e,n)&&(this[n]=e[n]);e.value?this.fromString(e.value):this.doOnChange()}set(e,n){if(arguments.length===1&&typeof e=="object"){for(const r in e)t4(e,r)&&this.set(r,e[r]);return}this[`_${e}`]=n,this.doOnChange()}get(e){return e==="alpha"?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return wc(this._hue,this._saturation,this._value)}fromString(e){if(!e){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,o,a)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,o)),this._value=Math.max(0,Math.min(100,a)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,a)=>a>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:a,v:l}=Wee(r[0],r[1],r[2]);n(o,a,l)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,a)=>a>2?Number.parseFloat(o):Number.parseInt(o,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(o=>o!=="").map((o,a)=>a>2?Number.parseFloat(o):Number.parseInt(o,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:o,s:a,v:l}=sE(r[0],r[1],r[2]);n(o,a,l)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let o,a,l;r.length===3?(o=m4(r[0]+r[0]),a=m4(r[1]+r[1]),l=m4(r[2]+r[2])):(r.length===6||r.length===8)&&(o=m4(r.slice(0,2)),a=m4(r.slice(2,4)),l=m4(r.slice(4,6))),r.length===8?this._alpha=m4(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:h,v:u}=sE(o,a,l);n(s,h,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:o,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":{const l=iE(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${aE(wc(e,n,r))}${rd(o*255/100)}`;break}default:{const{r:l,g:s,b:h}=wc(e,n,r);this.value=`rgba(${l}, ${s}, ${h}, ${this.get("alpha")/100})`}}else switch(a){case"hsl":{const l=iE(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:l,g:s,b:h}=wc(e,n,r);this.value=`rgb(${l}, ${s}, ${h})`;break}default:this.value=aE(wc(e,n,r))}}};const Zee=c.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const e=Ln("color-predefine"),{currentColor:n}=c.inject(rE),r=c.ref(a(t.colors,t.color));c.watch(()=>n.value,l=>{const s=new Mc;s.fromString(l),r.value.forEach(h=>{h.selected=s.compare(h)})}),c.watchEffect(()=>{r.value=a(t.colors,t.color)});function o(l){t.color.fromString(t.colors[l])}function a(l,s){return l.map(h=>{const u=new Mc;return u.enableAlpha=!0,u.format="rgba",u.fromString(h),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:o,ns:e}}}),$ee=["onClick"];function qee(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(t.ns.b())},[c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("colors"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.rgbaColors,(l,s)=>(c.openBlock(),c.createElementBlock("div",{key:t.colors[s],class:c.normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",l._alpha<100),{selected:l.selected}]),onClick:h=>t.handleSelect(s)},[c.createElementVNode("div",{style:c.normalizeStyle({backgroundColor:l.value})},null,4)],10,$ee))),128))],2)],2)}var Xee=En(Zee,[["render",qee],["__file","predefine.vue"]]);const Kee=c.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=Ln("color-svpanel"),n=c.getCurrentInstance(),r=c.ref(0),o=c.ref(0),a=c.ref("hsl(0, 100%, 50%)"),l=c.computed(()=>{const u=t.color.get("hue"),d=t.color.get("value");return{hue:u,value:d}});function s(){const u=t.color.get("saturation"),d=t.color.get("value"),p=n.vnode.el,{clientWidth:f,clientHeight:m}=p;o.value=u*f/100,r.value=(100-d)*m/100,a.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function h(u){const p=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:m}=Rm(u);let y=f-p.left,v=m-p.top;y=Math.max(0,y),y=Math.min(y,p.width),v=Math.max(0,v),v=Math.min(v,p.height),o.value=y,r.value=v,t.color.set({saturation:y/p.width*100,value:100-v/p.height*100})}return c.watch(()=>l.value,()=>{s()}),c.onMounted(()=>{Lc(n.vnode.el,{drag:u=>{h(u)},end:u=>{h(u)}}),s()}),{cursorTop:r,cursorLeft:o,background:a,colorValue:l,handleDrag:h,update:s,ns:e}}}),Jee=[c.createElementVNode("div",null,null,-1)];function Yee(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(t.ns.b()),style:c.normalizeStyle({backgroundColor:t.background})},[c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("white"))},null,2),c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("black"))},null,2),c.createElementVNode("div",{class:c.normalizeClass(t.ns.e("cursor")),style:c.normalizeStyle({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},Jee,6)],6)}var ete=En(Kee,[["render",Yee],["__file","sv-panel.vue"]]);const tte=["onKeydown"],nte=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],rte=c.defineComponent({name:"ElColorPicker"}),ite=c.defineComponent({...rte,props:zee,emits:Uee,setup(t,{expose:e,emit:n}){const r=t,{t:o}=u4(),a=Ln("color"),{formItem:l}=Es(),s=Cs(),h=o0(),{inputId:u,isLabeledByFormItem:d}=a0(r,{formItemContext:l}),p=c.ref(),f=c.ref(),m=c.ref(),y=c.ref(),v=c.ref(),_=c.ref(),{isFocused:x,handleFocus:L,handleBlur:S}=vg(v,{beforeBlur(me){var Ne;return(Ne=y.value)==null?void 0:Ne.isFocusInsideContent(me)},afterBlur(){te(!1),ee()}}),C=me=>{if(h.value)return je();L(me)};let A=!0;const H=c.reactive(new Mc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),k=c.ref(!1),B=c.ref(!1),D=c.ref(""),z=c.computed(()=>!r.modelValue&&!B.value?"transparent":X(H,r.showAlpha)),q=c.computed(()=>!r.modelValue&&!B.value?"":H.value),F=c.computed(()=>d.value?void 0:r.label||o("el.colorpicker.defaultLabel")),Z=c.computed(()=>d.value?l==null?void 0:l.labelId:void 0),K=c.computed(()=>[a.b("picker"),a.is("disabled",h.value),a.bm("picker",s.value),a.is("focused",x.value)]);function X(me,Ne){if(!(me instanceof Mc))throw new TypeError("color should be instance of _color Class");const{r:Ie,g:Ke,b:Ye}=me.toRgb();return Ne?`rgba(${Ie}, ${Ke}, ${Ye}, ${me.get("alpha")/100})`:`rgb(${Ie}, ${Ke}, ${Ye})`}function te(me){k.value=me}const J=Ah(te,100,{leading:!0});function he(){h.value||te(!0)}function xe(){J(!1),ee()}function ee(){c.nextTick(()=>{r.modelValue?H.fromString(r.modelValue):(H.value="",c.nextTick(()=>{B.value=!1}))})}function oe(){h.value||J(!k.value)}function de(){H.fromString(D.value)}function fe(){const me=H.value;n(rr,me),n("change",me),r.validateEvent&&(l==null||l.validate("change").catch(Ne=>Fr(Ne))),J(!1),c.nextTick(()=>{const Ne=new Mc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});H.compare(Ne)||ee()})}function Ae(){J(!1),n(rr,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(l==null||l.validate("change").catch(me=>Fr(me))),ee()}function Se(me){if(k.value&&(xe(),x.value)){const Ne=new FocusEvent("focus",me);S(Ne)}}function Qe(me){me.preventDefault(),me.stopPropagation(),te(!1),ee()}function Le(me){switch(me.code){case Mi.enter:case Mi.space:me.preventDefault(),me.stopPropagation(),he(),_.value.focus();break;case Mi.esc:Qe(me);break}}function Ce(){v.value.focus()}function je(){v.value.blur()}return c.onMounted(()=>{r.modelValue&&(D.value=q.value)}),c.watch(()=>r.modelValue,me=>{me?me&&me!==H.value&&(A=!1,H.fromString(me)):B.value=!1}),c.watch(()=>q.value,me=>{D.value=me,A&&n("activeChange",me),A=!0}),c.watch(()=>H.value,()=>{!r.modelValue&&!B.value&&(B.value=!0)}),c.watch(()=>k.value,()=>{c.nextTick(()=>{var me,Ne,Ie;(me=p.value)==null||me.update(),(Ne=f.value)==null||Ne.update(),(Ie=m.value)==null||Ie.update()})}),c.provide(rE,{currentColor:q}),e({color:H,show:he,hide:xe,focus:Ce,blur:je}),(me,Ne)=>(c.openBlock(),c.createBlock(c.unref(Kh),{ref_key:"popper",ref:y,visible:k.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[c.unref(a).be("picker","panel"),c.unref(a).b("dropdown"),me.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${c.unref(a).namespace.value}-zoom-in-top`,persistent:"",onHide:Ne[2]||(Ne[2]=Ie=>te(!1))},{content:c.withCtx(()=>[c.withDirectives((c.openBlock(),c.createElementBlock("div",{onKeydown:c.withKeys(Qe,["esc"])},[c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).be("dropdown","main-wrapper"))},[c.createVNode(Fee,{ref_key:"hue",ref:p,class:"hue-slider",color:c.unref(H),vertical:""},null,8,["color"]),c.createVNode(ete,{ref_key:"sv",ref:f,color:c.unref(H)},null,8,["color"])],2),me.showAlpha?(c.openBlock(),c.createBlock(Nee,{key:0,ref_key:"alpha",ref:m,color:c.unref(H)},null,8,["color"])):c.createCommentVNode("v-if",!0),me.predefine?(c.openBlock(),c.createBlock(Xee,{key:1,ref:"predefine",color:c.unref(H),colors:me.predefine},null,8,["color","colors"])):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).be("dropdown","btns"))},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).be("dropdown","value"))},[c.createVNode(c.unref(xg),{ref_key:"inputRef",ref:_,modelValue:D.value,"onUpdate:modelValue":Ne[0]||(Ne[0]=Ie=>D.value=Ie),"validate-event":!1,size:"small",onKeyup:c.withKeys(de,["enter"]),onBlur:de},null,8,["modelValue","onKeyup"])],2),c.createVNode(c.unref(ed),{class:c.normalizeClass(c.unref(a).be("dropdown","link-btn")),text:"",size:"small",onClick:Ae},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),c.createVNode(c.unref(ed),{plain:"",size:"small",class:c.normalizeClass(c.unref(a).be("dropdown","btn")),onClick:fe},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(c.unref(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,tte)),[[c.unref(ZC),Se]])]),default:c.withCtx(()=>[c.createElementVNode("div",{id:c.unref(u),ref_key:"triggerRef",ref:v,class:c.normalizeClass(c.unref(K)),role:"button","aria-label":c.unref(F),"aria-labelledby":c.unref(Z),"aria-description":c.unref(o)("el.colorpicker.description",{color:me.modelValue||""}),"aria-disabled":c.unref(h),tabindex:c.unref(h)?-1:me.tabindex,onKeydown:Le,onFocus:C,onBlur:Ne[1]||(Ne[1]=(...Ie)=>c.unref(S)&&c.unref(S)(...Ie))},[c.unref(h)?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(a).be("picker","mask"))},null,2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{class:c.normalizeClass(c.unref(a).be("picker","trigger")),onClick:oe},[c.createElementVNode("span",{class:c.normalizeClass([c.unref(a).be("picker","color"),c.unref(a).is("alpha",me.showAlpha)])},[c.createElementVNode("span",{class:c.normalizeClass(c.unref(a).be("picker","color-inner")),style:c.normalizeStyle({backgroundColor:c.unref(z)})},[c.withDirectives(c.createVNode(c.unref(zr),{class:c.normalizeClass([c.unref(a).be("picker","icon"),c.unref(a).is("icon-arrow-down")])},{default:c.withCtx(()=>[c.createVNode(c.unref(Ph))]),_:1},8,["class"]),[[c.vShow,me.modelValue||B.value]]),c.withDirectives(c.createVNode(c.unref(zr),{class:c.normalizeClass([c.unref(a).be("picker","empty"),c.unref(a).is("icon-close")])},{default:c.withCtx(()=>[c.createVNode(c.unref(uc))]),_:1},8,["class"]),[[c.vShow,!me.modelValue&&!B.value]])],6)],2)],2)],42,nte)]),_:1},8,["visible","popper-class","transition"]))}});var ote=En(ite,[["__file","color-picker.vue"]]);const lE=Ui(ote),ate=c.defineComponent({name:"ElContainer"}),ste=c.defineComponent({...ate,props:{direction:{type:String}},setup(t){const e=t,n=c.useSlots(),r=Ln("container"),o=c.computed(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const s=l.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(a,l)=>(c.openBlock(),c.createElementBlock("section",{class:c.normalizeClass([c.unref(r).b(),c.unref(r).is("vertical",c.unref(o))])},[c.renderSlot(a.$slots,"default")],2))}});var lte=En(ste,[["__file","container.vue"]]);const cte=c.defineComponent({name:"ElAside"}),ute=c.defineComponent({...cte,props:{width:{type:String,default:null}},setup(t){const e=t,n=Ln("aside"),r=c.computed(()=>e.width?n.cssVarBlock({width:e.width}):{});return(o,a)=>(c.openBlock(),c.createElementBlock("aside",{class:c.normalizeClass(c.unref(n).b()),style:c.normalizeStyle(c.unref(r))},[c.renderSlot(o.$slots,"default")],6))}});var cE=En(ute,[["__file","aside.vue"]]);const hte=c.defineComponent({name:"ElFooter"}),dte=c.defineComponent({...hte,props:{height:{type:String,default:null}},setup(t){const e=t,n=Ln("footer"),r=c.computed(()=>e.height?n.cssVarBlock({height:e.height}):{});return(o,a)=>(c.openBlock(),c.createElementBlock("footer",{class:c.normalizeClass(c.unref(n).b()),style:c.normalizeStyle(c.unref(r))},[c.renderSlot(o.$slots,"default")],6))}});var uE=En(dte,[["__file","footer.vue"]]);const pte=c.defineComponent({name:"ElHeader"}),fte=c.defineComponent({...pte,props:{height:{type:String,default:null}},setup(t){const e=t,n=Ln("header"),r=c.computed(()=>e.height?n.cssVarBlock({height:e.height}):{});return(o,a)=>(c.openBlock(),c.createElementBlock("header",{class:c.normalizeClass(c.unref(n).b()),style:c.normalizeStyle(c.unref(r))},[c.renderSlot(o.$slots,"default")],6))}});var hE=En(fte,[["__file","header.vue"]]);const Tte=c.defineComponent({name:"ElMain"}),Qte=c.defineComponent({...Tte,setup(t){const e=Ln("main");return(n,r)=>(c.openBlock(),c.createElementBlock("main",{class:c.normalizeClass(c.unref(e).b())},[c.renderSlot(n.$slots,"default")],2))}});var dE=En(Qte,[["__file","main.vue"]]);const id=Ui(lte,{Aside:cE,Footer:uE,Header:hE,Main:dE});Ra(cE);const pE=Ra(uE),od=Ra(hE),ad=Ra(dE),mte=Wn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:gn([String,Array,Object])},zIndex:{type:gn([String,Number])}}),gte={click:t=>t instanceof MouseEvent},yte="overlay";var vte=c.defineComponent({name:"ElOverlay",props:mte,emits:gte,setup(t,{slots:e,emit:n}){const r=Ln(yte),o=h=>{n("click",h)},{onClick:a,onMousedown:l,onMouseup:s}=NK(t.customMaskEvent?void 0:o);return()=>t.mask?c.createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:a,onMousedown:l,onMouseup:s},[c.renderSlot(e,"default")],Rh.STYLE|Rh.CLASS|Rh.PROPS,["onClick","onMouseup","onMousedown"]):c.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[c.renderSlot(e,"default")])}});const bte=vte,xte=Wn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Ms},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),_te=Wn({...xte,appendToBody:Boolean,appendTo:{type:gn(String),default:"body"},beforeClose:{type:gn(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),Lte={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[rr]:t=>a4(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},wte=(t,e)=>{var n;const o=c.getCurrentInstance().emit,{nextZIndex:a}=yg();let l="";const s=r0(),h=r0(),u=c.ref(!1),d=c.ref(!1),p=c.ref(!1),f=c.ref((n=t.zIndex)!=null?n:a());let m,y;const v=Wh("namespace",pc),_=c.computed(()=>{const X={},te=`--${v.value}-dialog`;return t.fullscreen||(t.top&&(X[`${te}-margin-top`]=t.top),t.width&&(X[`${te}-width`]=A2(t.width))),X}),x=c.computed(()=>t.alignCenter?{display:"flex"}:{});function L(){o("opened")}function S(){o("closed"),o(rr,!1),t.destroyOnClose&&(p.value=!1)}function C(){o("close")}function A(){y==null||y(),m==null||m(),t.openDelay&&t.openDelay>0?{stop:m}=xM(()=>D(),t.openDelay):D()}function H(){m==null||m(),y==null||y(),t.closeDelay&&t.closeDelay>0?{stop:y}=xM(()=>z(),t.closeDelay):z()}function k(){function X(te){te||(d.value=!0,u.value=!1)}t.beforeClose?t.beforeClose(X):H()}function B(){t.closeOnClickModal&&k()}function D(){Dr&&(u.value=!0)}function z(){u.value=!1}function q(){o("openAutoFocus")}function F(){o("closeAutoFocus")}function Z(X){var te;((te=X.detail)==null?void 0:te.focusReason)==="pointer"&&X.preventDefault()}t.lockScroll&&LX(u);function K(){t.closeOnPressEscape&&k()}return c.watch(()=>t.modelValue,X=>{X?(d.value=!1,A(),p.value=!0,f.value=bS(t.zIndex)?a():f.value++,c.nextTick(()=>{o("open"),e.value&&(e.value.scrollTop=0)})):u.value&&H()}),c.watch(()=>t.fullscreen,X=>{e.value&&(X?(l=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=l)}),c.onMounted(()=>{t.modelValue&&(u.value=!0,p.value=!0,A())}),{afterEnter:L,afterLeave:S,beforeLeave:C,handleClose:k,onModalClick:B,close:H,doClose:z,onOpenAutoFocus:q,onCloseAutoFocus:F,onCloseRequested:K,onFocusoutPrevented:Z,titleId:s,bodyId:h,closed:d,style:_,overlayDialogStyle:x,rendered:p,visible:u,zIndex:f}},Mte=Wn({..._te,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Ste=Lte,Cte=c.defineComponent({name:"ElDrawer",components:{ElOverlay:bte,ElFocusTrap:IC,ElIcon:zr,Close:uc},inheritAttrs:!1,props:Mte,emits:Ste,setup(t,{slots:e}){hc({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},c.computed(()=>!!e.title)),hc({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},c.computed(()=>!!t.customClass));const n=c.ref(),r=c.ref(),o=Ln("drawer"),{t:a}=u4(),l=c.computed(()=>t.direction==="rtl"||t.direction==="ltr"),s=c.computed(()=>A2(t.size));return{...wte(t,n),drawerRef:n,focusStartRef:r,isHorizontal:l,drawerSize:s,ns:o,t:a}}}),Ete=["aria-label","aria-labelledby","aria-describedby"],Hte=["id","aria-level"],Ate=["aria-label"],Vte=["id"];function Ote(t,e,n,r,o,a){const l=c.resolveComponent("close"),s=c.resolveComponent("el-icon"),h=c.resolveComponent("el-focus-trap"),u=c.resolveComponent("el-overlay");return c.openBlock(),c.createBlock(c.Teleport,{to:"body",disabled:!t.appendToBody},[c.createVNode(c.Transition,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createVNode(u,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:c.withCtx(()=>[c.createVNode(h,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:c.withCtx(()=>[c.createElementVNode("div",c.mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:t.titleId,"aria-describedby":t.bodyId},t.$attrs,{class:[t.ns.b(),t.direction,t.visible&&"open",t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,role:"dialog",onClick:e[1]||(e[1]=c.withModifiers(()=>{},["stop"]))}),[c.createElementVNode("span",{ref:"focusStartRef",class:c.normalizeClass(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(c.openBlock(),c.createElementBlock("header",{key:0,class:c.normalizeClass(t.ns.e("header"))},[t.$slots.title?c.renderSlot(t.$slots,"title",{key:1},()=>[c.createCommentVNode(" DEPRECATED SLOT ")]):c.renderSlot(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:c.normalizeClass(t.ns.e("title"))},c.toDisplayString(t.title),11,Hte))]),t.showClose?(c.openBlock(),c.createElementBlock("button",{key:2,"aria-label":t.t("el.drawer.close"),class:c.normalizeClass(t.ns.e("close-btn")),type:"button",onClick:e[0]||(e[0]=(...d)=>t.handleClose&&t.handleClose(...d))},[c.createVNode(s,{class:c.normalizeClass(t.ns.e("close"))},{default:c.withCtx(()=>[c.createVNode(l)]),_:1},8,["class"])],10,Ate)):c.createCommentVNode("v-if",!0)],2)):c.createCommentVNode("v-if",!0),t.rendered?(c.openBlock(),c.createElementBlock("div",{key:1,id:t.bodyId,class:c.normalizeClass(t.ns.e("body"))},[c.renderSlot(t.$slots,"default")],10,Vte)):c.createCommentVNode("v-if",!0),t.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(t.ns.e("footer"))},[c.renderSlot(t.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)],16,Ete)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[c.vShow,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var kte=En(Cte,[["render",Ote],["__file","drawer.vue"]]);const fE=Ui(kte),Pte=c.defineComponent({inheritAttrs:!1});function Ite(t,e,n,r,o,a){return c.renderSlot(t.$slots,"default")}var Rte=En(Pte,[["render",Ite],["__file","collection.vue"]]);const Nte=c.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function Bte(t,e,n,r,o,a){return c.renderSlot(t.$slots,"default")}var Dte=En(Nte,[["render",Bte],["__file","collection-item.vue"]]);const Fte="data-el-collection-item",zte=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),o=Symbol(n),a={...Rte,name:e,setup(){const s=c.ref(null),h=new Map,u=()=>{const d=c.unref(s);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${Fte}]`));return[...h.values()].sort((m,y)=>p.indexOf(m.ref)-p.indexOf(y.ref))};c.provide(r,{itemMap:h,getItems:u,collectionRef:s})}},l={...Dte,name:n,setup(s,{attrs:h}){const u=c.ref(null),d=c.inject(r,void 0);c.provide(o,{collectionItemRef:u}),c.onMounted(()=>{const p=c.unref(u);p&&d.itemMap.set(p,{ref:p,...h})}),c.onBeforeUnmount(()=>{const p=c.unref(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:l}},Ng=Wn({trigger:xc.trigger,effect:{...T1.effect,default:"light"},type:{type:gn(String)},placement:{type:gn(String),default:"bottom"},popperOptions:{type:gn(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:gn([Number,String]),default:0},maxHeight:{type:gn([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:gn(Object)},teleported:T1.teleported});Wn({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ms}}),Wn({onKeydown:{type:gn(Function)}}),zte("Dropdown");const Ute=Wn({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Ss,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||hr(t)||["min","max"].includes(t),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0}}),jte={[l4]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[c4]:t=>hr(t)||d1(t),[rr]:t=>hr(t)||d1(t)},Gte=["aria-label","onKeydown"],Wte=["aria-label","onKeydown"],Zte=c.defineComponent({name:"ElInputNumber"}),$te=c.defineComponent({...Zte,props:Ute,emits:jte,setup(t,{expose:e,emit:n}){const r=t,{t:o}=u4(),a=Ln("input-number"),l=c.ref(),s=c.reactive({currentValue:r.modelValue,userInput:null}),{formItem:h}=Es(),u=c.computed(()=>hr(r.modelValue)&&r.modelValue<=r.min),d=c.computed(()=>hr(r.modelValue)&&r.modelValue>=r.max),p=c.computed(()=>{const K=x(r.step);return J1(r.precision)?Math.max(x(r.modelValue),K):(K>r.precision&&Fr("InputNumber","precision should not be less than the decimal places of step"),r.precision)}),f=c.computed(()=>r.controls&&r.controlsPosition==="right"),m=Cs(),y=o0(),v=c.computed(()=>{if(s.userInput!==null)return s.userInput;let K=s.currentValue;if(d1(K))return"";if(hr(K)){if(Number.isNaN(K))return"";J1(r.precision)||(K=K.toFixed(r.precision))}return K}),_=(K,X)=>{if(J1(X)&&(X=p.value),X===0)return Math.round(K);let te=String(K);const J=te.indexOf(".");if(J===-1||!te.replace(".","").split("")[J+X])return K;const ee=te.length;return te.charAt(ee-1)==="5"&&(te=`${te.slice(0,Math.max(0,ee-1))}6`),Number.parseFloat(Number(te).toFixed(X))},x=K=>{if(d1(K))return 0;const X=K.toString(),te=X.indexOf(".");let J=0;return te!==-1&&(J=X.length-te-1),J},L=(K,X=1)=>hr(K)?_(K+r.step*X):s.currentValue,S=()=>{if(r.readonly||y.value||d.value)return;const K=Number(v.value)||0,X=L(K);H(X),n(c4,s.currentValue),Z()},C=()=>{if(r.readonly||y.value||u.value)return;const K=Number(v.value)||0,X=L(K,-1);H(X),n(c4,s.currentValue),Z()},A=(K,X)=>{const{max:te,min:J,step:he,precision:xe,stepStrictly:ee,valueOnClear:oe}=r;te<J&&s4("InputNumber","min should not be greater than max.");let de=Number(K);if(d1(K)||Number.isNaN(de))return null;if(K===""){if(oe===null)return null;de=si(oe)?{min:J,max:te}[oe]:oe}return ee&&(de=_(Math.round(de/he)*he,xe)),J1(xe)||(de=_(de,xe)),(de>te||de<J)&&(de=de>te?te:J,X&&n(rr,de)),de},H=(K,X=!0)=>{var te;const J=s.currentValue,he=A(K);if(!X){n(rr,he);return}J!==he&&(s.userInput=null,n(rr,he),n(l4,he,J),r.validateEvent&&((te=h==null?void 0:h.validate)==null||te.call(h,"change").catch(xe=>Fr(xe))),s.currentValue=he)},k=K=>{s.userInput=K;const X=K===""?null:Number(K);n(c4,X),H(X,!1)},B=K=>{const X=K!==""?Number(K):"";(hr(X)&&!Number.isNaN(X)||K==="")&&H(X),Z(),s.userInput=null},D=()=>{var K,X;(X=(K=l.value)==null?void 0:K.focus)==null||X.call(K)},z=()=>{var K,X;(X=(K=l.value)==null?void 0:K.blur)==null||X.call(K)},q=K=>{n("focus",K)},F=K=>{var X;s.userInput=null,n("blur",K),r.validateEvent&&((X=h==null?void 0:h.validate)==null||X.call(h,"blur").catch(te=>Fr(te)))},Z=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)};return c.watch(()=>r.modelValue,(K,X)=>{const te=A(K,!0);s.userInput===null&&te!==X&&(s.currentValue=te)},{immediate:!0}),c.onMounted(()=>{var K;const{min:X,max:te,modelValue:J}=r,he=(K=l.value)==null?void 0:K.input;if(he.setAttribute("role","spinbutton"),Number.isFinite(te)?he.setAttribute("aria-valuemax",String(te)):he.removeAttribute("aria-valuemax"),Number.isFinite(X)?he.setAttribute("aria-valuemin",String(X)):he.removeAttribute("aria-valuemin"),he.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),he.setAttribute("aria-disabled",String(y.value)),!hr(J)&&J!=null){let xe=Number(J);Number.isNaN(xe)&&(xe=null),n(rr,xe)}}),c.onUpdated(()=>{var K,X;const te=(K=l.value)==null?void 0:K.input;te==null||te.setAttribute("aria-valuenow",`${(X=s.currentValue)!=null?X:""}`)}),e({focus:D,blur:z}),(K,X)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([c.unref(a).b(),c.unref(a).m(c.unref(m)),c.unref(a).is("disabled",c.unref(y)),c.unref(a).is("without-controls",!K.controls),c.unref(a).is("controls-right",c.unref(f))]),onDragstart:X[1]||(X[1]=c.withModifiers(()=>{},["prevent"]))},[K.controls?c.withDirectives((c.openBlock(),c.createElementBlock("span",{key:0,role:"button","aria-label":c.unref(o)("el.inputNumber.decrease"),class:c.normalizeClass([c.unref(a).e("decrease"),c.unref(a).is("disabled",c.unref(u))]),onKeydown:c.withKeys(C,["enter"])},[c.createVNode(c.unref(zr),null,{default:c.withCtx(()=>[c.unref(f)?(c.openBlock(),c.createBlock(c.unref(Ph),{key:0})):(c.openBlock(),c.createBlock(c.unref(Xq),{key:1}))]),_:1})],42,Gte)),[[c.unref($C),C]]):c.createCommentVNode("v-if",!0),K.controls?c.withDirectives((c.openBlock(),c.createElementBlock("span",{key:1,role:"button","aria-label":c.unref(o)("el.inputNumber.increase"),class:c.normalizeClass([c.unref(a).e("increase"),c.unref(a).is("disabled",c.unref(d))]),onKeydown:c.withKeys(S,["enter"])},[c.createVNode(c.unref(zr),null,{default:c.withCtx(()=>[c.unref(f)?(c.openBlock(),c.createBlock(c.unref(Bq),{key:0})):(c.openBlock(),c.createBlock(c.unref(SS),{key:1}))]),_:1})],42,Wte)),[[c.unref($C),S]]):c.createCommentVNode("v-if",!0),c.createVNode(c.unref(xg),{id:K.id,ref_key:"input",ref:l,type:"number",step:K.step,"model-value":c.unref(v),placeholder:K.placeholder,readonly:K.readonly,disabled:c.unref(y),size:c.unref(m),max:K.max,min:K.min,name:K.name,label:K.label,"validate-event":!1,onWheel:X[0]||(X[0]=c.withModifiers(()=>{},["prevent"])),onKeydown:[c.withKeys(c.withModifiers(S,["prevent"]),["up"]),c.withKeys(c.withModifiers(C,["prevent"]),["down"])],onBlur:F,onFocus:q,onInput:k,onChange:B},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var qte=En($te,[["__file","input-number.vue"]]);const Bg=Ui(qte),TE=Symbol("ElSelectGroup"),sd=Symbol("ElSelect");function Xte(t,e){const n=c.inject(sd),r=c.inject(TE,{disabled:!1}),o=c.computed(()=>n.props.multiple?d(n.props.modelValue,t.value):X6(t.value,n.props.modelValue)),a=c.computed(()=>{if(n.props.multiple){const m=n.props.modelValue||[];return!o.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),l=c.computed(()=>t.label||(Yi(t.value)?"":t.value)),s=c.computed(()=>t.value||t.label||""),h=c.computed(()=>t.disabled||e.groupDisabled||a.value),u=c.getCurrentInstance(),d=(m=[],y)=>{if(Yi(t.value)){const v=n.props.valueKey;return m&&m.some(_=>c.toRaw(Ls(_,v))===Ls(y,v))}else return m&&m.includes(y)},p=()=>{!t.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},f=m=>{const y=new RegExp(Aq(m),"i");e.visible=y.test(l.value)||t.created};return c.watch(()=>l.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),c.watch(()=>t.value,(m,y)=>{const{remote:v,valueKey:_}=n.props;if(X6(m,y)||(n.onOptionDestroy(y,u.proxy),n.onOptionCreate(u.proxy)),!t.created&&!v){if(_&&Yi(m)&&Yi(y)&&m[_]===y[_])return;n.setSelected()}}),c.watch(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:l,currentValue:s,itemSelected:o,isDisabled:h,hoverItem:p,updateOption:f}}const Kte=c.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=Ln("select"),n=r0(),r=c.computed(()=>[e.be("dropdown","item"),e.is("disabled",c.unref(s)),e.is("selected",c.unref(l)),e.is("hovering",c.unref(f))]),o=c.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:a,itemSelected:l,isDisabled:s,select:h,hoverItem:u,updateOption:d}=Xte(t,o),{visible:p,hover:f}=c.toRefs(o),m=c.getCurrentInstance().proxy;h.onOptionCreate(m),c.onBeforeUnmount(()=>{const v=m.value,{selected:_}=h.states,L=(h.props.multiple?_:[_]).some(S=>S.value===m.value);c.nextTick(()=>{h.states.cachedOptions.get(v)===m&&!L&&h.states.cachedOptions.delete(v)}),h.onOptionDestroy(v,m)});function y(){t.disabled!==!0&&o.groupDisabled!==!0&&h.handleOptionSelect(m)}return{ns:e,id:n,containerKls:r,currentLabel:a,itemSelected:l,isDisabled:s,select:h,hoverItem:u,updateOption:d,visible:p,hover:f,selectOptionClick:y,states:o}}}),Jte=["id","aria-disabled","aria-selected"];function Yte(t,e,n,r,o,a){return c.withDirectives((c.openBlock(),c.createElementBlock("li",{id:t.id,class:c.normalizeClass(t.containerKls),role:"option","aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMouseenter:e[0]||(e[0]=(...l)=>t.hoverItem&&t.hoverItem(...l)),onClick:e[1]||(e[1]=c.withModifiers((...l)=>t.selectOptionClick&&t.selectOptionClick(...l),["stop"]))},[c.renderSlot(t.$slots,"default",{},()=>[c.createElementVNode("span",null,c.toDisplayString(t.currentLabel),1)])],42,Jte)),[[c.vShow,t.visible]])}var Dg=En(Kte,[["render",Yte],["__file","option.vue"]]);const ene=c.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=c.inject(sd),e=Ln("select"),n=c.computed(()=>t.props.popperClass),r=c.computed(()=>t.props.multiple),o=c.computed(()=>t.props.fitInputWidth),a=c.ref("");function l(){var s;a.value=`${(s=t.selectRef)==null?void 0:s.offsetWidth}px`}return c.onMounted(()=>{l(),vs(t.selectRef,l)}),{ns:e,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function tne(t,e,n,r,o,a){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:c.normalizeStyle({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[t.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.ns.be("dropdown","header"))},[c.renderSlot(t.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.renderSlot(t.$slots,"default"),t.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(t.ns.be("dropdown","footer"))},[c.renderSlot(t.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)],6)}var nne=En(ene,[["render",tne],["__file","select-dropdown.vue"]]);function rne(t){const e=c.ref(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:a=>{const l=a.target.value,s=l[l.length-1]||"";e.value=!VS(s)},handleCompositionEnd:a=>{e.value&&(e.value=!1,Ao(t)&&t(a))}}}const ine=11,one=(t,e)=>{const{t:n}=u4(),r=r0(),o=Ln("select"),a=Ln("input"),l=c.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:t.multiple?[]:{},selectionWidth:0,calculatorWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1});hc({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},c.computed(()=>t.suffixTransition===!1));const s=c.ref(null),h=c.ref(null),u=c.ref(null),d=c.ref(null),p=c.ref(null),f=c.ref(null),m=c.ref(null),y=c.ref(null),v=c.ref(null),_=c.ref(null),x=c.ref(null),{wrapperRef:L,isFocused:S,handleFocus:C,handleBlur:A}=vg(p,{afterFocus(){t.automaticDropdown&&!H.value&&(H.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(Me){var re,be;return((re=u.value)==null?void 0:re.isFocusInsideContent(Me))||((be=d.value)==null?void 0:be.isFocusInsideContent(Me))},afterBlur(){H.value=!1,l.menuVisibleOnFocus=!1}}),H=c.ref(!1),k=c.ref(),{form:B,formItem:D}=Es(),{inputId:z}=a0(t,{formItemContext:D}),q=c.computed(()=>t.disabled||(B==null?void 0:B.disabled)),F=c.computed(()=>t.multiple?wi(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!==""),Z=c.computed(()=>t.clearable&&!q.value&&l.inputHovering&&F.value),K=c.computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),X=c.computed(()=>o.is("reverse",K.value&&H.value&&t.suffixTransition)),te=c.computed(()=>(D==null?void 0:D.validateState)||""),J=c.computed(()=>HS[te.value]),he=c.computed(()=>t.remote?300:0),xe=c.computed(()=>t.loading?t.loadingText||n("el.select.loading"):t.remote&&!l.inputValue&&l.options.size===0?!1:t.filterable&&l.inputValue&&l.options.size>0&&ee.value===0?t.noMatchText||n("el.select.noMatch"):l.options.size===0?t.noDataText||n("el.select.noData"):null),ee=c.computed(()=>oe.value.filter(Me=>Me.visible).length),oe=c.computed(()=>{const Me=Array.from(l.options.values()),re=[];return l.optionValues.forEach(be=>{const Oe=Me.findIndex(Ze=>Ze.value===be);Oe>-1&&re.push(Me[Oe])}),re.length>=Me.length?re:Me}),de=c.computed(()=>Array.from(l.cachedOptions.values())),fe=c.computed(()=>{const Me=oe.value.filter(re=>!re.created).some(re=>re.currentLabel===l.inputValue);return t.filterable&&t.allowCreate&&l.inputValue!==""&&!Me}),Ae=()=>{t.filterable&&Ao(t.filterMethod)||t.filterable&&t.remote&&Ao(t.remoteMethod)||oe.value.forEach(Me=>{Me.updateOption(l.inputValue)})},Se=Cs(),Qe=c.computed(()=>["small"].includes(Se.value)?"small":"default"),Le=c.computed({get(){return H.value&&xe.value!==!1},set(Me){H.value=Me}}),Ce=c.computed(()=>wi(t.modelValue)?t.modelValue.length===0&&!l.inputValue:t.filterable?!l.inputValue:!0),je=c.computed(()=>{var Me;const re=(Me=t.placeholder)!=null?Me:n("el.select.placeholder");return t.multiple||!F.value?re:l.selectedLabel});c.watch(()=>t.modelValue,(Me,re)=>{t.multiple&&t.filterable&&!t.reserveKeyword&&(l.inputValue="",me("")),Ie(),!X6(Me,re)&&t.validateEvent&&(D==null||D.validate("change").catch(be=>Fr(be)))},{flush:"post",deep:!0}),c.watch(()=>H.value,Me=>{Me?me(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0),e("visible-change",Me)}),c.watch(()=>l.options.entries(),()=>{var Me;if(!Dr)return;const re=((Me=s.value)==null?void 0:Me.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!J1(t.modelValue)||!Array.from(re).includes(document.activeElement))&&Ie(),t.defaultFirstOption&&(t.filterable||t.remote)&&ee.value&&Ne()},{flush:"post"}),c.watch(()=>l.hoveringIndex,Me=>{hr(Me)&&Me>-1?k.value=oe.value[Me]||{}:k.value={},oe.value.forEach(re=>{re.hover=k.value===re})}),c.watchEffect(()=>{l.isBeforeHide||Ae()});const me=Me=>{l.previousQuery!==Me&&(l.previousQuery=Me,t.filterable&&Ao(t.filterMethod)?t.filterMethod(Me):t.filterable&&t.remote&&Ao(t.remoteMethod)&&t.remoteMethod(Me),t.defaultFirstOption&&(t.filterable||t.remote)&&ee.value?c.nextTick(Ne):c.nextTick(Ye))},Ne=()=>{const Me=oe.value.filter(Oe=>Oe.visible&&!Oe.disabled&&!Oe.states.groupDisabled),re=Me.find(Oe=>Oe.created),be=Me[0];l.hoveringIndex=Lt(oe.value,re||be)},Ie=()=>{if(t.multiple)l.selectedLabel="";else{const re=Ke(t.modelValue);l.selectedLabel=re.currentLabel,l.selected=re;return}const Me=[];wi(t.modelValue)&&t.modelValue.forEach(re=>{Me.push(Ke(re))}),l.selected=Me},Ke=Me=>{let re;const be=Nm(Me).toLowerCase()==="object",Oe=Nm(Me).toLowerCase()==="null",Ze=Nm(Me).toLowerCase()==="undefined";for(let Pt=l.cachedOptions.size-1;Pt>=0;Pt--){const xt=de.value[Pt];if(be?Ls(xt.value,t.valueKey)===Ls(Me,t.valueKey):xt.value===Me){re={value:Me,currentLabel:xt.currentLabel,isDisabled:xt.isDisabled};break}}if(re)return re;const rt=be?Me.label:!Oe&&!Ze?Me:"";return{value:Me,currentLabel:rt}},Ye=()=>{t.multiple?l.selected.length>0?l.hoveringIndex=Math.min(...l.selected.map(Me=>oe.value.findIndex(re=>ge(re)===ge(Me)))):l.hoveringIndex=-1:l.hoveringIndex=oe.value.findIndex(Me=>ge(Me)===ge(l.selected))},ht=()=>{l.selectionWidth=h.value.getBoundingClientRect().width},dt=()=>{l.calculatorWidth=f.value.getBoundingClientRect().width},Ee=()=>{var Me,re;(re=(Me=u.value)==null?void 0:Me.updatePopper)==null||re.call(Me)},ye=()=>{var Me,re;(re=(Me=d.value)==null?void 0:Me.updatePopper)==null||re.call(Me)},it=()=>{me(l.inputValue)},Ve=Me=>{if(l.inputValue=Me.target.value,l.inputValue.length>0&&!H.value&&(H.value=!0),t.remote)yt();else return it()},yt=Ah(()=>{it()},he.value),bt=Me=>{X6(t.modelValue,Me)||e(l4,Me)},_t=Me=>wq(Me,re=>!l.disabledOptions.has(re)),nt=Me=>{if(t.multiple&&Me.code!==Mi.delete&&Me.target.value.length<=0){const re=t.modelValue.slice(),be=_t(re);if(be<0)return;re.splice(be,1),e(rr,re),bt(re)}},Je=(Me,re)=>{const be=l.selected.indexOf(re);if(be>-1&&!q.value){const Oe=t.modelValue.slice();Oe.splice(be,1),e(rr,Oe),bt(Oe),e("remove-tag",re.value)}Me.stopPropagation(),Mt()},et=Me=>{Me.stopPropagation();const re=t.multiple?[]:"";if(!si(re))for(const be of l.selected)be.isDisabled&&re.push(be.value);e(rr,re),bt(re),l.hoveringIndex=-1,H.value=!1,e("clear"),Mt()},Xe=Me=>{if(t.multiple){const re=(t.modelValue||[]).slice(),be=Lt(re,Me.value);be>-1?re.splice(be,1):(t.multipleLimit<=0||re.length<t.multipleLimit)&&re.push(Me.value),e(rr,re),bt(re),Me.created&&me(""),t.filterable&&!t.reserveKeyword&&(l.inputValue="")}else e(rr,Me.value),bt(Me.value),H.value=!1;Mt(),!H.value&&c.nextTick(()=>{vt(Me)})},Lt=(Me=[],re)=>{if(!Yi(re))return Me.indexOf(re);const be=t.valueKey;let Oe=-1;return Me.some((Ze,rt)=>c.toRaw(Ls(Ze,be))===Ls(re,be)?(Oe=rt,!0):!1),Oe},vt=Me=>{var re,be,Oe,Ze,rt;const At=wi(Me)?Me[0]:Me;let Pt=null;if(At!=null&&At.value){const xt=oe.value.filter(It=>It.value===At.value);xt.length>0&&(Pt=xt[0].$el)}if(u.value&&Pt){const xt=(Ze=(Oe=(be=(re=u.value)==null?void 0:re.popperRef)==null?void 0:be.contentRef)==null?void 0:Oe.querySelector)==null?void 0:Ze.call(Oe,`.${o.be("dropdown","wrap")}`);xt&&kq(xt,Pt)}(rt=x.value)==null||rt.handleScroll()},Et=Me=>{l.options.set(Me.value,Me),l.cachedOptions.set(Me.value,Me),Me.disabled&&l.disabledOptions.set(Me.value,Me)},kt=(Me,re)=>{l.options.get(Me)===re&&l.options.delete(Me)},{handleCompositionStart:pt,handleCompositionUpdate:Qn,handleCompositionEnd:Jt}=rne(Me=>Ve(Me)),Mn=c.computed(()=>{var Me,re;return(re=(Me=u.value)==null?void 0:Me.popperRef)==null?void 0:re.contentRef}),ln=()=>{c.nextTick(()=>vt(l.selected))},Mt=()=>{var Me;(Me=p.value)==null||Me.focus()},ze=()=>{Ht()},mt=Me=>{et(Me)},Ht=Me=>{if(H.value=!1,S.value){const re=new FocusEvent("focus",Me);c.nextTick(()=>A(re))}},pn=()=>{l.inputValue.length>0?l.inputValue="":H.value=!1},Ft=()=>{q.value||(l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:H.value=!H.value)},ct=()=>{H.value?oe.value[l.hoveringIndex]&&Xe(oe.value[l.hoveringIndex]):Ft()},ge=Me=>Yi(Me.value)?Ls(Me.value,t.valueKey):Me.value,se=c.computed(()=>oe.value.filter(Me=>Me.visible).every(Me=>Me.disabled)),pe=c.computed(()=>t.multiple?t.collapseTags?l.selected.slice(0,t.maxCollapseTags):l.selected:[]),He=c.computed(()=>t.multiple?t.collapseTags?l.selected.slice(t.maxCollapseTags):[]:[]),Pe=Me=>{if(!H.value){H.value=!0;return}if(!(l.options.size===0||ee.value===0)&&!se.value){Me==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):Me==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const re=oe.value[l.hoveringIndex];(re.disabled===!0||re.states.groupDisabled===!0||!re.visible)&&Pe(Me),c.nextTick(()=>vt(k.value))}},Ue=c.computed(()=>({maxWidth:`${l.selectionWidth}px`})),ot=c.computed(()=>({width:`${Math.max(l.calculatorWidth,ine)}px`}));return t.multiple&&!wi(t.modelValue)&&e(rr,[]),!t.multiple&&wi(t.modelValue)&&e(rr,""),vs(h,ht),vs(f,dt),vs(v,Ee),vs(_,ye),c.onMounted(()=>{Ie()}),{inputId:z,contentId:r,nsSelect:o,nsInput:a,states:l,isFocused:S,expanded:H,optionsArray:oe,hoverOption:k,selectSize:Se,filteredOptionsCount:ee,resetCalculatorWidth:dt,updateTooltip:Ee,updateTagTooltip:ye,debouncedOnInputChange:yt,onInput:Ve,deletePrevTag:nt,deleteTag:Je,deleteSelected:et,handleOptionSelect:Xe,scrollToOption:vt,hasModelValue:F,shouldShowPlaceholder:Ce,currentPlaceholder:je,showClose:Z,iconComponent:K,iconReverse:X,validateState:te,validateIcon:J,showNewOption:fe,updateOptions:Ae,collapseTagSize:Qe,setSelected:Ie,selectDisabled:q,emptyText:xe,handleCompositionStart:pt,handleCompositionUpdate:Qn,handleCompositionEnd:Jt,onOptionCreate:Et,onOptionDestroy:kt,handleMenuEnter:ln,handleFocus:C,focus:Mt,blur:ze,handleBlur:A,handleClearClick:mt,handleClickOutside:Ht,handleEsc:pn,toggleMenu:Ft,selectOption:ct,getValueKey:ge,navigateOptions:Pe,dropdownMenuVisible:Le,showTagList:pe,collapseTagList:He,tagStyle:Ue,inputStyle:ot,popperRef:Mn,inputRef:p,tooltipRef:u,tagTooltipRef:d,calculatorRef:f,prefixRef:m,suffixRef:y,selectRef:s,wrapperRef:L,selectionRef:h,scrollbarRef:x,menuRef:v,tagMenuRef:_}};var ane=c.defineComponent({name:"ElOptions",setup(t,{slots:e}){const n=c.inject(sd);let r=[];return()=>{var o,a;const l=(o=e.default)==null?void 0:o.call(e),s=[];function h(u){wi(u)&&u.forEach(d=>{var p,f,m,y;const v=(p=(d==null?void 0:d.type)||{})==null?void 0:p.name;v==="ElOptionGroup"?h(!si(d.children)&&!wi(d.children)&&Ao((f=d.children)==null?void 0:f.default)?(m=d.children)==null?void 0:m.default():d.children):v==="ElOption"?s.push((y=d.props)==null?void 0:y.value):wi(d.children)&&h(d.children)})}return l.length&&h((a=l[0])==null?void 0:a.children),X6(s,r)||(r=s,n&&(n.states.optionValues=s)),l}}});const sne=Wn({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ss,effect:{type:gn(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:gn(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:T1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ms,default:rg},fitInputWidth:Boolean,suffixIcon:{type:Ms,default:Ph},tagType:{...tE.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:gn(String),values:Y6,default:"bottom-start"},ariaLabel:{type:String,default:void 0}}),QE="ElSelect",lne=c.defineComponent({name:QE,componentName:QE,components:{ElInput:xg,ElSelectMenu:nne,ElOption:Dg,ElOptions:ane,ElTag:bee,ElScrollbar:MJ,ElTooltip:Kh,ElIcon:zr},directives:{ClickOutside:ZC},props:sne,emits:[rr,l4,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=one(t,e);return c.provide(sd,c.reactive({props:t,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),cne=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],une=["textContent"];function hne(t,e,n,r,o,a){const l=c.resolveComponent("el-tag"),s=c.resolveComponent("el-tooltip"),h=c.resolveComponent("el-icon"),u=c.resolveComponent("el-option"),d=c.resolveComponent("el-options"),p=c.resolveComponent("el-scrollbar"),f=c.resolveComponent("el-select-menu"),m=c.resolveDirective("click-outside");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{ref:"selectRef",class:c.normalizeClass([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),onMouseenter:e[15]||(e[15]=y=>t.states.inputHovering=!0),onMouseleave:e[16]||(e[16]=y=>t.states.inputHovering=!1),onClick:e[17]||(e[17]=c.withModifiers((...y)=>t.toggleMenu&&t.toggleMenu(...y),["stop"]))},[c.createVNode(s,{ref:"tooltipRef",visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:e[14]||(e[14]=y=>t.states.isBeforeHide=!1)},{default:c.withCtx(()=>{var y;return[c.createElementVNode("div",{ref:"wrapperRef",class:c.normalizeClass([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(c.openBlock(),c.createElementBlock("div",{key:0,ref:"prefixRef",class:c.normalizeClass(t.nsSelect.e("prefix"))},[c.renderSlot(t.$slots,"prefix")],2)):c.createCommentVNode("v-if",!0),c.createElementVNode("div",{ref:"selectionRef",class:c.normalizeClass([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?c.renderSlot(t.$slots,"tag",{key:0},()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.showTagList,v=>(c.openBlock(),c.createElementBlock("div",{key:t.getValueKey(v),class:c.normalizeClass(t.nsSelect.e("selected-item"))},[c.createVNode(l,{closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:c.normalizeStyle(t.tagStyle),onClose:_=>t.deleteTag(_,v)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(t.nsSelect.e("tags-text"))},c.toDisplayString(v.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(c.openBlock(),c.createBlock(s,{key:0,ref:"tagTooltipRef",disabled:!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:c.withCtx(()=>[c.createElementVNode("div",{class:c.normalizeClass(t.nsSelect.e("selected-item"))},[c.createVNode(l,{closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",style:c.normalizeStyle(t.tagStyle)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(t.nsSelect.e("tags-text"))}," + "+c.toDisplayString(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:c.withCtx(()=>[c.createElementVNode("div",{ref:"tagMenuRef",class:c.normalizeClass(t.nsSelect.e("selection"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.collapseTagList,v=>(c.openBlock(),c.createElementBlock("div",{key:t.getValueKey(v),class:c.normalizeClass(t.nsSelect.e("selected-item"))},[c.createVNode(l,{class:"in-tooltip",closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,type:t.tagType,"disable-transitions":"",onClose:_=>t.deleteTag(_,v)},{default:c.withCtx(()=>[c.createElementVNode("span",{class:c.normalizeClass(t.nsSelect.e("tags-text"))},c.toDisplayString(v.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):c.createCommentVNode("v-if",!0)]):c.createCommentVNode("v-if",!0),t.selectDisabled?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[c.withDirectives(c.createElementVNode("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":e[0]||(e[0]=v=>t.states.inputValue=v),type:"text",class:c.normalizeClass([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:c.normalizeStyle(t.inputStyle),role:"combobox",readonly:!t.filterable,spellcheck:"false","aria-activedescendant":((y=t.hoverOption)==null?void 0:y.id)||"","aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e[1]||(e[1]=(...v)=>t.handleFocus&&t.handleFocus(...v)),onBlur:e[2]||(e[2]=(...v)=>t.handleBlur&&t.handleBlur(...v)),onKeydown:[e[3]||(e[3]=c.withKeys(c.withModifiers(v=>t.navigateOptions("next"),["prevent"]),["down"])),e[4]||(e[4]=c.withKeys(c.withModifiers(v=>t.navigateOptions("prev"),["prevent"]),["up"])),e[5]||(e[5]=c.withKeys((...v)=>t.handleEsc&&t.handleEsc(...v),["esc"])),e[6]||(e[6]=c.withKeys(c.withModifiers((...v)=>t.selectOption&&t.selectOption(...v),["stop","prevent"]),["enter"])),e[7]||(e[7]=c.withKeys(c.withModifiers((...v)=>t.deletePrevTag&&t.deletePrevTag(...v),["stop"]),["delete"])),e[8]||(e[8]=c.withKeys(v=>t.expanded=!1,["tab"]))],onCompositionstart:e[9]||(e[9]=(...v)=>t.handleCompositionStart&&t.handleCompositionStart(...v)),onCompositionupdate:e[10]||(e[10]=(...v)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...v)),onCompositionend:e[11]||(e[11]=(...v)=>t.handleCompositionEnd&&t.handleCompositionEnd(...v)),onInput:e[12]||(e[12]=(...v)=>t.onInput&&t.onInput(...v)),onClick:e[13]||(e[13]=c.withModifiers(()=>{},["stop"]))},null,46,cne),[[c.vModelText,t.states.inputValue]]),t.filterable?(c.openBlock(),c.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:c.normalizeClass(t.nsSelect.e("input-calculator")),textContent:c.toDisplayString(t.states.inputValue)},null,10,une)):c.createCommentVNode("v-if",!0)],2)),t.shouldShowPlaceholder?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[c.createElementVNode("span",null,c.toDisplayString(t.currentPlaceholder),1)],2)):c.createCommentVNode("v-if",!0)],2),c.createElementVNode("div",{ref:"suffixRef",class:c.normalizeClass(t.nsSelect.e("suffix"))},[t.iconComponent&&!t.showClose?(c.openBlock(),c.createBlock(h,{key:0,class:c.normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),t.showClose&&t.clearIcon?(c.openBlock(),c.createBlock(h,{key:1,class:c.normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0),t.validateState&&t.validateIcon?(c.openBlock(),c.createBlock(h,{key:2,class:c.normalizeClass([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.validateIcon)))]),_:1},8,["class"])):c.createCommentVNode("v-if",!0)],2)],2)]}),content:c.withCtx(()=>[c.createVNode(f,{ref:"menuRef"},{default:c.withCtx(()=>[t.$slots.header?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.nsSelect.be("dropdown","header"))},[c.renderSlot(t.$slots,"header")],2)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createVNode(p,{id:t.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:c.normalizeClass([t.nsSelect.is("empty",t.filteredOptionsCount===0)]),role:"listbox","aria-label":t.ariaLabel,"aria-orientation":"vertical"},{default:c.withCtx(()=>[t.showNewOption?(c.openBlock(),c.createBlock(u,{key:0,value:t.states.inputValue,created:!0},null,8,["value"])):c.createCommentVNode("v-if",!0),c.createVNode(d,null,{default:c.withCtx(()=>[c.renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[c.vShow,t.states.options.size>0&&!t.loading]]),t.loading||t.filteredOptionsCount===0?c.renderSlot(t.$slots,"empty",{key:1},()=>[c.createElementVNode("p",{class:c.normalizeClass(t.nsSelect.be("dropdown","empty"))},c.toDisplayString(t.emptyText),3)]):c.createCommentVNode("v-if",!0),t.$slots.footer?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(t.nsSelect.be("dropdown","footer"))},[c.renderSlot(t.$slots,"footer")],2)):c.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[m,t.handleClickOutside,t.popperRef]])}var dne=En(lne,[["render",hne],["__file","select.vue"]]);const pne=c.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=Ln("select"),n=c.ref(null),r=c.getCurrentInstance(),o=c.ref([]);c.provide(TE,c.reactive({...c.toRefs(t)}));const a=c.computed(()=>o.value.some(h=>h.visible===!0)),l=h=>{const u=[];return wi(h.children)&&h.children.forEach(d=>{var p;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(p=d.children)!=null&&p.length&&u.push(...l(d))}),u},s=()=>{o.value=l(r.subTree)};return c.onMounted(()=>{s()}),mG(n,s,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:a,ns:e}}});function fne(t,e,n,r,o,a){return c.withDirectives((c.openBlock(),c.createElementBlock("ul",{ref:"groupRef",class:c.normalizeClass(t.ns.be("group","wrap"))},[c.createElementVNode("li",{class:c.normalizeClass(t.ns.be("group","title"))},c.toDisplayString(t.label),3),c.createElementVNode("li",null,[c.createElementVNode("ul",{class:c.normalizeClass(t.ns.b("group"))},[c.renderSlot(t.$slots,"default")],2)])],2)),[[c.vShow,t.visible]])}var mE=En(pne,[["render",fne],["__file","option-group.vue"]]);const Fg=Ui(dne,{Option:Dg,OptionGroup:mE}),zg=Ra(Dg);Ra(mE);const Tne=Wn({trigger:xc.trigger,placement:Ng.placement,disabled:xc.disabled,visible:T1.visible,transition:T1.transition,popperOptions:Ng.popperOptions,tabindex:Ng.tabindex,content:T1.content,popperStyle:T1.popperStyle,popperClass:T1.popperClass,enterable:{...T1.enterable,default:!0},effect:{...T1.effect,default:"light"},teleported:T1.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Qne={"update:visible":t=>a4(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},mne="onUpdate:visible",gne=c.defineComponent({name:"ElPopover"}),yne=c.defineComponent({...gne,props:Tne,emits:Qne,setup(t,{expose:e,emit:n}){const r=t,o=c.computed(()=>r[mne]),a=Ln("popover"),l=c.ref(),s=c.computed(()=>{var _;return(_=c.unref(l))==null?void 0:_.popperRef}),h=c.computed(()=>[{width:A2(r.width)},r.popperStyle]),u=c.computed(()=>[a.b(),r.popperClass,{[a.m("plain")]:!!r.content}]),d=c.computed(()=>r.transition===`${a.namespace.value}-fade-in-linear`),p=()=>{var _;(_=l.value)==null||_.hide()},f=()=>{n("before-enter")},m=()=>{n("before-leave")},y=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:s,hide:p}),(_,x)=>(c.openBlock(),c.createBlock(c.unref(Kh),c.mergeProps({ref_key:"tooltipRef",ref:l},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":c.unref(u),"popper-style":c.unref(h),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":c.unref(d),"onUpdate:visible":c.unref(o),onBeforeShow:f,onBeforeHide:m,onShow:y,onHide:v}),{content:c.withCtx(()=>[_.title?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(c.unref(a).e("title")),role:"title"},c.toDisplayString(_.title),3)):c.createCommentVNode("v-if",!0),c.renderSlot(_.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(_.content),1)])]),default:c.withCtx(()=>[_.$slots.reference?c.renderSlot(_.$slots,"reference",{key:0}):c.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var vne=En(yne,[["__file","popover.vue"]]);const gE=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var bne={mounted(t,e){gE(t,e)},updated(t,e){gE(t,e)}};const xne=nX(bne,"popover"),ld=Ui(vne,{directive:xne}),yE=Symbol("sliderContextKey"),_ne=Wn({modelValue:{type:gn([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ss,inputSize:Ss,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:gn(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:gn(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Y6,default:"top"},marks:{type:gn(Object)},validateEvent:{type:Boolean,default:!0}}),Ug=t=>hr(t)||wi(t)&&t.every(hr),Lne={[rr]:Ug,[c4]:Ug,[l4]:Ug},wne=(t,e,n)=>{const r=c.ref();return c.onMounted(async()=>{t.range?(Array.isArray(t.modelValue)?(e.firstValue=Math.max(t.min,t.modelValue[0]),e.secondValue=Math.min(t.max,t.modelValue[1])):(e.firstValue=t.min,e.secondValue=t.max),e.oldValue=[e.firstValue,e.secondValue]):(typeof t.modelValue!="number"||Number.isNaN(t.modelValue)?e.firstValue=t.min:e.firstValue=Math.min(t.max,Math.max(t.min,t.modelValue)),e.oldValue=e.firstValue),k1(window,"resize",n),await c.nextTick(),n()}),{sliderWrapper:r}},Mne=t=>c.computed(()=>t.marks?Object.keys(t.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=t.max&&n>=t.min).map(n=>({point:n,position:(n-t.min)*100/(t.max-t.min),mark:t.marks[n]})):[]),Sne=(t,e,n)=>{const{form:r,formItem:o}=Es(),a=c.shallowRef(),l=c.ref(),s=c.ref(),h={firstButton:l,secondButton:s},u=c.computed(()=>t.disabled||(r==null?void 0:r.disabled)||!1),d=c.computed(()=>Math.min(e.firstValue,e.secondValue)),p=c.computed(()=>Math.max(e.firstValue,e.secondValue)),f=c.computed(()=>t.range?`${100*(p.value-d.value)/(t.max-t.min)}%`:`${100*(e.firstValue-t.min)/(t.max-t.min)}%`),m=c.computed(()=>t.range?`${100*(d.value-t.min)/(t.max-t.min)}%`:"0%"),y=c.computed(()=>t.vertical?{height:t.height}:{}),v=c.computed(()=>t.vertical?{height:f.value,bottom:m.value}:{width:f.value,left:m.value}),_=()=>{a.value&&(e.sliderSize=a.value[`client${t.vertical?"Height":"Width"}`])},x=q=>{const F=t.min+q*(t.max-t.min)/100;if(!t.range)return l;let Z;return Math.abs(d.value-F)<Math.abs(p.value-F)?Z=e.firstValue<e.secondValue?"firstButton":"secondButton":Z=e.firstValue>e.secondValue?"firstButton":"secondButton",h[Z]},L=q=>{const F=x(q);return F.value.setPosition(q),F},S=q=>{e.firstValue=q,A(t.range?[d.value,p.value]:q)},C=q=>{e.secondValue=q,t.range&&A([d.value,p.value])},A=q=>{n(rr,q),n(c4,q)},H=async()=>{await c.nextTick(),n(l4,t.range?[d.value,p.value]:t.modelValue)},k=q=>{var F,Z,K,X,te,J;if(u.value||e.dragging)return;_();let he=0;if(t.vertical){const xe=(K=(Z=(F=q.touches)==null?void 0:F.item(0))==null?void 0:Z.clientY)!=null?K:q.clientY;he=(a.value.getBoundingClientRect().bottom-xe)/e.sliderSize*100}else{const xe=(J=(te=(X=q.touches)==null?void 0:X.item(0))==null?void 0:te.clientX)!=null?J:q.clientX,ee=a.value.getBoundingClientRect().left;he=(xe-ee)/e.sliderSize*100}if(!(he<0||he>100))return L(he)};return{elFormItem:o,slider:a,firstButton:l,secondButton:s,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:y,barStyle:v,resetSize:_,setPosition:L,emitChange:H,onSliderWrapperPrevent:q=>{var F,Z;((F=h.firstButton.value)!=null&&F.dragging||(Z=h.secondButton.value)!=null&&Z.dragging)&&q.preventDefault()},onSliderClick:q=>{k(q)&&H()},onSliderDown:async q=>{const F=k(q);F&&(await c.nextTick(),F.value.onButtonDown(q))},setFirstValue:S,setSecondValue:C}},{left:Cne,down:Ene,right:Hne,up:Ane,home:Vne,end:One,pageUp:kne,pageDown:Pne}=Mi,Ine=(t,e,n)=>{const r=c.ref(),o=c.ref(!1),a=c.computed(()=>e.value instanceof Function),l=c.computed(()=>a.value&&e.value(t.modelValue)||t.modelValue),s=Ah(()=>{n.value&&(o.value=!0)},50),h=Ah(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:l,displayTooltip:s,hideTooltip:h}},Rne=(t,e,n)=>{const{disabled:r,min:o,max:a,step:l,showTooltip:s,precision:h,sliderSize:u,formatTooltip:d,emitChange:p,resetSize:f,updateDragging:m}=c.inject(yE),{tooltip:y,tooltipVisible:v,formatValue:_,displayTooltip:x,hideTooltip:L}=Ine(t,d,s),S=c.ref(),C=c.computed(()=>`${(t.modelValue-o.value)/(a.value-o.value)*100}%`),A=c.computed(()=>t.vertical?{bottom:C.value}:{left:C.value}),H=()=>{e.hovering=!0,x()},k=()=>{e.hovering=!1,e.dragging||L()},B=de=>{r.value||(de.preventDefault(),he(de),window.addEventListener("mousemove",xe),window.addEventListener("touchmove",xe),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},D=de=>{r.value||(e.newPosition=Number.parseFloat(C.value)+de/(a.value-o.value)*100,oe(e.newPosition),p())},z=()=>{D(-l.value)},q=()=>{D(l.value)},F=()=>{D(-l.value*4)},Z=()=>{D(l.value*4)},K=()=>{r.value||(oe(0),p())},X=()=>{r.value||(oe(100),p())},te=de=>{let fe=!0;[Cne,Ene].includes(de.key)?z():[Hne,Ane].includes(de.key)?q():de.key===Vne?K():de.key===One?X():de.key===Pne?F():de.key===kne?Z():fe=!1,fe&&de.preventDefault()},J=de=>{let fe,Ae;return de.type.startsWith("touch")?(Ae=de.touches[0].clientY,fe=de.touches[0].clientX):(Ae=de.clientY,fe=de.clientX),{clientX:fe,clientY:Ae}},he=de=>{e.dragging=!0,e.isClick=!0;const{clientX:fe,clientY:Ae}=J(de);t.vertical?e.startY=Ae:e.startX=fe,e.startPosition=Number.parseFloat(C.value),e.newPosition=e.startPosition},xe=de=>{if(e.dragging){e.isClick=!1,x(),f();let fe;const{clientX:Ae,clientY:Se}=J(de);t.vertical?(e.currentY=Se,fe=(e.startY-e.currentY)/u.value*100):(e.currentX=Ae,fe=(e.currentX-e.startX)/u.value*100),e.newPosition=e.startPosition+fe,oe(e.newPosition)}},ee=()=>{e.dragging&&(setTimeout(()=>{e.dragging=!1,e.hovering||L(),e.isClick||oe(e.newPosition),p()},0),window.removeEventListener("mousemove",xe),window.removeEventListener("touchmove",xe),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},oe=async de=>{if(de===null||Number.isNaN(+de))return;de<0?de=0:de>100&&(de=100);const fe=100/((a.value-o.value)/l.value);let Se=Math.round(de/fe)*fe*(a.value-o.value)*.01+o.value;Se=Number.parseFloat(Se.toFixed(h.value)),Se!==t.modelValue&&n(rr,Se),!e.dragging&&t.modelValue!==e.oldValue&&(e.oldValue=t.modelValue),await c.nextTick(),e.dragging&&x(),y.value.updatePopper()};return c.watch(()=>e.dragging,de=>{m(de)}),{disabled:r,button:S,tooltip:y,tooltipVisible:v,showTooltip:s,wrapperStyle:A,formatValue:_,handleMouseEnter:H,handleMouseLeave:k,onButtonDown:B,onKeyDown:te,setPosition:oe}},Nne=(t,e,n,r)=>({stops:c.computed(()=>{if(!t.showStops||t.min>t.max)return[];if(t.step===0)return Fr("ElSlider","step should not be 0."),[];const l=(t.max-t.min)/t.step,s=100*t.step/(t.max-t.min),h=Array.from({length:l-1}).map((u,d)=>(d+1)*s);return t.range?h.filter(u=>u<100*(n.value-t.min)/(t.max-t.min)||u>100*(r.value-t.min)/(t.max-t.min)):h.filter(u=>u>100*(e.firstValue-t.min)/(t.max-t.min))}),getStopStyle:l=>t.vertical?{bottom:`${l}%`}:{left:`${l}%`}}),Bne=(t,e,n,r,o,a)=>{const l=u=>{o(rr,u),o(c4,u)},s=()=>t.range?![n.value,r.value].every((u,d)=>u===e.oldValue[d]):t.modelValue!==e.oldValue,h=()=>{var u,d;t.min>t.max&&s4("Slider","min should not be greater than max.");const p=t.modelValue;t.range&&Array.isArray(p)?p[1]<t.min?l([t.min,t.min]):p[0]>t.max?l([t.max,t.max]):p[0]<t.min?l([t.min,p[1]]):p[1]>t.max?l([p[0],t.max]):(e.firstValue=p[0],e.secondValue=p[1],s()&&(t.validateEvent&&((u=a==null?void 0:a.validate)==null||u.call(a,"change").catch(f=>Fr(f))),e.oldValue=p.slice())):!t.range&&typeof p=="number"&&!Number.isNaN(p)&&(p<t.min?l(t.min):p>t.max?l(t.max):(e.firstValue=p,s()&&(t.validateEvent&&((d=a==null?void 0:a.validate)==null||d.call(a,"change").catch(f=>Fr(f))),e.oldValue=p)))};h(),c.watch(()=>e.dragging,u=>{u||h()}),c.watch(()=>t.modelValue,(u,d)=>{e.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((p,f)=>p===d[f])&&e.firstValue===u[0]&&e.secondValue===u[1]||h()},{deep:!0}),c.watch(()=>[t.min,t.max],()=>{h()})},Dne=Wn({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Y6,default:"top"}}),Fne={[rr]:t=>hr(t)},zne=["tabindex"],Une=c.defineComponent({name:"ElSliderButton"}),jne=c.defineComponent({...Une,props:Dne,emits:Fne,setup(t,{expose:e,emit:n}){const r=t,o=Ln("slider"),a=c.reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:l,button:s,tooltip:h,showTooltip:u,tooltipVisible:d,wrapperStyle:p,formatValue:f,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:v,onKeyDown:_,setPosition:x}=Rne(r,a,n),{hovering:L,dragging:S}=c.toRefs(a);return e({onButtonDown:v,onKeyDown:_,setPosition:x,hovering:L,dragging:S}),(C,A)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"button",ref:s,class:c.normalizeClass([c.unref(o).e("button-wrapper"),{hover:c.unref(L),dragging:c.unref(S)}]),style:c.normalizeStyle(c.unref(p)),tabindex:c.unref(l)?-1:0,onMouseenter:A[0]||(A[0]=(...H)=>c.unref(m)&&c.unref(m)(...H)),onMouseleave:A[1]||(A[1]=(...H)=>c.unref(y)&&c.unref(y)(...H)),onMousedown:A[2]||(A[2]=(...H)=>c.unref(v)&&c.unref(v)(...H)),onTouchstart:A[3]||(A[3]=(...H)=>c.unref(v)&&c.unref(v)(...H)),onFocus:A[4]||(A[4]=(...H)=>c.unref(m)&&c.unref(m)(...H)),onBlur:A[5]||(A[5]=(...H)=>c.unref(y)&&c.unref(y)(...H)),onKeydown:A[6]||(A[6]=(...H)=>c.unref(_)&&c.unref(_)(...H))},[c.createVNode(c.unref(Kh),{ref_key:"tooltip",ref:h,visible:c.unref(d),placement:C.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":C.tooltipClass,disabled:!c.unref(u),persistent:""},{content:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(c.unref(f)),1)]),default:c.withCtx(()=>[c.createElementVNode("div",{class:c.normalizeClass([c.unref(o).e("button"),{hover:c.unref(L),dragging:c.unref(S)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,zne))}});var vE=En(jne,[["__file","button.vue"]]);const Gne=Wn({mark:{type:gn([String,Object]),default:void 0}});var Wne=c.defineComponent({name:"ElSliderMarker",props:Gne,setup(t){const e=Ln("slider"),n=c.computed(()=>si(t.mark)?t.mark:t.mark.label),r=c.computed(()=>si(t.mark)?void 0:t.mark.style);return()=>c.h("div",{class:e.e("marks-text"),style:r.value},n.value)}});const Zne=["id","role","aria-label","aria-labelledby"],$ne={key:1},qne=c.defineComponent({name:"ElSlider"}),Xne=c.defineComponent({...qne,props:_ne,emits:Lne,setup(t,{expose:e,emit:n}){const r=t,o=Ln("slider"),{t:a}=u4(),l=c.reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:h,firstButton:u,secondButton:d,sliderDisabled:p,minValue:f,maxValue:m,runwayStyle:y,barStyle:v,resetSize:_,emitChange:x,onSliderWrapperPrevent:L,onSliderClick:S,onSliderDown:C,setFirstValue:A,setSecondValue:H}=Sne(r,l,n),{stops:k,getStopStyle:B}=Nne(r,l,f,m),{inputId:D,isLabeledByFormItem:z}=a0(r,{formItemContext:s}),q=Cs(),F=c.computed(()=>r.inputSize||q.value),Z=c.computed(()=>r.label||a("el.slider.defaultLabel",{min:r.min,max:r.max})),K=c.computed(()=>r.range?r.rangeStartLabel||a("el.slider.defaultRangeStartLabel"):Z.value),X=c.computed(()=>r.formatValueText?r.formatValueText(de.value):`${de.value}`),te=c.computed(()=>r.rangeEndLabel||a("el.slider.defaultRangeEndLabel")),J=c.computed(()=>r.formatValueText?r.formatValueText(fe.value):`${fe.value}`),he=c.computed(()=>[o.b(),o.m(q.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),xe=Mne(r);Bne(r,l,f,m,n,s);const ee=c.computed(()=>{const Qe=[r.min,r.max,r.step].map(Le=>{const Ce=`${Le}`.split(".")[1];return Ce?Ce.length:0});return Math.max.apply(null,Qe)}),{sliderWrapper:oe}=wne(r,l,_),{firstValue:de,secondValue:fe,sliderSize:Ae}=c.toRefs(l),Se=Qe=>{l.dragging=Qe};return c.provide(yE,{...c.toRefs(r),sliderSize:Ae,disabled:p,precision:ee,emitChange:x,resetSize:_,updateDragging:Se}),e({onSliderClick:S}),(Qe,Le)=>{var Ce,je;return c.openBlock(),c.createElementBlock("div",{id:Qe.range?c.unref(D):void 0,ref_key:"sliderWrapper",ref:oe,class:c.normalizeClass(c.unref(he)),role:Qe.range?"group":void 0,"aria-label":Qe.range&&!c.unref(z)?c.unref(Z):void 0,"aria-labelledby":Qe.range&&c.unref(z)?(Ce=c.unref(s))==null?void 0:Ce.labelId:void 0,onTouchstart:Le[2]||(Le[2]=(...me)=>c.unref(L)&&c.unref(L)(...me)),onTouchmove:Le[3]||(Le[3]=(...me)=>c.unref(L)&&c.unref(L)(...me))},[c.createElementVNode("div",{ref_key:"slider",ref:h,class:c.normalizeClass([c.unref(o).e("runway"),{"show-input":Qe.showInput&&!Qe.range},c.unref(o).is("disabled",c.unref(p))]),style:c.normalizeStyle(c.unref(y)),onMousedown:Le[0]||(Le[0]=(...me)=>c.unref(C)&&c.unref(C)(...me)),onTouchstart:Le[1]||(Le[1]=(...me)=>c.unref(C)&&c.unref(C)(...me))},[c.createElementVNode("div",{class:c.normalizeClass(c.unref(o).e("bar")),style:c.normalizeStyle(c.unref(v))},null,6),c.createVNode(vE,{id:Qe.range?void 0:c.unref(D),ref_key:"firstButton",ref:u,"model-value":c.unref(de),vertical:Qe.vertical,"tooltip-class":Qe.tooltipClass,placement:Qe.placement,role:"slider","aria-label":Qe.range||!c.unref(z)?c.unref(K):void 0,"aria-labelledby":!Qe.range&&c.unref(z)?(je=c.unref(s))==null?void 0:je.labelId:void 0,"aria-valuemin":Qe.min,"aria-valuemax":Qe.range?c.unref(fe):Qe.max,"aria-valuenow":c.unref(de),"aria-valuetext":c.unref(X),"aria-orientation":Qe.vertical?"vertical":"horizontal","aria-disabled":c.unref(p),"onUpdate:modelValue":c.unref(A)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Qe.range?(c.openBlock(),c.createBlock(vE,{key:0,ref_key:"secondButton",ref:d,"model-value":c.unref(fe),vertical:Qe.vertical,"tooltip-class":Qe.tooltipClass,placement:Qe.placement,role:"slider","aria-label":c.unref(te),"aria-valuemin":c.unref(de),"aria-valuemax":Qe.max,"aria-valuenow":c.unref(fe),"aria-valuetext":c.unref(J),"aria-orientation":Qe.vertical?"vertical":"horizontal","aria-disabled":c.unref(p),"onUpdate:modelValue":c.unref(H)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):c.createCommentVNode("v-if",!0),Qe.showStops?(c.openBlock(),c.createElementBlock("div",$ne,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(k),(me,Ne)=>(c.openBlock(),c.createElementBlock("div",{key:Ne,class:c.normalizeClass(c.unref(o).e("stop")),style:c.normalizeStyle(c.unref(B)(me))},null,6))),128))])):c.createCommentVNode("v-if",!0),c.unref(xe).length>0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createElementVNode("div",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(xe),(me,Ne)=>(c.openBlock(),c.createElementBlock("div",{key:Ne,style:c.normalizeStyle(c.unref(B)(me.position)),class:c.normalizeClass([c.unref(o).e("stop"),c.unref(o).e("marks-stop")])},null,6))),128))]),c.createElementVNode("div",{class:c.normalizeClass(c.unref(o).e("marks"))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(xe),(me,Ne)=>(c.openBlock(),c.createBlock(c.unref(Wne),{key:Ne,mark:me.mark,style:c.normalizeStyle(c.unref(B)(me.position))},null,8,["mark","style"]))),128))],2)],64)):c.createCommentVNode("v-if",!0)],38),Qe.showInput&&!Qe.range?(c.openBlock(),c.createBlock(c.unref(Bg),{key:0,ref:"input","model-value":c.unref(de),class:c.normalizeClass(c.unref(o).e("input")),step:Qe.step,disabled:c.unref(p),controls:Qe.showInputControls,min:Qe.min,max:Qe.max,debounce:Qe.debounce,size:c.unref(F),"onUpdate:modelValue":c.unref(A),onChange:c.unref(x)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):c.createCommentVNode("v-if",!0)],42,Zne)}}});var Kne=En(Xne,[["__file","slider.vue"]]);const d0=Ui(Kne),cd=Symbol("tabsRootContextKey"),Jne=Wn({tabs:{type:gn(Array),default:()=>V2([])}}),bE="ElTabBar",Yne=c.defineComponent({name:bE}),ere=c.defineComponent({...Yne,props:Jne,setup(t,{expose:e}){const n=t,r=c.getCurrentInstance(),o=c.inject(cd);o||s4(bE,"<el-tabs><el-tab-bar /></el-tabs>");const a=Ln("tabs"),l=c.ref(),s=c.ref(),h=()=>{let d=0,p=0;const f=["top","bottom"].includes(o.props.tabPosition)?"width":"height",m=f==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(v=>{var _,x;const L=(x=(_=r.parent)==null?void 0:_.refs)==null?void 0:x[`tab-${v.uid}`];if(!L)return!1;if(!v.active)return!0;d=L[`offset${E2(y)}`],p=L[`client${E2(f)}`];const S=window.getComputedStyle(L);return f==="width"&&(n.tabs.length>1&&(p-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight)),d+=Number.parseFloat(S.paddingLeft)),!1}),{[f]:`${p}px`,transform:`translate${E2(m)}(${d}px)`}},u=()=>s.value=h();return c.watch(()=>n.tabs,async()=>{await c.nextTick(),u()},{immediate:!0}),vs(l,()=>u()),e({ref:l,update:u}),(d,p)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"barRef",ref:l,class:c.normalizeClass([c.unref(a).e("active-bar"),c.unref(a).is(c.unref(o).props.tabPosition)]),style:c.normalizeStyle(s.value)},null,6))}});var tre=En(ere,[["__file","tab-bar.vue"]]);const nre=Wn({panes:{type:gn(Array),default:()=>V2([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),rre={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},xE="ElTabNav",ire=c.defineComponent({name:xE,props:nre,emits:rre,setup(t,{expose:e,emit:n}){const r=c.getCurrentInstance(),o=c.inject(cd);o||s4(xE,"<el-tabs><tab-nav /></el-tabs>");const a=Ln("tabs"),l=uG(),s=xG(),h=c.ref(),u=c.ref(),d=c.ref(),p=c.ref(),f=c.ref(!1),m=c.ref(0),y=c.ref(!1),v=c.ref(!0),_=c.computed(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),x=c.computed(()=>({transform:`translate${_.value==="width"?"X":"Y"}(-${m.value}px)`})),L=()=>{if(!h.value)return;const D=h.value[`offset${E2(_.value)}`],z=m.value;if(!z)return;const q=z>D?z-D:0;m.value=q},S=()=>{if(!h.value||!u.value)return;const D=u.value[`offset${E2(_.value)}`],z=h.value[`offset${E2(_.value)}`],q=m.value;if(D-q<=z)return;const F=D-q>z*2?q+z:D-z;m.value=F},C=async()=>{const D=u.value;if(!f.value||!d.value||!h.value||!D)return;await c.nextTick();const z=d.value.querySelector(".is-active");if(!z)return;const q=h.value,F=["top","bottom"].includes(o.props.tabPosition),Z=z.getBoundingClientRect(),K=q.getBoundingClientRect(),X=F?D.offsetWidth-K.width:D.offsetHeight-K.height,te=m.value;let J=te;F?(Z.left<K.left&&(J=te-(K.left-Z.left)),Z.right>K.right&&(J=te+Z.right-K.right)):(Z.top<K.top&&(J=te-(K.top-Z.top)),Z.bottom>K.bottom&&(J=te+(Z.bottom-K.bottom))),J=Math.max(J,0),m.value=Math.min(J,X)},A=()=>{var D;if(!u.value||!h.value)return;t.stretch&&((D=p.value)==null||D.update());const z=u.value[`offset${E2(_.value)}`],q=h.value[`offset${E2(_.value)}`],F=m.value;q<z?(f.value=f.value||{},f.value.prev=F,f.value.next=F+q<z,z-F<q&&(m.value=z-q)):(f.value=!1,F>0&&(m.value=0))},H=D=>{const z=D.code,{up:q,down:F,left:Z,right:K}=Mi;if(![q,F,Z,K].includes(z))return;const X=Array.from(D.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),te=X.indexOf(D.target);let J;z===Z||z===q?te===0?J=X.length-1:J=te-1:te<X.length-1?J=te+1:J=0,X[J].focus({preventScroll:!0}),X[J].click(),k()},k=()=>{v.value&&(y.value=!0)},B=()=>y.value=!1;return c.watch(l,D=>{D==="hidden"?v.value=!1:D==="visible"&&setTimeout(()=>v.value=!0,50)}),c.watch(s,D=>{D?setTimeout(()=>v.value=!0,50):v.value=!1}),vs(d,A),c.onMounted(()=>setTimeout(()=>C(),0)),c.onUpdated(()=>A()),e({scrollToActiveTab:C,removeFocus:B}),c.watch(()=>t.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const D=f.value?[c.createVNode("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:L},[c.createVNode(zr,null,{default:()=>[c.createVNode(cc,null,null)]})]),c.createVNode("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:S},[c.createVNode(zr,null,{default:()=>[c.createVNode(MS,null,null)]})])]:null,z=t.panes.map((q,F)=>{var Z,K,X,te;const J=q.uid,he=q.props.disabled,xe=(K=(Z=q.props.name)!=null?Z:q.index)!=null?K:`${F}`,ee=!he&&(q.isClosable||t.editable);q.index=`${F}`;const oe=ee?c.createVNode(zr,{class:"is-icon-close",onClick:Ae=>n("tabRemove",q,Ae)},{default:()=>[c.createVNode(uc,null,null)]}):null,de=((te=(X=q.slots).label)==null?void 0:te.call(X))||q.props.label,fe=!he&&q.active?0:-1;return c.createVNode("div",{ref:`tab-${J}`,class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",q.active),a.is("disabled",he),a.is("closable",ee),a.is("focus",y.value)],id:`tab-${xe}`,key:`tab-${J}`,"aria-controls":`pane-${xe}`,role:"tab","aria-selected":q.active,tabindex:fe,onFocus:()=>k(),onBlur:()=>B(),onClick:Ae=>{B(),n("tabClick",q,xe,Ae)},onKeydown:Ae=>{ee&&(Ae.code===Mi.delete||Ae.code===Mi.backspace)&&n("tabRemove",q,Ae)}},[de,oe])});return c.createVNode("div",{ref:d,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(o.props.tabPosition)]},[D,c.createVNode("div",{class:a.e("nav-scroll"),ref:h},[c.createVNode("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",t.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:x.value,role:"tablist",onKeydown:H},[t.type?null:c.createVNode(tre,{ref:p,tabs:[...t.panes]},null),z])])])}}}),ore=Wn({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:gn(Function),default:()=>!0},stretch:Boolean}),jg=t=>si(t)||hr(t),are={[rr]:t=>jg(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>jg(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>jg(t),tabAdd:()=>!0},sre=c.defineComponent({name:"ElTabs",props:ore,emits:are,setup(t,{emit:e,slots:n,expose:r}){var o,a;const l=Ln("tabs"),{children:s,addChild:h,removeChild:u}=qK(c.getCurrentInstance(),"ElTabPane"),d=c.ref(),p=c.ref((a=(o=t.modelValue)!=null?o:t.activeName)!=null?a:"0"),f=async(_,x=!1)=>{var L,S,C;if(!(p.value===_||J1(_)))try{await((L=t.beforeLeave)==null?void 0:L.call(t,_,p.value))!==!1&&(p.value=_,x&&(e(rr,_),e("tabChange",_)),(C=(S=d.value)==null?void 0:S.removeFocus)==null||C.call(S))}catch{}},m=(_,x,L)=>{_.props.disabled||(f(x,!0),e("tabClick",_,L))},y=(_,x)=>{_.props.disabled||J1(_.props.name)||(x.stopPropagation(),e("edit",_.props.name,"remove"),e("tabRemove",_.props.name))},v=()=>{e("edit",void 0,"add"),e("tabAdd")};return hc({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},c.computed(()=>!!t.activeName)),c.watch(()=>t.activeName,_=>f(_)),c.watch(()=>t.modelValue,_=>f(_)),c.watch(p,async()=>{var _;await c.nextTick(),(_=d.value)==null||_.scrollToActiveTab()}),c.provide(cd,{props:t,currentName:p,registerPane:h,unregisterPane:u}),r({currentName:p}),()=>{const _=n.addIcon,x=t.editable||t.addable?c.createVNode("span",{class:l.e("new-tab"),tabindex:"0",onClick:v,onKeydown:C=>{C.code===Mi.enter&&v()}},[_?c.renderSlot(n,"addIcon"):c.createVNode(zr,{class:l.is("icon-plus")},{default:()=>[c.createVNode(SS,null,null)]})]):null,L=c.createVNode("div",{class:[l.e("header"),l.is(t.tabPosition)]},[x,c.createVNode(ire,{ref:d,currentName:p.value,editable:t.editable,type:t.type,panes:s.value,stretch:t.stretch,onTabClick:m,onTabRemove:y},null)]),S=c.createVNode("div",{class:l.e("content")},[c.renderSlot(n,"default")]);return c.createVNode("div",{class:[l.b(),l.m(t.tabPosition),{[l.m("card")]:t.type==="card",[l.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[L,S]:[S,L]])}}}),lre=Wn({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),cre=["id","aria-hidden","aria-labelledby"],_E="ElTabPane",ure=c.defineComponent({name:_E}),hre=c.defineComponent({...ure,props:lre,setup(t){const e=t,n=c.getCurrentInstance(),r=c.useSlots(),o=c.inject(cd);o||s4(_E,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const a=Ln("tab-pane"),l=c.ref(),s=c.computed(()=>e.closable||o.props.closable),h=yM(()=>{var m;return o.currentName.value===((m=e.name)!=null?m:l.value)}),u=c.ref(h.value),d=c.computed(()=>{var m;return(m=e.name)!=null?m:l.value}),p=yM(()=>!e.lazy||u.value||h.value);c.watch(h,m=>{m&&(u.value=!0)});const f=c.reactive({uid:n.uid,slots:r,props:e,paneName:d,active:h,index:l,isClosable:s});return c.onMounted(()=>{o.registerPane(f)}),c.onUnmounted(()=>{o.unregisterPane(f.uid)}),(m,y)=>c.unref(p)?c.withDirectives((c.openBlock(),c.createElementBlock("div",{key:0,id:`pane-${c.unref(d)}`,class:c.normalizeClass(c.unref(a).b()),role:"tabpanel","aria-hidden":!c.unref(h),"aria-labelledby":`tab-${c.unref(d)}`},[c.renderSlot(m.$slots,"default")],10,cre)),[[c.vShow,c.unref(h)]]):c.createCommentVNode("v-if",!0)}});var LE=En(hre,[["__file","tab-pane.vue"]]);const wE=Ui(sre,{TabPane:LE}),ME=Ra(LE),p0="$treeNodeId",SE=function(t,e){!e||e[p0]||Object.defineProperty(e,p0,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Gg=function(t,e){return t?e[t]:e[p0]},Wg=(t,e,n)=>{const r=t.value.currentNode;n();const o=t.value.currentNode;r!==o&&e("current-change",o?o.data:null,o)},Zg=t=>{let e=!0,n=!0,r=!0;for(let o=0,a=t.length;o<a;o++){const l=t[o];(l.checked!==!0||l.indeterminate)&&(e=!1,l.disabled||(r=!1)),(l.checked!==!1||l.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},ud=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=Zg(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const o=t.parent;!o||o.level===0||t.store.checkStrictly||ud(o)},hd=function(t,e){const n=t.store.props,r=t.data||{},o=n[e];if(typeof o=="function")return o(r,t);if(typeof o=="string")return r[o];if(typeof o>"u"){const a=r[e];return a===void 0?"":a}};let dre=0,$g=class km{constructor(e){this.id=dre++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)t4(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const a=hd(this,"isLeaf");typeof a=="boolean"&&(this.isLeafByUser=a)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||SE(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,o=e.key;o&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),o&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||SE(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=hd(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return hd(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return hd(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof km)){if(!r){const o=this.getChildren(!0);o.includes(e.data)||(typeof n>"u"||n<0?o.push(e.data):o.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=c.reactive(new km(e)),e instanceof km&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(e);o>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const r=()=>{if(n){let o=this.parent;for(;o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(o=>{o.canFocus=!0})};this.shouldLoadData()?this.loadData(o=>{Array.isArray(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||ud(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,o){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:l,allWithoutDisable:s}=Zg(this.childNodes);!this.isLeaf&&!l&&s&&(this.checked=!1,e=!1);const h=()=>{if(n){const u=this.childNodes;for(let f=0,m=u.length;f<m;f++){const y=u[f];o=o||e!==!1;const v=y.disabled?y.checked:o;y.setChecked(v,n,!0,o)}const{half:d,all:p}=Zg(u);p||(this.checked=p,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{h(),ud(this)},{checked:e!==!1});return}else h()}const a=this.parent;!a||a.level===0||r||ud(a)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),n[o]===void 0&&(n[o]=null),e&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(a=>a.data),r={},o=[];e.forEach((a,l)=>{const s=a[p0];!!s&&n.findIndex(u=>u[p0]===s)>=0?r[s]={index:l,data:a}:o.push({index:l,data:a})}),this.store.lazy||n.forEach(a=>{r[a[p0]]||this.removeChildByData(a)}),o.forEach(({index:a,data:l})=>{this.insertChild({data:l},a)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,o)};this.store.load(this,r)}else e&&e.call(this)}};class pre{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)t4(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new $g({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,o=function(a){const l=a.root?a.root.childNodes:a.childNodes;if(l.forEach(s=>{s.visible=n.call(s,e,s.data,s),o(s)}),!a.visible&&l.length){let s=!0;s=!l.some(h=>h.visible),a.root?a.root.visible=s===!1:a.visible=s===!1}e&&a.visible&&!a.isLeaf&&(!r||a.loaded)&&a.expand()};o(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof $g)return e;const n=Yi(e)?Gg(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],o=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),n(a)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)t4(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const o=r.childNodes;for(let a=o.length-1;a>=0;a--){const l=o[a];this.remove(l.data)}for(let a=0,l=n.length;a<l;a++){const s=n[a];this.append(s,r.data)}}_setCheckedKeys(e,n=!1,r){const o=this._getAllNodes().sort((s,h)=>h.level-s.level),a=Object.create(null),l=Object.keys(r);o.forEach(s=>s.setChecked(!1,!1));for(let s=0,h=o.length;s<h;s++){const u=o[s],d=u.data[e].toString();if(!l.includes(d)){u.checked&&!a[d]&&u.setChecked(!1,!1);continue}let f=u.parent;for(;f&&f.level>0;)a[f.data[e]]=!0,f=f.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const m=function(y){y.childNodes.forEach(_=>{_.isLeaf||_.setChecked(!1,!1),m(_)})};m(u)}}}setCheckedNodes(e,n=!1){const r=this.key,o={};e.forEach(a=>{o[(a||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,o={};e.forEach(a=>{o[a]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const o=this.getNode(e);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],o=this.nodesMap[r];this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const fre=c.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=Ln("tree"),n=c.inject("NodeInstance"),r=c.inject("RootTree");return()=>{const o=t.node,{data:a,store:l}=o;return t.renderContent?t.renderContent(c.h,{_self:n,node:o,data:a,store:l}):c.renderSlot(r.ctx.slots,"default",{node:o,data:a},()=>[c.h("span",{class:e.be("node","label")},[o.label])])}}});var Tre=En(fre,[["__file","tree-node-content.vue"]]);function CE(t){const e=c.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),c.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const EE=Symbol("dragEvents");function Qre({props:t,ctx:e,el$:n,dropIndicator$:r,store:o}){const a=Ln("tree"),l=c.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),s=({event:d,treeNode:p})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(p.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}l.value.draggingNode=p,e.emit("node-drag-start",p.node,d)},h=({event:d,treeNode:p})=>{const f=p,m=l.value.dropNode;m&&m.node.id!==f.node.id&&H2(m.$el,a.is("drop-inner"));const y=l.value.draggingNode;if(!y||!f)return;let v=!0,_=!0,x=!0,L=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(y.node,f.node,"prev"),L=_=t.allowDrop(y.node,f.node,"inner"),x=t.allowDrop(y.node,f.node,"next")),d.dataTransfer.dropEffect=_||v||x?"move":"none",(v||_||x)&&(m==null?void 0:m.node.id)!==f.node.id&&(m&&e.emit("node-drag-leave",y.node,m.node,d),e.emit("node-drag-enter",y.node,f.node,d)),v||_||x?l.value.dropNode=f:l.value.dropNode=null,f.node.nextSibling===y.node&&(x=!1),f.node.previousSibling===y.node&&(v=!1),f.node.contains(y.node,!1)&&(_=!1),(y.node===f.node||y.node.contains(f.node))&&(v=!1,_=!1,x=!1);const S=f.$el.querySelector(`.${a.be("node","content")}`).getBoundingClientRect(),C=n.value.getBoundingClientRect();let A;const H=v?_?.25:x?.45:1:-1,k=x?_?.75:v?.55:0:1;let B=-9999;const D=d.clientY-S.top;D<S.height*H?A="before":D>S.height*k?A="after":_?A="inner":A="none";const z=f.$el.querySelector(`.${a.be("node","expand-icon")}`).getBoundingClientRect(),q=r.value;A==="before"?B=z.top-C.top:A==="after"&&(B=z.bottom-C.top),q.style.top=`${B}px`,q.style.left=`${z.right-C.left}px`,A==="inner"?Oh(f.$el,a.is("drop-inner")):H2(f.$el,a.is("drop-inner")),l.value.showDropIndicator=A==="before"||A==="after",l.value.allowDrop=l.value.showDropIndicator||L,l.value.dropType=A,e.emit("node-drag-over",y.node,f.node,d)},u=d=>{const{draggingNode:p,dropType:f,dropNode:m}=l.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",p&&m){const y={data:p.node.data};f!=="none"&&p.node.remove(),f==="before"?m.node.parent.insertBefore(y,m.node):f==="after"?m.node.parent.insertAfter(y,m.node):f==="inner"&&m.node.insertChild(y),f!=="none"&&o.value.registerNode(y),H2(m.$el,a.is("drop-inner")),e.emit("node-drag-end",p.node,m.node,f,d),f!=="none"&&e.emit("node-drop",p.node,m.node,f,d)}p&&!m&&e.emit("node-drag-end",p.node,null,f,d),l.value.showDropIndicator=!1,l.value.draggingNode=null,l.value.dropNode=null,l.value.allowDrop=!0};return c.provide(EE,{treeNodeDragStart:s,treeNodeDragOver:h,treeNodeDragEnd:u}),{dragState:l}}const mre=c.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:Vee,ElCheckbox:eE,NodeContent:Tre,ElIcon:zr,Loading:ig},props:{node:{type:$g,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=Ln("tree"),{broadcastExpanded:r}=CE(t),o=c.inject("RootTree"),a=c.ref(!1),l=c.ref(!1),s=c.ref(null),h=c.ref(null),u=c.ref(null),d=c.inject(EE),p=c.getCurrentInstance();c.provide("NodeInstance",p),o||Fr("Tree","Can not find node's tree."),t.node.expanded&&(a.value=!0,l.value=!0);const f=o.props.props.children||"children";c.watch(()=>{const D=t.node.data[f];return D&&[...D]},()=>{t.node.updateChildren()}),c.watch(()=>t.node.indeterminate,D=>{v(t.node.checked,D)}),c.watch(()=>t.node.checked,D=>{v(D,t.node.indeterminate)}),c.watch(()=>t.node.expanded,D=>{c.nextTick(()=>a.value=D),D&&(l.value=!0)});const m=D=>Gg(o.props.nodeKey,D.data),y=D=>{const z=t.props.class;if(!z)return{};let q;if(Ao(z)){const{data:F}=D;q=z(F,D)}else q=z;return si(q)?{[q]:!0}:q},v=(D,z)=>{(s.value!==D||h.value!==z)&&o.ctx.emit("check-change",t.node.data,D,z),s.value=D,h.value=z},_=D=>{Wg(o.store,o.ctx.emit,()=>o.store.value.setCurrentNode(t.node)),o.currentNode.value=t.node,o.props.expandOnClickNode&&L(),o.props.checkOnClickNode&&!t.node.disabled&&S(null,{target:{checked:!t.node.checked}}),o.ctx.emit("node-click",t.node.data,t.node,p,D)},x=D=>{o.instance.vnode.props.onNodeContextmenu&&(D.stopPropagation(),D.preventDefault()),o.ctx.emit("node-contextmenu",D,t.node.data,t.node,p)},L=()=>{t.node.isLeaf||(a.value?(o.ctx.emit("node-collapse",t.node.data,t.node,p),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,p)))},S=(D,z)=>{t.node.setChecked(z.target.checked,!o.props.checkStrictly),c.nextTick(()=>{const q=o.store.value;o.ctx.emit("check",t.node.data,{checkedNodes:q.getCheckedNodes(),checkedKeys:q.getCheckedKeys(),halfCheckedNodes:q.getHalfCheckedNodes(),halfCheckedKeys:q.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:a,childNodeRendered:l,oldChecked:s,oldIndeterminate:h,getNodeKey:m,getNodeClass:y,handleSelectChange:v,handleClick:_,handleContextMenu:x,handleExpandIconClick:L,handleCheckChange:S,handleChildNodeExpand:(D,z,q)=>{r(z),o.ctx.emit("node-expand",D,z,q)},handleDragStart:D=>{o.props.draggable&&d.treeNodeDragStart({event:D,treeNode:t})},handleDragOver:D=>{D.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:D,treeNode:{$el:u.value,node:t.node}})},handleDrop:D=>{D.preventDefault()},handleDragEnd:D=>{o.props.draggable&&d.treeNodeDragEnd(D)},CaretRight:Fq}}}),gre=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],yre=["aria-expanded"];function vre(t,e,n,r,o,a){const l=c.resolveComponent("el-icon"),s=c.resolveComponent("el-checkbox"),h=c.resolveComponent("loading"),u=c.resolveComponent("node-content"),d=c.resolveComponent("el-tree-node"),p=c.resolveComponent("el-collapse-transition");return c.withDirectives((c.openBlock(),c.createElementBlock("div",{ref:"node$",class:c.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=c.withModifiers((...f)=>t.handleClick&&t.handleClick(...f),["stop"])),onContextmenu:e[2]||(e[2]=(...f)=>t.handleContextMenu&&t.handleContextMenu(...f)),onDragstart:e[3]||(e[3]=c.withModifiers((...f)=>t.handleDragStart&&t.handleDragStart(...f),["stop"])),onDragover:e[4]||(e[4]=c.withModifiers((...f)=>t.handleDragOver&&t.handleDragOver(...f),["stop"])),onDragend:e[5]||(e[5]=c.withModifiers((...f)=>t.handleDragEnd&&t.handleDragEnd(...f),["stop"])),onDrop:e[6]||(e[6]=c.withModifiers((...f)=>t.handleDrop&&t.handleDrop(...f),["stop"]))},[c.createElementVNode("div",{class:c.normalizeClass(t.ns.be("node","content")),style:c.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(c.openBlock(),c.createBlock(l,{key:0,class:c.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:c.withModifiers(t.handleExpandIconClick,["stop"])},{default:c.withCtx(()=>[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):c.createCommentVNode("v-if",!0),t.showCheckbox?(c.openBlock(),c.createBlock(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=c.withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):c.createCommentVNode("v-if",!0),t.node.loading?(c.openBlock(),c.createBlock(l,{key:2,class:c.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:c.withCtx(()=>[c.createVNode(h)]),_:1},8,["class"])):c.createCommentVNode("v-if",!0),c.createVNode(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),c.createVNode(p,null,{default:c.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?c.withDirectives((c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.node.childNodes,f=>(c.openBlock(),c.createBlock(d,{key:t.getNodeKey(f),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:f,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,yre)),[[c.vShow,t.expanded]]):c.createCommentVNode("v-if",!0)]),_:1})],42,gre)),[[c.vShow,t.node.visible]])}var bre=En(mre,[["render",vre],["__file","tree-node.vue"]]);function xre({el$:t},e){const n=Ln("tree"),r=c.shallowRef([]),o=c.shallowRef([]);c.onMounted(()=>{l()}),c.onUpdated(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),c.watch(o,s=>{s.forEach(h=>{h.setAttribute("tabindex","-1")})}),k1(t,"keydown",s=>{const h=s.target;if(!h.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=r.value.indexOf(h);let p;if([Mi.up,Mi.down].includes(u)){if(s.preventDefault(),u===Mi.up){p=d===-1?0:d!==0?d-1:r.value.length-1;const m=p;for(;!e.value.getNode(r.value[p].dataset.key).canFocus;){if(p--,p===m){p=-1;break}p<0&&(p=r.value.length-1)}}else{p=d===-1?0:d<r.value.length-1?d+1:0;const m=p;for(;!e.value.getNode(r.value[p].dataset.key).canFocus;){if(p++,p===m){p=-1;break}p>=r.value.length&&(p=0)}}p!==-1&&r.value[p].focus()}[Mi.left,Mi.right].includes(u)&&(s.preventDefault(),h.click());const f=h.querySelector('[type="checkbox"]');[Mi.enter,Mi.space].includes(u)&&f&&(s.preventDefault(),f.click())});const l=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const h=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(h.length){h[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const _re=c.defineComponent({name:"ElTree",components:{ElTreeNode:bre},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ms}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=u4(),r=Ln("tree"),o=c.ref(new pre({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));o.value.initialize();const a=c.ref(o.value.root),l=c.ref(null),s=c.ref(null),h=c.ref(null),{broadcastExpanded:u}=CE(t),{dragState:d}=Qre({props:t,ctx:e,el$:s,dropIndicator$:h,store:o});xre({el$:s},o);const p=c.computed(()=>{const{childNodes:J}=a.value;return!J||J.length===0||J.every(({visible:he})=>!he)});c.watch(()=>t.currentNodeKey,J=>{o.value.setCurrentNodeKey(J)}),c.watch(()=>t.defaultCheckedKeys,J=>{o.value.setDefaultCheckedKey(J)}),c.watch(()=>t.defaultExpandedKeys,J=>{o.value.setDefaultExpandedKeys(J)}),c.watch(()=>t.data,J=>{o.value.setData(J)},{deep:!0}),c.watch(()=>t.checkStrictly,J=>{o.value.checkStrictly=J});const f=J=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(J)},m=J=>Gg(t.nodeKey,J.data),y=J=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const he=o.value.getNode(J);if(!he)return[];const xe=[he.data];let ee=he.parent;for(;ee&&ee!==a.value;)xe.push(ee.data),ee=ee.parent;return xe.reverse()},v=(J,he)=>o.value.getCheckedNodes(J,he),_=J=>o.value.getCheckedKeys(J),x=()=>{const J=o.value.getCurrentNode();return J?J.data:null},L=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const J=x();return J?J[t.nodeKey]:null},S=(J,he)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(J,he)},C=(J,he)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(J,he)},A=(J,he,xe)=>{o.value.setChecked(J,he,xe)},H=()=>o.value.getHalfCheckedNodes(),k=()=>o.value.getHalfCheckedKeys(),B=(J,he=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Wg(o,e.emit,()=>o.value.setUserCurrentNode(J,he))},D=(J,he=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Wg(o,e.emit,()=>o.value.setCurrentNodeKey(J,he))},z=J=>o.value.getNode(J),q=J=>{o.value.remove(J)},F=(J,he)=>{o.value.append(J,he)},Z=(J,he)=>{o.value.insertBefore(J,he)},K=(J,he)=>{o.value.insertAfter(J,he)},X=(J,he,xe)=>{u(he),e.emit("node-expand",J,he,xe)},te=(J,he)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(J,he)};return c.provide("RootTree",{ctx:e,props:t,store:o,root:a,currentNode:l,instance:c.getCurrentInstance()}),c.provide(bc,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:d,el$:s,dropIndicator$:h,isEmpty:p,filter:f,getNodeKey:m,getNodePath:y,getCheckedNodes:v,getCheckedKeys:_,getCurrentNode:x,getCurrentKey:L,setCheckedNodes:S,setCheckedKeys:C,setChecked:A,getHalfCheckedNodes:H,getHalfCheckedKeys:k,setCurrentNode:B,setCurrentKey:D,t:n,getNode:z,remove:q,append:F,insertBefore:Z,insertAfter:K,handleNodeExpand:X,updateKeyChildren:te}}});function Lre(t,e,n,r,o,a){const l=c.resolveComponent("el-tree-node");return c.openBlock(),c.createElementBlock("div",{ref:"el$",class:c.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.root.childNodes,s=>(c.openBlock(),c.createBlock(l,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(t.ns.e("empty-block"))},[c.renderSlot(t.$slots,"empty",{},()=>{var s;return[c.createElementVNode("span",{class:c.normalizeClass(t.ns.e("empty-text"))},c.toDisplayString((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createElementVNode("div",{ref:"dropIndicator$",class:c.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[c.vShow,t.dragState.showDropIndicator]])],2)}var dd=En(_re,[["render",Lre],["__file","tree.vue"]]);dd.install=t=>{t.component(dd.name,dd)};const HE=dd;function wre(t){let e;const n=c.ref(!1),r=c.reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function o(f){r.text=f}function a(){const f=r.parent,m=p.ns;if(!f.vLoadingAddClassList){let y=f.getAttribute("loading-number");y=Number.parseInt(y)-1,y?f.setAttribute("loading-number",y.toString()):(H2(f,m.bm("parent","relative")),f.removeAttribute("loading-number")),H2(f,m.bm("parent","hidden"))}l(),d.unmount()}function l(){var f,m;(m=(f=p.$el)==null?void 0:f.parentNode)==null||m.removeChild(p.$el)}function s(){var f;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(e),e=window.setTimeout(h,400),r.visible=!1,(f=t.closed)==null||f.call(t))}function h(){if(!n.value)return;const f=r.parent;n.value=!1,f.vLoadingAddClassList=void 0,a()}const u=c.defineComponent({name:"ElLoading",setup(f,{expose:m}){const{ns:y,zIndex:v}=KK("loading");return m({ns:y,zIndex:v}),()=>{const _=r.spinner||r.svg,x=c.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",..._?{innerHTML:_}:{}},[c.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=r.text?c.h("p",{class:y.b("text")},[r.text]):void 0;return c.h(c.Transition,{name:y.b("fade"),onAfterLeave:h},{default:c.withCtx(()=>[c.withDirectives(c.createVNode("div",{style:{backgroundColor:r.background||""},class:[y.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[c.h("div",{class:y.b("spinner")},[x,L])]),[[c.vShow,r.visible]])])})}}}),d=c.createApp(u),p=d.mount(document.createElement("div"));return{...c.toRefs(r),setText:o,removeElLoadingChild:l,close:s,handleAfterLeave:h,vm:p,get $el(){return p.$el}}}let pd;const qg=function(t={}){if(!Dr)return;const e=Mre(t);if(e.fullscreen&&pd)return pd;const n=wre({...e,closed:()=>{var o;(o=e.closed)==null||o.call(e),e.fullscreen&&(pd=void 0)}});Sre(e,e.parent,n),AE(e,e.parent,n),e.parent.vLoadingAddClassList=()=>AE(e,e.parent,n);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(n.$el),c.nextTick(()=>n.visible.value=e.visible),e.fullscreen&&(pd=n),n},Mre=t=>{var e,n,r,o;let a;return si(t.target)?a=(e=document.querySelector(t.target))!=null?e:document.body:a=t.target||document.body,{parent:a===document.body||t.body?document.body:a,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:a===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(r=t.lock)!=null?r:!1,customClass:t.customClass||"",visible:(o=t.visible)!=null?o:!0,target:a}},Sre=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(t.fullscreen)n.originalPosition.value=K6(document.body,"position"),n.originalOverflow.value=K6(document.body,"overflow"),o.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=K6(document.body,"position"),await c.nextTick();for(const a of["top","left"]){const l=a==="top"?"scrollTop":"scrollLeft";o[a]=`${t.target.getBoundingClientRect()[a]+document.body[l]+document.documentElement[l]-Number.parseInt(K6(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])o[a]=`${t.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=K6(e,"position");for(const[a,l]of Object.entries(o))n.$el.style[a]=l},AE=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?H2(e,r.bm("parent","relative")):Oh(e,r.bm("parent","relative")),t.fullscreen&&t.lock?Oh(e,r.bm("parent","hidden")):H2(e,r.bm("parent","hidden"))},fd=Symbol("ElLoading"),VE=(t,e)=>{var n,r,o,a;const l=e.instance,s=f=>Yi(e.value)?e.value[f]:void 0,h=f=>{const m=si(f)&&(l==null?void 0:l[f])||f;return m&&c.ref(m)},u=f=>h(s(f)||t.getAttribute(`element-loading-${AG(f)}`)),d=(n=s("fullscreen"))!=null?n:e.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=s("target"))!=null?r:d?void 0:t,body:(o=s("body"))!=null?o:e.modifiers.body,lock:(a=s("lock"))!=null?a:e.modifiers.lock};t[fd]={options:p,instance:qg(p)}},Cre=(t,e)=>{for(const n of Object.keys(e))c.isRef(e[n])&&(e[n].value=t[n])},Td={mounted(t,e){e.value&&VE(t,e)},updated(t,e){const n=t[fd];e.oldValue!==e.value&&(e.value&&!e.oldValue?VE(t,e):e.value&&e.oldValue?Yi(e.value)&&Cre(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[fd])==null||e.instance.close(),t[fd]=null}},OE={install(t){t.directive("loading",Td),t.config.globalProperties.$loading=qg},directive:Td,service:qg},f0=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Ere={name:"TextureSlidesControls",components:{Col:_c,Container:id,Footer:pE,Header:od,Icon:zr,InputNumber:Bg,Main:ad,Row:u0,Slider:d0},data:function(){return{settings:[],directions:[{value:"x",label:"x"},{value:"y",label:"y"},{value:"z",label:"z"}]}},watch:{settings:function(){this.material&&this._zincObject&&this._zincObject.setAlpha(this.material.opacity)}},mounted:function(){this._zincObject=void 0},methods:{setObject:function(t){t.isTextureSlides?(this._zincObject=t,this.settings=this._zincObject.getTextureSettings()):(this._zincObject=void 0,this.settings=[])},addNewSlide:function(){const t={direction:"x",value:0},e=this._zincObject.createSlide(t);this.settings.push(e)},modifyDirection:function(t,e){e&&(e.direction=t,this._zincObject.modifySlideSettings(e))},modifySlide:function(t){t&&this._zincObject.modifySlideSettings(t)},removeSlide:function(t,e){this._zincObject.removeSlideWithId(e.id),this.settings.splice(t,1)}}},kE=t=>(c.pushScopeId("data-v-d6d9b844"),t=t(),c.popScopeId(),t),Hre=kE(()=>c.createElementVNode("div",null,"Texture Slides Settings",-1)),Are=["onClick"],Vre=kE(()=>c.createElementVNode("i",{class:"el-icon-plus"},null,-1));function Ore(t,e,n,r,o,a){const l=od,s=zg,h=Fg,u=_c,d=d0,p=Bg,f=u0,m=ad,y=pE,v=id;return c.withDirectives((c.openBlock(),c.createBlock(v,{class:"t-slides-container"},{default:c.withCtx(()=>[c.createVNode(l,{height:"30px",class:"header"},{default:c.withCtx(()=>[Hre]),_:1}),c.createVNode(m,{class:"block"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.settings,(_,x)=>(c.openBlock(),c.createBlock(f,{key:_.id},{default:c.withCtx(()=>[c.createVNode(u,{offset:0,span:2},{default:c.withCtx(()=>[c.createVNode(h,{teleported:!1,value:_.direction,placeholder:"Select",class:"input-box","popper-class":"viewer_dropdown",onChange:L=>a.modifyDirection(L,_)},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.directions,L=>(c.openBlock(),c.createBlock(s,{key:L.value,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["value","onChange"])]),_:2},1024),c.createVNode(u,{offset:0,span:14},{default:c.withCtx(()=>[c.createVNode(d,{modelValue:_.value,"onUpdate:modelValue":L=>_.value=L,class:"my-slider",step:.01,min:0,max:1,"show-tooltip":!1,onInput:L=>a.modifySlide(_)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),c.createVNode(u,{offset:0,span:3},{default:c.withCtx(()=>[c.createVNode(p,{modelValue:_.value,"onUpdate:modelValue":L=>_.value=L,step:.01,min:0,max:1,controls:!1,class:"input-box number-input"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),c.createVNode(u,{offset:2,span:2},{default:c.withCtx(()=>[c.createElementVNode("i",{class:"el-icon-close close-icon",onClick:L=>a.removeSlide(x,_)},null,8,Are)]),_:2},1024)]),_:2},1024))),128))]),_:1}),c.createVNode(y,{height:"30px",class:"add-slides-text",onClick:a.addNewSlide},{default:c.withCtx(()=>[c.createVNode(f,null,{default:c.withCtx(()=>[c.createVNode(u,{span:2},{default:c.withCtx(()=>[Vre]),_:1}),c.createVNode(u,{span:10},{default:c.withCtx(()=>[c.createTextVNode(" Add a new slide ")]),_:1})]),_:1})]),_:1},8,["onClick"])]),_:1},512)),[[c.vShow,t.settings.length>0]])}const PE=f0(Ere,[["render",Ore],["__scopeId","data-v-d6d9b844"]]),kre={name:"OpacityControls",components:{Container:id,Header:od,Main:ad,Slider:d0},props:{material:void 0,zincObject:void 0},data:function(){return{displayString:"100%"}},watch:{"material.opacity":function(){this.material&&this.zincObject&&this.zincObject.setAlpha(this.material.opacity)}},methods:{formatTooltip(t){return this.displayString=Math.floor(100*t+.5)+"%",this.displayString}}},Pre=(t=>(c.pushScopeId("data-v-e244a51c"),t=t(),c.popScopeId(),t))(()=>c.createElementVNode("div",null,"Opacity",-1)),Ire={class:"block"},Rre={class:"display"};function Nre(t,e,n,r,o,a){const l=od,s=d0,h=ad,u=id;return n.material?(c.openBlock(),c.createBlock(u,{key:0,class:"opacity-container"},{default:c.withCtx(()=>[c.createVNode(l,{height:"37px",class:"header"},{default:c.withCtx(()=>[Pre]),_:1}),c.createVNode(h,{class:"main"},{default:c.withCtx(()=>[c.createElementVNode("div",Ire,[c.createElementVNode("span",Rre,c.toDisplayString(t.displayString),1),c.createVNode(s,{modelValue:n.material.opacity,"onUpdate:modelValue":e[0]||(e[0]=d=>n.material.opacity=d),class:"my-slider",step:.01,min:0,max:1,"format-tooltip":a.formatTooltip,"show-tooltip":!1},null,8,["modelValue","format-tooltip"])])]),_:1})]),_:1})):c.createCommentVNode("",!0)}const IE=f0(kre,[["render",Nre],["__scopeId","data-v-e244a51c"]]),Bre={name:"PrimitiveControls",components:{Drawer:fE,OpacityControls:IE,TextureSlidesControls:PE},data:function(){return{material:void 0,isTextureSlides:!1,drawerOpen:!0,zincObject:void 0}},methods:{formatTooltip:function(t){return this.displayString=Math.floor(100*t+.5)+"%",this.displayString},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setObject:function(t){this.zincObject=c.shallowRef(t),t.isTextureSlides?(this.isTextureSlides=!0,this.$refs.tSlidesControls.setObject(t)):this.isTextureSlides=!1,t&&t.morph?this.material=c.ref(t.morph.material):this.material=void 0}}},Dre={class:"primitive-controls"};function Fre(t,e,n,r,o,a){const l=MS,s=zr,h=IE,u=PE,d=fE,p=cc;return c.withDirectives((c.openBlock(),c.createElementBlock("div",Dre,[c.createVNode(d,{class:c.normalizeClass({"my-drawer":!0}),modelValue:t.drawerOpen,"onUpdate:modelValue":e[1]||(e[1]=f=>t.drawerOpen=f),"append-to-body":!1,size:"300","with-header":!1,"wrapper-closable":!1,modal:!1},{default:c.withCtx(()=>[t.drawerOpen?(c.openBlock(),c.createElementBlock("div",{key:0,class:"tab-button close",onClick:e[0]||(e[0]=(...f)=>a.toggleDrawer&&a.toggleDrawer(...f))},[c.createVNode(s,null,{default:c.withCtx(()=>[c.createVNode(l)]),_:1})])):c.createCommentVNode("",!0),c.createVNode(h,{material:t.material,zincObject:t.zincObject,ref:"opacityControls"},null,8,["material","zincObject"]),c.withDirectives(c.createVNode(u,{class:"controls",ref:"tSlidesControls"},null,512),[[c.vShow,t.isTextureSlides]])]),_:1},8,["modelValue"]),t.drawerOpen?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:"tab-button open",onClick:e[2]||(e[2]=(...f)=>a.toggleDrawer&&a.toggleDrawer(...f))},[c.createVNode(s,null,{default:c.withCtx(()=>[c.createVNode(p,{class:"el-icon-arrow-left"})]),_:1})]))],512)),[[c.vShow,t.material||t.isTextureSlides]])}const RE=f0(Bre,[["render",Fre],["__scopeId","data-v-f479a256"]]),NE=(t,e)=>{if(t){let n="";t.forEach(r=>{n=r.uuid,r.region&&(n=r.region.uuid+"/"+n),r&&r.getVisibility()&&e.push(n)})}return e},BE=(t,e)=>{let n="";t.isRegion&&(n=`__r${t.regionPath}`),t.isPrimitives&&(n=`${t.regionPath}/${t.label}`),e.push(n),t.children&&t.children.forEach(r=>BE(r,e))},T0=(t,e,n,r)=>{let o=t;const a=[];if(n&&(o=t.findChildFromPath(n)),o){const l=Array.isArray(e);let s=e;l||(s=[s]),s.forEach(h=>{const u=o.findObjectsWithGroupName(h,r);a.push(...u)})}return a},Xg=(t,e,n)=>{const r=t.findIndex(a=>a.uuid===e);let o;return r>-1&&(o=t[r],n&&t.splice(i,1)),o},zre=(t,e)=>{const n=[];if(t&&e&&e.length>0){const r={},o={},a=[t,...t.getChildRegions(!0)];let l,s,h;e.forEach(u=>{const d=u.split("/");h=d[0],l=Xg(a,h,!1),l&&(o[h]||(o[h]=l.getFullPath()),d[1]?(r[h]||(r[h]=l.getAllObjects(!1)),s=Xg(r[h],d[1],!0),s&&n.push(`${o[h]}/${s.groupName}`)):n.push(`__r/${o[h]}`))})}return n},Ure=t=>{if(t){const e=[];return t.forEach(r=>{r.isZincObject?e.push(r):r.isRegion&&e.push(...r.getAllObjects(!0))}),Object.values(e.reduce((r,o)=>({...r,[o.uuid]:o}),{}))}return[]},DE=(t,e)=>{const n={label:"Multiple selections",regionPath:"",objects:[]};if(e&&t){const r={},o=t.getRootRegion();e.length>0&&(n.regionPath=e[0].data.region,n.label=e[0].data.group),e.forEach(a=>{a.data.region.includes(n.regionPath)||(n.regionPath=""),n.label!==a.data.group&&(n.label="Multiple selections");const l=o.findChildFromPath(a.data.region);r[l.uuid]||(r[l.uuid]=l.getAllObjects(!1));const s=Xg(r[l.uuid],a.data.uuid);s&&n.objects.push(s)})}return n},jre=(t,e)=>{const n=t.label.toUpperCase(),r=e.label.toUpperCase();return n<r?-1:n>r?1:0},Gre={name:"TreeControls",components:{ElIconArrowLeft:cc,Checkbox:eE,CheckboxGroup:Qee,ColorPicker:lE,Loading:OE,Row:u0,Tree:HE},props:{showColourPicker:Boolean,isReady:Boolean},data:function(){return{treeData:[{label:"Root",regionPath:"",id:void 0,children:[]}],active:[],hover:[],myPopperClass:"hide-scaffold-colour-popup",drawerOpen:!0}},watch:{showColourPicker:{immediate:!0,handler:function(){this.showColourPicker?this.myPopperClass="showPicker":this.myPopperClass="hide-scaffold-colour-popup"}}},destroyed:function(){this.sortedPrimitiveGroups=void 0},methods:{addTreeItem:function(t,e){t.some(n=>n.label===e.label)||(t.push(e),t.sort((n,r)=>jre(n,r)),this.__nodeNumbers++,this.$nextTick(()=>{this.$refs.regionTree.setChecked(e.id,!0)}))},findOrCreateRegion:function(t,e,n){if(this.rootID===void 0&&this.$module&&this.$module.scene&&(this.treeData[0].id=this.$module.scene.getRootRegion().uuid,this.treeData[0].isRegion=!0),e.length>0){const r=[...e];let o=t.children.find(s=>s.label==r[0]);const a=n+"/"+e[0],l=this.$module.scene.getRootRegion().findChildFromPath(a);return o||(o={label:r[0],id:l.uuid,children:[],regionPath:a,isRegion:!0},this.addTreeItem(t.children,o)),r.shift(),this.findOrCreateRegion(o,r,a)}else return t},zincObjectAdded:function(t){const e=t.region;if(e){const n=e.getFullSeparatedPath(),r=this.findOrCreateRegion(this.treeData[0],n,"");if(t.groupName&&r){r.children||(r.children=[]);const o={label:t.groupName,id:e.uuid+"/"+t.uuid,isPrimitives:!0,regionPath:t.region.getFullPath(),isTextureSlides:!!t.isTextureSlides};this.addTreeItem(r.children,o)}}},checkChanged:function(t,e){const n=t.isRegion,r=t.isPrimitives,o=e.checkedKeys.includes(t.id),a=this.$module.scene.getRootRegion().findChildFromPath(t.regionPath);n&&(o?a.showAllPrimitives():a.hideAllPrimitives()),r&&a.findObjectsWithGroupName(t.label).forEach(s=>{s.setVisibility(o)})},updateActiveUI:function(t){this.active.length=0,NE(t,this.active)},changeActiveByPrimitives:function(t,e){t&&t.length>0?(this.updateActiveUI(t),this.$emit("object-selected",t,e)):this.removeActive(e),this.removeHover(e)},updateHoverUI:function(t){this.hover.length=0,NE(t,this.hover)},changeHoverByPrimitives:function(t,e){t&&t.length>0?(this.updateHoverUI(t),this.$emit("object-hovered",t,e)):this.removeHover(e)},changeActiveByNames:function(t,e,n){const r=this.$module.scene.getRootRegion(),o=T0(r,t,e,!0);this.changeActiveByPrimitives(o,n)},changeHoverByNames:function(t,e,n){const r=this.$module.scene.getRootRegion(),o=T0(r,t,e,!0);this.changeHoverByPrimitives(o,n)},changeActiveByNode:function(t,e){if(t.isPrimitives||t.isRegion){const n=!!t.isRegion,r=this.getZincObjectsFromNode(t,n);this.changeActiveByPrimitives(r,e)}},changeHoverByNode:function(t,e){if(t.isPrimitives){const n=this.getZincObjectsFromNode(t,!1);this.changeHoverByPrimitives(n,e)}},removeActive:function(t){this.active=[],this.$emit("object-selected",[],t)},removeHover:function(t){this.hover=[],this.$emit("object-hovered",[],t)},clear:function(){this.active.length=0,this.hover.length=0,this.__nodeNumbers=0,this.$refs.regionTree.updateKeyChildren(this.treeData[0].id,[]),this.treeData[0].children.length=0,this.treeData[0].id=void 0,this.$emit("object-selected",[])},getColour:function(t){if(t){let n=this.getZincObjectsFromNode(t,!1)[0];if(n){let r=n.getColourHex();if(r)return"#"+r}}return"#FFFFFF"},getZincObjectsFromNode:function(t,e){const n=this.$module.scene.getRootRegion();if(t.isPrimitives)return T0(n,t.label,t.regionPath,e);if(t.isRegion&&t.regionPath){let r=n.findChildFromPath(t.regionPath);if(r)return r.getAllObjects(e)}return[]},setModule:function(t){this.$module=t,this.__nodeNumbers=0,this.$module.scene.getRootRegion().getAllObjects(!0).forEach(n=>{this.zincObjectAdded(n)}),this.$module.addOrganPartAddedCallback(this.zincObjectAdded)},setColour:function(t,e){t&&t.isPrimitives&&this.getZincObjectsFromNode(t,!1).forEach(r=>{let o=e.replace("#","0x");r.setColourHex(o)})},viewAll:function(){this.$module.viewAll()},visibilityToggle:function(t,e){this.$module.changeOrganPartsVisibility(t,e),e==!1&&(this.activeRegion===t&&this.removeActive(!0),this.hoverRegion===t&&this.removeHover(!0))},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen,this.$emit("drawer-toggled",this.drawerOpen)},setTreeVisibilityWithFullPaths:function(t,e,n,r){let o=!1,a="";t.isRegion&&(a=`__r${t.regionPath}`),t.isPrimitives&&(a=`${t.regionPath}/${t.label}`);const l=e.indexOf(a);l>-1&&(o=!0,e.splice(l,1),n.push(t.id));const s=this.$module.scene.getRootRegion().findChildFromPath(t.regionPath);a&&a!=="__r"&&t.isPrimitives&&s.findObjectsWithGroupName(t.label).forEach(u=>u.setVisibility(o)),t.children&&t.children.forEach(h=>{this.setTreeVisibilityWithFullPaths(h,e,n,!0)})},checkAllKeys:function(){const t=[],e=[];BE(this.treeData[0],t),this.setTreeVisibilityWithFullPaths(this.treeData[0],t,e,!0),this.$refs.regionTree.setCheckedKeys(e)},getState:function(){let t=this.$refs.regionTree.getCheckedKeys();return t.length===this.__nodeNumbers?{checkAll:!0,version:"2.0"}:{checkedItems:zre(this.$module.scene.getRootRegion(),t),version:"2.0"}},setState:function(t){if(t){if(t.checkAll)this.checkAllKeys();else if(t.checkedItems){let e=[];t.version!=="2.0"?(e=t.checkedItems.map(r=>"/"+r),e.shift("__r/")):e.push(...t.checkedItems);const n=[];this.setTreeVisibilityWithFullPaths(this.treeData[0],e,n,!0),this.$refs.regionTree.setCheckedKeys(n)}}}}},Wre=t=>(c.pushScopeId("data-v-b03a5e00"),t=t(),c.popScopeId(),t),Zre={class:"traditional-container"},$re=Wre(()=>c.createElementVNode("div",{class:"regions-display-text"}," Regions ",-1)),qre={class:"tree-container"},Xre=["onClick","onMouseover"],Kre={key:1,class:"node-options"};function Jre(t,e,n,r,o,a){const l=_c,s=u0,h=lE,u=HE,d=cc,p=zr,f=Td;return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["tree-controls",{open:t.drawerOpen,close:!t.drawerOpen}])},[c.createElementVNode("div",Zre,[c.createVNode(s,null,{default:c.withCtx(()=>[c.createVNode(l,{span:12},{default:c.withCtx(()=>[$re]),_:1})]),_:1}),c.createElementVNode("div",qre,[c.withDirectives((c.openBlock(),c.createBlock(u,{ref:"regionTree","node-key":"id","show-checkbox":"","element-loading-background":"rgba(0, 0, 0, 0.3)","check-strictly":!1,data:t.treeData[0].children,"expand-on-click-node":!1,"render-after-expand":!1,onCheck:a.checkChanged},{default:c.withCtx(({node:m,data:y})=>[c.createElementVNode("span",{class:c.normalizeClass(["region-tree-node",{activeItem:t.active.includes(y.id),hoverItem:t.hover.includes(y.id)}]),onClick:v=>a.changeActiveByNode(y,!0),onMouseover:v=>a.changeHoverByNode(y,!0)},[y.isPrimitives?(c.openBlock(),c.createBlock(h,{key:0,class:c.normalizeClass({"show-picker":n.showColourPicker}),"model-value":a.getColour(y),size:"small","popper-class":t.myPopperClass,onChange:v=>a.setColour(y,v)},null,8,["class","model-value","popper-class","onChange"])):c.createCommentVNode("",!0),c.createElementVNode("span",null,c.toDisplayString(m.label),1),y.isTextureSlides?(c.openBlock(),c.createElementBlock("span",Kre," (Texture) ")):c.createCommentVNode("",!0)],42,Xre)]),_:1},8,["data","onCheck"])),[[f,!n.isReady]])])]),c.createElementVNode("div",{class:c.normalizeClass(["drawer-button",{open:t.drawerOpen,close:!t.drawerOpen}]),onClick:e[0]||(e[0]=(...m)=>a.toggleDrawer&&a.toggleDrawer(...m))},[c.createVNode(p,null,{default:c.withCtx(()=>[c.createVNode(d)]),_:1})],2)],2)}const FE=f0(Gre,[["render",Jre],["__scopeId","data-v-b03a5e00"]]),As=(t,e,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=t==null?void 0:t(r);if(n===!1||!o)return e==null?void 0:e(r)};var zE;const Ai=typeof window<"u",Yre=t=>typeof t=="string",UE=()=>{},jE=Ai&&((zE=window==null?void 0:window.navigator)==null?void 0:zE.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function GE(t){return typeof t=="function"?t():c.unref(t)}function eie(t){return t}function Kg(t){return c.getCurrentScope()?(c.onScopeDispose(t),!0):!1}function tie(t,e=!0){c.getCurrentInstance()?c.onMounted(t):e?t():c.nextTick(t)}function D2(t){var e;const n=GE(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Jg=Ai?window:void 0;function F2(...t){let e,n,r,o;if(Yre(t[0])||Array.isArray(t[0])?([n,r,o]=t,e=Jg):[e,n,r,o]=t,!e)return UE;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],l=()=>{a.forEach(d=>d()),a.length=0},s=(d,p,f,m)=>(d.addEventListener(p,f,m),()=>d.removeEventListener(p,f,m)),h=c.watch(()=>[D2(e),GE(o)],([d,p])=>{l(),d&&a.push(...n.flatMap(f=>r.map(m=>s(d,f,m,p))))},{immediate:!0,flush:"post"}),u=()=>{h(),l()};return Kg(u),u}let WE=!1;function nie(t,e,n={}){const{window:r=Jg,ignore:o=[],capture:a=!0,detectIframe:l=!1}=n;if(!r)return;jE&&!WE&&(WE=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",UE)));let s=!0;const h=d=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(f=>f===d.target||d.composedPath().includes(f));{const f=D2(p);return f&&(d.target===f||d.composedPath().includes(f))}}),u=[F2(r,"click",d=>{const p=D2(t);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(s=!h(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:a}),F2(r,"pointerdown",d=>{const p=D2(t);p&&(s=!d.composedPath().includes(p)&&!h(d))},{passive:!0}),l&&F2(r,"blur",d=>{var p;const f=D2(t);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(f!=null&&f.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function rie(t,e=!1){const n=c.ref(),r=()=>n.value=!!t();return r(),tie(r,e),n}const ZE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$E="__vueuse_ssr_handlers__";ZE[$E]=ZE[$E]||{};var qE=Object.getOwnPropertySymbols,iie=Object.prototype.hasOwnProperty,oie=Object.prototype.propertyIsEnumerable,aie=(t,e)=>{var n={};for(var r in t)iie.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&qE)for(var r of qE(t))e.indexOf(r)<0&&oie.call(t,r)&&(n[r]=t[r]);return n};function Qd(t,e,n={}){const r=n,{window:o=Jg}=r,a=aie(r,["window"]);let l;const s=rie(()=>o&&"ResizeObserver"in o),h=()=>{l&&(l.disconnect(),l=void 0)},u=c.watch(()=>D2(t),p=>{h(),s.value&&o&&p&&(l=new ResizeObserver(e),l.observe(p,a))},{immediate:!0,flush:"post"}),d=()=>{h(),u()};return Kg(d),{isSupported:s,stop:d}}var XE;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(XE||(XE={}));var sie=Object.defineProperty,KE=Object.getOwnPropertySymbols,lie=Object.prototype.hasOwnProperty,cie=Object.prototype.propertyIsEnumerable,JE=(t,e,n)=>e in t?sie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uie=(t,e)=>{for(var n in e||(e={}))lie.call(e,n)&&JE(t,n,e[n]);if(KE)for(var n of KE(e))cie.call(e,n)&&JE(t,n,e[n]);return t};uie({linear:eie},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const hie=()=>Ai&&/firefox/i.test(window.navigator.userAgent),Yg=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Sc=()=>{},die=Object.prototype.hasOwnProperty,g4=(t,e)=>die.call(t,e),Q0=Array.isArray,m1=t=>typeof t=="function",Vi=t=>typeof t=="string",Qo=t=>t!==null&&typeof t=="object",pie=Object.prototype.toString,fie=t=>pie.call(t),ey=t=>fie(t).slice(8,-1),YE=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Tie=/-(\w)/g,Qie=YE(t=>t.replace(Tie,(e,n)=>n?n.toUpperCase():"")),mie=/\B([A-Z])/g,gie=YE(t=>t.replace(mie,"-$1").toLowerCase());var eH=typeof global=="object"&&global&&global.Object===Object&&global,yie=typeof self=="object"&&self&&self.Object===Object&&self,Ba=eH||yie||Function("return this")(),Da=Ba.Symbol,tH=Object.prototype,vie=tH.hasOwnProperty,bie=tH.toString,Cc=Da?Da.toStringTag:void 0;function xie(t){var e=vie.call(t,Cc),n=t[Cc];try{t[Cc]=void 0;var r=!0}catch{}var o=bie.call(t);return r&&(e?t[Cc]=n:delete t[Cc]),o}var _ie=Object.prototype,Lie=_ie.toString;function wie(t){return Lie.call(t)}var Mie="[object Null]",Sie="[object Undefined]",nH=Da?Da.toStringTag:void 0;function m0(t){return t==null?t===void 0?Sie:Mie:nH&&nH in Object(t)?xie(t):wie(t)}function g0(t){return t!=null&&typeof t=="object"}var Cie="[object Symbol]";function md(t){return typeof t=="symbol"||g0(t)&&m0(t)==Cie}function Eie(t,e){for(var n=-1,r=t==null?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var Fa=Array.isArray,Hie=1/0,rH=Da?Da.prototype:void 0,iH=rH?rH.toString:void 0;function oH(t){if(typeof t=="string")return t;if(Fa(t))return Eie(t,oH)+"";if(md(t))return iH?iH.call(t):"";var e=t+"";return e=="0"&&1/t==-Hie?"-0":e}var Aie=/\s/;function Vie(t){for(var e=t.length;e--&&Aie.test(t.charAt(e)););return e}var Oie=/^\s+/;function kie(t){return t&&t.slice(0,Vie(t)+1).replace(Oie,"")}function z2(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var aH=NaN,Pie=/^[-+]0x[0-9a-f]+$/i,Iie=/^0b[01]+$/i,Rie=/^0o[0-7]+$/i,Nie=parseInt;function ty(t){if(typeof t=="number")return t;if(md(t))return aH;if(z2(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=z2(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=kie(t);var n=Iie.test(t);return n||Rie.test(t)?Nie(t.slice(2),n?2:8):Pie.test(t)?aH:+t}var sH=1/0,Bie=17976931348623157e292;function Die(t){if(!t)return t===0?t:0;if(t=ty(t),t===sH||t===-sH){var e=t<0?-1:1;return e*Bie}return t===t?t:0}function Fie(t){var e=Die(t),n=e%1;return e===e?n?e-n:e:0}function lH(t){return t}var zie="[object AsyncFunction]",Uie="[object Function]",jie="[object GeneratorFunction]",Gie="[object Proxy]";function cH(t){if(!z2(t))return!1;var e=m0(t);return e==Uie||e==jie||e==zie||e==Gie}var ny=Ba["__core-js_shared__"],uH=function(){var t=/[^.]+$/.exec(ny&&ny.keys&&ny.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Wie(t){return!!uH&&uH in t}var Zie=Function.prototype,$ie=Zie.toString;function y4(t){if(t!=null){try{return $ie.call(t)}catch{}try{return t+""}catch{}}return""}var qie=/[\\^$.*+?()[\]{}|]/g,Xie=/^\[object .+?Constructor\]$/,Kie=Function.prototype,Jie=Object.prototype,Yie=Kie.toString,eoe=Jie.hasOwnProperty,toe=RegExp("^"+Yie.call(eoe).replace(qie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function noe(t){if(!z2(t)||Wie(t))return!1;var e=cH(t)?toe:Xie;return e.test(y4(t))}function roe(t,e){return t==null?void 0:t[e]}function v4(t,e){var n=roe(t,e);return noe(n)?n:void 0}var ry=v4(Ba,"WeakMap");function ioe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var ooe=800,aoe=16,soe=Date.now;function loe(t){var e=0,n=0;return function(){var r=soe(),o=aoe-(r-n);if(n=r,o>0){if(++e>=ooe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function coe(t){return function(){return t}}var gd=function(){try{var t=v4(Object,"defineProperty");return t({},"",{}),t}catch{}}(),uoe=gd?function(t,e){return gd(t,"toString",{configurable:!0,enumerable:!1,value:coe(e),writable:!0})}:lH,hoe=loe(uoe);function doe(t,e,n,r){for(var o=t.length,a=n+(r?1:-1);r?a--:++a<o;)if(e(t[a],a,t))return a;return-1}var poe=9007199254740991,foe=/^(?:0|[1-9]\d*)$/;function iy(t,e){var n=typeof t;return e=e??poe,!!e&&(n=="number"||n!="symbol"&&foe.test(t))&&t>-1&&t%1==0&&t<e}function Toe(t,e,n){e=="__proto__"&&gd?gd(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function oy(t,e){return t===e||t!==t&&e!==e}var Qoe=Object.prototype,moe=Qoe.hasOwnProperty;function goe(t,e,n){var r=t[e];(!(moe.call(t,e)&&oy(r,n))||n===void 0&&!(e in t))&&Toe(t,e,n)}var hH=Math.max;function yoe(t,e,n){return e=hH(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=hH(r.length-e,0),l=Array(a);++o<a;)l[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(l),ioe(t,this,s)}}var voe=9007199254740991;function ay(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=voe}function boe(t){return t!=null&&ay(t.length)&&!cH(t)}var xoe=Object.prototype;function _oe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||xoe;return t===n}function Loe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var woe="[object Arguments]";function dH(t){return g0(t)&&m0(t)==woe}var pH=Object.prototype,Moe=pH.hasOwnProperty,Soe=pH.propertyIsEnumerable,sy=dH(function(){return arguments}())?dH:function(t){return g0(t)&&Moe.call(t,"callee")&&!Soe.call(t,"callee")};function Coe(){return!1}var fH=typeof $r=="object"&&$r&&!$r.nodeType&&$r,TH=fH&&typeof module=="object"&&module&&!module.nodeType&&module,Eoe=TH&&TH.exports===fH,QH=Eoe?Ba.Buffer:void 0,Hoe=QH?QH.isBuffer:void 0,ly=Hoe||Coe,Aoe="[object Arguments]",Voe="[object Array]",Ooe="[object Boolean]",koe="[object Date]",Poe="[object Error]",Ioe="[object Function]",Roe="[object Map]",Noe="[object Number]",Boe="[object Object]",Doe="[object RegExp]",Foe="[object Set]",zoe="[object String]",Uoe="[object WeakMap]",joe="[object ArrayBuffer]",Goe="[object DataView]",Woe="[object Float32Array]",Zoe="[object Float64Array]",$oe="[object Int8Array]",qoe="[object Int16Array]",Xoe="[object Int32Array]",Koe="[object Uint8Array]",Joe="[object Uint8ClampedArray]",Yoe="[object Uint16Array]",e1e="[object Uint32Array]",Or={};Or[Woe]=Or[Zoe]=Or[$oe]=Or[qoe]=Or[Xoe]=Or[Koe]=Or[Joe]=Or[Yoe]=Or[e1e]=!0,Or[Aoe]=Or[Voe]=Or[joe]=Or[Ooe]=Or[Goe]=Or[koe]=Or[Poe]=Or[Ioe]=Or[Roe]=Or[Noe]=Or[Boe]=Or[Doe]=Or[Foe]=Or[zoe]=Or[Uoe]=!1;function t1e(t){return g0(t)&&ay(t.length)&&!!Or[m0(t)]}function n1e(t){return function(e){return t(e)}}var mH=typeof $r=="object"&&$r&&!$r.nodeType&&$r,Ec=mH&&typeof module=="object"&&module&&!module.nodeType&&module,r1e=Ec&&Ec.exports===mH,cy=r1e&&eH.process,gH=function(){try{var t=Ec&&Ec.require&&Ec.require("util").types;return t||cy&&cy.binding&&cy.binding("util")}catch{}}(),yH=gH&&gH.isTypedArray,vH=yH?n1e(yH):t1e,i1e=Object.prototype,o1e=i1e.hasOwnProperty;function a1e(t,e){var n=Fa(t),r=!n&&sy(t),o=!n&&!r&&ly(t),a=!n&&!r&&!o&&vH(t),l=n||r||o||a,s=l?Loe(t.length,String):[],h=s.length;for(var u in t)(e||o1e.call(t,u))&&!(l&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||iy(u,h)))&&s.push(u);return s}function s1e(t,e){return function(n){return t(e(n))}}var l1e=s1e(Object.keys,Object),c1e=Object.prototype,u1e=c1e.hasOwnProperty;function h1e(t){if(!_oe(t))return l1e(t);var e=[];for(var n in Object(t))u1e.call(t,n)&&n!="constructor"&&e.push(n);return e}function bH(t){return boe(t)?a1e(t):h1e(t)}var d1e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p1e=/^\w*$/;function uy(t,e){if(Fa(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||md(t)?!0:p1e.test(t)||!d1e.test(t)||e!=null&&t in Object(e)}var Hc=v4(Object,"create");function f1e(){this.__data__=Hc?Hc(null):{},this.size=0}function T1e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Q1e="__lodash_hash_undefined__",m1e=Object.prototype,g1e=m1e.hasOwnProperty;function y1e(t){var e=this.__data__;if(Hc){var n=e[t];return n===Q1e?void 0:n}return g1e.call(e,t)?e[t]:void 0}var v1e=Object.prototype,b1e=v1e.hasOwnProperty;function x1e(t){var e=this.__data__;return Hc?e[t]!==void 0:b1e.call(e,t)}var _1e="__lodash_hash_undefined__";function L1e(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Hc&&e===void 0?_1e:e,this}function b4(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}b4.prototype.clear=f1e,b4.prototype.delete=T1e,b4.prototype.get=y1e,b4.prototype.has=x1e,b4.prototype.set=L1e;function w1e(){this.__data__=[],this.size=0}function yd(t,e){for(var n=t.length;n--;)if(oy(t[n][0],e))return n;return-1}var M1e=Array.prototype,S1e=M1e.splice;function C1e(t){var e=this.__data__,n=yd(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():S1e.call(e,n,1),--this.size,!0}function E1e(t){var e=this.__data__,n=yd(e,t);return n<0?void 0:e[n][1]}function H1e(t){return yd(this.__data__,t)>-1}function A1e(t,e){var n=this.__data__,r=yd(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Vs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vs.prototype.clear=w1e,Vs.prototype.delete=C1e,Vs.prototype.get=E1e,Vs.prototype.has=H1e,Vs.prototype.set=A1e;var Ac=v4(Ba,"Map");function V1e(){this.size=0,this.__data__={hash:new b4,map:new(Ac||Vs),string:new b4}}function O1e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function vd(t,e){var n=t.__data__;return O1e(e)?n[typeof e=="string"?"string":"hash"]:n.map}function k1e(t){var e=vd(this,t).delete(t);return this.size-=e?1:0,e}function P1e(t){return vd(this,t).get(t)}function I1e(t){return vd(this,t).has(t)}function R1e(t,e){var n=vd(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Os(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Os.prototype.clear=V1e,Os.prototype.delete=k1e,Os.prototype.get=P1e,Os.prototype.has=I1e,Os.prototype.set=R1e;var N1e="Expected a function";function hy(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(N1e);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var l=t.apply(this,r);return n.cache=a.set(o,l)||a,l};return n.cache=new(hy.Cache||Os),n}hy.Cache=Os;var B1e=500;function D1e(t){var e=hy(t,function(r){return n.size===B1e&&n.clear(),r}),n=e.cache;return e}var F1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z1e=/\\(\\)?/g,U1e=D1e(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(F1e,function(n,r,o,a){e.push(o?a.replace(z1e,"$1"):r||n)}),e});function j1e(t){return t==null?"":oH(t)}function bd(t,e){return Fa(t)?t:uy(t,e)?[t]:U1e(j1e(t))}var G1e=1/0;function Vc(t){if(typeof t=="string"||md(t))return t;var e=t+"";return e=="0"&&1/t==-G1e?"-0":e}function dy(t,e){e=bd(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Vc(e[n++])];return n&&n==r?t:void 0}function g1(t,e,n){var r=t==null?void 0:dy(t,e);return r===void 0?n:r}function xH(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var _H=Da?Da.isConcatSpreadable:void 0;function W1e(t){return Fa(t)||sy(t)||!!(_H&&t&&t[_H])}function LH(t,e,n,r,o){var a=-1,l=t.length;for(n||(n=W1e),o||(o=[]);++a<l;){var s=t[a];e>0&&n(s)?e>1?LH(s,e-1,n,r,o):xH(o,s):r||(o[o.length]=s)}return o}function Z1e(t){var e=t==null?0:t.length;return e?LH(t,1):[]}function $1e(t){return hoe(yoe(t,void 0,Z1e),t+"")}function q1e(){this.__data__=new Vs,this.size=0}function X1e(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function K1e(t){return this.__data__.get(t)}function J1e(t){return this.__data__.has(t)}var Y1e=200;function eae(t,e){var n=this.__data__;if(n instanceof Vs){var r=n.__data__;if(!Ac||r.length<Y1e-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Os(r)}return n.set(t,e),this.size=n.size,this}function ks(t){var e=this.__data__=new Vs(t);this.size=e.size}ks.prototype.clear=q1e,ks.prototype.delete=X1e,ks.prototype.get=K1e,ks.prototype.has=J1e,ks.prototype.set=eae;function tae(t,e){for(var n=-1,r=t==null?0:t.length,o=0,a=[];++n<r;){var l=t[n];e(l,n,t)&&(a[o++]=l)}return a}function nae(){return[]}var rae=Object.prototype,iae=rae.propertyIsEnumerable,wH=Object.getOwnPropertySymbols,oae=wH?function(t){return t==null?[]:(t=Object(t),tae(wH(t),function(e){return iae.call(t,e)}))}:nae;const aae=oae;function sae(t,e,n){var r=e(t);return Fa(t)?r:xH(r,n(t))}function MH(t){return sae(t,bH,aae)}var py=v4(Ba,"DataView"),fy=v4(Ba,"Promise"),Ty=v4(Ba,"Set"),SH="[object Map]",lae="[object Object]",CH="[object Promise]",EH="[object Set]",HH="[object WeakMap]",AH="[object DataView]",cae=y4(py),uae=y4(Ac),hae=y4(fy),dae=y4(Ty),pae=y4(ry),x4=m0;(py&&x4(new py(new ArrayBuffer(1)))!=AH||Ac&&x4(new Ac)!=SH||fy&&x4(fy.resolve())!=CH||Ty&&x4(new Ty)!=EH||ry&&x4(new ry)!=HH)&&(x4=function(t){var e=m0(t),n=e==lae?t.constructor:void 0,r=n?y4(n):"";if(r)switch(r){case cae:return AH;case uae:return SH;case hae:return CH;case dae:return EH;case pae:return HH}return e});const VH=x4;var fae=Ba.Uint8Array;const OH=fae;var Tae="__lodash_hash_undefined__";function Qae(t){return this.__data__.set(t,Tae),this}function mae(t){return this.__data__.has(t)}function xd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Os;++e<n;)this.add(t[e])}xd.prototype.add=xd.prototype.push=Qae,xd.prototype.has=mae;function gae(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function yae(t,e){return t.has(e)}var vae=1,bae=2;function kH(t,e,n,r,o,a){var l=n&vae,s=t.length,h=e.length;if(s!=h&&!(l&&h>s))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var p=-1,f=!0,m=n&bae?new xd:void 0;for(a.set(t,e),a.set(e,t);++p<s;){var y=t[p],v=e[p];if(r)var _=l?r(v,y,p,e,t,a):r(y,v,p,t,e,a);if(_!==void 0){if(_)continue;f=!1;break}if(m){if(!gae(e,function(x,L){if(!yae(m,L)&&(y===x||o(y,x,n,r,a)))return m.push(L)})){f=!1;break}}else if(!(y===v||o(y,v,n,r,a))){f=!1;break}}return a.delete(t),a.delete(e),f}function xae(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function _ae(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Lae=1,wae=2,Mae="[object Boolean]",Sae="[object Date]",Cae="[object Error]",Eae="[object Map]",Hae="[object Number]",Aae="[object RegExp]",Vae="[object Set]",Oae="[object String]",kae="[object Symbol]",Pae="[object ArrayBuffer]",Iae="[object DataView]",PH=Da?Da.prototype:void 0,Qy=PH?PH.valueOf:void 0;function Rae(t,e,n,r,o,a,l){switch(n){case Iae:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Pae:return!(t.byteLength!=e.byteLength||!a(new OH(t),new OH(e)));case Mae:case Sae:case Hae:return oy(+t,+e);case Cae:return t.name==e.name&&t.message==e.message;case Aae:case Oae:return t==e+"";case Eae:var s=xae;case Vae:var h=r&Lae;if(s||(s=_ae),t.size!=e.size&&!h)return!1;var u=l.get(t);if(u)return u==e;r|=wae,l.set(t,e);var d=kH(s(t),s(e),r,o,a,l);return l.delete(t),d;case kae:if(Qy)return Qy.call(t)==Qy.call(e)}return!1}var Nae=1,Bae=Object.prototype,Dae=Bae.hasOwnProperty;function Fae(t,e,n,r,o,a){var l=n&Nae,s=MH(t),h=s.length,u=MH(e),d=u.length;if(h!=d&&!l)return!1;for(var p=h;p--;){var f=s[p];if(!(l?f in e:Dae.call(e,f)))return!1}var m=a.get(t),y=a.get(e);if(m&&y)return m==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var _=l;++p<h;){f=s[p];var x=t[f],L=e[f];if(r)var S=l?r(L,x,f,e,t,a):r(x,L,f,t,e,a);if(!(S===void 0?x===L||o(x,L,n,r,a):S)){v=!1;break}_||(_=f=="constructor")}if(v&&!_){var C=t.constructor,A=e.constructor;C!=A&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof A=="function"&&A instanceof A)&&(v=!1)}return a.delete(t),a.delete(e),v}var zae=1,IH="[object Arguments]",RH="[object Array]",_d="[object Object]",Uae=Object.prototype,NH=Uae.hasOwnProperty;function jae(t,e,n,r,o,a){var l=Fa(t),s=Fa(e),h=l?RH:VH(t),u=s?RH:VH(e);h=h==IH?_d:h,u=u==IH?_d:u;var d=h==_d,p=u==_d,f=h==u;if(f&&ly(t)){if(!ly(e))return!1;l=!0,d=!1}if(f&&!d)return a||(a=new ks),l||vH(t)?kH(t,e,n,r,o,a):Rae(t,e,h,n,r,o,a);if(!(n&zae)){var m=d&&NH.call(t,"__wrapped__"),y=p&&NH.call(e,"__wrapped__");if(m||y){var v=m?t.value():t,_=y?e.value():e;return a||(a=new ks),o(v,_,n,r,a)}}return f?(a||(a=new ks),Fae(t,e,n,r,o,a)):!1}function Ld(t,e,n,r,o){return t===e?!0:t==null||e==null||!g0(t)&&!g0(e)?t!==t&&e!==e:jae(t,e,n,r,Ld,o)}var Gae=1,Wae=2;function Zae(t,e,n,r){var o=n.length,a=o,l=!r;if(t==null)return!a;for(t=Object(t);o--;){var s=n[o];if(l&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<a;){s=n[o];var h=s[0],u=t[h],d=s[1];if(l&&s[2]){if(u===void 0&&!(h in t))return!1}else{var p=new ks;if(r)var f=r(u,d,h,t,e,p);if(!(f===void 0?Ld(d,u,Gae|Wae,r,p):f))return!1}}return!0}function BH(t){return t===t&&!z2(t)}function $ae(t){for(var e=bH(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,BH(o)]}return e}function DH(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function qae(t){var e=$ae(t);return e.length==1&&e[0][2]?DH(e[0][0],e[0][1]):function(n){return n===t||Zae(n,t,e)}}function Xae(t,e){return t!=null&&e in Object(t)}function Kae(t,e,n){e=bd(e,t);for(var r=-1,o=e.length,a=!1;++r<o;){var l=Vc(e[r]);if(!(a=t!=null&&n(t,l)))break;t=t[l]}return a||++r!=o?a:(o=t==null?0:t.length,!!o&&ay(o)&&iy(l,o)&&(Fa(t)||sy(t)))}function FH(t,e){return t!=null&&Kae(t,e,Xae)}var Jae=1,Yae=2;function ese(t,e){return uy(t)&&BH(e)?DH(Vc(t),e):function(n){var r=g1(n,t);return r===void 0&&r===e?FH(n,t):Ld(e,r,Jae|Yae)}}function tse(t){return function(e){return e==null?void 0:e[t]}}function nse(t){return function(e){return dy(e,t)}}function rse(t){return uy(t)?tse(Vc(t)):nse(t)}function ise(t){return typeof t=="function"?t:t==null?lH:typeof t=="object"?Fa(t)?ese(t[0],t[1]):qae(t):rse(t)}var my=function(){return Ba.Date.now()},ose="Expected a function",ase=Math.max,sse=Math.min;function gy(t,e,n){var r,o,a,l,s,h,u=0,d=!1,p=!1,f=!0;if(typeof t!="function")throw new TypeError(ose);e=ty(e)||0,z2(n)&&(d=!!n.leading,p="maxWait"in n,a=p?ase(ty(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f);function m(H){var k=r,B=o;return r=o=void 0,u=H,l=t.apply(B,k),l}function y(H){return u=H,s=setTimeout(x,e),d?m(H):l}function v(H){var k=H-h,B=H-u,D=e-k;return p?sse(D,a-B):D}function _(H){var k=H-h,B=H-u;return h===void 0||k>=e||k<0||p&&B>=a}function x(){var H=my();if(_(H))return L(H);s=setTimeout(x,v(H))}function L(H){return s=void 0,f&&r?m(H):(r=o=void 0,l)}function S(){s!==void 0&&clearTimeout(s),u=0,r=h=o=s=void 0}function C(){return s===void 0?l:L(my())}function A(){var H=my(),k=_(H);if(r=arguments,o=this,h=H,k){if(s===void 0)return y(h);if(p)return clearTimeout(s),s=setTimeout(x,e),m(h)}return s===void 0&&(s=setTimeout(x,e)),l}return A.cancel=S,A.flush=C,A}var lse=Math.max,cse=Math.min;function use(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var o=r-1;return n!==void 0&&(o=Fie(n),o=n<0?lse(r+o,0):cse(o,r-1)),doe(t,ise(e),o,!0)}function wd(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}function yy(t,e){return Ld(t,e)}function U2(t){return t==null}function hse(t){return t===void 0}function dse(t,e,n,r){if(!z2(t))return t;e=bd(e,t);for(var o=-1,a=e.length,l=a-1,s=t;s!=null&&++o<a;){var h=Vc(e[o]),u=n;if(h==="__proto__"||h==="constructor"||h==="prototype")return t;if(o!=l){var d=s[h];u=r?r(d,h,s):void 0,u===void 0&&(u=z2(d)?d:iy(e[o+1])?[]:{})}goe(s,h,u),s=s[h]}return t}function pse(t,e,n){for(var r=-1,o=e.length,a={};++r<o;){var l=e[r],s=dy(t,l);n(s,l)&&dse(a,bd(l,t),s)}return a}function fse(t,e){return pse(t,e,function(n,r){return FH(t,r)})}var Tse=$1e(function(t,e){return t==null?{}:fse(t,e)});const Oc=t=>t===void 0,j2=t=>typeof t=="boolean",Oi=t=>typeof t=="number",kc=t=>typeof Element>"u"?!1:t instanceof Element,Qse=t=>Vi(t)?!Number.isNaN(Number(t)):!1,mse=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),zH=t=>Object.keys(t);class UH extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function gse(t,e){throw new UH(`[${t}] ${e}`)}function ki(t,e){if(process.env.NODE_ENV!=="production"){const n=Vi(t)?new UH(`[${t}] ${e}`):t;console.warn(n)}}const yse="utils/dom/style",jH=(t="")=>t.split(" ").filter(e=>!!e.trim()),vy=(t,e)=>{!t||!e.trim()||t.classList.add(...jH(e))},_4=(t,e)=>{!t||!e.trim()||t.classList.remove(...jH(e))},Pc=(t,e)=>{var n;if(!Ai||!t||!e)return"";let r=Qie(e);r==="float"&&(r="cssFloat");try{const o=t.style[r];if(o)return o;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return a?a[r]:""}catch{return t.style[r]}};function y0(t,e="px"){if(!t)return"";if(Oi(t)||Qse(t))return`${t}${e}`;if(Vi(t))return t;ki(yse,"binding value must be a string or number")}function vse(t,e){if(!Ai)return;if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r!==null&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const o=e.offsetTop+n.reduce((h,u)=>h+u.offsetTop,0),a=o+e.offsetHeight,l=t.scrollTop,s=l+t.clientHeight;o<l?t.scrollTop=o:a>s&&(t.scrollTop=a-t.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var bse=c.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),v0=bse,xse=c.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Md=xse,_se=c.defineComponent({name:"CaretRight",__name:"caret-right",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Lse=_se,wse=c.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),c.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Mse=wse,Sse=c.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),c.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),by=Sse,Cse=c.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ic=Cse,Ese=c.defineComponent({name:"Edit",__name:"edit",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),c.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),GH=Ese,Hse=c.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),c.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Ase=Hse,Vse=c.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),xy=Vse,Ose=c.defineComponent({name:"Notebook",__name:"notebook",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),c.createElementVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),kse=Ose,Pse=c.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ise=Pse,Rse=c.defineComponent({name:"Warning",__name:"warning",setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),WH=Rse;const ZH="__epPropKey",Pn=t=>t,Nse=t=>Qo(t)&&!!t[ZH],Sd=(t,e)=>{if(!Qo(t)||Nse(t))return t;const{values:n,required:r,default:o,type:a,validator:l}=t,s={type:a,required:!!r,validator:n||l?h=>{let u=!1,d=[];if(n&&(d=Array.from(n),g4(t,"default")&&d.push(o),u||(u=d.includes(h))),l&&(u||(u=l(h))),!u&&d.length>0){const p=[...new Set(d)].map(f=>JSON.stringify(f)).join(", ");c.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${p}], got value ${JSON.stringify(h)}.`)}return u}:void 0,[ZH]:!0};return g4(t,"default")&&(s.default=o),s},dr=t=>wd(Object.entries(t).map(([e,n])=>[e,Sd(n,e)])),G2=Pn([String,Object,Function]),$H={validating:xy,success:Mse,error:by},Vo=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},Bse=(t,e)=>(t.install=n=>{n.directive(e,t)},t),ra=t=>(t.install=Sc,t),mo={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},li="update:modelValue",Cd="change",_y=["","default","small","large"],Dse={large:40,default:32,small:24},Fse=t=>Dse[t||"default"],zse=t=>["",..._y].includes(t),qH=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),b0=t=>t,Use=["class","style"],jse=/^on[A-Z]/,Gse=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=c.computed(()=>((n==null?void 0:n.value)||[]).concat(Use)),o=c.getCurrentInstance();return o?c.computed(()=>{var a;return wd(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([l])=>!r.value.includes(l)&&!(e&&jse.test(l))))}):(ki("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),c.computed(()=>({})))},XH=({from:t,replacement:e,scope:n,version:r,ref:o,type:a="API"},l)=>{c.watch(()=>c.unref(l),s=>{s&&ki(n,`[${a}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
|
|
28
28
|
For more detail, please visit: ${o}
|
|
29
29
|
`)},{immediate:!0})};var Wse={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Zse=t=>(e,n)=>$se(e,n,c.unref(t)),$se=(t,e,n)=>g1(n,t,t).replace(/\{(\w+)\}/g,(r,o)=>{var a;return`${(a=e==null?void 0:e[o])!=null?a:`{${o}}`}`}),qse=t=>{const e=c.computed(()=>c.unref(t).name),n=c.isRef(t)?t:c.ref(t);return{lang:e,locale:n,t:Zse(t)}},KH=Symbol("localeContextKey"),x0=t=>{const e=t||c.inject(KH,c.ref());return qse(c.computed(()=>e.value||Wse))},Ed="el",Xse="is-",L4=(t,e,n,r,o)=>{let a=`${t}-${e}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},JH=Symbol("namespaceContextKey"),Ly=t=>{const e=t||(c.getCurrentInstance()?c.inject(JH,c.ref(Ed)):c.ref(Ed));return c.computed(()=>c.unref(e)||Ed)},Vn=(t,e)=>{const n=Ly(e);return{namespace:n,b:(r="")=>L4(n.value,t,r,"",""),e:r=>r?L4(n.value,t,"",r,""):"",m:r=>r?L4(n.value,t,"","",r):"",be:(r,o)=>r&&o?L4(n.value,t,r,o,""):"",em:(r,o)=>r&&o?L4(n.value,t,"",r,o):"",bm:(r,o)=>r&&o?L4(n.value,t,r,"",o):"",bem:(r,o,a)=>r&&o&&a?L4(n.value,t,r,o,a):"",is:(r,...o)=>{const a=o.length>=1?o[0]:!0;return r&&a?`${Xse}${r}`:""},cssVar:r=>{const o={};for(const a in r)r[a]&&(o[`--${n.value}-${a}`]=r[a]);return o},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const o={};for(const a in r)r[a]&&(o[`--${n.value}-${t}-${a}`]=r[a]);return o},cssVarBlockName:r=>`--${n.value}-${t}-${r}`}},Kse=Sd({type:Pn(Boolean),default:null}),Jse=Sd({type:Pn(Function)}),Yse=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],o={[t]:Kse,[n]:Jse};return{useModelToggle:({indicator:a,toggleReason:l,shouldHideWhenRouteChanges:s,shouldProceed:h,onShow:u,onHide:d})=>{const p=c.getCurrentInstance(),{emit:f}=p,m=p.props,y=c.computed(()=>m1(m[n])),v=c.computed(()=>m[t]===null),_=H=>{a.value!==!0&&(a.value=!0,l&&(l.value=H),m1(u)&&u(H))},x=H=>{a.value!==!1&&(a.value=!1,l&&(l.value=H),m1(d)&&d(H))},L=H=>{if(m.disabled===!0||m1(h)&&!h())return;const k=y.value&&Ai;k&&f(e,!0),(v.value||!k)&&_(H)},S=H=>{if(m.disabled===!0||!Ai)return;const k=y.value&&Ai;k&&f(e,!1),(v.value||!k)&&x(H)},C=H=>{j2(H)&&(m.disabled&&H?y.value&&f(e,!1):a.value!==H&&(H?_():x()))},A=()=>{a.value?S():L()};return c.watch(()=>m[t],C),s&&p.appContext.config.globalProperties.$route!==void 0&&c.watch(()=>({...p.proxy.$route}),()=>{s.value&&a.value&&S()}),c.onMounted(()=>{C(m[t])}),{hide:S,show:L,toggle:A,hasUpdateHandler:y}},useModelToggleProps:o,useModelToggleEmits:r}},YH=t=>{const e=c.getCurrentInstance();return c.computed(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var Xo="top",R1="bottom",N1="right",Ko="left",wy="auto",Rc=[Xo,R1,N1,Ko],_0="start",Nc="end",e2e="clippingParents",eA="viewport",Bc="popper",t2e="reference",tA=Rc.reduce(function(t,e){return t.concat([e+"-"+_0,e+"-"+Nc])},[]),Hd=[].concat(Rc,[wy]).reduce(function(t,e){return t.concat([e,e+"-"+_0,e+"-"+Nc])},[]),n2e="beforeRead",r2e="read",i2e="afterRead",o2e="beforeMain",a2e="main",s2e="afterMain",l2e="beforeWrite",c2e="write",u2e="afterWrite",h2e=[n2e,r2e,i2e,o2e,a2e,s2e,l2e,c2e,u2e];function za(t){return t?(t.nodeName||"").toLowerCase():null}function ia(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L0(t){var e=ia(t).Element;return t instanceof e||t instanceof Element}function B1(t){var e=ia(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function My(t){if(typeof ShadowRoot>"u")return!1;var e=ia(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function d2e(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},a=e.elements[n];!B1(a)||!za(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(l){var s=o[l];s===!1?a.removeAttribute(l):a.setAttribute(l,s===!0?"":s)}))})}function p2e(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],a=e.attributes[r]||{},l=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=l.reduce(function(h,u){return h[u]="",h},{});!B1(o)||!za(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(h){o.removeAttribute(h)}))})}}var nA={name:"applyStyles",enabled:!0,phase:"write",fn:d2e,effect:p2e,requires:["computeStyles"]};function Ua(t){return t.split("-")[0]}var w4=Math.max,Ad=Math.min,w0=Math.round;function M0(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,o=1;if(B1(t)&&e){var a=t.offsetHeight,l=t.offsetWidth;l>0&&(r=w0(n.width)/l||1),a>0&&(o=w0(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Sy(t){var e=M0(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function rA(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&My(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ps(t){return ia(t).getComputedStyle(t)}function f2e(t){return["table","td","th"].indexOf(za(t))>=0}function W2(t){return((L0(t)?t.ownerDocument:t.document)||window.document).documentElement}function Vd(t){return za(t)==="html"?t:t.assignedSlot||t.parentNode||(My(t)?t.host:null)||W2(t)}function iA(t){return!B1(t)||Ps(t).position==="fixed"?null:t.offsetParent}function T2e(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&B1(t)){var r=Ps(t);if(r.position==="fixed")return null}var o=Vd(t);for(My(o)&&(o=o.host);B1(o)&&["html","body"].indexOf(za(o))<0;){var a=Ps(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Dc(t){for(var e=ia(t),n=iA(t);n&&f2e(n)&&Ps(n).position==="static";)n=iA(n);return n&&(za(n)==="html"||za(n)==="body"&&Ps(n).position==="static")?e:n||T2e(t)||e}function Cy(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Fc(t,e,n){return w4(t,Ad(e,n))}function Q2e(t,e,n){var r=Fc(t,e,n);return r>n?n:r}function oA(){return{top:0,right:0,bottom:0,left:0}}function aA(t){return Object.assign({},oA(),t)}function sA(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var m2e=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,aA(typeof t!="number"?t:sA(t,Rc))};function g2e(t){var e,n=t.state,r=t.name,o=t.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,s=Ua(n.placement),h=Cy(s),u=[Ko,N1].indexOf(s)>=0,d=u?"height":"width";if(!(!a||!l)){var p=m2e(o.padding,n),f=Sy(a),m=h==="y"?Xo:Ko,y=h==="y"?R1:N1,v=n.rects.reference[d]+n.rects.reference[h]-l[h]-n.rects.popper[d],_=l[h]-n.rects.reference[h],x=Dc(a),L=x?h==="y"?x.clientHeight||0:x.clientWidth||0:0,S=v/2-_/2,C=p[m],A=L-f[d]-p[y],H=L/2-f[d]/2+S,k=Fc(C,H,A),B=h;n.modifiersData[r]=(e={},e[B]=k,e.centerOffset=k-H,e)}}function y2e(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!rA(e.elements.popper,o)||(e.elements.arrow=o))}var v2e={name:"arrow",enabled:!0,phase:"main",fn:g2e,effect:y2e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function S0(t){return t.split("-")[1]}var b2e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x2e(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return{x:w0(e*o)/o||0,y:w0(n*o)/o||0}}function lA(t){var e,n=t.popper,r=t.popperRect,o=t.placement,a=t.variation,l=t.offsets,s=t.position,h=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=l.x,m=f===void 0?0:f,y=l.y,v=y===void 0?0:y,_=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=_.x,v=_.y;var x=l.hasOwnProperty("x"),L=l.hasOwnProperty("y"),S=Ko,C=Xo,A=window;if(u){var H=Dc(n),k="clientHeight",B="clientWidth";if(H===ia(n)&&(H=W2(n),Ps(H).position!=="static"&&s==="absolute"&&(k="scrollHeight",B="scrollWidth")),H=H,o===Xo||(o===Ko||o===N1)&&a===Nc){C=R1;var D=p&&H===A&&A.visualViewport?A.visualViewport.height:H[k];v-=D-r.height,v*=h?1:-1}if(o===Ko||(o===Xo||o===R1)&&a===Nc){S=N1;var z=p&&H===A&&A.visualViewport?A.visualViewport.width:H[B];m-=z-r.width,m*=h?1:-1}}var q=Object.assign({position:s},u&&b2e),F=d===!0?x2e({x:m,y:v}):{x:m,y:v};if(m=F.x,v=F.y,h){var Z;return Object.assign({},q,(Z={},Z[C]=L?"0":"",Z[S]=x?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",Z))}return Object.assign({},q,(e={},e[C]=L?v+"px":"",e[S]=x?m+"px":"",e.transform="",e))}function _2e(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,s=n.roundOffsets,h=s===void 0?!0:s,u={placement:Ua(e.placement),variation:S0(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lA(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:h})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,lA(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var cA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_2e,data:{}},Od={passive:!0};function L2e(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,a=o===void 0?!0:o,l=r.resize,s=l===void 0?!0:l,h=ia(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,Od)}),s&&h.addEventListener("resize",n.update,Od),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Od)}),s&&h.removeEventListener("resize",n.update,Od)}}var uA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:L2e,data:{}},w2e={left:"right",right:"left",bottom:"top",top:"bottom"};function kd(t){return t.replace(/left|right|bottom|top/g,function(e){return w2e[e]})}var M2e={start:"end",end:"start"};function hA(t){return t.replace(/start|end/g,function(e){return M2e[e]})}function Ey(t){var e=ia(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Hy(t){return M0(W2(t)).left+Ey(t).scrollLeft}function S2e(t){var e=ia(t),n=W2(t),r=e.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:l+Hy(t),y:s}}function C2e(t){var e,n=W2(t),r=Ey(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=w4(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=w4(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Hy(t),h=-r.scrollTop;return Ps(o||n).direction==="rtl"&&(s+=w4(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:s,y:h}}function Ay(t){var e=Ps(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function dA(t){return["html","body","#document"].indexOf(za(t))>=0?t.ownerDocument.body:B1(t)&&Ay(t)?t:dA(Vd(t))}function zc(t,e){var n;e===void 0&&(e=[]);var r=dA(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),a=ia(r),l=o?[a].concat(a.visualViewport||[],Ay(r)?r:[]):r,s=e.concat(l);return o?s:s.concat(zc(Vd(l)))}function Vy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function E2e(t){var e=M0(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function pA(t,e){return e===eA?Vy(S2e(t)):L0(e)?E2e(e):Vy(C2e(W2(t)))}function H2e(t){var e=zc(Vd(t)),n=["absolute","fixed"].indexOf(Ps(t).position)>=0,r=n&&B1(t)?Dc(t):t;return L0(r)?e.filter(function(o){return L0(o)&&rA(o,r)&&za(o)!=="body"}):[]}function A2e(t,e,n){var r=e==="clippingParents"?H2e(t):[].concat(e),o=[].concat(r,[n]),a=o[0],l=o.reduce(function(s,h){var u=pA(t,h);return s.top=w4(u.top,s.top),s.right=Ad(u.right,s.right),s.bottom=Ad(u.bottom,s.bottom),s.left=w4(u.left,s.left),s},pA(t,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fA(t){var e=t.reference,n=t.element,r=t.placement,o=r?Ua(r):null,a=r?S0(r):null,l=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,h;switch(o){case Xo:h={x:l,y:e.y-n.height};break;case R1:h={x:l,y:e.y+e.height};break;case N1:h={x:e.x+e.width,y:s};break;case Ko:h={x:e.x-n.width,y:s};break;default:h={x:e.x,y:e.y}}var u=o?Cy(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case _0:h[u]=h[u]-(e[d]/2-n[d]/2);break;case Nc:h[u]=h[u]+(e[d]/2-n[d]/2);break}}return h}function Uc(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,a=n.boundary,l=a===void 0?e2e:a,s=n.rootBoundary,h=s===void 0?eA:s,u=n.elementContext,d=u===void 0?Bc:u,p=n.altBoundary,f=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,v=aA(typeof y!="number"?y:sA(y,Rc)),_=d===Bc?t2e:Bc,x=t.rects.popper,L=t.elements[f?_:d],S=A2e(L0(L)?L:L.contextElement||W2(t.elements.popper),l,h),C=M0(t.elements.reference),A=fA({reference:C,element:x,strategy:"absolute",placement:o}),H=Vy(Object.assign({},x,A)),k=d===Bc?H:C,B={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},D=t.modifiersData.offset;if(d===Bc&&D){var z=D[o];Object.keys(B).forEach(function(q){var F=[N1,R1].indexOf(q)>=0?1:-1,Z=[Xo,R1].indexOf(q)>=0?"y":"x";B[q]+=z[Z]*F})}return B}function V2e(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,a=n.rootBoundary,l=n.padding,s=n.flipVariations,h=n.allowedAutoPlacements,u=h===void 0?Hd:h,d=S0(r),p=d?s?tA:tA.filter(function(y){return S0(y)===d}):Rc,f=p.filter(function(y){return u.indexOf(y)>=0});f.length===0&&(f=p);var m=f.reduce(function(y,v){return y[v]=Uc(t,{placement:v,boundary:o,rootBoundary:a,padding:l})[Ua(v)],y},{});return Object.keys(m).sort(function(y,v){return m[y]-m[v]})}function O2e(t){if(Ua(t)===wy)return[];var e=kd(t);return[hA(t),e,hA(e)]}function k2e(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!0:l,h=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,v=n.allowedAutoPlacements,_=e.options.placement,x=Ua(_),L=x===_,S=h||(L||!y?[kd(_)]:O2e(_)),C=[_].concat(S).reduce(function(Ae,Se){return Ae.concat(Ua(Se)===wy?V2e(e,{placement:Se,boundary:d,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:v}):Se)},[]),A=e.rects.reference,H=e.rects.popper,k=new Map,B=!0,D=C[0],z=0;z<C.length;z++){var q=C[z],F=Ua(q),Z=S0(q)===_0,K=[Xo,R1].indexOf(F)>=0,X=K?"width":"height",te=Uc(e,{placement:q,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),J=K?Z?N1:Ko:Z?R1:Xo;A[X]>H[X]&&(J=kd(J));var he=kd(J),xe=[];if(a&&xe.push(te[F]<=0),s&&xe.push(te[J]<=0,te[he]<=0),xe.every(function(Ae){return Ae})){D=q,B=!1;break}k.set(q,xe)}if(B)for(var ee=y?3:1,oe=function(Ae){var Se=C.find(function(Qe){var Le=k.get(Qe);if(Le)return Le.slice(0,Ae).every(function(Ce){return Ce})});if(Se)return D=Se,"break"},de=ee;de>0;de--){var fe=oe(de);if(fe==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}var P2e={name:"flip",enabled:!0,phase:"main",fn:k2e,requiresIfExists:["offset"],data:{_skip:!1}};function TA(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function QA(t){return[Xo,N1,R1,Ko].some(function(e){return t[e]>=0})}function I2e(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,l=Uc(e,{elementContext:"reference"}),s=Uc(e,{altBoundary:!0}),h=TA(l,r),u=TA(s,o,a),d=QA(h),p=QA(u);e.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var R2e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I2e};function N2e(t,e,n){var r=Ua(t),o=[Ko,Xo].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,l=a[0],s=a[1];return l=l||0,s=(s||0)*o,[Ko,N1].indexOf(r)>=0?{x:s,y:l}:{x:l,y:s}}function B2e(t){var e=t.state,n=t.options,r=t.name,o=n.offset,a=o===void 0?[0,0]:o,l=Hd.reduce(function(d,p){return d[p]=N2e(p,e.rects,a),d},{}),s=l[e.placement],h=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=l}var D2e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:B2e};function F2e(t){var e=t.state,n=t.name;e.modifiersData[n]=fA({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var mA={name:"popperOffsets",enabled:!0,phase:"read",fn:F2e,data:{}};function z2e(t){return t==="x"?"y":"x"}function U2e(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,s=l===void 0?!1:l,h=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,m=f===void 0?!0:f,y=n.tetherOffset,v=y===void 0?0:y,_=Uc(e,{boundary:h,rootBoundary:u,padding:p,altBoundary:d}),x=Ua(e.placement),L=S0(e.placement),S=!L,C=Cy(x),A=z2e(C),H=e.modifiersData.popperOffsets,k=e.rects.reference,B=e.rects.popper,D=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,z=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(H){if(a){var Z,K=C==="y"?Xo:Ko,X=C==="y"?R1:N1,te=C==="y"?"height":"width",J=H[C],he=J+_[K],xe=J-_[X],ee=m?-B[te]/2:0,oe=L===_0?k[te]:B[te],de=L===_0?-B[te]:-k[te],fe=e.elements.arrow,Ae=m&&fe?Sy(fe):{width:0,height:0},Se=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:oA(),Qe=Se[K],Le=Se[X],Ce=Fc(0,k[te],Ae[te]),je=S?k[te]/2-ee-Ce-Qe-z.mainAxis:oe-Ce-Qe-z.mainAxis,me=S?-k[te]/2+ee+Ce+Le+z.mainAxis:de+Ce+Le+z.mainAxis,Ne=e.elements.arrow&&Dc(e.elements.arrow),Ie=Ne?C==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,Ke=(Z=q==null?void 0:q[C])!=null?Z:0,Ye=J+je-Ke-Ie,ht=J+me-Ke,dt=Fc(m?Ad(he,Ye):he,J,m?w4(xe,ht):xe);H[C]=dt,F[C]=dt-J}if(s){var Ee,ye=C==="x"?Xo:Ko,it=C==="x"?R1:N1,Ve=H[A],yt=A==="y"?"height":"width",bt=Ve+_[ye],_t=Ve-_[it],nt=[Xo,Ko].indexOf(x)!==-1,Je=(Ee=q==null?void 0:q[A])!=null?Ee:0,et=nt?bt:Ve-k[yt]-B[yt]-Je+z.altAxis,Xe=nt?Ve+k[yt]+B[yt]-Je-z.altAxis:_t,Lt=m&&nt?Q2e(et,Ve,Xe):Fc(m?et:bt,Ve,m?Xe:_t);H[A]=Lt,F[A]=Lt-Ve}e.modifiersData[r]=F}}var j2e={name:"preventOverflow",enabled:!0,phase:"main",fn:U2e,requiresIfExists:["offset"]};function G2e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function W2e(t){return t===ia(t)||!B1(t)?Ey(t):G2e(t)}function Z2e(t){var e=t.getBoundingClientRect(),n=w0(e.width)/t.offsetWidth||1,r=w0(e.height)/t.offsetHeight||1;return n!==1||r!==1}function $2e(t,e,n){n===void 0&&(n=!1);var r=B1(e),o=B1(e)&&Z2e(e),a=W2(e),l=M0(t,o),s={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(r||!r&&!n)&&((za(e)!=="body"||Ay(a))&&(s=W2e(e)),B1(e)?(h=M0(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Hy(a))),{x:l.left+s.scrollLeft-h.x,y:l.top+s.scrollTop-h.y,width:l.width,height:l.height}}function q2e(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function o(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(s){if(!n.has(s)){var h=e.get(s);h&&o(h)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||o(a)}),r}function X2e(t){var e=q2e(t);return h2e.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function K2e(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function J2e(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var gA={placement:"bottom",modifiers:[],strategy:"absolute"};function yA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Oy(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,a=o===void 0?gA:o;return function(l,s,h){h===void 0&&(h=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},gA,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},d=[],p=!1,f={state:u,setOptions:function(v){var _=typeof v=="function"?v(u.options):v;y(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:L0(l)?zc(l):l.contextElement?zc(l.contextElement):[],popper:zc(s)};var x=X2e(J2e([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(L){return L.enabled}),m(),f.update()},forceUpdate:function(){if(!p){var v=u.elements,_=v.reference,x=v.popper;if(yA(_,x)){u.rects={reference:$2e(_,Dc(x),u.options.strategy==="fixed"),popper:Sy(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var L=0;L<u.orderedModifiers.length;L++){if(u.reset===!0){u.reset=!1,L=-1;continue}var S=u.orderedModifiers[L],C=S.fn,A=S.options,H=A===void 0?{}:A,k=S.name;typeof C=="function"&&(u=C({state:u,options:H,name:k,instance:f})||u)}}}},update:K2e(function(){return new Promise(function(v){f.forceUpdate(),v(u)})}),destroy:function(){y(),p=!0}};if(!yA(l,s))return f;f.setOptions(h).then(function(v){!p&&h.onFirstUpdate&&h.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var _=v.name,x=v.options,L=x===void 0?{}:x,S=v.effect;if(typeof S=="function"){var C=S({state:u,name:_,instance:f,options:L}),A=function(){};d.push(C||A)}})}function y(){d.forEach(function(v){return v()}),d=[]}return f}}Oy();var Y2e=[uA,mA,cA,nA];Oy({defaultModifiers:Y2e});var e3e=[uA,mA,cA,nA,D2e,P2e,j2e,v2e,R2e],t3e=Oy({defaultModifiers:e3e});const n3e=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:h})=>{const u=r3e(h);Object.assign(l.value,u)},requires:["computeStyles"]},o=c.computed(()=>{const{onFirstUpdate:h,placement:u,strategy:d,modifiers:p}=c.unref(n);return{onFirstUpdate:h,placement:u||"bottom",strategy:d||"absolute",modifiers:[...p||[],r,{name:"applyStyles",enabled:!1}]}}),a=c.shallowRef(),l=c.ref({styles:{popper:{position:c.unref(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return c.watch(o,h=>{const u=c.unref(a);u&&u.setOptions(h)},{deep:!0}),c.watch([t,e],([h,u])=>{s(),!(!h||!u)&&(a.value=t3e(h,u,c.unref(o)))}),c.onBeforeUnmount(()=>{s()}),{state:c.computed(()=>{var h;return{...((h=c.unref(a))==null?void 0:h.state)||{}}}),styles:c.computed(()=>c.unref(l).styles),attributes:c.computed(()=>c.unref(l).attributes),update:()=>{var h;return(h=c.unref(a))==null?void 0:h.update()},forceUpdate:()=>{var h;return(h=c.unref(a))==null?void 0:h.forceUpdate()},instanceRef:c.computed(()=>c.unref(a))}};function r3e(t){const e=Object.keys(t.elements),n=wd(e.map(o=>[o,t.styles[o]||{}])),r=wd(e.map(o=>[o,t.attributes[o]]));return{styles:n,attributes:r}}function vA(){let t;const e=(r,o)=>{n(),t=window.setTimeout(r,o)},n=()=>window.clearTimeout(t);return Kg(()=>n()),{registerTimeout:e,cancelTimeout:n}}const ky={prefix:Math.floor(Math.random()*1e4),current:0},i3e=Symbol("elIdInjection"),bA=()=>c.getCurrentInstance()?c.inject(i3e,ky):ky,jc=t=>{const e=bA();!Ai&&e===ky&&ki("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
30
30
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
@@ -1026,7 +1026,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1026
1026
|
* https://github.com/mhchem/mhchemParser
|
|
1027
1027
|
*
|
|
1028
1028
|
*/Object.defineProperty(iT,"__esModule",{value:!0}),iT.mhchemParser=void 0;var OQe=function(){function t(){}return t.toTex=function(e,n){return _r.go(Bt.go(e,n),n!=="tex")},t}();iT.mhchemParser=OQe;function t1(t){var e,n,r={};for(e in t)for(n in t[e]){var o=n.split("|");t[e][n].stateArray=o;for(var a=0;a<o.length;a++)r[o[a]]=[]}for(e in t)for(n in t[e])for(var o=t[e][n].stateArray||[],a=0;a<o.length;a++){var l=t[e][n];l.action_=[].concat(l.action_);for(var s=0;s<l.action_.length;s++)typeof l.action_[s]=="string"&&(l.action_[s]={type_:l.action_[s]});for(var h=e.split("|"),u=0;u<h.length;u++)if(o[a]==="*"){var d=void 0;for(d in r)r[d].push({pattern:h[u],task:l})}else r[o[a]].push({pattern:h[u],task:l})}return r}var Bt={go:function(t,e){if(!t)return[];e===void 0&&(e="ce");var n="0",r={};r.parenthesisLevel=0,t=t.replace(/\n/g," "),t=t.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),t=t.replace(/[\u2026]/g,"...");for(var o,a=10,l=[];;){o!==t?(a=10,o=t):a--;var s=Bt.stateMachines[e],h=s.transitions[n]||s.transitions["*"];e:for(var u=0;u<h.length;u++){var d=Bt.patterns.match_(h[u].pattern,t);if(d){for(var p=h[u].task,f=0;f<p.action_.length;f++){var m=void 0;if(s.actions[p.action_[f].type_])m=s.actions[p.action_[f].type_](r,d.match_,p.action_[f].option);else if(Bt.actions[p.action_[f].type_])m=Bt.actions[p.action_[f].type_](r,d.match_,p.action_[f].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+p.action_[f].type_+")"];Bt.concatArray(l,m)}if(n=p.nextState||n,t.length>0){if(p.revisit||(t=d.remainder),!p.toContinue)break e}else return l}}if(a<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(t,e){if(e)if(Array.isArray(e))for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(t){var e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return e&&e[0]?{match_:e.slice(1),remainder:t.substr(e[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(t){var e=Bt.patterns.findObserveGroups(t,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(e&&e.remainder.match(/^($|[\s,;\)\]\}])/))return e;var n=t.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return n?{match_:n[0],remainder:t.substr(n[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"^{","","","}")},"^($...$)":function(t){return Bt.patterns.findObserveGroups(t,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(t){return Bt.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(t){return Bt.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"_{","","","}")},"_($...$)":function(t){return Bt.patterns.findObserveGroups(t,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(t){return Bt.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(t){return Bt.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(t){return Bt.patterns.findObserveGroups(t,"","{","}","")},"{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"{","","","}")},"$...$":function(t){return Bt.patterns.findObserveGroups(t,"","$","$","")},"${(...)}$__$(...)$":function(t){return Bt.patterns.findObserveGroups(t,"${","","","}$")||Bt.patterns.findObserveGroups(t,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(t){return Bt.patterns.findObserveGroups(t,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(t){return Bt.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(t){return Bt.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\color{","","","}")},"\\color{(...)}{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\color{","","","}","{","","","}")||Bt.patterns.findObserveGroups(t,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\ce{","","","}")},"\\pu{(...)}":function(t){return Bt.patterns.findObserveGroups(t,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"d-oxidation$":/^(?:[+-]?[IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(t){var e;if(e=t.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),e)return{match_:e[0],remainder:t.substr(e[0].length)};var n=Bt.patterns.findObserveGroups(t,"","$","$","");return n&&(e=n.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),e)?{match_:e[0],remainder:t.substr(e[0].length)}:null},amount2:function(t){return this.amount(t)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(t){if(t.match(/^\([a-z]+\)$/))return null;var e=t.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return e?{match_:e[0],remainder:t.substr(e[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(t,e,n,r,o,a,l,s,h,u){var d=function(x,L){if(typeof L=="string")return x.indexOf(L)!==0?null:L;var S=x.match(L);return S?S[0]:null},p=function(x,L,S){for(var C=0;L<x.length;){var A=x.charAt(L),H=d(x.substr(L),S);if(H!==null&&C===0)return{endMatchBegin:L,endMatchEnd:L+H.length};if(A==="{")C++;else if(A==="}"){if(C===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];C--}L++}return null},f=d(t,e);if(f===null||(t=t.substr(f.length),f=d(t,n),f===null))return null;var m=p(t,f.length,r||o);if(m===null)return null;var y=t.substring(0,r?m.endMatchEnd:m.endMatchBegin);if(a||l){var v=this.findObserveGroups(t.substr(m.endMatchEnd),a,l,s,h);if(v===null)return null;var _=[y,v.match_];return{match_:u?_.join(""):_,remainder:v.remainder}}else return{match_:y,remainder:t.substr(m.endMatchEnd)}},match_:function(t,e){var n=Bt.patterns.patterns[t];if(n===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+t+")"];if(typeof n=="function")return Bt.patterns.patterns[t](e);var r=e.match(n);return r?r.length>2?{match_:r.slice(1),remainder:e.substr(r[0].length)}:{match_:r[1]||r[0],remainder:e.substr(r[0].length)}:null}},actions:{"a=":function(t,e){t.a=(t.a||"")+e},"b=":function(t,e){t.b=(t.b||"")+e},"p=":function(t,e){t.p=(t.p||"")+e},"o=":function(t,e){t.o=(t.o||"")+e},"o=+p1":function(t,e,n){t.o=(t.o||"")+n},"q=":function(t,e){t.q=(t.q||"")+e},"d=":function(t,e){t.d=(t.d||"")+e},"rm=":function(t,e){t.rm=(t.rm||"")+e},"text=":function(t,e){t.text_=(t.text_||"")+e},insert:function(t,e,n){return{type_:n}},"insert+p1":function(t,e,n){return{type_:n,p1:e}},"insert+p1+p2":function(t,e,n){return{type_:n,p1:e[0],p2:e[1]}},copy:function(t,e){return e},write:function(t,e,n){return n},rm:function(t,e){return{type_:"rm",p1:e}},text:function(t,e){return Bt.go(e,"text")},"tex-math":function(t,e){return Bt.go(e,"tex-math")},"tex-math tight":function(t,e){return Bt.go(e,"tex-math tight")},bond:function(t,e,n){return{type_:"bond",kind_:n||e}},"color0-output":function(t,e){return{type_:"color0",color:e}},ce:function(t,e){return Bt.go(e,"ce")},pu:function(t,e){return Bt.go(e,"pu")},"1/2":function(t,e){var n=[];e.match(/^[+\-]/)&&(n.push(e.substr(0,1)),e=e.substr(1));var r=e.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return r[1]=r[1].replace(/\$/g,""),n.push({type_:"frac",p1:r[1],p2:r[2]}),r[3]&&(r[3]=r[3].replace(/\$/g,""),n.push({type_:"tex-math",p1:r[3]})),n},"9,9":function(t,e){return Bt.go(e,"9,9")}},stateMachines:{tex:{transitions:t1({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:t1({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(t,e){var n;if((t.d||"").match(/^[1-9][0-9]*$/)){var r=t.d;t.d=void 0,n=this.output(t),n.push({type_:"tinySkip"}),t.b=r}else n=this.output(t);return Bt.actions["o="](t,e),n},"d= kv":function(t,e){t.d=e,t.dType="kv"},"charge or bond":function(t,e){if(t.beginsWithBond){var n=[];return Bt.concatArray(n,this.output(t)),Bt.concatArray(n,Bt.actions.bond(t,e,"-")),n}else{t.d=e;return}},"- after o/d":function(t,e,n){var r=Bt.patterns.match_("orbital",t.o||""),o=Bt.patterns.match_("one lowercase greek letter $",t.o||""),a=Bt.patterns.match_("one lowercase latin letter $",t.o||""),l=Bt.patterns.match_("$one lowercase latin letter$ $",t.o||""),s=e==="-"&&(r&&r.remainder===""||o||a||l);s&&!t.a&&!t.b&&!t.p&&!t.d&&!t.q&&!r&&a&&(t.o="$"+t.o+"$");var h=[];return s?(Bt.concatArray(h,this.output(t)),h.push({type_:"hyphen"})):(r=Bt.patterns.match_("digits",t.d||""),n&&r&&r.remainder===""?(Bt.concatArray(h,Bt.actions["d="](t,e)),Bt.concatArray(h,this.output(t))):(Bt.concatArray(h,this.output(t)),Bt.concatArray(h,Bt.actions.bond(t,e,"-")))),h},"a to o":function(t){t.o=t.a,t.a=void 0},"sb=true":function(t){t.sb=!0},"sb=false":function(t){t.sb=!1},"beginsWithBond=true":function(t){t.beginsWithBond=!0},"beginsWithBond=false":function(t){t.beginsWithBond=!1},"parenthesisLevel++":function(t){t.parenthesisLevel++},"parenthesisLevel--":function(t){t.parenthesisLevel--},"state of aggregation":function(t,e){return{type_:"state of aggregation",p1:Bt.go(e,"o")}},comma:function(t,e){var n=e.replace(/\s*$/,""),r=n!==e;return r&&t.parenthesisLevel===0?{type_:"comma enumeration L",p1:n}:{type_:"comma enumeration M",p1:n}},output:function(t,e,n){var r;if(!t.r)r=[],!t.a&&!t.b&&!t.p&&!t.o&&!t.q&&!t.d&&!n||(t.sb&&r.push({type_:"entitySkip"}),!t.o&&!t.q&&!t.d&&!t.b&&!t.p&&n!==2?(t.o=t.a,t.a=void 0):!t.o&&!t.q&&!t.d&&(t.b||t.p)?(t.o=t.a,t.d=t.b,t.q=t.p,t.a=t.b=t.p=void 0):t.o&&t.dType==="kv"&&Bt.patterns.match_("d-oxidation$",t.d||"")?t.dType="oxidation":t.o&&t.dType==="kv"&&!t.q&&(t.dType=void 0),r.push({type_:"chemfive",a:Bt.go(t.a,"a"),b:Bt.go(t.b,"bd"),p:Bt.go(t.p,"pq"),o:Bt.go(t.o,"o"),q:Bt.go(t.q,"pq"),d:Bt.go(t.d,t.dType==="oxidation"?"oxidation":"bd"),dType:t.dType}));else{var o=void 0;t.rdt==="M"?o=Bt.go(t.rd,"tex-math"):t.rdt==="T"?o=[{type_:"text",p1:t.rd||""}]:o=Bt.go(t.rd,"ce");var a=void 0;t.rqt==="M"?a=Bt.go(t.rq,"tex-math"):t.rqt==="T"?a=[{type_:"text",p1:t.rq||""}]:a=Bt.go(t.rq,"ce"),r={type_:"arrow",r:t.r,rd:o,rq:a}}for(var l in t)l!=="parenthesisLevel"&&l!=="beginsWithBond"&&delete t[l];return r},"oxidation-output":function(t,e){var n=["{"];return Bt.concatArray(n,Bt.go(e,"oxidation")),n.push("}"),n},"frac-output":function(t,e){return{type_:"frac-ce",p1:Bt.go(e[0],"ce"),p2:Bt.go(e[1],"ce")}},"overset-output":function(t,e){return{type_:"overset",p1:Bt.go(e[0],"ce"),p2:Bt.go(e[1],"ce")}},"underset-output":function(t,e){return{type_:"underset",p1:Bt.go(e[0],"ce"),p2:Bt.go(e[1],"ce")}},"underbrace-output":function(t,e){return{type_:"underbrace",p1:Bt.go(e[0],"ce"),p2:Bt.go(e[1],"ce")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:Bt.go(e[1],"ce")}},"r=":function(t,e){t.r=e},"rdt=":function(t,e){t.rdt=e},"rd=":function(t,e){t.rd=e},"rqt=":function(t,e){t.rqt=e},"rq=":function(t,e){t.rq=e},operator:function(t,e,n){return{type_:"operator",kind_:n||e}}}},a:{transitions:t1({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:t1({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:t1({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(t){if(t.text_){var e={type_:"text",p1:t.text_};for(var n in t)delete t[n];return e}}}},pq:{transitions:t1({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(t,e){return{type_:"state of aggregation subscript",p1:Bt.go(e,"o")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:Bt.go(e[1],"pq")}}}},bd:{transitions:t1({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:!0}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(t,e){return{type_:"color",color1:e[0],color2:Bt.go(e[1],"bd")}}}},oxidation:{transitions:t1({empty:{"*":{action_:"roman-numeral"}},"pm-operator":{"*":{action_:{type_:"o=+p1",option:"\\pm"}}},else:{"*":{action_:"o="}}}),actions:{"roman-numeral":function(t){return{type_:"roman numeral",p1:t.o||""}}}},"tex-math":{transitions:t1({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(t){if(t.o){var e={type_:"tex-math",p1:t.o};for(var n in t)delete t[n];return e}}}},"tex-math tight":{transitions:t1({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(t,e){t.o=(t.o||"")+"{"+e+"}"},output:function(t){if(t.o){var e={type_:"tex-math",p1:t.o};for(var n in t)delete t[n];return e}}}},"9,9":{transitions:t1({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:t1({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(t,e){var n=[];return e[0]==="+-"||e[0]==="+/-"?n.push("\\pm "):e[0]&&n.push(e[0]),e[1]&&(Bt.concatArray(n,Bt.go(e[1],"pu-9,9")),e[2]&&(e[2].match(/[,.]/)?Bt.concatArray(n,Bt.go(e[2],"pu-9,9")):n.push(e[2])),(e[3]||e[4])&&(e[3]==="e"||e[4]==="*"?n.push({type_:"cdot"}):n.push({type_:"times"}))),e[5]&&n.push("10^{"+e[5]+"}"),n},"number^":function(t,e){var n=[];return e[0]==="+-"||e[0]==="+/-"?n.push("\\pm "):e[0]&&n.push(e[0]),Bt.concatArray(n,Bt.go(e[1],"pu-9,9")),n.push("^{"+e[2]+"}"),n},operator:function(t,e,n){return{type_:"operator",kind_:n||e}},space:function(){return{type_:"pu-space-1"}},output:function(t){var e,n=Bt.patterns.match_("{(...)}",t.d||"");n&&n.remainder===""&&(t.d=n.match_);var r=Bt.patterns.match_("{(...)}",t.q||"");if(r&&r.remainder===""&&(t.q=r.match_),t.d&&(t.d=t.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.d=t.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),t.q){t.q=t.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.q=t.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:Bt.go(t.d,"pu"),q:Bt.go(t.q,"pu")};t.o==="//"?e={type_:"pu-frac",p1:o.d,p2:o.q}:(e=o.d,o.d.length>1||o.q.length>1?e.push({type_:" / "}):e.push({type_:"/"}),Bt.concatArray(e,o.q))}else e=Bt.go(t.d,"pu-2");for(var a in t)delete t[a];return e}}},"pu-2":{transitions:t1({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(t,e){t.rm+="^{"+e+"}"},space:function(){return{type_:"pu-space-2"}},output:function(t){var e=[];if(t.rm){var n=Bt.patterns.match_("{(...)}",t.rm||"");n&&n.remainder===""?e=Bt.go(n.match_,"pu"):e={type_:"rm",p1:t.rm}}for(var r in t)delete t[r];return e}}},"pu-9,9":{transitions:t1({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(t){var e=[];if(t.text_=t.text_||"",t.text_.length>4){var n=t.text_.length%3;n===0&&(n=3);for(var r=t.text_.length-3;r>0;r-=3)e.push(t.text_.substr(r,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(0,n)),e.reverse()}else e.push(t.text_);for(var o in t)delete t[o];return e},"output-o":function(t){var e=[];if(t.text_=t.text_||"",t.text_.length>4){var n=t.text_.length-3,r=void 0;for(r=0;r<n;r+=3)e.push(t.text_.substr(r,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(r))}else e.push(t.text_);for(var o in t)delete t[o];return e}}}}},_r={go:function(t,e){if(!t)return"";for(var n="",r=!1,o=0;o<t.length;o++){var a=t[o];typeof a=="string"?n+=a:(n+=_r._go2(a),a.type_==="1st-level escape"&&(r=!0))}return e&&!r&&n&&(n="{"+n+"}"),n},_goInner:function(t){return _r.go(t,!1)},_go2:function(t){var e;switch(t.type_){case"chemfive":e="";var n={a:_r._goInner(t.a),b:_r._goInner(t.b),p:_r._goInner(t.p),o:_r._goInner(t.o),q:_r._goInner(t.q),d:_r._goInner(t.d)};n.a&&(n.a.match(/^[+\-]/)&&(n.a="{"+n.a+"}"),e+=n.a+"\\,"),(n.b||n.p)&&(e+="{\\vphantom{A}}",e+="^{\\hphantom{"+(n.b||"")+"}}_{\\hphantom{"+(n.p||"")+"}}",e+="\\mkern-1.5mu",e+="{\\vphantom{A}}",e+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(n.b||"")+"}}",e+="_{\\vphantom{2}\\llap{\\smash[t]{"+(n.p||"")+"}}}"),n.o&&(n.o.match(/^[+\-]/)&&(n.o="{"+n.o+"}"),e+=n.o),t.dType==="kv"?((n.d||n.q)&&(e+="{\\vphantom{A}}"),n.d&&(e+="^{"+n.d+"}"),n.q&&(e+="_{\\smash[t]{"+n.q+"}}")):t.dType==="oxidation"?(n.d&&(e+="{\\vphantom{A}}",e+="^{"+n.d+"}"),n.q&&(e+="{\\vphantom{A}}",e+="_{\\smash[t]{"+n.q+"}}")):(n.q&&(e+="{\\vphantom{A}}",e+="_{\\smash[t]{"+n.q+"}}"),n.d&&(e+="{\\vphantom{A}}",e+="^{"+n.d+"}"));break;case"rm":e="\\mathrm{"+t.p1+"}";break;case"text":t.p1.match(/[\^_]/)?(t.p1=t.p1.replace(" ","~").replace("-","\\text{-}"),e="\\mathrm{"+t.p1+"}"):e="\\text{"+t.p1+"}";break;case"roman numeral":e="\\mathrm{"+t.p1+"}";break;case"state of aggregation":e="\\mskip2mu "+_r._goInner(t.p1);break;case"state of aggregation subscript":e="\\mskip1mu "+_r._goInner(t.p1);break;case"bond":if(e=_r._getBond(t.kind_),!e)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+t.kind_+")"];break;case"frac":var r="\\frac{"+t.p1+"}{"+t.p2+"}";e="\\mathchoice{\\textstyle"+r+"}{"+r+"}{"+r+"}{"+r+"}";break;case"pu-frac":var o="\\frac{"+_r._goInner(t.p1)+"}{"+_r._goInner(t.p2)+"}";e="\\mathchoice{\\textstyle"+o+"}{"+o+"}{"+o+"}{"+o+"}";break;case"tex-math":e=t.p1+" ";break;case"frac-ce":e="\\frac{"+_r._goInner(t.p1)+"}{"+_r._goInner(t.p2)+"}";break;case"overset":e="\\overset{"+_r._goInner(t.p1)+"}{"+_r._goInner(t.p2)+"}";break;case"underset":e="\\underset{"+_r._goInner(t.p1)+"}{"+_r._goInner(t.p2)+"}";break;case"underbrace":e="\\underbrace{"+_r._goInner(t.p1)+"}_{"+_r._goInner(t.p2)+"}";break;case"color":e="{\\color{"+t.color1+"}{"+_r._goInner(t.color2)+"}}";break;case"color0":e="\\color{"+t.color+"}";break;case"arrow":var a={rd:_r._goInner(t.rd),rq:_r._goInner(t.rq)},l=_r._getArrow(t.r);a.rd||a.rq?t.r==="<=>"||t.r==="<=>>"||t.r==="<<=>"||t.r==="<-->"?(l="\\long"+l,a.rd&&(l="\\overset{"+a.rd+"}{"+l+"}"),a.rq&&(t.r==="<-->"?l="\\underset{\\lower2mu{"+a.rq+"}}{"+l+"}":l="\\underset{\\lower6mu{"+a.rq+"}}{"+l+"}"),l=" {}\\mathrel{"+l+"}{} "):(a.rq&&(l+="[{"+a.rq+"}]"),l+="{"+a.rd+"}",l=" {}\\mathrel{\\x"+l+"}{} "):l=" {}\\mathrel{\\long"+l+"}{} ",e=l;break;case"operator":e=_r._getOperator(t.kind_);break;case"1st-level escape":e=t.p1+" ";break;case"space":e=" ";break;case"tinySkip":e="\\mkern2mu";break;case"entitySkip":e="~";break;case"pu-space-1":e="~";break;case"pu-space-2":e="\\mkern3mu ";break;case"1000 separator":e="\\mkern2mu ";break;case"commaDecimal":e="{,}";break;case"comma enumeration L":e="{"+t.p1+"}\\mkern6mu ";break;case"comma enumeration M":e="{"+t.p1+"}\\mkern3mu ";break;case"comma enumeration S":e="{"+t.p1+"}\\mkern1mu ";break;case"hyphen":e="\\text{-}";break;case"addition compound":e="\\,{\\cdot}\\,";break;case"electron dot":e="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":e="{\\times}";break;case"prime":e="\\prime ";break;case"cdot":e="\\cdot ";break;case"tight cdot":e="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":e="\\times ";break;case"circa":e="{\\sim}";break;case"^":e="uparrow";break;case"v":e="downarrow";break;case"ellipsis":e="\\ldots ";break;case"/":e="/";break;case" / ":e="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return e},_getArrow:function(t){switch(t){case"->":return"rightarrow";case"→":return"rightarrow";case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(t){switch(t){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(t){switch(t){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}},ER=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yx,"__esModule",{value:!0}),yx.MhchemConfiguration=void 0;var kQe=Xn,PQe=_n,IQe=ER(ir),RQe=ER(Jo),NQe=a5,BQe=iT,oT={};oT.Macro=RQe.default.Macro,oT.xArrow=NQe.AmsMethods.xArrow,oT.Machine=function(t,e,n){var r=t.GetArgument(e),o;try{o=BQe.mhchemParser.toTex(r,n)}catch(a){throw new IQe.default(a[0],a[1])}t.string=o+t.string.substr(t.i),t.i=0},new PQe.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},oT),yx.MhchemConfiguration=kQe.Configuration.create("mhchem",{handler:{macro:["mhchem"]}});var vx={};Object.defineProperty(vx,"__esModule",{value:!0}),vx.NoErrorsConfiguration=void 0;var DQe=Xn;function FQe(t,e,n,r){var o=t.create("token","mtext",{},r.replace(/\n/g," ")),a=t.create("node","merror",[o],{"data-mjx-error":e,title:e});return a}vx.NoErrorsConfiguration=DQe.Configuration.create("noerrors",{nodes:{error:FQe}});var bx={},zQe=U&&U.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(bx,"__esModule",{value:!0}),bx.NoUndefinedConfiguration=void 0;var UQe=Xn;function jQe(t,e){var n,r,o=t.create("text","\\"+e),a=t.options.noundefined||{},l={};try{for(var s=zQe(["color","background","size"]),h=s.next();!h.done;h=s.next()){var u=h.value;a[u]&&(l["math"+u]=a[u])}}catch(d){n={error:d}}finally{try{h&&!h.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}t.Push(t.create("node","mtext",[],l,o))}bx.NoUndefinedConfiguration=UQe.Configuration.create("noundefined",{fallback:{macro:jQe},options:{noundefined:{color:"red",background:"",size:""}},priority:3});var xx={},aT={},GQe=U&&U.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_x=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(aT,"__esModule",{value:!0}),aT.AutoOpen=void 0;var HR=sa,WQe=_x(xr()),ZQe=_x(br),$Qe=_x(yo()),qQe=function(t){GQe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.openCount=0,n}return Object.defineProperty(e.prototype,"kind",{get:function(){return"auto open"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.toMml=function(){var n=this.factory.configuration.parser,r=this.getProperty("right");if(this.getProperty("smash")){var o=t.prototype.toMml.call(this),a=n.create("node","mpadded",[o],{height:0,depth:0});this.Clear(),this.Push(n.create("node","TeXAtom",[a]))}r&&this.Push(new $Qe.default(r,n.stack.env,n.configuration).mml());var l=WQe.default.fenced(this.factory.configuration,this.getProperty("open"),t.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big"));return ZQe.default.removeProperties(l,"open","close","texClass"),l},e.prototype.checkItem=function(n){if(n.isKind("mml")&&n.Size()===1){var r=n.toMml();r.isKind("mo")&&r.getText()===this.getProperty("open")&&this.openCount++}var o=n.getProperty("autoclose");return o&&o===this.getProperty("close")&&!this.openCount--?this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0]:t.prototype.checkItem.call(this,n)},e.errors=Object.assign(Object.create(HR.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]}),e}(HR.BaseItem);aT.AutoOpen=qQe;var Lx={},XQe=U&&U.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,a=[],l;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return a},T8=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lx,"__esModule",{value:!0});var wx=T8(Jo),Gi=T8(yo()),h5=T8(ir),Mx=xn,Q8=T8(xr()),Sx=T8(br),KQe=B0,pr={},AR={"(":")","[":"]","{":"}","|":"|"},VR=/^(b|B)i(g{1,2})$/;pr.Quantity=function(t,e,n,r,o,a,l){n===void 0&&(n="("),r===void 0&&(r=")"),o===void 0&&(o=!1),a===void 0&&(a=""),l===void 0&&(l="");var s=o?t.GetStar():!1,h=t.GetNext(),u=t.i,d=null;if(h==="\\"){if(t.i++,d=t.GetCS(),!d.match(VR)){var p=t.create("node","mrow");t.Push(Q8.default.fenced(t.configuration,n,p,r)),t.i=u;return}h=t.GetNext()}var f=AR[h];if(o&&h!=="{")throw new h5.default("MissingArgFor","Missing argument for %1",t.currentCS);if(!f){var p=t.create("node","mrow");t.Push(Q8.default.fenced(t.configuration,n,p,r)),t.i=u;return}if(a){var m=t.create("token","mi",{texClass:Mx.TEXCLASS.OP},a);l&&Sx.default.setAttribute(m,"mathvariant",l),t.Push(t.itemFactory.create("fn",m))}if(h==="{"){var y=t.GetArgument(e);h=o?n:"\\{",f=o?r:"\\}",y=s?h+" "+y+" "+f:d?"\\"+d+"l"+h+" "+y+" \\"+d+"r"+f:"\\left"+h+" "+y+" \\right"+f,t.Push(new Gi.default(y,t.stack.env,t.configuration).mml());return}o&&(h=n,f=r),t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:h,close:f,big:d}))},pr.Eval=function(t,e){var n=t.GetStar(),r=t.GetNext();if(r==="{"){var o=t.GetArgument(e),a="\\left. "+(n?"\\smash{"+o+"}":o)+" \\vphantom{\\int}\\right|";t.string=t.string.slice(0,t.i)+a+t.string.slice(t.i);return}if(r==="("||r==="["){t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:r,close:"|",smash:n,right:"\\vphantom{\\int}"}));return}throw new h5.default("MissingArgFor","Missing argument for %1",t.currentCS)},pr.Commutator=function(t,e,n,r){n===void 0&&(n="["),r===void 0&&(r="]");var o=t.GetStar(),a=t.GetNext(),l=null;if(a==="\\"){if(t.i++,l=t.GetCS(),!l.match(VR))throw new h5.default("MissingArgFor","Missing argument for %1",t.currentCS);a=t.GetNext()}if(a!=="{")throw new h5.default("MissingArgFor","Missing argument for %1",t.currentCS);var s=t.GetArgument(e),h=t.GetArgument(e),u=s+","+h;u=o?n+" "+u+" "+r:l?"\\"+l+"l"+n+" "+u+" \\"+l+"r"+r:"\\left"+n+" "+u+" \\right"+r,t.Push(new Gi.default(u,t.stack.env,t.configuration).mml())};var JQe=[65,90],YQe=[97,122],eme=[913,937],tme=[945,969],nme=[48,57];function m8(t,e){return t>=e[0]&&t<=e[1]}function rme(t,e,n,r){var o=t.configuration.parser,a=KQe.NodeFactory.createToken(t,e,n,r),l=r.codePointAt(0);return r.length===1&&!o.stack.env.font&&o.stack.env.vectorFont&&(m8(l,JQe)||m8(l,YQe)||m8(l,eme)||m8(l,nme)||m8(l,tme)&&o.stack.env.vectorStar||Sx.default.getAttribute(a,"accent"))&&Sx.default.setAttribute(a,"mathvariant",o.stack.env.vectorFont),a}pr.VectorBold=function(t,e){var n=t.GetStar(),r=t.GetArgument(e),o=t.configuration.nodeFactory.get("token"),a=t.stack.env.font;delete t.stack.env.font,t.configuration.nodeFactory.set("token",rme),t.stack.env.vectorFont=n?"bold-italic":"bold",t.stack.env.vectorStar=n;var l=new Gi.default(r,t.stack.env,t.configuration).mml();a&&(t.stack.env.font=a),delete t.stack.env.vectorFont,delete t.stack.env.vectorStar,t.configuration.nodeFactory.set("token",o),t.Push(l)},pr.StarMacro=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var a=t.GetStar(),l=[];if(n)for(var s=l.length;s<n;s++)l.push(t.GetArgument(e));var h=r.join(a?"*":"");h=Q8.default.substituteArgs(t,l,h),t.string=Q8.default.addArgs(t,h,t.string.slice(t.i)),t.i=0,Q8.default.checkMaxMacros(t)};var OR=function(t,e,n,r,o){var a=new Gi.default(r,t.stack.env,t.configuration).mml();t.Push(t.itemFactory.create(e,a));var l=t.GetNext(),s=AR[l];if(s){var h="",u="",d="",p=o.indexOf(l)!==-1;if(l==="{"){d=t.GetArgument(n),h=p?"\\left\\{":"",u=p?"\\right\\}":"";var f=h+" "+d+" "+u;t.string=f+t.string.slice(t.i),t.i=0;return}p&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:l,close:s})))}};pr.OperatorApplication=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];OR(t,"fn",e,n,r)},pr.VectorOperator=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];OR(t,"mml",e,n,r)},pr.Expression=function(t,e,n,r){n===void 0&&(n=!0),r===void 0&&(r=""),r=r||e.slice(1);var o=n?t.GetBrackets(e):null,a=t.create("token","mi",{texClass:Mx.TEXCLASS.OP},r);if(o){var l=new Gi.default(o,t.stack.env,t.configuration).mml();a=t.create("node","msup",[a,l])}t.Push(t.itemFactory.create("fn",a)),t.GetNext()==="("&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"})))},pr.Qqtext=function(t,e,n){var r=t.GetStar(),o=n||t.GetArgument(e),a=(r?"":"\\quad")+"\\text{"+o+"}\\quad ";t.string=t.string.slice(0,t.i)+a+t.string.slice(t.i)},pr.Differential=function(t,e,n){var r=t.GetBrackets(e),o=r!=null?"^{"+r+"}":" ",a=t.GetNext()==="(",l=t.GetNext()==="{",s=n+o;if(!(a||l)){s+=t.GetArgument(e,!0)||"";var h=new Gi.default(s,t.stack.env,t.configuration).mml();t.Push(h);return}if(l){s+=t.GetArgument(e);var h=new Gi.default(s,t.stack.env,t.configuration).mml();t.Push(t.create("node","TeXAtom",[h],{texClass:Mx.TEXCLASS.OP}));return}t.Push(new Gi.default(s,t.stack.env,t.configuration).mml()),t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"}))},pr.Derivative=function(t,e,n,r){var o=t.GetStar(),a=t.GetBrackets(e),l=1,s=[];for(s.push(t.GetArgument(e));t.GetNext()==="{"&&l<n;)s.push(t.GetArgument(e)),l++;var h=!1,u=" ",d=" ";n>2&&s.length>2?(u="^{"+(s.length-1)+"}",h=!0):a!=null&&(n>2&&s.length>1&&(h=!0),u="^{"+a+"}",d=u);for(var p=o?"\\flatfrac":"\\frac",f=s.length>1?s[0]:"",m=s.length>1?s[1]:s[0],y="",v=2,_=void 0;_=s[v];v++)y+=r+" "+_;var x=p+"{"+r+u+f+"}{"+r+" "+m+d+" "+y+"}";t.Push(new Gi.default(x,t.stack.env,t.configuration).mml()),t.GetNext()==="("&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:h})))},pr.Bra=function(t,e){var n=t.GetStar(),r=t.GetArgument(e),o="",a=!1,l=!1;if(t.GetNext()==="\\"){var s=t.i;t.i++;var h=t.GetCS(),u=t.lookup("macro",h);u&&u.symbol==="ket"?(a=!0,s=t.i,l=t.GetStar(),t.GetNext()==="{"?o=t.GetArgument(h,!0):(t.i=s,l=!1)):t.i=s}var d="";a?d=n||l?"\\langle{".concat(r,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(r,"}\\middle\\vert{").concat(o,"}\\right\\rangle"):d=n||l?"\\langle{".concat(r,"}\\vert"):"\\left\\langle{".concat(r,"}\\right\\vert{").concat(o,"}"),t.Push(new Gi.default(d,t.stack.env,t.configuration).mml())},pr.Ket=function(t,e){var n=t.GetStar(),r=t.GetArgument(e),o=n?"\\vert{".concat(r,"}\\rangle"):"\\left\\vert{".concat(r,"}\\right\\rangle");t.Push(new Gi.default(o,t.stack.env,t.configuration).mml())},pr.BraKet=function(t,e){var n=t.GetStar(),r=t.GetArgument(e),o=null;t.GetNext()==="{"&&(o=t.GetArgument(e,!0));var a="";o==null?a=n?"\\langle{".concat(r,"}\\vert{").concat(r,"}\\rangle"):"\\left\\langle{".concat(r,"}\\middle\\vert{").concat(r,"}\\right\\rangle"):a=n?"\\langle{".concat(r,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(r,"}\\middle\\vert{").concat(o,"}\\right\\rangle"),t.Push(new Gi.default(a,t.stack.env,t.configuration).mml())},pr.KetBra=function(t,e){var n=t.GetStar(),r=t.GetArgument(e),o=null;t.GetNext()==="{"&&(o=t.GetArgument(e,!0));var a="";o==null?a=n?"\\vert{".concat(r,"}\\rangle\\!\\langle{").concat(r,"}\\vert"):"\\left\\vert{".concat(r,"}\\middle\\rangle\\!\\middle\\langle{").concat(r,"}\\right\\vert"):a=n?"\\vert{".concat(r,"}\\rangle\\!\\langle{").concat(o,"}\\vert"):"\\left\\vert{".concat(r,"}\\middle\\rangle\\!\\middle\\langle{").concat(o,"}\\right\\vert"),t.Push(new Gi.default(a,t.stack.env,t.configuration).mml())};function kR(t,e,n){var r=XQe(t,3),o=r[0],a=r[1],l=r[2];return e&&n?"\\left\\langle{".concat(o,"}\\middle\\vert{").concat(a,"}\\middle\\vert{").concat(l,"}\\right\\rangle"):e?"\\langle{".concat(o,"}\\vert{").concat(a,"}\\vert{").concat(l,"}\\rangle"):"\\left\\langle{".concat(o,"}\\right\\vert{").concat(a,"}\\left\\vert{").concat(l,"}\\right\\rangle")}pr.Expectation=function(t,e){var n=t.GetStar(),r=n&&t.GetStar(),o=t.GetArgument(e),a=null;t.GetNext()==="{"&&(a=t.GetArgument(e,!0));var l=o&&a?kR([a,o,a],n,r):n?"\\langle {".concat(o,"} \\rangle"):"\\left\\langle {".concat(o,"} \\right\\rangle");t.Push(new Gi.default(l,t.stack.env,t.configuration).mml())},pr.MatrixElement=function(t,e){var n=t.GetStar(),r=n&&t.GetStar(),o=t.GetArgument(e),a=t.GetArgument(e),l=t.GetArgument(e),s=kR([o,a,l],n,r);t.Push(new Gi.default(s,t.stack.env,t.configuration).mml())},pr.MatrixQuantity=function(t,e,n){var r=t.GetStar(),o=t.GetNext(),a=n?"smallmatrix":"array",l="",s="",h="";switch(o){case"{":l=t.GetArgument(e);break;case"(":t.i++,s=r?"\\lgroup":"(",h=r?"\\rgroup":")",l=t.GetUpTo(e,")");break;case"[":t.i++,s="[",h="]",l=t.GetUpTo(e,"]");break;case"|":t.i++,s="|",h="|",l=t.GetUpTo(e,"|");break;default:s="(",h=")";break}var u=(s?"\\left":"")+s+"\\begin{"+a+"}{} "+l+"\\end{"+a+"}"+(s?"\\right":"")+h;t.Push(new Gi.default(u,t.stack.env,t.configuration).mml())},pr.IdentityMatrix=function(t,e){var n=t.GetArgument(e),r=parseInt(n,10);if(isNaN(r))throw new h5.default("InvalidNumber","Invalid number");if(r<=1){t.string="1"+t.string.slice(t.i),t.i=0;return}for(var o=Array(r).fill("0"),a=[],l=0;l<r;l++){var s=o.slice();s[l]="1",a.push(s.join(" & "))}t.string=a.join("\\\\ ")+t.string.slice(t.i),t.i=0},pr.XMatrix=function(t,e){var n=t.GetStar(),r=t.GetArgument(e),o=t.GetArgument(e),a=t.GetArgument(e),l=parseInt(o,10),s=parseInt(a,10);if(isNaN(l)||isNaN(s)||s.toString()!==a||l.toString()!==o)throw new h5.default("InvalidNumber","Invalid number");if(l=l<1?1:l,s=s<1?1:s,!n){var h=Array(s).fill(r).join(" & "),u=Array(l).fill(h).join("\\\\ ");t.string=u+t.string.slice(t.i),t.i=0;return}var d="";if(l===1&&s===1)d=r;else if(l===1){for(var h=[],p=1;p<=s;p++)h.push("".concat(r,"_{").concat(p,"}"));d=h.join(" & ")}else if(s===1){for(var h=[],p=1;p<=l;p++)h.push("".concat(r,"_{").concat(p,"}"));d=h.join("\\\\ ")}else{for(var f=[],p=1;p<=l;p++){for(var h=[],m=1;m<=s;m++)h.push("".concat(r,"_{{").concat(p,"}{").concat(m,"}}"));f.push(h.join(" & "))}d=f.join("\\\\ ")}t.string=d+t.string.slice(t.i),t.i=0},pr.PauliMatrix=function(t,e){var n=t.GetArgument(e),r=n.slice(1);switch(n[0]){case"0":r+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":r+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":r+=" 0 & -i\\\\ i & 0";break;case"3":case"z":r+=" 1 & 0\\\\ 0 & -1";break}t.string=r+t.string.slice(t.i),t.i=0},pr.DiagonalMatrix=function(t,e,n){if(t.GetNext()==="{"){var r=t.i;t.GetArgument(e);var o=t.i;t.i=r+1;for(var a=[],l="",s=t.i;s<o;){try{l=t.GetUpTo(e,",")}catch{t.i=o,a.push(t.string.slice(s,o-1));break}if(t.i>=o){a.push(t.string.slice(s,o));break}s=t.i,a.push(l)}t.string=ime(a,n)+t.string.slice(o),t.i=0}};function ime(t,e){for(var n=t.length,r=[],o=0;o<n;o++)r.push(Array(e?n-o:o+1).join("&")+"\\mqty{"+t[o]+"}");return r.join("\\\\ ")}pr.AutoClose=function(t,e,n){var r=t.create("token","mo",{stretchy:!1},e),o=t.itemFactory.create("mml",r).setProperties({autoclose:e});t.Push(o)},pr.Vnabla=function(t,e){var n=t.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return t.Push(new Gi.default(n,t.stack.env,t.configuration).mml())},pr.DiffD=function(t,e){var n=t.options.physics.italicdiff?"d":"{\\rm d}";return t.Push(new Gi.default(n,t.stack.env,t.configuration).mml())},pr.Macro=wx.default.Macro,pr.NamedFn=wx.default.NamedFn,pr.Array=wx.default.Array,Lx.default=pr;var PR=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},fa=_n,Xs=PR(Lx),d5=ro,Cx=PR(ca),ome=xn;new fa.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",!0],bqty:["Quantity","[","]",!0],vqty:["Quantity","|","|",!0],Bqty:["Quantity","\\{","\\}",!0],absolutevalue:["Quantity","|","|",!0],abs:["Quantity","|","|",!0],norm:["Quantity","\\|","\\|",!0],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",!0,"O",d5.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},Xs.default),new fa.CharacterMap("Physics-vector-mo",Cx.default.mathchar0mo,{dotproduct:["⋅",{mathvariant:d5.TexConstant.Variant.BOLD}],vdot:["⋅",{mathvariant:d5.TexConstant.Variant.BOLD}],crossproduct:"×",cross:"×",cp:"×",gradientnabla:["∇",{mathvariant:d5.TexConstant.Variant.BOLD}]}),new fa.CharacterMap("Physics-vector-mi",Cx.default.mathchar0mi,{real:["ℜ",{mathvariant:d5.TexConstant.Variant.NORMAL}],imaginary:["ℑ",{mathvariant:d5.TexConstant.Variant.NORMAL}]}),new fa.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},Xs.default),new fa.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",!1],log:"Expression",ln:"Expression",det:["Expression",!1],Pr:["Expression",!1],tr:["Expression",!1],trace:["Expression",!1,"tr"],Tr:["Expression",!1],Trace:["Expression",!1,"Tr"],rank:"NamedFn",erf:["Expression",!1],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},Xs.default),new fa.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},Xs.default),new fa.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},Xs.default),new fa.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},Xs.default),new fa.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",!0],smqty:["MatrixQuantity",!0],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",!0],admat:["DiagonalMatrix",!0]},Xs.default),new fa.EnvironmentMap("Physics-aux-envs",Cx.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},Xs.default),new fa.MacroMap("Physics-characters",{"|":["AutoClose",ome.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},Xs.default);var Ex;Object.defineProperty(xx,"__esModule",{value:!0}),xx.PhysicsConfiguration=void 0;var ame=Xn,IR=aT;xx.PhysicsConfiguration=ame.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:(Ex={},Ex[IR.AutoOpen.prototype.kind]=IR.AutoOpen,Ex),options:{physics:{italicdiff:!1,arrowdel:!1}}});var sme={};(function(t){var e=U&&U.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,y=m&&f[m],v=0;if(y)return y.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&v>=f.length&&(f=void 0),{value:f&&f[v++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},n=U&&U.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetOptionsConfiguration=t.SetOptionsUtil=void 0;var r=Xn,o=_n,a=n(ir),l=n(xr()),s=la,h=n(Jo),u=ji;t.SetOptionsUtil={filterPackage:function(f,m){if(m!=="tex"&&!r.ConfigurationHandler.get(m))throw new a.default("NotAPackage","Not a defined package: %1",m);var y=f.options.setoptions,v=y.allowOptions[m];if(v===void 0&&!y.allowPackageDefault||v===!1)throw new a.default("PackageNotSettable",`Options can't be set for package "%1"`,m);return!0},filterOption:function(f,m,y){var v,_=f.options.setoptions,x=_.allowOptions[m]||{},L=x.hasOwnProperty(y)&&!(0,u.isObject)(x[y])?x[y]:null;if(L===!1||L===null&&!_.allowOptionsDefault)throw new a.default("OptionNotSettable",'Option "%1" is not allowed to be set',y);if(!(!((v=m==="tex"?f.options:f.options[m])===null||v===void 0)&&v.hasOwnProperty(y)))throw m==="tex"?new a.default("InvalidTexOption",'Invalid TeX option "%1"',y):new a.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',y,m);return!0},filterValue:function(f,m,y,v){return v}};var d=new o.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(f,m){var y,v,_=f.GetBrackets(m)||"tex",x=l.default.keyvalOptions(f.GetArgument(m)),L=f.options.setoptions;if(L.filterPackage(f,_))try{for(var S=e(Object.keys(x)),C=S.next();!C.done;C=S.next()){var A=C.value;L.filterOption(f,_,A)&&((_==="tex"?f.options:f.options[_])[A]=L.filterValue(f,_,A,x[A]))}}catch(H){y={error:H}}finally{try{C&&!C.done&&(v=S.return)&&v.call(S)}finally{if(y)throw y.error}}}});function p(f,m){var y=m.parseOptions.handlers.get("macro").lookup("require");y&&(d.add("Require",new s.Macro("Require",y._func)),d.add("require",new s.Macro("require",h.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))}t.SetOptionsConfiguration=r.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:p,priority:3,options:{setoptions:{filterPackage:t.SetOptionsUtil.filterPackage,filterOption:t.SetOptionsUtil.filterOption,filterValue:t.SetOptionsUtil.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:(0,u.expandable)({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}})})(sme);var g8={},lme=U&&U.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(g8,"__esModule",{value:!0}),g8.TagFormatConfiguration=g8.tagformatConfig=void 0;var cme=Xn,Hx=Rs,RR=0;function NR(t,e){var n=e.parseOptions.options.tags;n!=="base"&&t.tags.hasOwnProperty(n)&&Hx.TagsFactory.add(n,t.tags[n]);var r=Hx.TagsFactory.create(e.parseOptions.options.tags).constructor,o=function(l){lme(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.formatNumber=function(h){return e.parseOptions.options.tagformat.number(h)},s.prototype.formatTag=function(h){return e.parseOptions.options.tagformat.tag(h)},s.prototype.formatId=function(h){return e.parseOptions.options.tagformat.id(h)},s.prototype.formatUrl=function(h,u){return e.parseOptions.options.tagformat.url(h,u)},s}(r);RR++;var a="configTags-"+RR;Hx.TagsFactory.add(a,o),e.parseOptions.options.tags=a}g8.tagformatConfig=NR,g8.TagFormatConfiguration=cme.Configuration.create("tagformat",{config:[NR,10],options:{tagformat:{number:function(t){return t.toString()},tag:function(t){return"("+t+")"},id:function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},url:function(t,e){return e+"#"+encodeURIComponent(t)}}}});var Ax={},p5={},BR=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(p5,"__esModule",{value:!0}),p5.TextMacrosMethods=void 0;var ume=BR(yo()),hme=i3,f5=BR(Jo);p5.TextMacrosMethods={Comment:function(t,e){for(;t.i<t.string.length&&t.string.charAt(t.i)!==`
|
|
1029
|
-
`;)t.i++;t.i++},Math:function(t,e){t.saveText();for(var n=t.i,r,o,a=0;o=t.GetNext();)switch(r=t.i++,o){case"\\":var l=t.GetCS();l===")"&&(o="\\(");case"$":if(a===0&&e===o){var s=t.texParser.configuration,h=new ume.default(t.string.substr(n,r-n),t.stack.env,s).mml();t.PushMath(h);return}break;case"{":a++;break;case"}":a===0&&t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),a--;break}t.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(t,e){t.Error("MathModeOnly","'%1' allowed only in math mode",e)},Misplaced:function(t,e){t.Error("Misplaced","'%1' can not be used here",e)},OpenBrace:function(t,e){var n=t.stack.env;t.envStack.push(n),t.stack.env=Object.assign({},n)},CloseBrace:function(t,e){t.envStack.length?(t.saveText(),t.stack.env=t.envStack.pop()):t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(t,e){t.string.charAt(t.i)===e?(t.text+="“",t.i++):t.text+="‘"},CloseQuote:function(t,e){t.string.charAt(t.i)===e?(t.text+="”",t.i++):t.text+="’"},Tilde:function(t,e){t.text+=" "},Space:function(t,e){for(t.text+=" ";t.GetNext().match(/\s/);)t.i++},SelfQuote:function(t,e){t.text+=e.substr(1)},Insert:function(t,e,n){t.text+=n},Accent:function(t,e,n){var r=t.ParseArg(e),o=t.create("token","mo",{},n);t.addAttributes(o),t.Push(t.create("node","mover",[r,o]))},Emph:function(t,e){var n=t.stack.env.mathvariant==="-tex-mathit"?"normal":"-tex-mathit";t.Push(t.ParseTextArg(e,{mathvariant:n}))},SetFont:function(t,e,n){t.saveText(),t.stack.env.mathvariant=n},SetSize:function(t,e,n){t.saveText(),t.stack.env.mathsize=n},CheckAutoload:function(t,e){var n=t.configuration.packageData.get("autoload"),r=t.texParser;e=e.slice(1);var o=r.lookup("macro",e);if(!o||n&&o._func===n.Autoload){if(r.parse("macro",[r,e]),!o)return;(0,hme.retryAfter)(Promise.resolve())}r.parse("macro",[t,e])},Macro:f5.default.Macro,Spacer:f5.default.Spacer,Hskip:f5.default.Hskip,rule:f5.default.rule,Rule:f5.default.Rule,HandleRef:f5.default.HandleRef};var y8={},dme=U&&U.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DR=U&&U.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pme=U&&U.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,a=[],l;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return a},fme=U&&U.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},sT=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(y8,"__esModule",{value:!0}),y8.TextParser=void 0;var Tme=sT(yo()),FR=sT(ir),Qme=sT(xr()),mme=xn,zR=sT(br),UR=bn,gme=function(t){dme(e,t);function e(n,r,o,a){var l=t.call(this,n,r,o)||this;return l.level=a,l}return Object.defineProperty(e.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),e.prototype.mml=function(){return this.level!=null?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):this.nodes.length===1?this.nodes[0]:this.create("node","mrow",this.nodes)},e.prototype.Parse=function(){this.text="",this.nodes=[],this.envStack=[],t.prototype.Parse.call(this)},e.prototype.saveText=function(){if(this.text){var n=this.stack.env.mathvariant,r=Qme.default.internalText(this,this.text,n?{mathvariant:n}:{});this.text="",this.Push(r)}},e.prototype.Push=function(n){if(this.text&&this.saveText(),n instanceof UR.StopItem)return t.prototype.Push.call(this,n);if(n instanceof UR.StyleItem){this.stack.env.mathcolor=this.stack.env.color;return}n instanceof mme.AbstractMmlNode&&(this.addAttributes(n),this.nodes.push(n))},e.prototype.PushMath=function(n){var r,o,a=this.stack.env;n.isKind("TeXAtom")||(n=this.create("node","TeXAtom",[n]));try{for(var l=DR(["mathsize","mathcolor"]),s=l.next();!s.done;s=l.next()){var h=s.value;a[h]&&!n.attributes.getExplicit(h)&&(!n.isToken&&!n.isKind("mstyle")&&(n=this.create("node","mstyle",[n])),zR.default.setAttribute(n,h,a[h]))}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}n.isInferred&&(n=this.create("node","mrow",n.childNodes)),this.nodes.push(n)},e.prototype.addAttributes=function(n){var r,o,a=this.stack.env;if(n.isToken)try{for(var l=DR(["mathsize","mathcolor","mathvariant"]),s=l.next();!s.done;s=l.next()){var h=s.value;a[h]&&!n.attributes.getExplicit(h)&&zR.default.setAttribute(n,h,a[h])}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},e.prototype.ParseTextArg=function(n,r){var o=this.GetArgument(n);return r=Object.assign(Object.assign({},this.stack.env),r),new e(o,r,this.configuration).mml()},e.prototype.ParseArg=function(n){return new e(this.GetArgument(n),this.stack.env,this.configuration).mml()},e.prototype.Error=function(n,r){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];throw new(FR.default.bind.apply(FR.default,fme([void 0,n,r],pme(o),!1)))},e}(Tme.default);y8.TextParser=gme;var yme=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},vme=_n,z1=ro,bme=p5,xme=yme(xr()),_me=y8;new vme.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert",""],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",z1.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",z1.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",z1.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",z1.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",z1.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",z1.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",z1.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",z1.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",z1.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",z1.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",z1.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",z1.TexConstant.Variant.OLDSTYLE]},{Insert:function(t,e,n,r){if(t instanceof _me.TextParser){if(!r){bme.TextMacrosMethods.Insert(t,e,n);return}t.saveText()}t.Push(xme.default.internalText(t,n,r?{mathvariant:r}:{}))}}),Object.defineProperty(Ax,"__esModule",{value:!0}),Ax.TextcompConfiguration=void 0;var Lme=Xn;Ax.TextcompConfiguration=Lme.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}});var v8={},jR=_n,es=ro,GR=p5,X4=Wa;new jR.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space"," ":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},GR.TextMacrosMethods),new jR.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",es.TexConstant.Variant.NORMAL],mit:["SetFont",es.TexConstant.Variant.ITALIC],oldstyle:["SetFont",es.TexConstant.Variant.OLDSTYLE],cal:["SetFont",es.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",es.TexConstant.Variant.BOLD],bbFont:["SetFont",es.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",es.TexConstant.Variant.SCRIPT],frak:["SetFont",es.TexConstant.Variant.FRAKTUR],sf:["SetFont",es.TexConstant.Variant.SANSSERIF],tt:["SetFont",es.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",X4.MATHSPACE.thinmathspace],":":["Spacer",X4.MATHSPACE.mediummathspace],">":["Spacer",X4.MATHSPACE.mediummathspace],";":["Spacer",X4.MATHSPACE.thickmathspace],"!":["Spacer",X4.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",X4.MATHSPACE.thinmathspace],negthinspace:["Spacer",X4.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",!1],eqref:["HandleRef",!0]},GR.TextMacrosMethods);var wme=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},T5;Object.defineProperty(v8,"__esModule",{value:!0}),v8.TextMacrosConfiguration=v8.TextBaseConfiguration=void 0;var Vx=Xn,Mme=wme(p9),WR=Rs,p3=bn,ZR=y8,Sme=p5;v8.TextBaseConfiguration=Vx.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(t,e){t.text+=e},macro:function(t,e){var n=t.texParser,r=n.lookup("macro",e);r&&r._func!==Sme.TextMacrosMethods.Macro&&t.Error("MathMacro","%1 is only supported in math mode","\\"+e),n.parse("macro",[t,e])}},items:(T5={},T5[p3.StartItem.prototype.kind]=p3.StartItem,T5[p3.StopItem.prototype.kind]=p3.StopItem,T5[p3.MmlItem.prototype.kind]=p3.MmlItem,T5[p3.StyleItem.prototype.kind]=p3.StyleItem,T5)});function Cme(t,e,n,r){var o=t.configuration.packageData.get("textmacros");return t instanceof ZR.TextParser||(o.texParser=t),[new ZR.TextParser(e,r?{mathvariant:r}:{},o.parseOptions,n).mml()]}v8.TextMacrosConfiguration=Vx.Configuration.create("textmacros",{config:function(t,e){var n=new Vx.ParserConfiguration(e.parseOptions.options.textmacros.packages,["tex","text"]);n.init();var r=new Mme.default(n,[]);r.options=e.parseOptions.options,n.config(e),WR.TagsFactory.addTags(n.tags),r.tags=WR.TagsFactory.getDefault(),r.tags.configuration=r,r.packageData=e.parseOptions.packageData,r.packageData.set("textmacros",{parseOptions:r,jax:e,texParser:null}),r.options.internalMath=Cme},preprocessors:[function(t){var e=t.data.packageData.get("textmacros");e.parseOptions.nodeFactory.setMmlFactory(e.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}});var Ox={};Object.defineProperty(Ox,"__esModule",{value:!0}),Ox.UpgreekConfiguration=void 0;var Eme=Xn,Hme=_n,Ame=ro;function Vme(t,e){var n=e.attributes||{};n.mathvariant=Ame.TexConstant.Variant.NORMAL;var r=t.create("token","mi",n,e.char);t.Push(r)}new Hme.CharacterMap("upgreek",Vme,{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"}),Ox.UpgreekConfiguration=Eme.Configuration.create("upgreek",{handler:{macro:["upgreek"]}});var Ome={};(function(t){var e=U&&U.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeConfiguration=t.UnicodeMethods=void 0;var n=Xn,r=e(ir),o=_n,a=e(xr()),l=e(br),s=t7;t.UnicodeMethods={};var h={};t.UnicodeMethods.Unicode=function(u,d){var p=u.GetBrackets(d),f=null,m=null;p&&(p.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(f=p.replace(/ /g,"").split(/,/),m=u.GetBrackets(d)):m=p);var y=a.default.trimSpaces(u.GetArgument(d)).replace(/^0x/,"x");if(!y.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new r.default("BadUnicode","Argument to \\unicode must be a number");var v=parseInt(y.match(/^x/)?"0"+y:y);h[v]?m||(m=h[v][2]):h[v]=[800,200,m,v],f&&(h[v][0]=Math.floor(parseFloat(f[0])*1e3),h[v][1]=Math.floor(parseFloat(f[1])*1e3));var _=u.stack.env.font,x={};m?(h[v][2]=x.fontfamily=m.replace(/'/g,"'"),_&&(_.match(/bold/)&&(x.fontweight="bold"),_.match(/italic|-mathit/)&&(x.fontstyle="italic"))):_&&(x.mathvariant=_);var L=u.create("token","mtext",x,(0,s.numeric)(y));l.default.setProperty(L,"unicode",!0),u.Push(L)},new o.CommandMap("unicode",{unicode:"Unicode"},t.UnicodeMethods),t.UnicodeConfiguration=n.Configuration.create("unicode",{handler:{macro:["unicode"]}})})(Ome);var kme={};(function(t){var e=U&&U.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.VerbConfiguration=t.VerbMethods=void 0;var n=Xn,r=ro,o=_n,a=e(ir);t.VerbMethods={},t.VerbMethods.Verb=function(l,s){var h=l.GetNext(),u=++l.i;if(h==="")throw new a.default("MissingArgFor","Missing argument for %1",s);for(;l.i<l.string.length&&l.string.charAt(l.i)!==h;)l.i++;if(l.i===l.string.length)throw new a.default("NoClosingDelim","Can't find closing delimiter for %1",l.currentCS);var d=l.string.slice(u,l.i).replace(/ /g," ");l.i++,l.Push(l.create("token","mtext",{mathvariant:r.TexConstant.Variant.MONOSPACE},d))},new o.CommandMap("verb",{verb:"Verb"},t.VerbMethods),t.VerbConfiguration=n.Configuration.create("verb",{handler:{macro:["verb"]}})})(kme),Object.defineProperty(Ob,"__esModule",{value:!0});var $R=Ob.AllPackages=void 0;CR(),typeof MathJax<"u"&&MathJax.loader&&MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions"),$R=Ob.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"];const Pme=ZP();MI(Pme);const Ime=new vk({packages:$R}),Rme=new Bpe.SVG({fontCache:"local"});n9.mathjax.document("",{InputJax:Ime,OutputJax:Rme});const Nme={name:"ScaffoldTooltip",components:{Popover:ld,Tooltip:$le},props:{label:{type:String,default:""},annotationDisplay:{type:Boolean,default:!1},region:{type:String,default:""},visible:{type:Boolean,default:!1},x:{type:Number,default:200},y:{type:Number,default:200}},inject:["scaffoldUrl"],data:function(){return{display:!1,annotationEntry:{}}},computed:{position:function(){let t=40;return this.region&&(t=55),{left:this.x-40+"px",top:this.y-t+"px"}}},methods:{checkForDisplay:function(){if(this.visible&&this.label&&this.label!==""){if(this.display=!0,this.annotationDisplay){const t=this.region?this.region+"/":"";this.annotationEntry={featureId:encodeURIComponent(t+this.label),resourceId:encodeURIComponent(this.scaffoldUrl)}}}else this.display=!1,this.annotationEntry={}}},watch:{label:{handler:function(){this.checkForDisplay()},immediate:!0},visible:{handler:function(){this.checkForDisplay()},immediate:!0},annotationDisplay:{handler:function(){this.checkForDisplay()},immediate:!0}}},Bme={class:"tooltip-text"},Dme={key:0,class:"tooltip-text"};function Fme(t,e,n,r,o,a){const l=c.resolveComponent("Tooltip"),s=ld;return c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle(a.position),class:"region-tooltip"},[c.createVNode(s,{ref:"tooltip",visible:n.visible,placement:"top","show-arrow":!1,teleported:!1,trigger:"manual","popper-class":"tooltip-popper non-selectable","virtual-triggering":""},{default:c.withCtx(()=>[c.createElementVNode("div",Bme,c.toDisplayString(n.label),1),n.region?(c.openBlock(),c.createElementBlock("div",Dme,"Region: "+c.toDisplayString(n.region),1)):c.createCommentVNode("",!0),c.withDirectives(c.createVNode(l,{class:"p-tooltip",ref:"annotationTooltip",annotationDisplay:!0,annotationEntry:t.annotationEntry},null,8,["annotationEntry"]),[[c.vShow,n.annotationDisplay]])]),_:1},8,["visible"])],4)}const qR=f0(Nme,[["render",Fme],["__scopeId","data-v-56be51e8"]]),XR=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},zme=["xlink:href"],Ume={__name:"SvgIcon",props:{icon:{type:String,required:!0},spin:{type:Boolean,default:!1}},setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{class:c.normalizeClass(["map-icon",{"map-icon-spin":t.spin}])},[c.createElementVNode("use",{"xlink:href":`#${t.icon}`},null,8,zme)],2))}},jme=XR(Ume,[["__scopeId","data-v-4c9c4762"]]),KR=`<?xml version="1.0" encoding="UTF-8"?>
|
|
1029
|
+
`;)t.i++;t.i++},Math:function(t,e){t.saveText();for(var n=t.i,r,o,a=0;o=t.GetNext();)switch(r=t.i++,o){case"\\":var l=t.GetCS();l===")"&&(o="\\(");case"$":if(a===0&&e===o){var s=t.texParser.configuration,h=new ume.default(t.string.substr(n,r-n),t.stack.env,s).mml();t.PushMath(h);return}break;case"{":a++;break;case"}":a===0&&t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),a--;break}t.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(t,e){t.Error("MathModeOnly","'%1' allowed only in math mode",e)},Misplaced:function(t,e){t.Error("Misplaced","'%1' can not be used here",e)},OpenBrace:function(t,e){var n=t.stack.env;t.envStack.push(n),t.stack.env=Object.assign({},n)},CloseBrace:function(t,e){t.envStack.length?(t.saveText(),t.stack.env=t.envStack.pop()):t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(t,e){t.string.charAt(t.i)===e?(t.text+="“",t.i++):t.text+="‘"},CloseQuote:function(t,e){t.string.charAt(t.i)===e?(t.text+="”",t.i++):t.text+="’"},Tilde:function(t,e){t.text+=" "},Space:function(t,e){for(t.text+=" ";t.GetNext().match(/\s/);)t.i++},SelfQuote:function(t,e){t.text+=e.substr(1)},Insert:function(t,e,n){t.text+=n},Accent:function(t,e,n){var r=t.ParseArg(e),o=t.create("token","mo",{},n);t.addAttributes(o),t.Push(t.create("node","mover",[r,o]))},Emph:function(t,e){var n=t.stack.env.mathvariant==="-tex-mathit"?"normal":"-tex-mathit";t.Push(t.ParseTextArg(e,{mathvariant:n}))},SetFont:function(t,e,n){t.saveText(),t.stack.env.mathvariant=n},SetSize:function(t,e,n){t.saveText(),t.stack.env.mathsize=n},CheckAutoload:function(t,e){var n=t.configuration.packageData.get("autoload"),r=t.texParser;e=e.slice(1);var o=r.lookup("macro",e);if(!o||n&&o._func===n.Autoload){if(r.parse("macro",[r,e]),!o)return;(0,hme.retryAfter)(Promise.resolve())}r.parse("macro",[t,e])},Macro:f5.default.Macro,Spacer:f5.default.Spacer,Hskip:f5.default.Hskip,rule:f5.default.rule,Rule:f5.default.Rule,HandleRef:f5.default.HandleRef};var y8={},dme=U&&U.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DR=U&&U.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pme=U&&U.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,a=[],l;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return a},fme=U&&U.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))},sT=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(y8,"__esModule",{value:!0}),y8.TextParser=void 0;var Tme=sT(yo()),FR=sT(ir),Qme=sT(xr()),mme=xn,zR=sT(br),UR=bn,gme=function(t){dme(e,t);function e(n,r,o,a){var l=t.call(this,n,r,o)||this;return l.level=a,l}return Object.defineProperty(e.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),e.prototype.mml=function(){return this.level!=null?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):this.nodes.length===1?this.nodes[0]:this.create("node","mrow",this.nodes)},e.prototype.Parse=function(){this.text="",this.nodes=[],this.envStack=[],t.prototype.Parse.call(this)},e.prototype.saveText=function(){if(this.text){var n=this.stack.env.mathvariant,r=Qme.default.internalText(this,this.text,n?{mathvariant:n}:{});this.text="",this.Push(r)}},e.prototype.Push=function(n){if(this.text&&this.saveText(),n instanceof UR.StopItem)return t.prototype.Push.call(this,n);if(n instanceof UR.StyleItem){this.stack.env.mathcolor=this.stack.env.color;return}n instanceof mme.AbstractMmlNode&&(this.addAttributes(n),this.nodes.push(n))},e.prototype.PushMath=function(n){var r,o,a=this.stack.env;n.isKind("TeXAtom")||(n=this.create("node","TeXAtom",[n]));try{for(var l=DR(["mathsize","mathcolor"]),s=l.next();!s.done;s=l.next()){var h=s.value;a[h]&&!n.attributes.getExplicit(h)&&(!n.isToken&&!n.isKind("mstyle")&&(n=this.create("node","mstyle",[n])),zR.default.setAttribute(n,h,a[h]))}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}n.isInferred&&(n=this.create("node","mrow",n.childNodes)),this.nodes.push(n)},e.prototype.addAttributes=function(n){var r,o,a=this.stack.env;if(n.isToken)try{for(var l=DR(["mathsize","mathcolor","mathvariant"]),s=l.next();!s.done;s=l.next()){var h=s.value;a[h]&&!n.attributes.getExplicit(h)&&zR.default.setAttribute(n,h,a[h])}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},e.prototype.ParseTextArg=function(n,r){var o=this.GetArgument(n);return r=Object.assign(Object.assign({},this.stack.env),r),new e(o,r,this.configuration).mml()},e.prototype.ParseArg=function(n){return new e(this.GetArgument(n),this.stack.env,this.configuration).mml()},e.prototype.Error=function(n,r){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];throw new(FR.default.bind.apply(FR.default,fme([void 0,n,r],pme(o),!1)))},e}(Tme.default);y8.TextParser=gme;var yme=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},vme=_n,z1=ro,bme=p5,xme=yme(xr()),_me=y8;new vme.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert",""],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",z1.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",z1.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",z1.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",z1.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",z1.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",z1.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",z1.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",z1.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",z1.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",z1.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",z1.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",z1.TexConstant.Variant.OLDSTYLE]},{Insert:function(t,e,n,r){if(t instanceof _me.TextParser){if(!r){bme.TextMacrosMethods.Insert(t,e,n);return}t.saveText()}t.Push(xme.default.internalText(t,n,r?{mathvariant:r}:{}))}}),Object.defineProperty(Ax,"__esModule",{value:!0}),Ax.TextcompConfiguration=void 0;var Lme=Xn;Ax.TextcompConfiguration=Lme.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}});var v8={},jR=_n,es=ro,GR=p5,X4=Wa;new jR.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space"," ":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},GR.TextMacrosMethods),new jR.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",es.TexConstant.Variant.NORMAL],mit:["SetFont",es.TexConstant.Variant.ITALIC],oldstyle:["SetFont",es.TexConstant.Variant.OLDSTYLE],cal:["SetFont",es.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",es.TexConstant.Variant.BOLD],bbFont:["SetFont",es.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",es.TexConstant.Variant.SCRIPT],frak:["SetFont",es.TexConstant.Variant.FRAKTUR],sf:["SetFont",es.TexConstant.Variant.SANSSERIF],tt:["SetFont",es.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",X4.MATHSPACE.thinmathspace],":":["Spacer",X4.MATHSPACE.mediummathspace],">":["Spacer",X4.MATHSPACE.mediummathspace],";":["Spacer",X4.MATHSPACE.thickmathspace],"!":["Spacer",X4.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",X4.MATHSPACE.thinmathspace],negthinspace:["Spacer",X4.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",!1],eqref:["HandleRef",!0]},GR.TextMacrosMethods);var wme=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},T5;Object.defineProperty(v8,"__esModule",{value:!0}),v8.TextMacrosConfiguration=v8.TextBaseConfiguration=void 0;var Vx=Xn,Mme=wme(p9),WR=Rs,p3=bn,ZR=y8,Sme=p5;v8.TextBaseConfiguration=Vx.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(t,e){t.text+=e},macro:function(t,e){var n=t.texParser,r=n.lookup("macro",e);r&&r._func!==Sme.TextMacrosMethods.Macro&&t.Error("MathMacro","%1 is only supported in math mode","\\"+e),n.parse("macro",[t,e])}},items:(T5={},T5[p3.StartItem.prototype.kind]=p3.StartItem,T5[p3.StopItem.prototype.kind]=p3.StopItem,T5[p3.MmlItem.prototype.kind]=p3.MmlItem,T5[p3.StyleItem.prototype.kind]=p3.StyleItem,T5)});function Cme(t,e,n,r){var o=t.configuration.packageData.get("textmacros");return t instanceof ZR.TextParser||(o.texParser=t),[new ZR.TextParser(e,r?{mathvariant:r}:{},o.parseOptions,n).mml()]}v8.TextMacrosConfiguration=Vx.Configuration.create("textmacros",{config:function(t,e){var n=new Vx.ParserConfiguration(e.parseOptions.options.textmacros.packages,["tex","text"]);n.init();var r=new Mme.default(n,[]);r.options=e.parseOptions.options,n.config(e),WR.TagsFactory.addTags(n.tags),r.tags=WR.TagsFactory.getDefault(),r.tags.configuration=r,r.packageData=e.parseOptions.packageData,r.packageData.set("textmacros",{parseOptions:r,jax:e,texParser:null}),r.options.internalMath=Cme},preprocessors:[function(t){var e=t.data.packageData.get("textmacros");e.parseOptions.nodeFactory.setMmlFactory(e.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}});var Ox={};Object.defineProperty(Ox,"__esModule",{value:!0}),Ox.UpgreekConfiguration=void 0;var Eme=Xn,Hme=_n,Ame=ro;function Vme(t,e){var n=e.attributes||{};n.mathvariant=Ame.TexConstant.Variant.NORMAL;var r=t.create("token","mi",n,e.char);t.Push(r)}new Hme.CharacterMap("upgreek",Vme,{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"}),Ox.UpgreekConfiguration=Eme.Configuration.create("upgreek",{handler:{macro:["upgreek"]}});var Ome={};(function(t){var e=U&&U.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeConfiguration=t.UnicodeMethods=void 0;var n=Xn,r=e(ir),o=_n,a=e(xr()),l=e(br),s=t7;t.UnicodeMethods={};var h={};t.UnicodeMethods.Unicode=function(u,d){var p=u.GetBrackets(d),f=null,m=null;p&&(p.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(f=p.replace(/ /g,"").split(/,/),m=u.GetBrackets(d)):m=p);var y=a.default.trimSpaces(u.GetArgument(d)).replace(/^0x/,"x");if(!y.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new r.default("BadUnicode","Argument to \\unicode must be a number");var v=parseInt(y.match(/^x/)?"0"+y:y);h[v]?m||(m=h[v][2]):h[v]=[800,200,m,v],f&&(h[v][0]=Math.floor(parseFloat(f[0])*1e3),h[v][1]=Math.floor(parseFloat(f[1])*1e3));var _=u.stack.env.font,x={};m?(h[v][2]=x.fontfamily=m.replace(/'/g,"'"),_&&(_.match(/bold/)&&(x.fontweight="bold"),_.match(/italic|-mathit/)&&(x.fontstyle="italic"))):_&&(x.mathvariant=_);var L=u.create("token","mtext",x,(0,s.numeric)(y));l.default.setProperty(L,"unicode",!0),u.Push(L)},new o.CommandMap("unicode",{unicode:"Unicode"},t.UnicodeMethods),t.UnicodeConfiguration=n.Configuration.create("unicode",{handler:{macro:["unicode"]}})})(Ome);var kme={};(function(t){var e=U&&U.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.VerbConfiguration=t.VerbMethods=void 0;var n=Xn,r=ro,o=_n,a=e(ir);t.VerbMethods={},t.VerbMethods.Verb=function(l,s){var h=l.GetNext(),u=++l.i;if(h==="")throw new a.default("MissingArgFor","Missing argument for %1",s);for(;l.i<l.string.length&&l.string.charAt(l.i)!==h;)l.i++;if(l.i===l.string.length)throw new a.default("NoClosingDelim","Can't find closing delimiter for %1",l.currentCS);var d=l.string.slice(u,l.i).replace(/ /g," ");l.i++,l.Push(l.create("token","mtext",{mathvariant:r.TexConstant.Variant.MONOSPACE},d))},new o.CommandMap("verb",{verb:"Verb"},t.VerbMethods),t.VerbConfiguration=n.Configuration.create("verb",{handler:{macro:["verb"]}})})(kme),Object.defineProperty(Ob,"__esModule",{value:!0});var $R=Ob.AllPackages=void 0;CR(),typeof MathJax<"u"&&MathJax.loader&&MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions"),$R=Ob.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"];const Pme=ZP();MI(Pme);const Ime=new vk({packages:$R}),Rme=new Bpe.SVG({fontCache:"local"});n9.mathjax.document("",{InputJax:Ime,OutputJax:Rme});const Nme={name:"ScaffoldTooltip",components:{Popover:ld,Tooltip:$le},props:{label:{type:String,default:""},annotationDisplay:{type:Boolean,default:!1},region:{type:String,default:""},visible:{type:Boolean,default:!1},x:{type:Number,default:200},y:{type:Number,default:200}},inject:["scaffoldUrl"],data:function(){return{display:!1,annotationEntry:{}}},computed:{position:function(){let t=40;return this.region&&(t=55),{left:this.x-40+"px",top:this.y-t+"px"}}},methods:{checkForDisplay:function(){if(this.visible&&this.label&&this.label!==""){if(this.display=!0,this.annotationDisplay){const t=this.region?this.region+"/":"";this.annotationEntry={featureId:encodeURIComponent(t+this.label),resourceId:encodeURIComponent(this.scaffoldUrl)}}}else this.display=!1,this.annotationEntry={}}},watch:{label:{handler:function(){this.checkForDisplay()},immediate:!0},visible:{handler:function(){this.checkForDisplay()},immediate:!0},annotationDisplay:{handler:function(){this.checkForDisplay()},immediate:!0}}},Bme={class:"tooltip-text"},Dme={key:0,class:"tooltip-text"};function Fme(t,e,n,r,o,a){const l=c.resolveComponent("Tooltip"),s=ld;return c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle(a.position),class:"region-tooltip"},[c.createVNode(s,{ref:"tooltip",visible:n.visible,placement:"top","show-arrow":!1,teleported:!1,trigger:"manual","popper-class":"tooltip-popper non-selectable","virtual-triggering":""},{default:c.withCtx(()=>[c.createElementVNode("div",Bme,c.toDisplayString(n.label),1),n.region?(c.openBlock(),c.createElementBlock("div",Dme,"Region: "+c.toDisplayString(n.region),1)):c.createCommentVNode("",!0),c.withDirectives(c.createVNode(l,{class:"p-tooltip",ref:"annotationTooltip",annotationDisplay:!0,annotationEntry:t.annotationEntry},null,8,["annotationEntry"]),[[c.vShow,n.annotationDisplay]])]),_:1},8,["visible"])],4)}const qR=f0(Nme,[["render",Fme],["__scopeId","data-v-0ca18748"]]),XR=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},zme=["xlink:href"],Ume={__name:"SvgIcon",props:{icon:{type:String,required:!0},spin:{type:Boolean,default:!1}},setup(t){return(e,n)=>(c.openBlock(),c.createElementBlock("svg",{class:c.normalizeClass(["map-icon",{"map-icon-spin":t.spin}])},[c.createElementVNode("use",{"xlink:href":`#${t.icon}`},null,8,zme)],2))}},jme=XR(Ume,[["__scopeId","data-v-4c9c4762"]]),KR=`<?xml version="1.0" encoding="UTF-8"?>
|
|
1030
1030
|
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
1031
1031
|
<title>2horpanel</title>
|
|
1032
1032
|
<g id="2horpanel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
@@ -4597,4 +4597,4 @@ void main() {
|
|
|
4597
4597
|
`)!==-1&&(L=L.replace(/\r\n/g,`
|
|
4598
4598
|
`)),L.indexOf(`\\
|
|
4599
4599
|
`)!==-1&&(L=L.replace(/\\\n/g,""));for(var C=L.split(`
|
|
4600
|
-
`),A="",H="",k=0,B=[],D=typeof"".trimLeft=="function",z=0,q=C.length;z<q;z++)if(A=C[z],A=D?A.trimLeft():A.trim(),k=A.length,k!==0&&(H=A.charAt(0),H!=="#"))if(H==="v"){var F=A.split(/\s+/);switch(F[0]){case"v":S.vertices.push(parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3])),7<=F.length?S.colors.push(parseFloat(F[4]),parseFloat(F[5]),parseFloat(F[6])):S.colors.push(void 0,void 0,void 0);break;case"vn":S.normals.push(parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3]));break;case"vt":S.uvs.push(parseFloat(F[1]),parseFloat(F[2]))}}else if(H==="f"){for(var Z,K=A.substr(1).trim(),X=K.split(/\s+/),te=[],J=0,he=X.length;J<he;J++)if(Z=X[J],0<Z.length){var xe=Z.split("/");te.push(xe)}for(var ee=te[0],oe=1,de=te.length-1;oe<de;oe++){var fe=te[oe],Ae=te[oe+1];S.addFace(ee[0],fe[0],Ae[0],ee[1],fe[1],Ae[1],ee[2],fe[2],Ae[2])}}else if(H==="l"){var Se=A.substring(1).trim().split(" "),Qe=[],Le=[];if(A.indexOf("/")===-1)Qe=Se;else for(var Ce,je=0,me=Se.length;je<me;je++)Ce=Se[je].split("/"),Ce[0]!==""&&Qe.push(Ce[0]),Ce[1]!==""&&Le.push(Ce[1]);S.addLineGeometry(Qe,Le)}else if(H==="p"){var Ne=A.substr(1).trim(),Ie=Ne.split(" ");S.addPointGeometry(Ie)}else if((B=l.exec(A))!==null){var Ke=(" "+B[0].substr(1).trim()).substr(1);S.startObject(Ke)}else if(h.test(A))S.object.startMaterial(A.substring(7).trim(),S.materialLibraries);else if(s.test(A))S.materialLibraries.push(A.substring(7).trim());else if(u.test(A))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if(H==="s"){if(B=A.split(" "),1<B.length){var Ye=B[1].trim().toLowerCase();S.object.smooth=Ye!=="0"&&Ye!=="off"}else S.object.smooth=!0;var ht=S.object.currentMaterial();ht&&(ht.smooth=S.object.smooth)}else{if(A==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+A+'"')}S.finalize();var dt=new a.Group;dt.materialLibraries=[].concat(S.materialLibraries);var Ee=S.objects.length!==1||S.objects[0].geometry.vertices.length!==0;if(Ee==!0)for(var ye=0,it=S.objects.length;ye<it;ye++){var Ve=S.objects[ye],yt=Ve.geometry,bt=Ve.materials,_t=yt.type==="Line",nt=yt.type==="Points",Je=!1;if(yt.vertices.length!==0){var et=new a.BufferGeometry;et.setAttribute("position",new a.Float32BufferAttribute(yt.vertices,3)),0<yt.normals.length&&et.setAttribute("normal",new a.Float32BufferAttribute(yt.normals,3)),0<yt.colors.length&&(Je=!0,et.setAttribute("color",new a.Float32BufferAttribute(yt.colors,3))),yt.hasUVIndices===!0&&et.setAttribute("uv",new a.Float32BufferAttribute(yt.uvs,2));for(var Xe=[],Lt=0,vt=bt.length;Lt<vt;Lt++){var Et=bt[Lt],kt=Et.name+"_"+Et.smooth+"_"+Je,pt=S.materials[kt];if(this.materials!==null){if(pt=this.materials.create(Et.name),_t&&pt&&!(pt instanceof a.LineBasicMaterial)){var Qn=new a.LineBasicMaterial;a.Material.prototype.copy.call(Qn,pt),Qn.color.copy(pt.color),pt=Qn}else if(nt&&pt&&!(pt instanceof a.PointsMaterial)){var Jt=new a.PointsMaterial({size:10,sizeAttenuation:!1});a.Material.prototype.copy.call(Jt,pt),Jt.color.copy(pt.color),Jt.map=pt.map,pt=Jt}}pt===void 0&&(pt=_t?new a.LineBasicMaterial:nt?new a.PointsMaterial({size:1,sizeAttenuation:!1}):new a.MeshPhongMaterial,pt.name=Et.name,pt.flatShading=!Et.smooth,pt.vertexColors=Je,S.materials[kt]=pt),Xe.push(pt)}var Mn=void 0;if(1<Xe.length){for(var ln,Mt=0,ze=bt.length;Mt<ze;Mt++)ln=bt[Mt],et.addGroup(ln.groupStart,ln.groupCount,Mt);Mn=_t?new a.LineSegments(et,Xe):nt?new a.Points(et,Xe):new a.Mesh(et,Xe)}else Mn=_t?new a.LineSegments(et,Xe[0]):nt?new a.Points(et,Xe[0]):new a.Mesh(et,Xe[0]);Mn.name=Ve.name,dt.add(Mn)}}else if(0<S.vertices.length){var mt=new a.PointsMaterial({size:1,sizeAttenuation:!1}),Ht=new a.BufferGeometry;Ht.setAttribute("position",new a.Float32BufferAttribute(S.vertices,3)),0<S.colors.length&&S.colors[0]!==void 0&&(Ht.setAttribute("color",new a.Float32BufferAttribute(S.colors,3)),mt.vertexColors=!0);var pn=new a.Points(Ht,mt);dt.add(pn)}return dt}}},function(n,r,o){var a=o(14).JSONLoader;r.PrimitivesLoader=function(){var l=0;this.crossOrigin="Anonymous";var s=new a,h=[];this.load=(d,p,f,m)=>{if(20>l){++l,s.crossOrigin=this.crossOrigin;var y=new u(p,this),v=new u(m,this);s.load(d,y,f,v)}else h.push({url:d,onLoad:p,onProgress:f,onError:m})},this.loadFromWaitingList=()=>{var d=h.shift();d&&this.load(d.url,d.onLoad,d.onProgress,d.onError)};var u=function(d,p){return function(){--l,d(...arguments),p.loadFromWaitingList()}};this.parse=d=>s.parse(d)}},function(n,r,o){o(3);var a=o(36).GLTFLoader,l=function(){var s=this;this.parseGLTFObjects=(h,u,d,p)=>{var f=u;if(d!==0){if(h.type!=="Object3D"){var m;if(h.type==="Mesh"?m=new(o(2)).Geometry:h.type==="LineSegments"?m=new(o(20)).Lines:h.type==="Points"&&(m=new(o(17)).Pointset),m){var y=!1,v=!1;h.geometry&&h.geometry.morphAttributes&&(y=!!h.geometry.morphAttributes.position,v=!!h.geometry.morphAttributes.color),m.setMesh(h.clone(),y,v),u.addZincObject(m),m.groupName=m.morph.name,m.morph.matrixAutoUpdate=!0,p!=null&&typeof p=="function"&&p(m)}}else if(h.name!==""&&(u&&(f=u.findOrCreateChildFromPath(h.name)),f)){var _=f.getGroup();_.position.copy(h.position),_.rotation.copy(h.rotation),_.quaternion.copy(h.quaternion),_.matrixAutoUpdate=!0}}d++,h.children.forEach(x=>{s.parseGLTFObjects(x,f,d,p)})},this.setCamera=h=>{h.viewAll();var u=h.getZincCameraControls(),d=u.getCurrentViewport();u.addViewport("default",d),u.setDefaultViewport("default")},this.load=(h,u,d,p,f)=>{var m=d.substring(0,d.lastIndexOf("/")+1),y=d.substring(d.lastIndexOf("/")+1,d.length),v=new a().setPath(m);v.load(y,function(_){console.log(_),s.parseGLTFObjects(_.scene,u,0,p),s.setCamera(h),f!=null&&typeof f=="function"&&f()})}};r.GLTFToZincJSLoader=l},function(n,r){n.exports=fMe},function(n,r,o){var a=o(38).GLTFExporter,l=function(s){var h=s;this.exportGLTF=u=>{var d=h.getRootRegion(),p=d.getAllObjects(!0),f=[];p.forEach(v=>{v.animationClip&&f.push({clip:v.animationClip[0],mesh:v.morph})});var m=new a,y={binary:u,animations:f};return new Promise(v=>{m.parse(h.getThreeJSScene(),function(_){v(_)},y)})}};r.SceneExporter=l},function(n,r,o){o.r(r),o.d(r,"GLTFExporter",function(){return l});var a=o(3);class l{constructor(){this.pluginCallbacks=[],this.register(function(F){return new B(F)}),this.register(function(F){return new D(F)}),this.register(function(F){return new z(F)})}register(F){return this.pluginCallbacks.indexOf(F)===-1&&this.pluginCallbacks.push(F),this}unregister(F){return this.pluginCallbacks.indexOf(F)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(F),1),this}parse(F,Z,K){for(var X=new k,te=[],J=0,he=this.pluginCallbacks.length;J<he;J++)te.push(this.pluginCallbacks[J](X));X.setPlugins(te),X.write(F,Z,K)}}var s={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,FLOAT:5126,UNSIGNED_INT:5125,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,REPEAT:10497},h={};h[a.NearestFilter]=s.NEAREST,h[a.NearestMipmapNearestFilter]=s.NEAREST_MIPMAP_NEAREST,h[a.NearestMipmapLinearFilter]=s.NEAREST_MIPMAP_LINEAR,h[a.LinearFilter]=s.LINEAR,h[a.LinearMipmapNearestFilter]=s.LINEAR_MIPMAP_NEAREST,h[a.LinearMipmapLinearFilter]=s.LINEAR_MIPMAP_LINEAR,h[a.ClampToEdgeWrapping]=s.CLAMP_TO_EDGE,h[a.RepeatWrapping]=s.REPEAT,h[a.MirroredRepeatWrapping]=s.MIRRORED_REPEAT;var u={scale:"scale",position:"translation",quaternion:"rotation",morphTargetInfluences:"weights"},d=12,p=1179937895,f=2,m=8,y=1313821514,v=5130562;function _(q,F){return q.length===F.length&&q.every(function(Z,K){return Z===F[K]})}function x(q){if(window.TextEncoder!==void 0)return new TextEncoder().encode(q).buffer;for(var F,Z=new Uint8Array(new ArrayBuffer(q.length)),K=0,X=q.length;K<X;K++)F=q.charCodeAt(K),Z[K]=255<F?32:F;return Z.buffer}function L(q){return _(q.elements,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}function S(q,F,Z){for(var K={min:Array(q.itemSize).fill(Number.POSITIVE_INFINITY),max:Array(q.itemSize).fill(Number.NEGATIVE_INFINITY)},X=F;X<F+Z;X++)for(var te,J=0;J<q.itemSize;J++)te=void 0,4<q.itemSize?te=q.array[X*q.itemSize+J]:J===0?te=q.getX(X):J===1?te=q.getY(X):J===2?te=q.getZ(X):J==3&&(te=q.getW(X)),K.min[J]=Math.min(K.min[J],te),K.max[J]=Math.max(K.max[J],te);return K}function C(q){return 4*Math.ceil(q/4)}function A(q){var F=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,Z=C(q.byteLength);if(Z!==q.byteLength){var K=new Uint8Array(Z);if(K.set(new Uint8Array(q)),F!==0)for(var X=q.byteLength;X<Z;X++)K[X]=F;return K.buffer}return q}var H=null;class k{constructor(){this.plugins=[],this.options={},this.pending=[],this.buffers=[],this.byteOffset=0,this.buffers=[],this.nodeMap=new Map,this.skins=[],this.extensionsUsed={},this.uids=new Map,this.uid=0,this.json={asset:{version:"2.0",generator:"THREE.GLTFExporter"}},this.cache={meshes:new Map,attributes:new Map,attributesNormalized:new Map,materials:new Map,textures:new Map,images:new Map}}setPlugins(F){this.plugins=F}write(F,Z,K){this.options=Object.assign({},{binary:!1,trs:!1,onlyVisible:!0,truncateDrawRange:!0,embedImages:!0,maxTextureSize:1/0,animations:[],includeCustomExtensions:!1},K),0<this.options.animations.length&&(this.options.trs=!0),this.processInput(F);var X=this;Promise.all(this.pending).then(function(){var te=X.buffers,J=X.json,he=X.options,xe=X.extensionsUsed,ee=new Blob(te,{type:"application/octet-stream"}),oe=Object.keys(xe);if(0<oe.length&&(J.extensionsUsed=oe),J.buffers&&0<J.buffers.length&&(J.buffers[0].byteLength=ee.size),he.binary===!0){var de=new window.FileReader;de.readAsArrayBuffer(ee),de.onloadend=function(){var Ae=A(de.result),Se=new DataView(new ArrayBuffer(m));Se.setUint32(0,Ae.byteLength,!0),Se.setUint32(4,v,!0);var Qe=A(x(JSON.stringify(J)),32),Le=new DataView(new ArrayBuffer(m));Le.setUint32(0,Qe.byteLength,!0),Le.setUint32(4,y,!0);var Ce=new ArrayBuffer(d),je=new DataView(Ce);je.setUint32(0,p,!0),je.setUint32(4,f,!0);var me=d+Le.byteLength+Qe.byteLength+Se.byteLength+Ae.byteLength;je.setUint32(8,me,!0);var Ne=new Blob([Ce,Le,Qe,Se,Ae],{type:"application/octet-stream"}),Ie=new window.FileReader;Ie.readAsArrayBuffer(Ne),Ie.onloadend=function(){Z(Ie.result)}}}else if(J.buffers&&0<J.buffers.length){var fe=new window.FileReader;fe.readAsDataURL(ee),fe.onloadend=function(){var Ae=fe.result;J.buffers[0].uri=Ae,Z(J)}}else Z(J)})}serializeUserData(F,Z){if(!(F.userData&&F.userData.isZincObject)&&Object.keys(F.userData).length!==0){var K=this.options,X=this.extensionsUsed;try{var te=JSON.parse(JSON.stringify(F.userData));if(K.includeCustomExtensions&&te.gltfExtensions){for(var J in Z.extensions===void 0&&(Z.extensions={}),te.gltfExtensions)Z.extensions[J]=te.gltfExtensions[J],X[J]=!0;delete te.gltfExtensions}0<Object.keys(te).length&&(Z.extras=te)}catch(he){console.warn("THREE.GLTFExporter: userData of '"+F.name+"' won't be serialized because of JSON.stringify error - "+he.message)}}}getUID(F){return this.uids.has(F)||this.uids.set(F,this.uid++),this.uids.get(F)}isNormalizedNormalAttribute(F){var Z=this.cache;if(Z.attributesNormalized.has(F))return!1;for(var K=new a.Vector3,X=0,te=F.count;X<te;X++)if(5e-4<Math.abs(K.fromBufferAttribute(F,X).length()-1))return!1;return!0}createNormalizedNormalAttribute(F){var Z=this.cache;if(Z.attributesNormalized.has(F))return Z.attributesNormalized.get(F);for(var K=F.clone(),X=new a.Vector3,te=0,J=K.count;te<J;te++)X.fromBufferAttribute(K,te),X.x===0&&X.y===0&&X.z===0?X.setX(1):X.normalize(),K.setXYZ(te,X.x,X.y,X.z);return Z.attributesNormalized.set(F,K),K}applyTextureTransform(F,Z){var K=!1,X={};(Z.offset.x!==0||Z.offset.y!==0)&&(X.offset=Z.offset.toArray(),K=!0),Z.rotation!==0&&(X.rotation=Z.rotation,K=!0),(Z.repeat.x!==1||Z.repeat.y!==1)&&(X.scale=Z.repeat.toArray(),K=!0),K&&(F.extensions=F.extensions||{},F.extensions.KHR_texture_transform=X,this.extensionsUsed.KHR_texture_transform=!0)}processBuffer(F){var Z=this.json,K=this.buffers;return Z.buffers||(Z.buffers=[{byteLength:0}]),K.push(F),0}processBufferView(F,Z,K,X,te){var J=this.json;J.bufferViews||(J.bufferViews=[]);for(var he=Z===s.UNSIGNED_BYTE?1:Z===s.UNSIGNED_SHORT?2:4,xe=C(X*F.itemSize*he),ee=new DataView(new ArrayBuffer(xe)),oe=0,de=K;de<K+X;de++)for(var fe,Ae=0;Ae<F.itemSize;Ae++)fe=void 0,4<F.itemSize?fe=F.array[de*F.itemSize+Ae]:Ae===0?fe=F.getX(de):Ae===1?fe=F.getY(de):Ae===2?fe=F.getZ(de):Ae==3&&(fe=F.getW(de)),Z===s.FLOAT?ee.setFloat32(oe,fe,!0):Z===s.UNSIGNED_INT?ee.setUint32(oe,fe,!0):Z===s.UNSIGNED_SHORT?ee.setUint16(oe,fe,!0):Z===s.UNSIGNED_BYTE&&ee.setUint8(oe,fe),oe+=he;var Se={buffer:this.processBuffer(ee.buffer),byteOffset:this.byteOffset,byteLength:xe};te!==void 0&&(Se.target=te),te===s.ARRAY_BUFFER&&(Se.byteStride=F.itemSize*he),this.byteOffset+=xe,J.bufferViews.push(Se);var Qe={id:J.bufferViews.length-1,byteLength:0};return Qe}processBufferViewImage(F){var Z=this,K=Z.json;return K.bufferViews||(K.bufferViews=[]),new Promise(function(X){var te=new window.FileReader;te.readAsArrayBuffer(F),te.onloadend=function(){var J=A(te.result),he={buffer:Z.processBuffer(J),byteOffset:Z.byteOffset,byteLength:J.byteLength};Z.byteOffset+=J.byteLength,X(K.bufferViews.push(he)-1)}})}processAccessor(F,Z,K,X){var te,J=this.options,he=this.json;if(F.array.constructor===Float32Array)te=s.FLOAT;else if(F.array.constructor===Uint32Array)te=s.UNSIGNED_INT;else if(F.array.constructor===Uint16Array)te=s.UNSIGNED_SHORT;else if(F.array.constructor===Uint8Array)te=s.UNSIGNED_BYTE;else throw new Error("THREE.GLTFExporter: Unsupported bufferAttribute component type.");if(K===void 0&&(K=0),X===void 0&&(X=F.count),J.truncateDrawRange&&Z!==void 0&&Z.index===null){var xe=K+X,ee=Z.drawRange.count===1/0?F.count:Z.drawRange.start+Z.drawRange.count;K=Math.max(K,Z.drawRange.start),X=Math.min(xe,ee)-K,0>X&&(X=0)}if(X===0)return null;var oe,de=S(F,K,X);Z!==void 0&&(oe=F===Z.index?s.ELEMENT_ARRAY_BUFFER:s.ARRAY_BUFFER);var fe=this.processBufferView(F,te,K,X,oe),Ae={bufferView:fe.id,byteOffset:fe.byteOffset,componentType:te,count:X,max:de.max,min:de.min,type:{1:"SCALAR",2:"VEC2",3:"VEC3",4:"VEC4",16:"MAT4"}[F.itemSize]};return F.normalized===!0&&(Ae.normalized=!0),he.accessors||(he.accessors=[]),he.accessors.push(Ae)-1}processImage(F,Z,K){var X=this,te=X.cache,J=X.json,he=X.options,xe=X.pending;te.images.has(F)||te.images.set(F,{});var ee=te.images.get(F),oe=Z===a.RGBAFormat?"image/png":"image/jpeg",de=oe+":flipY/"+K.toString();if(ee[de]!==void 0)return ee[de];J.images||(J.images=[]);var fe={mimeType:oe};if(he.embedImages){var Ae=H=H||document.createElement("canvas");Ae.width=Math.min(F.width,he.maxTextureSize),Ae.height=Math.min(F.height,he.maxTextureSize);var Se=Ae.getContext("2d");if(K===!0&&(Se.translate(0,Ae.height),Se.scale(1,-1)),typeof HTMLImageElement<"u"&&F instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&F instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&F instanceof OffscreenCanvas||typeof ImageBitmap<"u"&&F instanceof ImageBitmap)Se.drawImage(F,0,0,Ae.width,Ae.height);else{Z!==a.RGBAFormat&&Z!==a.RGBFormat&&console.error("GLTFExporter: Only RGB and RGBA formats are supported."),(F.width>he.maxTextureSize||F.height>he.maxTextureSize)&&console.warn("GLTFExporter: Image size is bigger than maxTextureSize",F);var Qe=new Uint8ClampedArray(4*(F.height*F.width));if(Z===a.RGBAFormat)for(var Le=0;Le<Qe.length;Le+=4)Qe[Le+0]=F.data[Le+0],Qe[Le+1]=F.data[Le+1],Qe[Le+2]=F.data[Le+2],Qe[Le+3]=F.data[Le+3];else for(var Ce=0,je=0;Ce<Qe.length;Ce+=4,je+=3)Qe[Ce+0]=F.data[je+0],Qe[Ce+1]=F.data[je+1],Qe[Ce+2]=F.data[je+2],Qe[Ce+3]=255;Se.putImageData(new ImageData(Qe,F.width,F.height),0,0)}he.binary===!0?xe.push(new Promise(function(Ne){Ae.toBlob(function(Ie){X.processBufferViewImage(Ie).then(function(Ke){fe.bufferView=Ke,Ne()})},oe)})):fe.uri=Ae.toDataURL(oe)}else fe.uri=F.src;var me=J.images.push(fe)-1;return ee[de]=me,me}processSampler(F){var Z=this.json;Z.samplers||(Z.samplers=[]);var K={magFilter:h[F.magFilter],minFilter:h[F.minFilter],wrapS:h[F.wrapS],wrapT:h[F.wrapT]};return Z.samplers.push(K)-1}processTexture(F){var Z=this.cache,K=this.json;if(Z.textures.has(F))return Z.textures.get(F);K.textures||(K.textures=[]);var X={sampler:this.processSampler(F),source:this.processImage(F.image,F.format,F.flipY)};F.name&&(X.name=F.name),this._invokeAll(function(J){J.writeTexture&&J.writeTexture(F,X)});var te=K.textures.push(X)-1;return Z.textures.set(F,te),te}processMaterial(F){var Z=this.cache,K=this.json;if(Z.materials.has(F))return Z.materials.get(F);if(F.isShaderMaterial)return console.warn("GLTFExporter: THREE.ShaderMaterial not supported."),null;K.materials||(K.materials=[]);var X={pbrMetallicRoughness:{}};F.isMeshStandardMaterial!==!0&&F.isMeshBasicMaterial!==!0&&console.warn("GLTFExporter: Use MeshStandardMaterial or MeshBasicMaterial for best results.");var te=F.color.toArray().concat([F.opacity]);if(_(te,[1,1,1,1])||(X.pbrMetallicRoughness.baseColorFactor=te),F.isMeshStandardMaterial?(X.pbrMetallicRoughness.metallicFactor=F.metalness,X.pbrMetallicRoughness.roughnessFactor=F.roughness):(X.pbrMetallicRoughness.metallicFactor=.5,X.pbrMetallicRoughness.roughnessFactor=.5),F.metalnessMap||F.roughnessMap)if(F.metalnessMap===F.roughnessMap){var J={index:this.processTexture(F.metalnessMap)};this.applyTextureTransform(J,F.metalnessMap),X.pbrMetallicRoughness.metallicRoughnessTexture=J}else console.warn("THREE.GLTFExporter: Ignoring metalnessMap and roughnessMap because they are not the same Texture.");if(F.map){var he={index:this.processTexture(F.map)};this.applyTextureTransform(he,F.map),X.pbrMetallicRoughness.baseColorTexture=he}if(F.emissive){var xe=F.emissive.clone().multiplyScalar(F.emissiveIntensity),ee=Math.max(xe.r,xe.g,xe.b);if(1<ee&&(xe.multiplyScalar(1/ee),console.warn("THREE.GLTFExporter: Some emissive components exceed 1; emissive has been limited")),0<ee&&(X.emissiveFactor=xe.toArray()),F.emissiveMap){var oe={index:this.processTexture(F.emissiveMap)};this.applyTextureTransform(oe,F.emissiveMap),X.emissiveTexture=oe}}if(F.normalMap){var de={index:this.processTexture(F.normalMap)};F.normalScale&&F.normalScale.x!==-1&&(F.normalScale.x!==F.normalScale.y&&console.warn("THREE.GLTFExporter: Normal scale components are different, ignoring Y and exporting X."),de.scale=F.normalScale.x),this.applyTextureTransform(de,F.normalMap),X.normalTexture=de}if(F.aoMap){var fe={index:this.processTexture(F.aoMap),texCoord:1};F.aoMapIntensity!==1&&(fe.strength=F.aoMapIntensity),this.applyTextureTransform(fe,F.aoMap),X.occlusionTexture=fe}F.transparent?X.alphaMode="BLEND":0<F.alphaTest&&(X.alphaMode="MASK",X.alphaCutoff=F.alphaTest),F.side===a.DoubleSide&&(X.doubleSided=!0),F.name!==""&&(X.name=F.name),this.serializeUserData(F,X),this._invokeAll(function(Se){Se.writeMaterial&&Se.writeMaterial(F,X)});var Ae=K.materials.push(X)-1;return Z.materials.set(F,Ae),Ae}processMesh(F){var Z=this.cache,K=this.json,X=[F.geometry.uuid];if(Array.isArray(F.material))for(var te=0,J=F.material.length;te<J;te++)X.push(F.material[te].uuid);else X.push(F.material.uuid);var he=X.join(":");if(Z.meshes.has(he))return Z.meshes.get(he);var xe,ee=F.geometry;if(xe=F.isLineSegments?s.LINES:F.isLineLoop?s.LINE_LOOP:F.isLine?s.LINE_STRIP:F.isPoints?s.POINTS:F.material.wireframe?s.LINES:s.TRIANGLES,ee.isBufferGeometry!==!0)throw new Error("THREE.GLTFExporter: Geometry is not of type THREE.BufferGeometry.");var oe={},de={},fe=[],Ae=[],Se={uv:"TEXCOORD_0",uv2:"TEXCOORD_1",color:"COLOR_0",skinWeight:"WEIGHTS_0",skinIndex:"JOINTS_0"},Qe=ee.getAttribute("normal");Qe===void 0||this.isNormalizedNormalAttribute(Qe)||(console.warn("THREE.GLTFExporter: Creating normalized normal attribute from the non-normalized one."),ee.setAttribute("normal",this.createNormalizedNormalAttribute(Qe)));var Le=null;for(var Ce in ee.attributes)if(Ce.substr(0,5)!=="morph"){var je=ee.attributes[Ce];Ce=Se[Ce]||Ce.toUpperCase();var me=/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/;if(me.test(Ce)||(Ce="_"+Ce),Z.attributes.has(this.getUID(je))){de[Ce]=Z.attributes.get(this.getUID(je));continue}Le=null;var Ne=je.array;Ce!=="JOINTS_0"||Ne instanceof Uint16Array||Ne instanceof Uint8Array||(console.warn('GLTFExporter: Attribute "skinIndex" converted to type UNSIGNED_SHORT.'),Le=new a.BufferAttribute(new Uint16Array(Ne),je.itemSize,je.normalized));var Ie=this.processAccessor(Le||je,ee);Ie!==null&&(de[Ce]=Ie,Z.attributes.set(this.getUID(je),Ie))}if(Qe!==void 0&&ee.setAttribute("normal",Qe),Object.keys(de).length===0)return null;if(F.morphTargetInfluences!==void 0&&0<F.morphTargetInfluences.length){var Ke=[],Ye=[],ht={};if(F.morphTargetDictionary!==void 0)for(var dt in F.morphTargetDictionary)ht[F.morphTargetDictionary[dt]]=dt;for(var Ee=0;Ee<F.morphTargetInfluences.length;++Ee){var ye={},it=!1;for(var Ve in ee.morphAttributes){if(Ve!="position"&&Ve!=="normal"&&Ve!=="color"){it||(console.warn("GLTFExporter: Only POSITION and NORMAL morph are supported."),it=!0);continue}var yt=ee.morphAttributes[Ve][Ee],bt=Ve.toUpperCase();Se[Ve]&&(bt=Se[Ve]);var _t=ee.attributes[Ve];if(Z.attributes.has(this.getUID(yt))){ye[bt]=Z.attributes.get(this.getUID(yt));continue}var nt=_t.clone();if(!ee.morphTargetsRelative)if(_t)for(var Je=0,et=yt.count;Je<et;Je++)_t.count>Je&&nt.setXYZ(Je,yt.getX(Je)-_t.getX(Je),yt.getY(Je)-_t.getY(Je),yt.getZ(Je)-_t.getZ(Je));else for(var Xe=0,Lt=yt.count;Xe<Lt;Xe++)nt.setXYZ(Xe,0,0,0);ye[bt]=this.processAccessor(nt,ee),Z.attributes.set(this.getUID(_t),ye[bt])}Ae.push(ye),Ke.push(F.morphTargetInfluences[Ee]),F.morphTargetDictionary!==void 0&&Ye.push(ht[Ee])}oe.weights=Ke,0<Ye.length&&(oe.extras={},oe.extras.targetNames=Ye)}var vt=Array.isArray(F.material);if(vt&&ee.groups.length===0)return null;for(var Et,kt=vt?F.material:[F.material],pt=vt?ee.groups:[{materialIndex:0,start:void 0,count:void 0}],Qn=0,Jt=pt.length;Qn<Jt;Qn++){if(Et={mode:xe,attributes:de},this.serializeUserData(ee,Et),0<Ae.length&&(Et.targets=Ae),ee.index!==null){var Mn=this.getUID(ee.index);(pt[Qn].start!==void 0||pt[Qn].count!==void 0)&&(Mn+=":"+pt[Qn].start+":"+pt[Qn].count),Z.attributes.has(Mn)?Et.indices=Z.attributes.get(Mn):(Et.indices=this.processAccessor(ee.index,ee,pt[Qn].start,pt[Qn].count),Z.attributes.set(Mn,Et.indices)),Et.indices===null&&delete Et.indices}var ln=this.processMaterial(kt[pt[Qn].materialIndex]);ln!==null&&(Et.material=ln),fe.push(Et)}oe.primitives=fe,K.meshes||(K.meshes=[]),this._invokeAll(function(ze){ze.writeMesh&&ze.writeMesh(F,oe)});var Mt=K.meshes.push(oe)-1;return Z.meshes.set(he,Mt),Mt}processCamera(F){var Z=this.json;Z.cameras||(Z.cameras=[]);var K=F.isOrthographicCamera,X={type:K?"orthographic":"perspective"};return K?X.orthographic={xmag:2*F.right,ymag:2*F.top,zfar:0>=F.far?.001:F.far,znear:0>F.near?0:F.near}:X.perspective={aspectRatio:F.aspect,yfov:a.MathUtils.degToRad(F.fov),zfar:0>=F.far?.001:F.far,znear:0>F.near?0:F.near},F.name!==""&&(X.name=F.type),Z.cameras.push(X)-1}processAnimation(F,Z){var K=this.json,X=this.nodeMap;K.animations||(K.animations=[]),F=l.Utils.mergeMorphTargetTracks(F.clone(),Z);for(var te=F.tracks,J=[],he=[],xe=0;xe<te.length;++xe){var ee=te[xe],oe=a.PropertyBinding.parseTrackName(ee.name),de=a.PropertyBinding.findNode(Z,oe.nodeName),fe=u[oe.propertyName];if(oe.objectName==="bones"&&(de.isSkinnedMesh===!0?de=de.skeleton.getBoneByName(oe.objectIndex):de=void 0),!de||!fe)return console.warn('THREE.GLTFExporter: Could not export animation track "%s".',ee.name),null;var Ae=ee.values.length/ee.times.length;fe===u.morphTargetInfluences&&(Ae/=de.morphTargetInfluences.length);var Se=void 0;ee.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline===!0?(Se="CUBICSPLINE",Ae/=3):ee.getInterpolation()===a.InterpolateDiscrete?Se="STEP":Se="LINEAR",he.push({input:this.processAccessor(new a.BufferAttribute(ee.times,1)),output:this.processAccessor(new a.BufferAttribute(ee.values,Ae)),interpolation:Se}),J.push({sampler:he.length-1,target:{node:X.get(de),path:fe}})}return K.animations.push({name:F.name||"clip_"+K.animations.length,samplers:he,channels:J}),K.animations.length-1}processSkin(F){var Z=this.json,K=this.nodeMap,X=Z.nodes[K.get(F)],te=F.skeleton;if(te===void 0)return null;var J=F.skeleton.bones[0];if(J===void 0)return null;for(var he=[],xe=new Float32Array(16*te.bones.length),ee=new a.Matrix4,oe=0;oe<te.bones.length;++oe)he.push(K.get(te.bones[oe])),ee.copy(te.boneInverses[oe]),ee.multiply(F.bindMatrix).toArray(xe,16*oe);Z.skins===void 0&&(Z.skins=[]),Z.skins.push({inverseBindMatrices:this.processAccessor(new a.BufferAttribute(xe,16)),joints:he,skeleton:K.get(J)});var de=X.skin=Z.skins.length-1;return de}processNode(F){var Z=this.json,K=this.options,X=this.nodeMap;Z.nodes||(Z.nodes=[]);var te={};if(K.trs){var J=F.quaternion.toArray(),he=F.position.toArray(),xe=F.scale.toArray();_(J,[0,0,0,1])||(te.rotation=J),_(he,[0,0,0])||(te.translation=he),_(xe,[1,1,1])||(te.scale=xe)}else F.matrixAutoUpdate&&F.updateMatrix(),L(F.matrix)===!1&&(te.matrix=F.matrix.elements);if(F.name!==""&&(te.name=F.name+""),this.serializeUserData(F,te),F.isMesh||F.isLine||F.isPoints){var ee=this.processMesh(F);ee!==null&&(te.mesh=ee)}else F.isCamera&&(te.camera=this.processCamera(F));if(F.isSkinnedMesh&&this.skins.push(F),0<F.children.length){for(var oe,de=[],fe=0,Ae=F.children.length;fe<Ae;fe++)if(oe=F.children[fe],oe.visible||K.onlyVisible===!1){var Se=this.processNode(oe);Se!==null&&de.push(Se)}0<de.length&&(te.children=de)}this._invokeAll(function(Le){Le.writeNode&&Le.writeNode(F,te)});var Qe=Z.nodes.push(te)-1;return X.set(F,Qe),Qe}processScene(F){var Z=this.json,K=this.options;Z.scenes||(Z.scenes=[],Z.scene=0);var X={};F.name!==""&&(X.name=F.name),Z.scenes.push(X);for(var te,J=[],he=0,xe=F.children.length;he<xe;he++)if(te=F.children[he],te.visible||K.onlyVisible===!1){var ee=this.processNode(te);ee!==null&&J.push(ee)}0<J.length&&(X.nodes=J),this.serializeUserData(F,X)}processObjects(F){var Z=new a.Scene;Z.name="AuxScene";for(var K=0;K<F.length;K++)Z.children.push(F[K]);this.processScene(Z)}processInput(F){var Z=this.options;F=F instanceof Array?F:[F],this._invokeAll(function(he){he.beforeParse&&he.beforeParse(F)});for(var K=[],X=0;X<F.length;X++)F[X]instanceof a.Scene?this.processScene(F[X]):K.push(F[X]);0<K.length&&this.processObjects(K);for(var te=0;te<this.skins.length;++te)this.processSkin(this.skins[te]);for(var J=0;J<Z.animations.length;++J)this.processAnimation(Z.animations[J].clip,Z.animations[J].mesh);this._invokeAll(function(he){he.afterParse&&he.afterParse(F)})}_invokeAll(F){for(var Z=0,K=this.plugins.length;Z<K;Z++)F(this.plugins[Z])}}class B{constructor(F){this.writer=F,this.name="KHR_lights_punctual"}writeNode(F,Z){if(F.isLight){if(!F.isDirectionalLight&&!F.isPointLight&&!F.isSpotLight)return void console.warn("THREE.GLTFExporter: Only directional, point, and spot lights are supported.",F);var K=this.writer,X=K.json,te=K.extensionsUsed,J={};F.name&&(J.name=F.name),J.color=F.color.toArray(),J.intensity=F.intensity,F.isDirectionalLight?J.type="directional":F.isPointLight?(J.type="point",0<F.distance&&(J.range=F.distance)):F.isSpotLight&&(J.type="spot",0<F.distance&&(J.range=F.distance),J.spot={},J.spot.innerConeAngle=-1*((F.penumbra-1)*F.angle),J.spot.outerConeAngle=F.angle),F.decay!==void 0&&F.decay!==2&&console.warn("THREE.GLTFExporter: Light decay may be lost. glTF is physically-based, and expects light.decay=2."),F.target&&(F.target.parent!==F||F.target.position.x!==0||F.target.position.y!==0||F.target.position.z!==-1)&&console.warn("THREE.GLTFExporter: Light direction may be lost. For best results, make light.target a child of the light with position 0,0,-1."),te[this.name]||(X.extensions=X.extensions||{},X.extensions[this.name]={lights:[]},te[this.name]=!0);var he=X.extensions[this.name].lights;he.push(J),Z.extensions=Z.extensions||{},Z.extensions[this.name]={light:he.length-1}}}}class D{constructor(F){this.writer=F,this.name="KHR_materials_unlit"}writeMaterial(F,Z){if(F.isMeshBasicMaterial){var K=this.writer,X=K.extensionsUsed;Z.extensions=Z.extensions||{},Z.extensions[this.name]={},X[this.name]=!0,Z.pbrMetallicRoughness.metallicFactor=0,Z.pbrMetallicRoughness.roughnessFactor=.9}}}class z{constructor(F){this.writer=F,this.name="KHR_materials_pbrSpecularGlossiness"}writeMaterial(F,Z){if(F.isGLTFSpecularGlossinessMaterial){var K=this.writer,X=K.extensionsUsed,te={};Z.pbrMetallicRoughness.baseColorFactor&&(te.diffuseFactor=Z.pbrMetallicRoughness.baseColorFactor);var J=[1,1,1];if(F.specular.toArray(J,0),te.specularFactor=J,te.glossinessFactor=F.glossiness,Z.pbrMetallicRoughness.baseColorTexture&&(te.diffuseTexture=Z.pbrMetallicRoughness.baseColorTexture),F.specularMap){var he={index:K.processTexture(F.specularMap)};K.applyTextureTransform(he,F.specularMap),te.specularGlossinessTexture=he}Z.extensions=Z.extensions||{},Z.extensions[this.name]=te,X[this.name]=!0}}}l.Utils={insertKeyframe:function(F,Z){var K,X=.001,te=F.getValueSize(),J=new F.TimeBufferType(F.times.length+1),he=new F.ValueBufferType(F.values.length+te),xe=F.createInterpolant(new F.ValueBufferType(te));if(F.times.length===0){J[0]=Z;for(var ee=0;ee<te;ee++)he[ee]=0;K=0}else if(Z<F.times[0]){if(Math.abs(F.times[0]-Z)<X)return 0;J[0]=Z,J.set(F.times,1),he.set(xe.evaluate(Z),0),he.set(F.values,te),K=0}else if(Z>F.times[F.times.length-1]){if(Math.abs(F.times[F.times.length-1]-Z)<X)return F.times.length-1;J[J.length-1]=Z,J.set(F.times,0),he.set(F.values,0),he.set(xe.evaluate(Z),F.values.length),K=J.length-1}else for(var oe=0;oe<F.times.length;oe++){if(Math.abs(F.times[oe]-Z)<X)return oe;if(F.times[oe]<Z&&F.times[oe+1]>Z){J.set(F.times.slice(0,oe+1),0),J[oe+1]=Z,J.set(F.times.slice(oe+1),oe+2),he.set(F.values.slice(0,(oe+1)*te),0),he.set(xe.evaluate(Z),(oe+1)*te),he.set(F.values.slice((oe+1)*te),(oe+2)*te),K=oe+1;break}}return F.times=J,F.values=he,K},mergeMorphTargetTracks:function(F,Z){for(var K=[],X={},te=F.tracks,J=0;J<te.length;++J){var he=te[J],xe=a.PropertyBinding.parseTrackName(he.name),ee=a.PropertyBinding.findNode(Z,xe.nodeName);if(xe.propertyName!=="morphTargetInfluences"||xe.propertyIndex===void 0){K.push(he);continue}if(he.createInterpolant!==he.InterpolantFactoryMethodDiscrete&&he.createInterpolant!==he.InterpolantFactoryMethodLinear){if(he.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline)throw new Error("THREE.GLTFExporter: Cannot merge tracks with glTF CUBICSPLINE interpolation.");console.warn("THREE.GLTFExporter: Morph target interpolation mode not yet supported. Using LINEAR instead."),he=he.clone(),he.setInterpolation(a.InterpolateLinear)}var oe=ee.morphTargetInfluences.length,de=ee.morphTargetDictionary[xe.propertyIndex];if(de===void 0)throw new Error("THREE.GLTFExporter: Morph target name not found: "+xe.propertyIndex);var fe=void 0;if(X[ee.uuid]===void 0){fe=he.clone();for(var Ae=new fe.ValueBufferType(oe*fe.times.length),Se=0;Se<fe.times.length;Se++)Ae[Se*oe+de]=fe.values[Se];fe.name=(xe.nodeName||"")+".morphTargetInfluences",fe.values=Ae,X[ee.uuid]=fe,K.push(fe);continue}var Qe=he.createInterpolant(new he.ValueBufferType(1));fe=X[ee.uuid];for(var Le=0;Le<fe.times.length;Le++)fe.values[Le*oe+de]=Qe.evaluate(fe.times[Le]);for(var Ce,je=0;je<he.times.length;je++)Ce=this.insertKeyframe(fe,he.times[je]),fe.values[Ce*oe+de]=he.values[je]}return F.tracks=K,F}}},function(n,r,o){var a=o(3),l=o(4).resolveURL,s=function(){this.nearPlane=.168248,this.farPlane=6.82906,this.eyePosition=[.5,-2.86496,.5],this.targetPosition=[.5,.5,.5],this.upVector=[0,0,1];var x=this;this.setFromObject=L=>{var{nearPlane:S,farPlane:C,eyePosition:A,targetPosition:H,upVector:k}=L;x.nearPlane=S,x.farPlane=C,x.eyePosition=A,x.targetPosition=H,x.upVector=k}},h=function(x,L,S,C){var A={NONE:-1,DEFAULT:0,PATH:1,SMOOTH_CAMERA_TRANSITION:2,AUTO_TUMBLE:3,ROTATE_TRANSITION:4,MINIMAP:5,SYNC_CONTROL:6},H={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM:4,TOUCH_PAN:5,SCROLL:6},k={NONE:-1,FREE:1,HORIZONTAL:2,VERTICAL:3},B={};B.MAIN=H.ROTATE,B.AUXILIARY=H.ZOOM,B.SECONDARY=H.PAN,this.cameraObject=x,this.domElement=L===void 0?document:L,this.renderer=S,this.scene=C,this.tumble_rate=1.5,this.pointer_x=0,this.pointer_y=0,this.pointer_x_start=0,this.pointer_y_start=0,this.previous_pointer_x=0,this.previous_pointer_y=0,this.near_plane_fly_debt=0,this.touchZoomDistanceStart=0,this.touchZoomDistanceEnd=0,this.directionalLight=0,this.scrollRate=50;var D=6e3,z=!0,q=0,F=void 0,Z=void 0,K=!1,X=500,te=void 0,J="default",he=A.DEFAULT,xe=void 0,ee=void 0,oe=void 0,de=0,fe=k.FREE;this._state=H.NONE;var Ae;this.targetTouchId=-1;var Se=void 0,Qe=new a.Vector3,Le=new a.Vector3,Ce=new a.Vector3,je=new a.Vector3,me=new a.Vector3,Ne=new a.Vector3,Ie=new a.Vector3,Ke=new a.Vector3,Ye=new a.Sphere,ht=new a.Vector3,dt=void 0,Ee=0,ye={default:new s};ye.default.nearPlane=.1,ye.default.farPlane=2e3,ye.default.eyePosition=[0,0,0],ye.default.targetPosition=[0,0,-1],ye.default.upVector=[0,1,0],this.cameraObject.target===void 0&&(this.cameraObject.target=new a.Vector3(...ye.default.targetPosition)),this.calculateMaxAllowedDistance=ze=>{var mt=ze.getBoundingBox();if(mt){mt.getBoundingSphere(Ye),Ee=6*Ye.radius;var Ht=0;this.cameraObject&&(Ht=this.cameraObject.position.distanceTo(Ye.center)),Ee=Ht>Ee?Ht:Ee}else Ee=0},this.addViewport=(ze,mt)=>{ze&&mt&&(ye[ze]=mt)},this.setDefaultViewport=ze=>!!(ze&&ze in ye)&&(J=ze,!0),this.getDefaultViewport=()=>J,this.getViewportOfName=ze=>ye[ze],this.setCurrentViewport=ze=>ze in ye&&(this.setCurrentCameraSettings(ye[ze]),!0),this.setRotationMode=ze=>{switch(ze){case"none":fe=k.NONE;break;case"horizontal":fe=k.HORIZONTAL;break;case"vertical":fe=k.VERTICAL;break;case"free":default:fe=k.FREE}},this.onResize=()=>{Se&&(Se=void 0),dt&&dt.setCurrentCameraSettings(this.cameraObject,ye[J])},this.getNDCFromDocumentCoords=(ze,mt,Ht)=>{vt(!1);var pn=Ht||new a.Vector2,Ft=2*((ze-Se.left)/Se.width)-1,ct=2*-((mt-Se.top)/Se.height)+1;return pn.set(Ft,ct)},this.getRelativeCoordsFromNDC=(ze,mt,Ht)=>{vt(!1);var pn=Ht||new a.Vector2;return pn.x=(ze+1)*Se.width/2,pn.y=(1-mt)*Se.height/2,pn},this.setMouseButtonAction=(ze,mt)=>{B[ze]=H[mt]};var it=()=>{if(0<Ee){var ze=ht.distanceTo(Ye.center);return Ee>ze||this.cameraObject.position.distanceTo(Ye.center)>ze}return!0},Ve=ze=>{ht.copy(this.cameraObject.position).add(ze),it()&&(this.cameraObject.target.add(ze),this.cameraObject.position.add(ze),this.updateDirectionalLight())},yt=ze=>{vt(!1);var mt;if(he===A.DEFAULT&&(mt=this.scene.getNormalisedMinimapCoordinates(this.renderer,ze)),!mt)ze.button==0?ze.ctrlKey?this._state=B.AUXILIARY:ze.shiftKey?this._state=B.SECONDARY:this._state=B.MAIN:ze.button==1?(ze.preventDefault(),this._state=B.AUXILIARY):ze.button==2&&(this._state=B.SECONDARY),this.pointer_x=ze.clientX-Se.left,this.pointer_y=ze.clientY-Se.top,this.pointer_x_start=this.pointer_x,this.pointer_y_start=this.pointer_y,this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y;else{he=A.MINIMAP;var Ht=this.scene.getMinimapDiffFromNormalised(mt.x,mt.y);Ve(Ht)}},bt=ze=>{if(vt(!1),this.pointer_x=ze.clientX-Se.left,this.pointer_y=ze.clientY-Se.top,he===A.MINIMAP){var mt=this.scene.getNormalisedMinimapCoordinates(this.renderer,ze);if(mt){var Ht=this.scene.getMinimapDiffFromNormalised(mt.x,mt.y);Ve(Ht)}}else this._state===H.NONE&&Ae!==void 0&&Ae.move(this,ze.clientX,ze.clientY,this.renderer)},_t=ze=>{this._state=H.NONE,he==A.MINIMAP&&(he=A.DEFAULT),Ae!==void 0&&this.pointer_x_start==ze.clientX-Se.left&&this.pointer_y_start==ze.clientY-Se.top&&Ae.pick(this,ze.clientX,ze.clientY,this.renderer)},nt=()=>{this._state=H.NONE},Je=ze=>{vt(!1);var mt=ze.touches.length;if(mt==1)this._state=H.TOUCH_ROTATE,this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top,this.pointer_x_start=this.pointer_x,this.pointer_y_start=this.pointer_y,this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y;else if(mt==2){this._state=H.TOUCH_ZOOM;var Ht=ze.touches[0].clientX-ze.touches[1].clientX,pn=ze.touches[0].clientY-ze.touches[1].clientY;this.touchZoomDistanceEnd=this.touchZoomDistanceStart=Math.sqrt(Ht*Ht+pn*pn)}else mt==3&&(this._state=H.TOUCH_PAN,this.targetTouchId=ze.touches[0].identifier,this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top,this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y)},et=ze=>{ze.preventDefault(),ze.stopPropagation();var mt=ze.touches.length;if(mt==1)this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top;else if(mt==2){if(this._state===H.TOUCH_ZOOM){var Ht=ze.touches[0].clientX-ze.touches[1].clientX,pn=ze.touches[0].clientY-ze.touches[1].clientY;this.touchZoomDistanceEnd=Math.sqrt(Ht*Ht+pn*pn)}}else if(mt==3&&this._state===H.TOUCH_PAN)for(var Ft=0;3>Ft;Ft++)ze.touches[Ft].identifier==this.targetTouchId&&(this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top)},Xe=ze=>{var mt=ze.touches.length;this.touchZoomDistanceStart=this.touchZoomDistanceEnd=0,this.targetTouchId=-1,this._state=H.NONE,mt==1&&Ae!==void 0&&this.pointer_x_start==ze.touches[0].clientX-Se.left&&this.pointer_y_start==ze.touches[0].clientY-Se.top&&Ae.pick(this.cameraObject,ze.touches[0].clientX,ze.touches[0].clientY,this.renderer)},Lt=()=>{vt(!0)},vt=ze=>{if(ze||Se===void 0){var mt=new IntersectionObserver(Ht=>{for(var pn of Ht)Se=pn.boundingClientRect;mt.disconnect()});mt.observe(this.domElement)}},Et=ze=>{vt(!1),this._state=H.SCROLL;var mt=0;0<ze.deltaY?mt=this.scrollRate:0>ze.deltaY&&(mt=-1*this.scrollRate),de+=mt,ze.preventDefault(),ze.stopImmediatePropagation()},kt=()=>{if(typeof this.cameraObject<"u"){var ze=Se.height,mt=this.cameraObject.position.distanceTo(this.cameraObject.target),Ht=0;this.cameraObject.far>this.cameraObject.near&&mt>=this.cameraObject.near&&mt<=this.cameraObject.far&&(Ht=(mt-this.cameraObject.near)/(this.cameraObject.far-this.cameraObject.near)),Le.set(this.previous_pointer_x,ze-this.previous_pointer_y,0),Ce.set(this.previous_pointer_x,ze-this.previous_pointer_y,1),je.set(this.pointer_x,ze-this.pointer_y,0),me.set(this.pointer_x,ze-this.pointer_y,1),Le.unproject(this.cameraObject),Ce.unproject(this.cameraObject),je.unproject(this.cameraObject),me.unproject(this.cameraObject),je.sub(Le).multiplyScalar(1-Ht),me.sub(Ce).multiplyScalar(Ht),je.add(me).multiplyScalar(-.002),Ve(je)}this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y};this.getVectorsFromRotateAboutLookAtPoints=(ze,mt)=>{ze.normalize(),Ie.copy(this.cameraObject.position).sub(this.cameraObject.target),Ke.copy(Ie),Ie.normalize(),.8<Math.abs(Ie.dot(ze))&&Ie.copy(this.cameraObject.up),Le.crossVectors(ze,Ie).normalize(),Ce.crossVectors(ze,Le);var Ht=ze.dot(Ke),pn=Le.dot(Ke),Ft=Ce.dot(Ke),ct=ze.dot(this.cameraObject.up),ge=Le.dot(this.cameraObject.up),se=Ce.dot(this.cameraObject.up),pe=Math.cos(mt),He=Math.sin(mt);return je.set(pe*Le.x+He*Ce.x,pe*Le.y+He*Ce.y,pe*Le.z+He*Ce.z),me.set(pe*Ce.x-He*Le.x,pe*Ce.y-He*Le.y,pe*Ce.z-He*Le.z),Ie.copy(this.cameraObject.target),Ie.x=Ie.x+ze.x*Ht+je.x*pn+me.x*Ft,Ie.y=Ie.y+ze.y*Ht+je.y*pn+me.y*Ft,Ie.z=Ie.z+ze.z*Ht+je.z*pn+me.z*Ft,Qe.set(ze.x*ct+je.x*ge+me.x*se,ze.y*ct+je.y*ge+me.y*se,ze.z*ct+je.z*ge+me.z*se),{position:Ie,up:Qe}},this.rotateAboutLookAtpoint=(ze,mt)=>{var Ht=this.getVectorsFromRotateAboutLookAtPoints(ze,mt);this.cameraObject.position.copy(Ht.position),this.updateDirectionalLight(),this.cameraObject.up.copy(Ht.up)};var pt=()=>{if(typeof this.cameraObject<"u"){var ze=Se.width,mt=Se.height;if(0<ze&&0<mt){var Ht=.25*(ze+mt),pn=0,Ft=0;(fe===k.FREE||fe===k.HORIZONTAL)&&(pn=this.pointer_x-this.previous_pointer_x),(fe===k.FREE||fe===k.VERTICAL)&&(Ft=this.previous_pointer_y-this.pointer_y);var ct=Math.sqrt(pn*pn+Ft*Ft);if(0<ct){var ge=1*-Ft/ct,se=1*pn/ct;fe===k.FREE&&ge*(this.pointer_x-.5*(ze-1))+se*(.5*(mt-1)-this.pointer_y);var pe=Math.acos(0/Ht)-.5*Math.PI,He=this.tumble_rate*ct/Ht;Qe.copy(this.cameraObject.position).sub(this.cameraObject.target).normalize(),Le.copy(this.cameraObject.up).normalize(),Ce.copy(Le).cross(Qe).normalize().multiplyScalar(ge),Le.multiplyScalar(se),Ne.addVectors(Ce,Le).multiplyScalar(Math.cos(pe)),Qe.multiplyScalar(Math.sin(pe)),Ne.add(Qe),this.rotateAboutLookAtpoint(Ne,-He)}}}this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y},Qn=()=>{var ze=0;return this._state===H.ZOOM?ze=this.previous_pointer_y-this.pointer_y:this._state===H.SCROLL?ze=de:(ze=-1*(this.touchZoomDistanceEnd-this.touchZoomDistanceStart),this.touchZoomDistanceStart=this.touchZoomDistanceEnd),ze};this.changeZoomByScrollRateUnit=ze=>{var mt=ze*this.scrollRate;this.changeZoomByValue(mt)},this.changeZoomByValue=ze=>{if(typeof this.cameraObject<"u"){Se.width;var mt=Se.height,Ht=this.cameraObject.position.clone();Ht.sub(this.cameraObject.target);var pn=Ht.length(),Ft=1.5*ze/mt;if(.01<pn+Ft*pn&&(Ht.normalize(),ht.copy(this.cameraObject.position),ht.x+=Ht.x*Ft*pn,ht.y+=Ht.y*Ft*pn,ht.z+=Ht.z*Ft*pn,it())){this.cameraObject.position.copy(ht),this.updateDirectionalLight();var ct=1e-5;if(ct*this.cameraObject.far<this.cameraObject.near+Ft*pn+this.near_plane_fly_debt)this.near_plane_fly_debt!=0&&(this.near_plane_fly_debt+=Ft*pn,0<this.near_plane_fly_debt?(this.cameraObject.near+=this.near_plane_fly_debt,this.cameraObject.far+=this.near_plane_fly_debt,this.near_plane_fly_debt=0):(this.cameraObject.near+=Ft*pn,this.cameraObject.far+=Ft*pn));else{if(this.near_plane_fly_debt==0){var ge=this.cameraObject.near-ct*this.cameraObject.far;this.cameraObject.near=ct*this.cameraObject.far,this.cameraObject.far-=ge,this.near_plane_fly_debt-=ct*this.cameraObject.far}this.near_plane_fly_debt+=Ft*pn}}}};var Jt=()=>{var ze=Qn();this.changeZoomByValue(ze),this._state===H.ZOOM&&(this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y),this._state===H.SCROLL&&(de=0,this._state=H.NONE)};this.setDirectionalLight=ze=>{this.directionalLight=ze},this.updateDirectionalLight=()=>{this.directionalLight!=0&&this.directionalLight.position.set(this.cameraObject.position.x,this.cameraObject.position.y,this.cameraObject.position.z)},this.enable=function(){z=!0,this.domElement&&this.domElement.addEventListener&&(this.domElement.addEventListener("mousedown",yt,!1),this.domElement.addEventListener("mousemove",bt,!1),this.domElement.addEventListener("mouseup",_t,!1),this.domElement.addEventListener("mouseleave",nt,!1),this.domElement.addEventListener("touchstart",Je,!1),this.domElement.addEventListener("touchmove",et,!1),this.domElement.addEventListener("touchend",Xe,!1),this.domElement.addEventListener("wheel",Et,!1),this.domElement.addEventListener("contextmenu",ze=>{ze.preventDefault()},!1),this.domElement.addEventListener("mouseenter",Lt,!1))},this.disable=function(){z=!1,this.domElement&&this.domElement.removeEventListener&&(this.domElement.removeEventListener("mousedown",yt,!1),this.domElement.removeEventListener("mousemove",bt,!1),this.domElement.removeEventListener("mouseup",_t,!1),this.domElement.removeEventListener("mouseleave",nt,!1),this.domElement.removeEventListener("touchstart",Je,!1),this.domElement.removeEventListener("touchmove",et,!1),this.domElement.removeEventListener("touchend",Xe,!1),this.domElement.removeEventListener("wheel",Et,!1),this.domElement.removeEventListener("mouseenter",Lt,!1),this.domElement.removeEventListener("contextmenu",ze=>{ze.preventDefault()},!1))},this.loadPath=ze=>{F=ze.CameraPath,Z=ze.NumberOfPoints},this.loadPathURL=(ze,mt)=>{var Ht=new XMLHttpRequest;Ht.onreadystatechange=()=>{if(Ht.readyState==4&&Ht.status==200){var Ft=JSON.parse(Ht.responseText);this.loadPath(Ft),mt!=null&&typeof mt=="function"&&mt()}};var pn=l(ze);Ht.open("GET",pn,!0),Ht.send()},this.setPathDuration=ze=>{D=ze,xe&&xe.setDuration(D),ee&&ee.setDuration(D)},this.getPlayRate=()=>X,this.setPlayRate=ze=>{X=ze};var Mn=ze=>{var mt=q+ze;mt>D&&(mt-=D),q=mt};this.getTime=()=>q,this.setTime=ze=>{q=ze>D?D:0>ze?0:ze},this.getNumberOfTimeFrame=()=>Z,this.getCurrentTimeFrame=()=>{if(2<Z){var ze=q/D*(Z-1),mt=Math.floor(ze),Ht=Math.ceil(ze);return mt==Ht?mt==Z-1?[mt-1,Ht,0]:[mt,Ht+1,1]:[mt,Ht,1-(ze-mt)]}return Z==1?[0,0,0]:void 0},this.setCurrentTimeFrame=ze=>{2<Z&&(q=D*ze/(Z-1),0>q&&(q=0),q>D&&(q=D))};var ln=ze=>{if(he===A.PATH&&(Mn(ze),F)){for(var mt=this.getCurrentTimeFrame(),Ht=mt[0],pn=mt[1],Ft=mt[2],ct=[F[3*Ht],F[3*Ht+1],F[3*Ht+2]],ge=[F[3*pn],F[3*pn+1],F[3*pn+2]],se=[],pe=0;pe<ct.length;pe++)se.push(Ft*ct[pe]+(1-Ft)*ge[pe]);this.cameraObject.position.set(se[0],se[1],se[2]),this.cameraObject.target.set(ge[0],ge[1],ge[2]),te&&this.cameraObject.lookAt(this.cameraObject.target),K&&(this.directionalLight.position.set(se[0],se[1],se[2]),this.directionalLight.target.position.set(ge[0],ge[1],ge[2]))}};this.calculatePathNow=()=>{ln(0)};var Mt=()=>{this._state===H.ROTATE||this._state===H.TOUCH_ROTATE?pt():this._state===H.PAN||this._state===H.TOUCH_PAN?(kt(),dt.triggerCallback()):(this._state===H.ZOOM||this._state===H.TOUCH_ZOOM||this._state===H.SCROLL)&&(dt.zoom(Qn()),this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y,this._state===H.SCROLL&&(this._state=H.NONE),de=0,dt.triggerCallback())};this.update=ze=>{var mt=ze*X,Ht=z;he===A.PATH?ln(mt):he===A.SMOOTH_CAMERA_TRANSITION&&xe?(xe.update(mt),xe.isTransitionCompleted()&&(he=A.DEFAULT),Ht=!1):he===A.ROTATE_CAMERA_TRANSITION&&ee?(ee.update(mt),ee.isTransitionCompleted()&&(he=A.DEFAULT),Ht=!1):he===A.AUTO_TUMBLE&&oe?oe.update(mt):he===A.SYNC_CONTROL&&dt&&(Mt(),Ht=!1),Ht&&(this._state===H.ROTATE||this._state===H.TOUCH_ROTATE?pt():this._state===H.PAN||this._state===H.TOUCH_PAN?kt():(this._state===H.ZOOM||this._state===H.TOUCH_ZOOM||this._state===H.SCROLL)&&Jt(),this._state!==H.NONE&&he===A.AUTO_TUMBLE&&oe&&oe.stopOnCameraInput,this._state===H.SCROLL&&(this._state=H.NONE)),te?te.update():this.cameraObject.lookAt(this.cameraObject.target)},this.playPath=()=>{he=A.PATH},this.stopPath=()=>{he=A.DEFAULT},this.isPlayingPath=()=>he===A.PATH,this.enableDirectionalLightUpdateWithPath=ze=>{K=ze},this.enableDeviceOrientation=()=>{te||(te=new v(this.cameraObject))},this.disableDeviceOrientation=()=>{te&&(te.dispose(),te=void 0)},this.isDeviceOrientationEnabled=()=>!!te,this.resetView=()=>{var ze=ye[J];this.cameraObject.near=ze.nearPlane,this.cameraObject.far=ze.farPlane,this.cameraObject.position.set(ze.eyePosition[0],ze.eyePosition[1],ze.eyePosition[2]),this.cameraObject.target.set(ze.targetPosition[0],ze.targetPosition[1],ze.targetPosition[2]),this.cameraObject.up.set(ze.upVector[0],ze.upVector[1],ze.upVector[2]),this.cameraObject.updateProjectionMatrix(),this.updateDirectionalLight()},this.setCurrentCameraSettings=ze=>{ze.nearPlane&&(this.cameraObject.near=ze.nearPlane),ze.farPlane&&(this.cameraObject.far=ze.farPlane),ze.eyePosition&&this.cameraObject.position.set(ze.eyePosition[0],ze.eyePosition[1],ze.eyePosition[2]),ze.targetPosition&&this.cameraObject.target.set(ze.targetPosition[0],ze.targetPosition[1],ze.targetPosition[2]),ze.upVector&&this.cameraObject.up.set(ze.upVector[0],ze.upVector[1],ze.upVector[2]),this.cameraObject.updateProjectionMatrix(),this.updateDirectionalLight()},this.getViewportFromCentreAndRadius=(ze,mt,Ht,pn,Ft,ct)=>{var ge=this.cameraObject.position.x-this.cameraObject.target.x,se=this.cameraObject.position.y-this.cameraObject.target.y,pe=this.cameraObject.position.z-this.cameraObject.target.z,He=1/Math.sqrt(ge*ge+se*se+pe*pe);ge*=He,se*=He,pe*=He;var Pe=pn/Math.tan(Ft*Math.PI/360),Ue=[ze+ge*Pe,mt+se*Pe,Ht+pe*Pe],ot=0,Me=.95;ot=ct>Me*Pe?(1-Me)*Pe:Pe-ct;var re=new s;return re.nearPlane=ot,re.farPlane=Pe+ct,re.eyePosition=Ue,re.targetPosition=[ze,mt,Ht],re.upVector=[this.cameraObject.up.x,this.cameraObject.up.y,this.cameraObject.up.z],re},this.getCurrentViewport=()=>{var ze=new s;return ze.nearPlane=this.cameraObject.near,ze.farPlane=this.cameraObject.far,ze.eyePosition[0]=this.cameraObject.position.x,ze.eyePosition[1]=this.cameraObject.position.y,ze.eyePosition[2]=this.cameraObject.position.z,ze.targetPosition[0]=this.cameraObject.target.x,ze.targetPosition[1]=this.cameraObject.target.y,ze.targetPosition[2]=this.cameraObject.target.z,ze.upVector[0]=this.cameraObject.up.x,ze.upVector[1]=this.cameraObject.up.y,ze.upVector[2]=this.cameraObject.up.z,ze},this.getDefaultEyePosition=()=>eyePosition,this.getDefaultTargetPosition=()=>targetPosition,this.cameraTransition=(ze,mt,Ht)=>{ee==null&&(xe=new u(ze,mt,this,Ht))},this.rotateCameraTransition=(ze,mt,Ht)=>{xe==null&&(ee=new d(ze,mt,this,Ht))},this.enableCameraTransition=()=>{xe&&(he=A.SMOOTH_CAMERA_TRANSITION),ee&&(he=A.ROTATE_CAMERA_TRANSITION)},this.pauseCameraTransition=()=>{he=A.DEFAULT},this.stopCameraTransition=()=>{he=A.DEFAULT,xe=void 0,ee=void 0},this.isTransitioningCamera=()=>he===A.SMOOTH_CAMERA_TRANSITION||he===A.ROTATE_CAMERA_TRANSITION,this.autoTumble=(ze,mt,Ht)=>{oe=new f(ze,mt,Ht,this)},this.enableAutoTumble=()=>{he=A.AUTO_TUMBLE},this.stopAutoTumble=()=>{he=A.DEFAULT,oe=void 0},this.updateAutoTumble=()=>{oe&&(oe.requireUpdate=!0)},this.isAutoTumble=()=>he===A.AUTO_TUMBLE,this.enableRaycaster=(ze,mt,Ht)=>{Ae==null&&(Ae=new p(ze,this.scene,mt,Ht,this.renderer))},this.disableRaycaster=()=>{Ae.disable(),Ae=void 0},this.isSyncControl=()=>currentMpde===A.SYNC_CONTROL,this.enableSyncControl=()=>(he=A.SYNC_CONTROL,dt||(dt=new _),dt.setCurrentCameraSettings(this.cameraObject,ye[J]),dt),this.disableSyncControl=()=>{he=A.DEFAULT,this.cameraObject.zoom=1,this.cameraObject.updateProjectionMatrix()},this.enable()},u=function(x,L,S,C){var A=x.eyePosition,H=x.targetPosition,k=x.upVector,B=L.eyePosition,D=L.targetPosition,z=L.upVector,q=S,F=C,Z=0,K=!1;q.near=Math.min(x.nearPlane,L.nearPlane),q.far=Math.max(x.farPlane,L.farPlane),q.cameraObject.up.set(L.upVector[0],L.upVector[1],L.upVector[2]),this.setDuration=J=>{F=J};var X=J=>{var he=Z+J;he>F&&(he=F),Z=he},te=()=>{var J=Z/F,he=[A[0]*(1-J)+B[0]*J,A[1]*(1-J)+B[1]*J,A[2]*(1-J)+B[2]*J],xe=[H[0]*(1-J)+D[0]*J,H[1]*(1-J)+D[1]*J,H[2]*(1-J)+D[2]*J];k[0]*(1-J)+z[0]*J,k[1]*(1-J)+z[1]*J,k[2]*(1-J)+z[2]*J,q.cameraObject.position.set(he[0],he[1],he[2]),q.cameraObject.target.set(xe[0],xe[1],xe[2])};this.update=J=>{this.enabled===!1||(X(J),te(),Z==F&&(K=!0))},this.isTransitionCompleted=()=>K},d=function(x,L,S,C){var A=C,H=0,k=!1;this.setDuration=D=>{A=D};var B=D=>{var z=H,q=H+D;q>A&&(q=A),H=q;var F=H-z,Z=F/A;S.rotateAboutLookAtpoint(x,Z*L)};this.update=D=>{this.enabled===!1||(B(D),H==A&&(k=!0))},this.isTransitionCompleted=()=>k},p=function(x,L,S,C,A){var H=x,k=A,B=S,D=C,z=new a.Raycaster;z.params.Line.threshold=.1,z.params.Points.threshold=.1;var q=new a.Vector2,F=!1,Z=new Date,K=!1,X=0,te=[],J={zincCamera:void 0,x:-1,y:-1};this.enable=()=>{enable=!0},this.disable=()=>{enable=!1};var he=(oe,de,fe)=>{if(oe.getNDCFromDocumentCoords(de,fe,q),L!==H){var Ae=H.getThreeJSScene();k.render(Ae,oe.cameraObject)}z.setFromCamera(q,oe.cameraObject);var Se=H.getPickableThreeJSObjects();return te.length=0,z.intersectObjects(Se,!0,te)};this.pick=(oe,de,fe)=>{k&&H&&oe&&B&&(he(oe,de,fe),B(te,de,fe))};var xe=(oe,de,fe)=>{if(k&&H&&oe&&D){if(he(oe,de,fe),Z.setTime(Date.now()),te.length===0){if(K)return;K=!0}else K=!1;D(te,de,fe)}};this.move=(oe,de,fe)=>{k&&H&&oe&&D&&(H.displayMarkers?xe(oe,de,fe):(J.zincCamera=oe,J.x=de,J.y=fe,!F&&(X=Z?Date.now()-Z.getTime():250,250<=X?xe(oe,de,fe):(F=!0,setTimeout(ee(J),X)))))};var ee=oe=>function(){F=!1,xe(oe.zincCamera,oe.x,oe.y)}},f=function(x,L,S,C){var A=new a.Vector3,H=C;this.stopOnCameraInput=S,this.requireUpdate=!0;var k=new a.Vector3,B=new a.Vector3,D=z=>{var q=Math.sqrt(z[0]*z[0]+z[1]*z[1]),F=4*Math.abs(z[0]),Z=4*Math.abs(z[1]),K=.25*(F+Z),X=-z[1]/q,te=z[0]/q,J=X*z[0]+te*-z[1];J>K?J=K:J<-K&&(J=-K);var he=Math.acos(J/K)-.5*Math.PI;A.copy(H.cameraObject.position).sub(H.cameraObject.target).normalize(),k.copy(H.cameraObject.up).normalize(),B.crossVectors(k,A).normalize().multiplyScalar(X),k.multiplyScalar(te),k.add(B).multiplyScalar(Math.cos(he)),A.multiplyScalar(Math.sin(he)).add(k)};this.update=z=>{this.enabled===!1||(this.requireUpdate&&(D(x),this.requireUpdate=!1),H.rotateAboutLookAtpoint(A,-L*z/1e3))}},m=function(){this.type="StereoCamera",this.aspect=1,this.cameraL=new a.PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new a.PerspectiveCamera,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1};Object.assign(m.prototype,{update:(()=>{var x,L,S,C,A,H,k=new a.Matrix4,B=new a.Matrix4;return function(D){var z=x!==D.focus||L!==D.fov||S!==D.aspect*this.aspect||C!==D.near||A!==D.far||H!==D.zoom;if(z){x=D.focus,L=D.fov,S=D.aspect*this.aspect,C=D.near,A=D.far,H=D.zoom;var q,F,Z=D.projectionMatrix.clone(),K=.064/2,X=K*C/x,te=C*Math.tan(.5*(a.Math.DEG2RAD*L))/D.zoom;B.elements[12]=-K,k.elements[12]=K,q=-te*S+X,F=te*S+X,Z.elements[0]=2*C/(F-q),Z.elements[8]=(F+q)/(F-q),this.cameraL.projectionMatrix.copy(Z),q=-te*S-X,F=te*S-X,Z.elements[0]=2*C/(F-q),Z.elements[8]=(F+q)/(F-q),this.cameraR.projectionMatrix.copy(Z)}this.cameraL.matrixWorld.copy(D.matrixWorld).multiply(B),this.cameraR.matrixWorld.copy(D.matrixWorld).multiply(k)}})()});var y=function(x){var L=new m;L.aspect=.5,this.setSize=(S,C)=>{x.setSize(S,C)},this.render=(S,C)=>{S.updateMatrixWorld(),C.parent===null&&C.updateMatrixWorld(),L.update(C);var A=x.getSize();x.setScissorTest(!0),x.clear(),x.setScissor(0,0,A.width/2,A.height),x.setViewport(0,0,A.width/2,A.height),x.render(S,L.cameraL),x.setScissor(A.width/2,0,A.width/2,A.height),x.setViewport(A.width/2,0,A.width/2,A.height),x.render(S,L.cameraR),x.setScissorTest(!1)}},v=function(x){var L=this;this.object=x,this.object.rotation.reorder("YXZ"),this.enabled=!0,this.deviceOrientation={},this.screenOrientation=0;var S=H=>{L.deviceOrientation=H},C=()=>{typeof window<"u"&&(L.screenOrientation=window.orientation||0)},A=(()=>{var H=new a.Vector3(0,0,1),k=new a.Euler,B=new a.Quaternion,D=new a.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5));return(z,q,F,Z,K)=>{var X=new a.Vector3(0,0,1);X.subVectors(z.target,z.position),k.set(F,q,-Z,"YXZ");var te=new a.Quaternion;te.setFromEuler(k),te.multiply(D),te.multiply(B.setFromAxisAngle(H,-K)),X.applyQuaternion(te),X.addVectors(z.position,X),z.lookAt(X)}})();this.connect=()=>{C(),typeof window<"u"&&(window.addEventListener("orientationchange",C,!1),window.addEventListener("deviceorientation",S,!1)),L.enabled=!0},this.disconnect=()=>{typeof window<"u"&&(window.removeEventListener("orientationchange",C,!1),window.removeEventListener("deviceorientation",S,!1)),L.enabled=!1},this.update=()=>{if(L.enabled!==!1){var H=L.deviceOrientation.alpha?a.Math.degToRad(L.deviceOrientation.alpha):0,k=L.deviceOrientation.beta?a.Math.degToRad(L.deviceOrientation.beta):0,B=L.deviceOrientation.gamma?a.Math.degToRad(L.deviceOrientation.gamma):0,D=L.screenOrientation?a.Math.degToRad(L.screenOrientation):0;A(L.object,H,k,B,D)}},this.dispose=function(){this.disconnect()},this.connect()},_=function(){var x=void 0,L=void 0,S=void 0,C=new a.Vector3,A=new a.Vector3,H=new a.Vector3,k=new a.Vector3,B=void 0;this.setCurrentCameraSettings=(D,z)=>{x=D.clone(),L=D,S=z,x.near=S.nearPlane,S.farPlane&&(x.far=S.farPlane),S.eyePosition&&x.position.set(S.eyePosition[0],S.eyePosition[1],S.eyePosition[2]),S.upVector&&x.up.set(S.upVector[0],S.upVector[1],S.upVector[2]),S.targetPosition&&(x.target=new a.Vector3(S.targetPosition[0],S.targetPosition[1],S.targetPosition[2]),x.lookAt(x.target)),x.updateProjectionMatrix(),C.copy(x.position).project(x),A.copy(x.target).project(x)},this.getCurrentPosition=()=>(A.copy(L.target).project(x),[A.x,A.y]),this.zoom=D=>{var z=Math.max(L.zoom-.002*D,1);L.zoom=z,L.updateProjectionMatrix()},this.zoomToBox=(D,z)=>{D.getCenter(H),H.project(x),this.setCenterZoom([H.x,H.y],z)},this.getPanZoom=()=>({target:this.getCurrentPosition(),zoom:L.zoom}),this.setCenterZoom=(D,z)=>{H.set(D[0],D[1],A.z).unproject(x),k.copy(H).sub(L.target),L.target.copy(H),L.lookAt(L.target),L.position.add(k),L.zoom=z,L.updateProjectionMatrix()},this.setEventCallback=D=>{(D===void 0||typeof D=="function")&&(B=D)},this.triggerCallback=()=>{B!==void 0&&typeof B=="function"&&B()}};r.Viewport=s,r.CameraControls=h,r.SmoothCameraTransition=u,r.RotateCameraTransition=d,r.RayCaster=p,r.CameraAutoTumble=f,r.StereoEffect=y,r.NDCCameraControl=_},function(n,r,o){var{Group:a,Matrix4:l}=o(3),s=0,h=function(){return"re"+s++},u=function(d){var p=d,f=new a;f.matrixAutoUpdate=!1,f.userData=this;var m=[],y="",v=[],_=new l,x=3e3;_.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this.pickableUpdateRequired=!0,this.isRegion=!0,this.uuid=h(),this.hideAllPrimitives=()=>{m.forEach(L=>L.hideAllPrimitives()),v.forEach(L=>L.setVisibility(!1))},this.showAllPrimitives=()=>{m.forEach(L=>L.showAllPrimitives()),v.forEach(L=>L.setVisibility(!0))},this.setVisibility=L=>{f.visible=L},this.getVisibility=()=>f.visible,this.getGroup=()=>f,this.setTransformation=L=>{_.set(...L),f.matrix.copy(_),f.updateMatrixWorld()},this.setName=L=>{L&&L!==""&&(y=L)},this.getName=()=>y,this.getParent=()=>p,this.getFullSeparatedPath=()=>{var L=[];if(y!==""){L.push(y);for(var S,C=p;C!==void 0;)S=C.getName(),S!==""&&L.unshift(S),C=C.getParent()}return L},this.getFullPath=()=>{var L=this.getFullSeparatedPath();if(0<L.length){var S=L.shift();return L.forEach(C=>{S=S.concat("/",C)}),S}return""},this.createChild=L=>{var S=new u(this);return S.setName(L),m.push(S),f.add(S.getGroup()),S},this.getChildWithName=L=>{if(L){for(var S=L.toLowerCase(),C=0;C<m.length;C++)if(m[C].getName().toLowerCase()===S)return m[C]}},this.findChildFromSeparatedPath=L=>{if(L&&0<L.length&&L[0]===""&&L.shift(),L&&0<L.length){var S=this.getChildWithName(L[0]);return S?(L.shift(),S.findChildFromSeparatedPath(L)):void 0}return this},this.findChildFromPath=L=>{var S=L.split("/");return this.findChildFromSeparatedPath(S)},this.createChildFromSeparatedPath=L=>{if(0<L.length&&L[0]===""&&L.shift(),0<L.length){var S=this.getChildWithName(L[0]);return S||(S=this.createChild(L[0])),L.shift(),S.createChildFromSeparatedPath(L)}return this},this.createChildFromPath=L=>{var S=L.split("/");return this.createChildFromSeparatedPath(S)},this.findOrCreateChildFromPath=L=>{var S=this.findChildFromPath(L);return S||(S=this.createChildFromPath(L)),S},this.addZincObject=L=>{L&&(L.setRegion(this),f.add(L.morph),v.push(L),this.pickableUpdateRequired=!0)},this.removeZincObject=L=>{for(var S=0;S<v.length;S++)if(L===v[S])return f.remove(L.morph),v.splice(S,1),void L.dispose()},this.checkPickableUpdateRequred=L=>{if(this.pickableUpdateRequired)return!0;if(L){for(var S=!1,C=0;C<m.length;C++)if(S=m[C].checkPickableUpdateRequred(L),S)return!0}return!1},this.getPickableThreeJSObjects=(L,S)=>(v.forEach(C=>{if(C.morph&&C.morph.visible){var A=C.marker;A&&A.isEnabled()&&L.push(A.morph),L.push(C.morph)}}),S&&m.forEach(C=>{C.getPickableThreeJSObjects(L,S)}),this.pickableUpdateRequired=!1,L),this.setDuration=L=>{x=L,v.forEach(S=>S.setDuration(L)),m.forEach(S=>S.setDuration(L))},this.getDuration=()=>x,this.getBoundingBox=L=>{var S,C;return v.forEach(A=>{C=A.getBoundingBox(),C&&(S==null?S=C.clone():S.union(C))}),L&&m.forEach(A=>{C=A.getBoundingBox(L),C&&(S==null?S=C.clone():S.union(C))}),S},this.clear=L=>{L&&m.forEach(S=>S.clear(L)),v.forEach(S=>{f.remove(S.morph),S.dispose()}),m=[],v=[]},this.objectIsInRegion=(L,S)=>{for(var C=0;C<v.length;C++)if(L===v[C])return!0;if(S){for(var A=0;A<m.length;A++)if(m[A].objectIsInRegion(L,S))return!0}return!1},this.forEachGeometry=(L,S)=>{v.forEach(C=>{C.isGeometry&&L(C)}),S&&m.forEach(C=>C.forEachGeometry(L,S))},this.forEachGlyphset=(L,S)=>{v.forEach(C=>{C.isGlyphset&&L(C)}),S&&m.forEach(C=>C.forEachGlyphset(L,S))},this.forEachPointset=(L,S)=>{v.forEach(C=>{C.isPointset&&L(C)}),S&&m.forEach(C=>C.forEachPointset(L,S))},this.forEachLine=(L,S)=>{v.forEach(C=>{C.isLines&&L(C)}),S&&m.forEach(C=>C.forEachLine(L,S))},this.findObjectsWithAnatomicalId=(L,S)=>(v.forEach(C=>{C.anatomicalId===L&&objectsArray.push(C)}),S&&m.forEach(C=>{var A=C.findObjectsWithAnatomicalId(L,S);objectsArray.push(...A)}),objectsArray),this.findObjectsWithGroupName=(L,S)=>{var C=[];return v.forEach(A=>{var H=A.groupName?A.groupName.toLowerCase():A.groupName,k=L&&L.toLowerCase();H===k&&C.push(A)}),S&&m.forEach(A=>{var H=A.findObjectsWithGroupName(L,S);C.push(...H)}),C},this.findGeometriesWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isGeometry);return A},this.findPointsetsWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isPointset);return A},this.findGlyphsetsWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isGlyphset);return A},this.findLinesWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isLines);return A},this.getAllObjects=L=>{var S=[...v];return L&&m.forEach(C=>{var A=C.getAllObjects(L);S.push(...A)}),S},this.getChildRegions=L=>{var S=[...m];return L&&m.forEach(C=>{var A=C.getChildRegions(L);S.push(...A)}),S},this.getCurrentTime=()=>{if(v[0]!=null)return v[0].getCurrentTime();for(var L,S=0;S<m.length;S++)if(L=m[S].getCurrentTime(),L!==-1)return L;return-1},this.setMorphTime=(L,S)=>{v.forEach(C=>{C.setMorphTime(L)}),S&&m.forEach(C=>{C.setMorphTime(L)})},this.isTimeVarying=()=>{for(var L=0;L<v.length;L++)if(v[L].isTimeVarying())return!0;for(var S=0;S<m.length;S++)if(m[S].isTimeVarying())return!0;return!1},this.renderGeometries=(L,S,C,A,H)=>{var k=this.getAllObjects(H);if(k.forEach(z=>{z.render(L*S,C,A)}),A&&A.displayMarkers&&C===!1&&0<A.markerDepths.length){var B=Math.min(...A.markerDepths),D=Math.max(...A.markerDepths);k.forEach(z=>{z.processMarkerVisual(B,D,A)})}}};r.Region=u},function(n,r,o){var a=o(3);r.Minimap=function(l){var s=l;this.camera=new a.OrthographicCamera(-.5,.5,.5,-.5,.01,10),this.helper=void 0;var h=new a.BufferGeometry,u=new Float32Array([-1,-1,1,1,-1,1,1,1,1,1,1,1,-1,1,1,-1,-1,1]),d=new a.BufferAttribute(u,3);h.setAttribute("position",d);var p=new a.MeshBasicMaterial({color:3355443,depthTest:!1,depthWrite:!1,opacity:.5,transparent:!0});this.mask=new a.Mesh(h,p);var f=new a.Box3,m=new a.Vector3;this.getDiffFromNormalised=(v,_)=>{f.setFromBufferAttribute(d).getCenter(m);var x=m.clone().project(this.camera),L=new a.Vector3(v,_,x.z).unproject(this.camera);return L.sub(m)};var y=(v,_)=>{s.camera.near&&(this.camera.near=s.camera.near),_.farPlane&&(this.camera.far=_.farPlane),_.eyePosition&&this.camera.position.set(_.eyePosition[0],_.eyePosition[1],_.eyePosition[2]),_.upVector&&this.camera.up.set(_.upVector[0],_.upVector[1],_.upVector[2]),_.targetPosition&&this.camera.lookAt(new a.Vector3(_.targetPosition[0],_.targetPosition[1],_.targetPosition[2])),this.camera.zoom=1/v,this.camera.updateProjectionMatrix()};this.getBoundary=()=>{var v=new a.Vector3().copy(s.camera.target).project(s.camera),_=new a.Vector3(-1,-1,v.z).unproject(s.camera),x=new a.Vector3(1,-1,v.z).unproject(s.camera),L=new a.Vector3(1,1,v.z).unproject(s.camera),S=new a.Vector3(-1,1,v.z).unproject(s.camera);d.copyVector3sArray([_,x,L,L,S,_]),d.needsUpdate=!0},this.updateCamera=()=>{this.getBoundary();var v=s.getZincCameraControls(),_=s.getBoundingBox();if(_){var x=_.min.distanceTo(_.max),L=x/2,S=(_.min.x+_.max.x)/2,C=(_.min.y+_.max.y)/2,A=(_.min.z+_.max.z)/2,H=v.getViewportFromCentreAndRadius(S,C,A,L,40,L*4);y(x,H)}}}},function(n,r,o){var a=o(3),l=o(43)(a),s=o(2).Geometry,h=o(44),u=o(45).default,d=a.BufferGeometryLoader,p=function(f){var m;f&&f.isGeometry&&(m=f);var y=void 0,v=void 0,_=!1,x=void 0,L=k=>{var B=m.morph.material.clone();B.morphTargets=!1;var D=new s,z=new d,q=z.parse(k),F=new a.Mesh(q.geometry,B);return D.geometry=F.geometry,D.morph=F,D.morph.userData=D,D},S=k=>{switch(k.data.action){case"message":console.log(k.data.message);break;case"result":var B=new p(L(k.data.object));x&&x(B),x=void 0,_=!1;break;default:throw"Cannot handle specified action."}},C=k=>{if(h!==void 0&&(v=h(46)),!v)y=new(o(47)).GeometryCSGInternal(k);else if(k&&k.isGeometry){var B=k.morph,D=B.geometry.clone().applyMatrix(B.matrix).toJSON();v.addEventListener("message",function(z){S(z)}),v.postMessage({action:"initialise",object:D})}};this.getHostGeometry=()=>{var k=new l(m.morph);return new A(k)},this.getGeometry=()=>m;var A=k=>{var B=m.morph.material.clone();B.morphTargets=!1;var D=k.toMesh(B),z=new s;return z.geometry=D.geometry,z.morph=D,z.morph.userData=z,z};this.setCSG=k=>{y.setCSG(k)};var H=(k,B,D,z)=>{if(_)z("On progress");else{var q=k.morph,F=q.geometry.clone().applyMatrix(q.matrix).toJSON();x=D,_=!0,v.postMessage({action:B,object:F})}};this.intersect=k=>new u((B,D)=>{if(v)H(k,"intersect",B,D);else{var z=y.intersect(k),q=new p(A(z));q.setCSG(z),B(q)}}),this.subtract=k=>new u((B,D)=>{if(v)H(k,"intersect",B,D);else{var z=y.subtract(k),q=new p(A(z));q.setCSG(z),B(q)}}),this.union=k=>new u((B,D)=>{if(v)H(k,"intersect",B,D);else{var z=y.union(k),q=new p(A(z));q.setCSG(z),B(q)}}),this.terminateWorker=()=>{v&&v.terminate()},C(f)};r.GeometryCSG=p},function(n,r,o){var a=1e-5,l=0,s=1,h=2,u=3;n.exports=function(d){var p=function(f){var m,y,v,_,x,L,S,C=[];if(f.isBufferGeometry&&(f=new d.Geometry().fromBufferGeometry(f)),f instanceof d.Geometry)this.matrix=new d.Matrix4;else if(f.isMesh)f.updateMatrix(),this.matrix=f.matrix.clone(),f=f.geometry,f.isBufferGeometry&&(f=new d.Geometry().fromBufferGeometry(f)),f.mergeVertices(),f.computeVertexNormals(!1);else{if(f instanceof p.Node)return this.tree=f,this.matrix=new d.Matrix4,this;throw"ThreeBSP: Given geometry is unsupported"}for(m=0,y=f.faces.length;m<y;m++)v=f.faces[m],x=f.faceVertexUvs[0][m],S=new p.Polygon,v instanceof d.Face3?(_=f.vertices[v.a],L=x?new d.Vector2(x[0].x,x[0].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[0],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.b],L=x?new d.Vector2(x[1].x,x[1].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[2],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.c],L=x?new d.Vector2(x[2].x,x[2].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[2],L),_.applyMatrix4(this.matrix),S.vertices.push(_)):(d.Face4,_=f.vertices[v.a],L=x?new d.Vector2(x[0].x,x[0].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[0],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.b],L=x?new d.Vector2(x[1].x,x[1].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[1],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.c],L=x?new d.Vector2(x[2].x,x[2].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[2],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.d],L=x?new d.Vector2(x[3].x,x[3].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[3],L),_.applyMatrix4(this.matrix),S.vertices.push(_)),S.calculateProperties(),C.push(S);this.tree=new p.Node(C)};return p.prototype.subtract=function(f){var m=this.tree.clone(),y=f.tree.clone();return m.invert(),m.clipTo(y),y.clipTo(m),y.invert(),y.clipTo(m),y.invert(),m.build(y.allPolygons()),m.invert(),m=new p(m),m.matrix=this.matrix,m},p.prototype.union=function(f){var m=this.tree.clone(),y=f.tree.clone();return m.clipTo(y),y.clipTo(m),y.invert(),y.clipTo(m),y.invert(),m.build(y.allPolygons()),m=new p(m),m.matrix=this.matrix,m},p.prototype.intersect=function(f){var m=this.tree.clone(),y=f.tree.clone();return m.invert(),y.clipTo(m),y.invert(),m.clipTo(y),y.clipTo(m),m.build(y.allPolygons()),m.invert(),m=new p(m),m.matrix=this.matrix,m},p.prototype.toGeometry=function(){var f,m,y,v,_,x,L,S,C,A,H=new d.Matrix4().getInverse(this.matrix),k=new d.Geometry,B=this.tree.allPolygons(),D=B.length,z={};for(f=0;f<D;f++)for(y=B[f],v=y.vertices.length,m=2;m<v;m++)A=[],S=y.vertices[0],A.push(new d.Vector2(S.uv.x,S.uv.y)),S=new d.Vector3(S.x,S.y,S.z),S.applyMatrix4(H),typeof z[S.x+","+S.y+","+S.z]>"u"?(k.vertices.push(S),_=z[S.x+","+S.y+","+S.z]=k.vertices.length-1):_=z[S.x+","+S.y+","+S.z],S=y.vertices[m-1],A.push(new d.Vector2(S.uv.x,S.uv.y)),S=new d.Vector3(S.x,S.y,S.z),S.applyMatrix4(H),typeof z[S.x+","+S.y+","+S.z]>"u"?(k.vertices.push(S),x=z[S.x+","+S.y+","+S.z]=k.vertices.length-1):x=z[S.x+","+S.y+","+S.z],S=y.vertices[m],A.push(new d.Vector2(S.uv.x,S.uv.y)),S=new d.Vector3(S.x,S.y,S.z),S.applyMatrix4(H),typeof z[S.x+","+S.y+","+S.z]>"u"?(k.vertices.push(S),L=z[S.x+","+S.y+","+S.z]=k.vertices.length-1):L=z[S.x+","+S.y+","+S.z],C=new d.Face3(_,x,L,new d.Vector3(y.normal.x,y.normal.y,y.normal.z)),k.faces.push(C),k.faceVertexUvs[0].push(A);return k},p.prototype.toBufferGeometry=function(){var f=this.toGeometry(),m=new d.BufferGeometry().fromGeometry(f);return m},p.prototype.toMesh=function(f){var m=this.toBufferGeometry(),y=new d.Mesh(m,f);return y.position.setFromMatrixPosition(this.matrix),y.rotation.setFromRotationMatrix(this.matrix),y},p.Polygon=function(f){f instanceof Array||(f=[]),this.vertices=f,0<f.length?this.calculateProperties():this.normal=this.w=void 0},p.Polygon.prototype.calculateProperties=function(){var f=this.vertices[0],m=this.vertices[1],y=this.vertices[2];return this.normal=m.clone().subtract(f).cross(y.clone().subtract(f)).normalize(),this.w=this.normal.clone().dot(f),this},p.Polygon.prototype.clone=function(){var f,m,y=new p.Polygon;for(f=0,m=this.vertices.length;f<m;f++)y.vertices.push(this.vertices[f].clone());return y.calculateProperties(),y},p.Polygon.prototype.flip=function(){var f,m=[];for(this.normal.multiplyScalar(-1),this.w*=-1,f=this.vertices.length-1;0<=f;f--)m.push(this.vertices[f]);return this.vertices=m,this},p.Polygon.prototype.classifyVertex=function(f){var m=this.normal.dot(f)-this.w;return m<-a?h:m>a?s:l},p.Polygon.prototype.classifySide=function(f){var m,y,v,_=0,x=0,L=f.vertices.length;for(m=0;m<L;m++)y=f.vertices[m],v=this.classifyVertex(y),v===s?_++:v===h&&x++;return 0<_&&x===0?s:_===0&&0<x?h:_===0&&x===0?l:u},p.Polygon.prototype.splitPolygon=function(f,m,y,v,_){var x=this.classifySide(f);if(x===l)(0<this.normal.dot(f.normal)?m:y).push(f);else if(x===s)v.push(f);else if(x===h)_.push(f);else{var L,S,C,A,H,k,B,D,z,q=[],F=[];for(S=0,L=f.vertices.length;S<L;S++)C=(S+1)%L,k=f.vertices[S],B=f.vertices[C],A=this.classifyVertex(k),H=this.classifyVertex(B),A!=h&&q.push(k),A!=s&&F.push(k),(A|H)===u&&(D=(this.w-this.normal.dot(k))/this.normal.dot(B.clone().subtract(k)),z=k.interpolate(B,D),q.push(z),F.push(z));3<=q.length&&v.push(new p.Polygon(q).calculateProperties()),3<=F.length&&_.push(new p.Polygon(F).calculateProperties())}},p.Vertex=function(f,m,y,v,_){this.x=f,this.y=m,this.z=y,this.normal=v||new d.Vector3,this.uv=_||new d.Vector2},p.Vertex.prototype.clone=function(){return new p.Vertex(this.x,this.y,this.z,this.normal.clone(),this.uv.clone())},p.Vertex.prototype.add=function(f){return this.x+=f.x,this.y+=f.y,this.z+=f.z,this},p.Vertex.prototype.subtract=function(f){return this.x-=f.x,this.y-=f.y,this.z-=f.z,this},p.Vertex.prototype.multiplyScalar=function(f){return this.x*=f,this.y*=f,this.z*=f,this},p.Vertex.prototype.cross=function(f){var m=this.x,y=this.y,v=this.z;return this.x=y*f.z-v*f.y,this.y=v*f.x-m*f.z,this.z=m*f.y-y*f.x,this},p.Vertex.prototype.normalize=function(){var f=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);return this.x/=f,this.y/=f,this.z/=f,this},p.Vertex.prototype.dot=function(f){return this.x*f.x+this.y*f.y+this.z*f.z},p.Vertex.prototype.lerp=function(f,m){return this.add(f.clone().subtract(this).multiplyScalar(m)),this.normal.add(f.normal.clone().sub(this.normal).multiplyScalar(m)),this.uv.add(f.uv.clone().sub(this.uv).multiplyScalar(m)),this},p.Vertex.prototype.interpolate=function(f,m){return this.clone().lerp(f,m)},p.Vertex.prototype.applyMatrix4=function(f){var m=this.x,y=this.y,v=this.z,_=f.elements;return this.x=_[0]*m+_[4]*y+_[8]*v+_[12],this.y=_[1]*m+_[5]*y+_[9]*v+_[13],this.z=_[2]*m+_[6]*y+_[10]*v+_[14],this},p.Node=function(f){var m,y,v=[],_=[];if(this.polygons=[],this.front=this.back=void 0,f instanceof Array&&f.length!==0){for(this.divider=f[0].clone(),m=0,y=f.length;m<y;m++)this.divider.splitPolygon(f[m],this.polygons,this.polygons,v,_);0<v.length&&(this.front=new p.Node(v)),0<_.length&&(this.back=new p.Node(_))}},p.Node.isConvex=function(f){var m,y;for(m=0;m<f.length;m++)for(y=0;y<f.length;y++)if(m!==y&&f[m].classifySide(f[y])!==h)return!1;return!0},p.Node.prototype.build=function(f){var m,y,v=[],_=[];for(this.divider||(this.divider=f[0].clone()),m=0,y=f.length;m<y;m++)this.divider.splitPolygon(f[m],this.polygons,this.polygons,v,_);0<v.length&&(!this.front&&(this.front=new p.Node),this.front.build(v)),0<_.length&&(!this.back&&(this.back=new p.Node),this.back.build(_))},p.Node.prototype.allPolygons=function(){var f=this.polygons.slice();return this.front&&(f=f.concat(this.front.allPolygons())),this.back&&(f=f.concat(this.back.allPolygons())),f},p.Node.prototype.clone=function(){var f=new p.Node;return f.divider=this.divider.clone(),f.polygons=this.polygons.map(function(m){return m.clone()}),f.front=this.front&&this.front.clone(),f.back=this.back&&this.back.clone(),f},p.Node.prototype.invert=function(){var f,m,y;for(f=0,m=this.polygons.length;f<m;f++)this.polygons[f].flip();return this.divider.flip(),this.front&&this.front.invert(),this.back&&this.back.invert(),y=this.front,this.front=this.back,this.back=y,this},p.Node.prototype.clipPolygons=function(f){var m,y,v,_;if(!this.divider)return f.slice();for(v=[],_=[],m=0,y=f.length;m<y;m++)this.divider.splitPolygon(f[m],v,_,v,_);return this.front&&(v=this.front.clipPolygons(v)),_=this.back?this.back.clipPolygons(_):[],v.concat(_)},p.Node.prototype.clipTo=function(f){this.polygons=f.clipPolygons(this.polygons),this.front&&this.front.clipTo(f),this.back&&this.back.clipTo(f)},p}},function(n,r){n.exports=TMe()},function(n,r){n.exports=_Me},function(n,r,o){var a=o(2).Geometry,l=o(3),s=l.BufferGeometryLoader;n.exports=function(h){var u=void 0,d=function(v){var _=new s,x=_.parse(v),L=new l.MeshPhongMaterial,S=new l.Mesh(x.geometry,L),C=new a;return C.morph=S,C},p=function(v){var _=d(v);u=new(o(47)).GeometryCSGInternal(_),h.postMessage({action:"message",message:"Initialised"})},f=function(v){if(u){var _=d(v),x=u.intersect(_),L=x.toBufferGeometry().toJSON();h.postMessage({action:"result",object:L})}},m=function(v){if(u){var _=d(v),x=u.subtract(_),L=x.toBufferGeometry().toJSON();h.postMessage({action:"result",object:L})}},y=function(v){if(u){var _=d(v),x=u.union(_),L=x.toBufferGeometry().toJSON();h.postMessage({action:"result",object:L})}};h.addEventListener("message",function(v){switch(v.data.action){case"initialise":p(v.data.object);break;case"intersect":f(v.data.object);break;case"subtract":m(v.data.object);break;case"union":y(v.data.object);break;default:throw"Cannot handle specified action."}})}},function(n,r,o){var a=o(3),l=o(43)(a);o(2).Geometry,o(42).GeometryCSG;var s=function(h){var u;h&&h.isGeometry&&(u=h);var d;this.setGeometry=f=>{f&&f.isGeometry&&(u=f),d=void 0},this.setCSG=f=>{d=f};var p=f=>{if(u&&u.morph&&f&&f.morph){d===void 0&&(d=new l(u.morph));var m=new l(f.morph);return m}};this.intersect=f=>{var m=p(f);return d&&m?d.intersect(m):void 0},this.subtract=f=>{var m=p(f);return d&&m?d.subtract(m):void 0},this.union=f=>{var m=p(f);return d&&m?d.union(m):void 0}};r.GeometryCSGInternal=s},function(n,r,o){var a=o(3),l=o(43)(a);o(13).Glyphset;var s=function(h){var u;h&&h.isGlyphset&&(u=h);var d=[];this.setGlyphset=m=>{m&&m.isGlyphset&&(u=m),hostCSG=void 0},this.getGlyphset=()=>u;var p=()=>m=>{var y=m.getMesh(),v=m.getLabel();if(y){var _=new l(y.geometry.clone().applyMatrix(y.matrix)),x=[];x.csg=_,x.label=v,y.material&&(x.material=y.material.clone()),d.push(x)}},f=m=>{if(u&&m&&m.morph){d.length==0&&u.forEachGlyph(p());var y=new l(m.morph);return y}};this.intersect=m=>{var y=f(m);if(0<d.length&&y){for(var v=new(o(13)).Glyphset,_=0;_<d.length;_++){var x=d[_],L=x.csg.intersect(y),S=L.toMesh();if(S&&S.geometry&&0<S.geometry.vertices.length){x.material&&(S.material=x.material,S.material.side=a.DoubleSide,S.material.clippingPlanes=null);var C=v.addMeshAsGlyph(S,_+1);C.setLabel(x.label)}}var A=new s(v);return A}}};r.GlyphsetCSG=s}])})})(IN);var Tl=IN.exports;const SQ=qY(Tl),fU={isWebGLAvailable:function(){try{var t=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl")))}catch{return!1}},isWebGL2Available:function(){try{var t=document.createElement("canvas");return!!(window.WebGL2RenderingContext&&t.getContext("webgl2"))}catch{return!1}},getWebGLErrorMessage:function(){return this.getErrorMessage(1)},getWebGL2ErrorMessage:function(){return this.getErrorMessage(2)},getErrorMessage:function(t){var e={1:"WebGL",2:"WebGL 2"},n={1:window.WebGLRenderingContext,2:window.WebGL2RenderingContext},r='This module requires <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" style="color:#008">$1</a> support but your $0 does not seem to support it.',o=document.createElement("div");return o.id="webglmessage",o.style.fontFamily="monospace",o.style.fontSize="20px",o.style.fontWeight="normal",o.style.textAlign="center",o.style.background="#fff",o.style.color="#000",o.style.padding="1.5em",o.style.width="400px",o.style.margin="5em auto 0",n[t]?r=r.replace("$0","graphics card"):r=r.replace("$0","browser"),r=r.replace("$1",e[t]),o.innerHTML=r,o}},sw={ALL:0,DESTROYED:1,NAME_CHANGED:2,SETTINGS_CHANGED:3},C1=function(){this.typeName="Base Module",this.instanceName="default",this.onChangedCallbacks=[],this.eventNotifiers=[]};C1.prototype.setName=function(t){if(t&&this.instanceName!==t){this.instanceName=t;const e=this.onChangedCallbacks.slice();for(let n=0;n<e.length;n++)e[n](this,sw.NAME_CHANGED)}},C1.prototype.settingsChanged=function(){const t=this.onChangedCallbacks.slice();for(let e=0;e<t.length;e++)t[e](this,sw.SETTINGS_CHANGED)},C1.prototype.exportSettings=function(){const t={};return t.dialog=this.typeName,t.name=this.instanceName,t},C1.prototype.importSettings=function(t){return t.dialog==this.typeName?(this.setName(t.name),!0):!1},C1.prototype.publishChanges=function(t,e,n){for(let r=0;r<this.eventNotifiers.length;r++)this.eventNotifiers[r].publish(this,e,t,n)},C1.prototype.getName=function(){return this.instanceName},C1.prototype.destroy=function(){const t=this.onChangedCallbacks.slice();for(let e=0;e<t.length;e++)t[e](this,sw.DESTROYED);delete this},C1.prototype.addChangedCallback=function(t){this.onChangedCallbacks.includes(t)==!1&&this.onChangedCallbacks.push(t)},C1.prototype.removeChangedCallback=function(t){const e=this.onChangedCallbacks.indexOf(t);e>-1&&this.onChangedCallbacks.splice(e,1)},C1.prototype.addNotifier=function(t){this.eventNotifiers.push(t)};const Qu={ALL:0,SELECTED:1,HIGHLIGHTED:2,MOVE:3},LMe=function(t,e,n){this.eventType=t,this.identifiers=e,this.zincObjects=n},wMe=function(t,e,n){this.targetedID=[];const r=t,o=e;this.targetEventType=n;const a=this;n===void 0&&(this.targetEventType=Qu.ALL),this.getEventType=function(){return n},this.notify=function(l,s,h,u){if(l!==r&&(a.targetEventType===Qu.ALL||a.targetEventType===s)){const d=new LMe(s,h,u);o(d)}}},MMe=function(){const t=[];this.publish=function(e,n,r,o){for(let a=0;a<t.length;a++)t[a].notify(e,n,r,o)},this.subscribe=function(e,n,r){if(typeof n=="function"){const o=new wMe(e,n,r);return t.push(o),o}},this.unsubscribe=function(e){for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);return}}},SMe=function(){let t=[],e=[];this.highlightColour=[1,0,0],this.selectColour=[0,1,0],this.originalColour=[0,0,0];const n=[],r=[],o=this,a=function(h,u){if(h.length==0&&u.length==0)return!1;for(let d=0;d<h.length;d++){let p=!1;for(let f=0;f<u.length;f++)h[d]===u[f]&&(p=!0);if(!p)return!0}for(let d=0;d<u.length;d++){let p=!1;for(let f=0;f<h.length;f++)u[d]===h[f]&&(p=!0);if(!p)return!0}return!1},l=function(h,u){if(n.length=0,u.length==0)return h;for(let d=0;d<h.length;d++){let p=!1;for(let f=0;f<u.length;f++)h[d]===u[f]&&(p=!0);p||n.push(h[d])}return n};this.setHighlighted=function(h){const u=[...t];o.resetHighlighted();const d=l(h,e),p=s(d);for(let f=0;f<p.length;f++)p[f]&&p[f].material&&p[f].material.emissive&&p[f].material.emissive.setRGB(...o.highlightColour);return t=d,a(t,u)},this.setSelected=function(h){const u=[...e];l(t,h),o.resetHighlighted(),o.resetSelected();const d=s(h);for(let p=0;p<d.length;p++)d[p]&&d[p].material&&d[p].material.emissive&&d[p].material.emissive.setRGB(...o.selectColour);return e=h,a(e,u)};const s=function(h){r.length=0;for(let u=0;u<h.length;u++)h[u].material&&r.push(h[u]);return r};this.resetHighlighted=function(){const h=s(t);for(let u=0;u<h.length;u++)h[u]&&h[u].material&&(h[u].material.emissive&&h[u].material.emissive.setRGB(...o.originalColour),h[u].material.depthFunc&&(h[u].material.depthFunc=Tl.THREE.LessEqualDepth));t=[]},this.resetSelected=function(){const h=s(e);for(let u=0;u<h.length;u++)h[u]&&h[u].material&&(h[u].material.emissive&&h[u].material.emissive.setRGB(...o.originalColour),h[u].material.depthFunc&&(h[u].material.depthFunc=Tl.THREE.LessEqualDepth));e=[]},this.getSelected=function(){return e},this.reset=function(){o.resetSelected(),o.resetHighlighted()}},lw=SQ.THREE,CMe=function(){const t=document.createElement("div");let e;if(t.style.height="100%",fU.isWebGLAvailable())e=new SQ.Renderer(t,window),SQ.defaultMaterialColor=16777116,e.initialiseVisualisation(),e.playAnimation=!1;else{const n=fU.getWebGLErrorMessage();t.appendChild(n)}return{Zinc:SQ,renderer:e,container:t}},ii=function(){C1.call(this),this.scene=void 0,this.rendererContainer=void 0,this.displayArea=void 0,this.graphicsHighlight=new SMe,this.zincRenderer=null,this.selectedScreenCoordinates=new lw.Vector3,this.selectedCenter=void 0,this.liveUpdatesObjects=void 0};ii.prototype=Object.create(C1.prototype),ii.prototype.getIntersectedObject=function(t){if(t){const e=t.map(r=>{if(r&&r.object&&r.object.userData){if(r.object.userData.isMarker)return 1;if(r.object.name&&r.object.userData.isZincObject)return 2}return 0});let n=e.indexOf(1);return n=n>-1?n:e.indexOf(2),t[n]}},ii.prototype.getAnnotationsFromObjects=function(t){const e=[];for(var n=0;n<t.length;n++){const r=t[n].userData;let o;if(r)if(r.isGlyph||r.isGlyphset){let a=r;r.isGlyph&&(a=r.getGlyphset()),o=a.userData?a.userData.annotation:void 0,o&&o.data&&(t[n].name&&t[n].name!=""?o.data.id=t[n].name:o.data.id=a.groupName)}else o=r.userData?r.userData.annotation:void 0,o&&o.data&&(o.data.id=t[n].name);o&&e.push(o)}return e},ii.prototype.setHighlightedByObjects=function(t,e,n){const r=this.graphicsHighlight.setHighlighted(t),o=this.objectsToZincObjects(t);if(n){let a=Qu.MOVE;r&&(a=Qu.HIGHLIGHTED);const l=this.getAnnotationsFromObjects(t);l.length>0&&(l[0].coords=e),this.publishChanges(l,a,o)}return r},ii.prototype.setHighlightedByZincObjects=function(t,e,n){let r=[];return t&&t.forEach(o=>{o&&o.morph&&r.push(o.morph)}),this.setHighlightedByObjects(r,e,n)},ii.prototype.setupLiveCoordinates=function(t){if(this.liveUpdatesObjects=t,t&&t.length>0){const e=this.scene.getBoundingBoxOfZincObjects(t);let n=new lw.Vector3;e.getCenter(n),this.selectedCenter==null?this.selectedCenter=n:this.selectedCenter.copy(n)}else this.selectedCenter=void 0},ii.prototype.objectsToZincObjects=function(t){const e=[];for(let n=0;n<t.length;n++){let r=t[n].userData;if(r)if(r.isGlyph||r.isGlyphset){let o=r;r.isGlyph&&(o=r.getGlyphset()),e.push(o)}else e.push(r)}return e},ii.prototype.setSelectedByObjects=function(t,e,n){const r=this.graphicsHighlight.setSelected(t);if(r){const o=this.objectsToZincObjects(t);if(this.setupLiveCoordinates(o),n){const a=Qu.SELECTED,l=this.getAnnotationsFromObjects(t);l.length>0&&(l[0].coords=e),this.publishChanges(l,a,o)}}return r},ii.prototype.setSelectedByZincObjects=function(t,e,n){let r=[];return t&&t.forEach(o=>{o&&o.morph&&r.push(o.morph)}),this.setSelectedByObjects(r,e,n)};const EMe=function(t){return function(e){t.push(e.getMesh())}};ii.prototype.findObjectsByGroupName=function(t){const e=this.scene.findGeometriesWithGroupName(t),n=[];for(let o=0;o<e.length;o++)n.push(e[o].morph);const r=this.scene.findGlyphsetsWithGroupName(t);for(let o=0;o<r.length;o++)r[o].forEachGlyph(EMe(n));return n},ii.prototype.setHighlightedByGroupName=function(t,e){const n=this.findObjectsByGroupName(t);return this.setHighlightedByObjects(n,void 0,e)},ii.prototype.setSelectedByGroupName=function(t,e){const n=this.findObjectsByGroupName(t);return this.setSelectedByObjects(n,void 0,e)},ii.prototype.changeBackgroundColour=function(t){const e=new lw.Color(t);this.zincRenderer&&this.zincRenderer.getThreeJSRenderer().setClearColor(e,1)},ii.prototype.resetView=function(){this.zincRenderer&&this.zincRenderer.resetView()},ii.prototype.viewAll=function(){this.zincRenderer&&this.zincRenderer.viewAll()},ii.prototype.playAnimation=function(t){this.zincRenderer&&(this.zincRenderer.playAnimation=t)},ii.prototype.setPlayRate=function(t){this.zincRenderer&&this.zincRenderer.setPlayRate(t)},ii.prototype.getPlayRate=function(t){return this.zincRenderer?this.zincRenderer.getPlayRate():0},ii.prototype.initialiseRenderer=function(t){if(this.zincRenderer===void 0||this.rendererContainer===void 0){let e=CMe();this.Zinc=e.Zinc,this.zincRenderer=e.renderer,this.rendererContainer=e.container}t&&(this.displayArea=t,this.displayArea.appendChild(this.rendererContainer),this.zincRenderer&&this.zincRenderer.animate())},ii.prototype.destroy=function(){this.zincRenderer&&(this.zincRenderer.dispose(),this.zincRenderer.getThreeJSRenderer().dispose(),this.zincRenderer=void 0),C1.prototype.destroy.call(this)};const HMe=function(){this.type="anatomical",this.data=void 0,this.isAnnotation=!0},AMe=function(){this.currentName="",this.currentSystem="",this.currentPart="",this.currentSpecies="",this.metaURL="",this.viewURL="",this.currentTime=0,this.timeVarying=!1},TU=function(t){ii.call(this);const e=this;let n;this.sceneData=new AMe;const r=new Array,o=new Array,a=new Array;let l;const s=t;this.NDCCameraControl=void 0,e.typeName="Organ Viewer",this.currentTime=0,this.getSceneData=function(){return e.sceneData},this.updateTime=function(A){let H=6e3;e.scene&&(H=e.scene.getDuration());const k=A/100*H;e.sceneData.nerveMapIsActive||e.scene&&e.scene.setMorphsTime(k),e.sceneData.currentTime=A,e.currentTime=A};const h=function(){let A=3e3;e.scene&&(A=e.scene.getDuration());const H=e.zincRenderer.getCurrentTime();for(let k=0;k<r.length;k++)r[k](H);!e.sceneData.nerveMapIsActive&&n&&n.setMorphsTime(H),e.sceneData.nerveMap&&e.sceneData.nerveMap.additionalReader&&e.sceneData.nerveMap.additionalReader.setTime(H/A),e.sceneData.currentTime=H/A*100,e.currentTime=H/A*100};this.getCurrentTime=function(){return e.sceneData.currentTime},this.toggleSyncControl=(A,H)=>{let k=this.scene.getZincCameraControls();A?(k.resetView(),this.NDCCameraControl=k.enableSyncControl(),k.setRotationMode(H)):(k.disableSyncControl(),this.NDCCameraControl=void 0,k.setRotationMode("free"))},this.isSyncControl=()=>this.NDCCameraControl!==void 0,this.setSyncControlZoomToBox=A=>{this.NDCCameraControl&&this.NDCCameraControl.zoomToBox(A,2)},this.setSyncControlCallback=A=>{this.NDCCameraControl&&this.NDCCameraControl.setEventCallback(A)},this.setSyncControlCenterZoom=(A,H)=>{this.NDCCameraControl&&this.NDCCameraControl.setCenterZoom(A,H)};const u=function(){if(e.zincRenderer.playAnimation&&e.liveUpdatesObjects&&e.setupLiveCoordinates(e.liveUpdatesObjects),e.selectedCenter){const A=new Tl.THREE.Vector3;A.copy(e.selectedCenter);const H=e.scene.vectorToScreenXY(A);e.selectedScreenCoordinates.x=H.x,e.selectedScreenCoordinates.y=H.y}},d=function(){return function(){h()}},p=function(){return function(){u()}};this.addTimeChangedCallback=function(A){r.push(A)},this.setTexturePos=function(A){e.sceneData.nerveMap&&e.sceneData.nerveMap.additionalReader&&e.sceneData.nerveMap.additionalReader.setSliderPos(A)},this.addSceneChangedCallback=function(A){o.push(A)},this.addOrganPartAddedCallback=function(A){a.push(A)},this.setFinishDownloadCallback=function(A){l=A},this.unsetFinishDownloadCallback=function(){l=void 0},this.getNamedObjectsToScreenCoordinates=function(A,H){const k=new Tl.THREE.Vector3;k.setFromMatrixPosition(obj.matrixWorld);const B=width/2,D=height/2;return k.project(H),k.x=k.x*B+B,k.y=-(k.y*D)+D,k};const f=function(A){let H,k;if(A!==void 0){let B=!1;A.object.userData&&A.object.userData.isMarker?(B=!0,k=A.object.userData.parent.morph):k=A.object;try{k.userData.userData.annotation.data.lastActionOnMarker=B}finally{}if(k)if(k.name)H=k.name;else{const D=e.getAnnotationsFromObjects([k]);D&&D[0]&&(H=D[0].data.group)}}return{id:H,object:k}},m=function(){return function(A,H,k){const B=e.getIntersectedObject(A),D=f(B),z={x:H,y:k};if(D.id){D.object.userData.isGlyph?D.object.name?e.setSelectedByObjects([D.object],z,!0):e.setSelectedByZincObjects(D.object.userData.getGlyphset(),z,!0):e.setSelectedByObjects([D.object],z,!0);return}else e.setSelectedByObjects([],z,!0)}},y=function(){return function(A,H,k){const B=e.getIntersectedObject(A),D=f(B),z={x:H,y:k};if(D.id){e.displayArea.style.cursor="pointer",e.setHighlightedByObjects([D.object],z,!0);return}else e.displayArea.style.cursor="auto",e.setHighlightedByObjects([],z,!0)}},v=function(A,H,k,B){if(B=="all"||B=="geometries"){const D=A.findGeometriesWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}if(B=="all"||B=="glyphsets"){const D=A.findGlyphsetsWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}if(B=="all"||B=="pointsets"){const D=A.findPointsetsWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}if(B=="all"||B=="lines"){const D=A.findLinesWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}};this.changeGeometriesVisibility=function(A,H){v(e.scene,A,H,"geometries")},this.changeGlyphsetsVisibility=function(A,H){v(e.scene,A,H,"glyphsets")},this.changeLinesVisibility=function(A,H){v(e.scene,A,H,"lines")},this.changePointsetsVisibility=function(A,H){v(e.scene,A,H,"pointsets")},this.changeOrganPartsVisibility=function(A,H,k){let B="all";k!==void 0&&(B=k),v(e.scene,A,H,B)},this.changeOrganPartsVisibilityCallback=function(A){return function(H){e.changeOrganPartsVisibility(A,H)}},this.changeBackgroundColour=function(A){const H=new Tl.THREE.Color(A);e.zincRenderer&&e.zincRenderer.getThreeJSRenderer().setClearColor(H,1)};const _=function(A,H,k,B){for(let q=0;q<a.length;q++)a[q](B,e.scene.isTimeVarying());k&&s.setGeometryColour(B,A,H);const D=new HMe,z=B.region.getFullPath();D.data={species:e.sceneData.currentSpecies,system:A,part:H,group:B.groupName,region:z,uuid:B.uuid,lastActionOnMarker:!1},B.userData.annotation=D},x=function(A,H,k){return function(B){_(A,H,k,B)}},L=function(){return function(){e.settingsChanged(),e.sceneData.timeVarying=e.scene.isTimeVarying(),l&&l()}};this.updateFieldvisibility=function(A,H){for(let k=0;k<A.length;k++)if(H!=k){const B=A[k].PartName;e.changeOrganPartsVisibility(B,!1)}if(H>-1){const k=A[H].PartName;if(e.scene.findGeometriesWithGroupName(k).length>0||e.scene.findGlyphsetsWithGroupName(k).length>0)e.changeOrganPartsVisibility(k,!0);else{const B=getOrganDetails(A[H].SystemName,k);B!=null&&e.scene.loadMetadataURL(s.getOrgansDirectoryPrefix()+"/"+B.meta)}}},this.getAvailableSpecies=function(A,H,k){const B=new Array;B.push("none");const D=Object.keys(organsFileMap);for(index in D){const z=D[index];z!=A&&organsFileMap[z].hasOwnProperty(H)&&organsFileMap[z][H].hasOwnProperty(k)&&B.push(z)}return B};const S=function(A,H,k,B){e.sceneData.nerveMapIsActive=!1,e.sceneData.nerveMap=void 0,e.sceneData.metaURL="",e.sceneData.viewURL="",e.sceneData.currentSpecies=A,e.sceneData.currentSystem=H,e.sceneData.currentPart=k,e.sceneData.currentTime=0,e.sceneData.timeVarying=!1,e.currentTime=0;let D="";A&&(D=A+"/"),H&&(D=H+"/"),k&&(D=k),e.sceneData.currentName=D};this.loadOrgansFromURL=function(A,H,k,B,D,z){if(e.zincRenderer&&B&&e.sceneData.metaURL!==A){S(H,k,B);const q=e.sceneData.currentName;let F=e.zincRenderer.getSceneByName(q);F?z&&F.clearAll():F=e.zincRenderer.createScene(q);for(let K=0;K<o.length;K++)o[K](e.sceneData);D&&D!=""?(e.sceneData.viewURL=D,F.loadViewURL(e.sceneData.viewURL)):e.sceneData.viewURL=void 0,e.sceneData.metaURL=A,F.loadMetadataURL(A,x(k,B,!1),L()),e.scene=F,e.zincRenderer.setCurrentScene(F),e.graphicsHighlight.reset();const Z=F.getZincCameraControls();Z.enableRaycaster(F,m(),y()),Z.setMouseButtonAction("AUXILIARY","ZOOM"),Z.setMouseButtonAction("SECONDARY","PAN")}},this.loadGLTFFromURL=function(A,H,k){if(e.zincRenderer&&H&&e.sceneData.metaURL!==A){S(void 0,void 0,H);const B=e.sceneData.currentName;let D=e.zincRenderer.getSceneByName(B);D?k&&D.clearAll():D=e.zincRenderer.createScene(B);for(let q=0;q<o.length;q++)o[q](e.sceneData);e.sceneData.viewURL=void 0,e.sceneData.metaURL=A,D.loadGLTF(A,x(void 0,H,!1),L()),e.scene=D,e.zincRenderer.setCurrentScene(D),e.graphicsHighlight.reset();const z=D.getZincCameraControls();z.enableRaycaster(D,m(),y()),z.setMouseButtonAction("AUXILIARY","ZOOM"),z.setMouseButtonAction("SECONDARY","PAN")}},this.alignCameraWithSelectedObject=function(A){const H=e.graphicsHighlight.getSelected();H&&H[0]&&H[0].userData&&e.scene.alignObjectToCameraView(H[0].userData,A)},this.exportSettings=function(){const A={};return A.name=e.instanceName,e.sceneData.currentSystem&&(A.system=e.sceneData.currentSystem),e.sceneData.currentSpecies&&(A.species=e.sceneData.currentSpecies),e.sceneData.currentPart&&(A.part=e.sceneData.currentPart),A.metaURL=e.sceneData.metaURL,e.sceneData.viewURL&&(A.viewURL=e.sceneData.viewURL),A.dialog="Organ Viewer",A},this.importSettings=function(A){return A&&A.dialog==this.typeName?(e.setName(A.name),A.metaURL!==void 0&&A.metaURL!=""?e.loadOrgansFromURL(A.metaURL,A.species,A.system,A.part,A.viewURL,!0):e.loadOrgans(A.species,A.system,A.part),!0):!1},function(){e.initialiseRenderer(void 0),e.zincRenderer&&(e.zincRenderer.addPreRenderCallbackFunction(d()),e.zincRenderer.addPostRenderCallbackFunction(p()))}()};TU.prototype=Object.create(ii.prototype);const VMe={name:"ScaffoldVuer",components:{Button:ed,Col:_c,Loading:OE,Option:zg,Popover:ld,Row:u0,Select:Fg,Slider:d0,TabPane:ME,Tabs:wE,MapSvgIcon:jme,MapSvgSpriteColor:ege,PrimitiveControls:RE,ScaffoldTooltip:qR,TreeControls:FE,ElIconWarningFilled:CS,ElIconArrowDown:Ph,ElIconArrowLeft:cc},props:{url:{type:String,default:""},showColourPicker:{type:Boolean,default:!1},displayUI:{type:Boolean,default:!0},displayAtStartUp:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!0},warningMessage:{type:String,default:"Beta feature - under active development"},displayLatestChanges:{type:Boolean,default:!1},latestChangesMessage:{type:String,default:"New feature - Local search is now available"},displayMarkers:{type:Boolean,default:!1},markerLabels:{type:Array,default:function(){return[]}},displayMinimap:{type:Boolean,default:!1},format:{type:String,default:"metadata"},minimapSettings:{type:Object,default:function(){return{x_offset:16,y_offset:16,width:128,height:128,align:"top-right"}}},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},state:{type:Object,default:void 0},region:{type:String,default:""},viewURL:{type:String,default:""},render:{type:Boolean,default:!0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"}},provide(){return{flatmapAPI:this.flatmapAPI,scaffoldUrl:this.url}},data:function(){return{currentTime:0,timeVarying:void 0,isPlaying:!1,isReady:!1,isTransitioning:!1,tooltipAppendToBody:!1,hoverVisibilities:[{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1}],inHelp:!1,loading:!1,duration:3e3,drawerOpen:!0,currentBackground:"white",availableBackground:["white","lightskyblue","black"],minimisedSlider:!1,sliderPosition:"",timeMax:100,orginalDuration:"",animateDuration:"6secs",playSpeed:[{value:.1,label:"0.1x"},{value:.5,label:"0.5x"},{value:1,label:"1x"},{value:2,label:"2x"},{value:5,label:"5x"},{value:10,label:"10x"}],currentSpeed:1,timeStamps:{},defaultCheckedKeys:[],tData:{label:"",region:"",visible:!1,x:200,y:200,active:!1},fileFormat:"metadata",previousMarkerLabels:[],viewingMode:"Exploration",viewingModes:["Annotation","Exploration"],openMapRef:void 0,backgroundIconRef:void 0}},watch:{format:{handler:function(t){this.fileFormat=t},immediate:!0},url:{handler:function(t){(this.state===void 0||this.state.url===void 0)&&this.setURL(t)},immediate:!0},region:{handler:function(t){this.state||this.viewURL||this.setFocusedRegion(t)},immediate:!0},state:{handler:function(t){this.setState(t)},immediate:!0,deep:!0},viewURL:{handler:function(t){this.updateViewURL(t)},immediate:!0},helpMode:function(t){this.setHelpMode(t)},displayMarkers:function(t){this.$module.scene.displayMarkers=t,this.$module.scene.forcePickableObjectsUpdate=!0},displayMinimap:function(t){this.$module.scene.displayMinimap=t},currentTime:{handler:function(){this.$emit("timeChanged",this.currentTime)}},duration:function(){this.$module.scene.setDuration(this.duration)},minimapSettings:{deep:!0,handler:"updateMinimapScissor"},render:function(t){this.toggleRendering(t)},markerLabels:function(t){this.previousMarkerLabels.forEach(e=>{this.setMarkerModeForObjectsWithName(e,"off")}),t.forEach(e=>{this.setMarkerModeForObjectsWithName(e,"on")}),this.previousMarkerLabels=t}},beforeCreate:function(){this.$module=new TU,this.selectedObjects=[],this.hoveredObjects=[],this.currentBackground="white",this._currentURL=void 0,this.availableBackground=["white","black","lightskyblue"],this.$_searchIndex=new Qge},created:function(){this.timeVarying=c.toRef(this.$module.sceneData,"timeVarying")},mounted:function(){this.openMapRef=c.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=c.shallowRef(this.$refs.backgroundIconRef),this.$refs.treeControls.setModule(this.$module);let t=new MMe;t.subscribe(this,this.eventNotifierCallback),this.$module.addNotifier(t),this.$module.addOrganPartAddedCallback(this.zincObjectAdded),this.$module.initialiseRenderer(this.$refs.display),this.toggleRendering(this.render),this.ro=new ResizeObserver(this.adjustLayout).observe(this.$refs.scaffoldContainer),this.defaultRate=this.$module.getPlayRate(),this.$module.zincRenderer.addPreRenderCallbackFunction(()=>{this.currentTime=this.$module.getCurrentTime()})},beforeDestroy:function(){this.ro&&this.ro.disconnect(),this.$module.destroy(),this.$module=void 0},methods:{addZincObject:function(t){this.$module.scene&&(this.$module.scene.addZincObject(t),this.zincObjectAdded(t),this.$refs.treeControls&&this.$refs.treeControls.zincObjectAdded(t))},zincObjectAdded:function(t){this.loading=!1,this.$_searchIndex.addZincObject(t,t.uuid),this.$emit("zinc-object-added",t)},addRegionsToSearchIndex:function(){this.$module.scene.getRootRegion().getChildRegions(!0).forEach(n=>{this.$_searchIndex.addRegion(n,n.uuid)})},backgroundChangeCallback:function(t){this.currentBackground=t,this.$module.zincRenderer.getThreeJSRenderer().setClearColor(this.currentBackground,1)},captureScreenshotCallback:function(){this.$module.zincRenderer.removePostRenderCallbackFunction(this.captureID);let t=this.$module.zincRenderer.getThreeJSRenderer().domElement.toDataURL("image/png"),e=document.createElement("a");document.body.append(e),this.captureFilename?e.download=this.captureFilename:e.download="screenshot.png",e.href=t,e.click(),e.remove()},captureScreenshot:function(t){this.captureFilename=t,this.captureID=this.$module.zincRenderer.addPostRenderCallbackFunction(this.captureScreenshotCallback)},clearScene:function(){this.$refs.treeControls&&this.$refs.treeControls.clear(),this.$_searchIndex&&this.$_searchIndex.removeAll(),this.$module.scene&&this.$module.scene.clearAll()},formatTooltip(t){if(this.timeMax>=1e3&&t){let e=(t%6e4/1e3).toFixed(2)+"s";return(t>6e4?(t/6e4).toFixed(0)+"m ":"")+e}return t?t.toFixed(2)+" ms":"0 ms"},fitWindow:function(){this.$module.scene&&this.$module.scene.viewAll()},zoomIn:function(){this.$module.scene&&this.$module.scene.changeZoomByScrollRateUnit(-1)},zoomOut:function(){this.$module.scene&&this.$module.scene.changeZoomByScrollRateUnit(1)},speedChanged:function(t){this.currentSpeed=t,this.$module.setPlayRate(this.defaultRate*this.currentSpeed)},stopFreeSpin:function(){this.$module.scene.getZincCameraControls().stopAutoTumble(),this.isTransitioning=!1},findObjectsWithGroupName:function(t){let e=[];return t&&t!=""&&this.$module.scene&&(e=this.$module.scene.findObjectsWithGroupName(t)),e},viewRegion:function(t){const e=this.$module.scene.getRootRegion(),n=Array.isArray(t)?t:[t],r=T0(e,n,"",!0);let o=this.$module.scene.getBoundingBoxOfZincObjects(r);if(o){if(this.$module.isSyncControl())this.$module.setSyncControlZoomToBox(o);else{const a=this.$module.scene.camera.far-this.$module.scene.camera.near;this.$module.scene.viewAllWithBoundingBox(o),this.$module.scene.camera.far=this.$module.scene.camera.near+a,this.$module.scene.camera.updateProjectionMatrix()}return!0}return!1},setFocusedRegion:function(t){t&&(this.isReady?this.viewRegion(t):this.$module.setFinishDownloadCallback(this.setURLFinishCallback({region:t})))},updateViewURL:function(t){if(t)if(this.isReady){const e=new URL(t,this.url);this.$module.scene.loadViewURL(e)}else this.$module.setFinishDownloadCallback(this.setURLFinishCallback({viewURL:t}))},getRendererInfo:function(){if(this.$module.zincRenderer)return this.$module.zincRenderer.getThreeJSRenderer().info},freeSpin:function(){if(this.$module.scene){let t=this.$module.scene.getZincCameraControls();this.isTransitioning=!0,t.enableAutoTumble(),t.autoTumble([1,0],Math.PI,!0),setTimeout(this.stopFreeSpin,4e3)}},eventNotifierCallback:function(t){const e=[];let n=[];if((t.eventType==1||t.eventType==2)&&(t.identifiers.forEach(r=>{if(r){let o=r.data.id?r.data.id:r.data.group;e.push(o)}}),n=t.zincObjects),t.eventType==1)this.$refs.treeControls&&(e.length>0?this.$refs.treeControls.updateActiveUI(n):(this.hideRegionTooltip(),this.$refs.treeControls.removeActive(!0))),this.viewingMode==="Annotation"&&this.showRegionTooltipWithAnnotations(t.identifiers,!0,!0),this.$emit("scaffold-selected",t.identifiers);else if(t.eventType==2){if(this.selectedObjects.length===0){if(this.hideRegionTooltip(),this.$refs.treeControls&&(e.length>0?this.$refs.treeControls.updateHoverUI(n):this.$refs.treeControls.removeHover(!0)),t.identifiers.length>0&&t.identifiers[0]){let r=t.identifiers[0].data.id?t.identifiers[0].data.id:t.identifiers[0].data.group;t.identifiers[0].coords&&(this.tData.active=!1,this.tData.visible=!0,this.tData.label=r,t.identifiers[0].data.region?this.tData.region=t.identifiers[0].data.region:this.tData.region=void 0,this.tData.x=t.identifiers[0].coords.x,this.tData.y=t.identifiers[0].coords.y)}this.$emit("scaffold-highlighted",t.identifiers)}}else if(t.eventType==3&&t.identifiers.length>0&&t.identifiers[0]&&t.identifiers[0].coords){const r=this.$refs.scaffoldContainer.getBoundingClientRect();this.tData.x=t.identifiers[0].coords.x-r.left,this.tData.y=t.identifiers[0].coords.y-r.top}},getCoordinatesOfSelected:function(){if(this.selectedObjects&&this.selectedObjects.length>0)return this.$module.scene.getObjectsScreenXY(this.selectedObjects)},getDynamicSelectedCoordinates:function(){return this.$module.selectedScreenCoordinates},timeChange:function(t){let e=t/this.timeMax*100;e!=this.currentTime&&(this.$module.updateTime(e),console.log(this.currentTime))},objectSelected:function(t,e){this.selectedObjects=t,this.selectedObjects&&this.selectedObjects.length>0&&this.$refs.primitiveControls.setObject(this.selectedObjects[0]),this.$module.setSelectedByZincObjects(t,void 0,e)},objectHovered:function(t,e){this.hoveredObjects=t,this.$module.setHighlightedByZincObjects(t,void 0,e)},changeActiveByName:function(t,e,n){const r=Array.isArray(t);if(t===void 0||r&&t.length===0)this.$refs.treeControls.removeActive(n);else{let o=t;r||(o=[o]),this.$refs.treeControls.changeActiveByNames(o,e,n)}},changeHighlightedByName:function(t,e,n){const r=Array.isArray(t);if(t===void 0||r&&t.length===0)this.$refs.treeControls.removeHover(n);else{let o=t;r||(o=[o]),this.$refs.treeControls.changeHoverByNames(o,e,n)}},play:function(t){this.$module.playAnimation(t),this.isPlaying=t},setHelpMode:function(t){t?(this.inHelp=!0,this.hoverVisibilities.forEach(e=>{e.value=!0})):(this.inHelp=!1,this.hoverVisibilities.forEach(e=>{e.value=!1}))},displayTooltipOfObjectsCallback:function(t,e,n,r,o){const a=this;return function(){a.$module.zincRenderer.removePostRenderCallbackFunction(a.$_regionTooltipCallback),a.$_regionTooltipCallback=void 0,a.displayTooltipOfObjects(t,e,n,r,o)}},liveUpdateTooltipPosition:function(){this.$module.selectedCenter&&(this.tData.x=this.$module.selectedScreenCoordinates.x,this.tData.y=this.$module.selectedScreenCoordinates.y)},displayTooltipOfObjects:function(t,e,n,r,o){if(e.length>0){let a=e[0].getClosestVertexDOMElementCoords(this.$module.scene);if(a)return a.inView?(t.includes("Search Results for")?this.tData.active=!1:this.tData.active=!0,this.tData.visible=!0,this.tData.label=t,this.tData.x=a.position.x,this.tData.y=a.position.y,this.tData.region=n,this.$_liveCoordinatesUpdated&&this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_liveCoordinatesUpdated),o&&(this.$module.setupLiveCoordinates(e),this.$_liveCoordinatesUpdated=this.$module.zincRenderer.addPostRenderCallbackFunction(this.liveUpdateTooltipPosition))):(this.hideRegionTooltip(),r&&(this.$module.scene.viewAll(),this.$_regionTooltipCallback&&this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_regionTooltipCallback),this.$_regionTooltipCallback=this.$module.zincRenderer.addPostRenderCallbackFunction(this.displayTooltipOfObjectsCallback(t,e,n,r,o)))),!0}return this.hideRegionTooltip(),!1},showRegionTooltipWithObjects:function(t,e,n,r,o){return t&&e&&e.length>0&&this.$module.scene?this.displayTooltipOfObjects(t,e,n,r,o):(this.hideRegionTooltip(),!1)},showRegionTooltip:function(t,e,n){if(t&&this.$module.scene){const r=this.$module.scene.getRootRegion(),a=T0(r,[t],"",!0);let l;return a&&a.length>0&&(l=a[0].getRegion().getFullPath()),this.showRegionTooltipWithObjects(t,a,l,e,n)}return this.hideRegionTooltip(),!1},showRegionTooltipWithAnnotations:function(t,e,n){if(this.$module.scene){const r=DE(this.$module.scene,t);if(r&&r.objects.length>0)return this.showRegionTooltipWithObjects(r.label,r.objects,r.regionPath,e,n)}return this.hideRegionTooltip(),!1},hideRegionTooltip:function(){this.$_liveCoordinatesUpdated&&(this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_liveCoordinatesUpdated),this.$module.setupLiveCoordinates(void 0)),this.tData.active=!1,this.tData.visible=!1,this.tData.region=void 0},setMarkerModeForObjectsWithName:function(t,e){if(t&&this.$module.scene){const n=this.$module.scene.getRootRegion();T0(n,[t],"",!0).forEach(a=>a.setMarkerMode(e))}},setMarkerModeWithAnnotations:function(t,e){if(this.$module.scene){const n=DE(this.$module.scene,t);n&&n.objects.length>0&&n.objects.forEach(r=>r.setMarkerMode(e))}},showHelpText:function(t){this.inHelp||(this.helpTextWait=setTimeout(()=>{this.hoverVisibilities[t].value=!0},500))},hideHelpText:function(t){this.inHelp||(this.hoverVisibilities[t].value=!1,clearTimeout(this.helpTextWait))},search:function(t,e){if(this.$_searchIndex){if(t===void 0||t===""||Array.isArray(t)&&t.length===0)return this.objectSelected([],!0),!1;{const n=this.$_searchIndex.searchAndProcessResult(t),r=n.zincObjects;if(r.length>0){if(this.objectSelected(r,!0),e)for(let o=0;o<r.length;o++)r[o]&&r[o].groupName&&this.showRegionTooltipWithObjects(n.label,r,n.regionPath,!0,!0);return!0}else this.objectSelected([],!0)}}return!1},fetchSuggestions:function(t){return this.$_searchIndex===void 0?[]:this.$_searchIndex.auto_suggest(t)},updateMinimapScissor:function(){Object.keys(this.minimapSettings).forEach(t=>{this.$module.scene.minimapScissor[t]=this.minimapSettings[t]}),this.$module.scene.minimapScissor.updateRequired=!0},updateSettingsfromScene:function(){this.currentSpeed=1,this.$module.setPlayRate(this.defaultRate),this.orginalDuration=this.$module.scene.getMetadataTag("OriginalDuration"),this.animateDuration=this.$module.scene.getMetadataTag("Duration");let t=this.$module.scene.getMetadataTag("TimeStamps");this.timeStamps={};for(const e in t)this.timeStamps[t[e]]=e;this.timeMax=this.$module.scene.getDuration()},setURLFinishCallback:function(t){return()=>{if(t){if(t.viewport)this.$module.scene.getZincCameraControls().setCurrentCameraSettings(t.viewport);else if(t.viewURL&&t.viewURL!==""){const e=new URL(t.viewURL,this.url);this.$module.scene.loadViewURL(e)}else t.region&&t.region!==""&&this.viewRegion(t.region);t.visibility&&this.$nextTick(()=>{this.$refs.treeControls.setState(t.visibility)})}this.updateSettingsfromScene(),this.$module.updateTime(.01),this.$module.updateTime(0),this.$module.unsetFinishDownloadCallback(),this.addRegionsToSearchIndex(),this.$emit("on-ready"),this.setMarkers(),this.isReady=!0}},getState:function(){let t={format:this.fileFormat,url:this._currentURL,viewport:void 0,visibility:void 0};if(this.$refs.treeControls&&(t.visibility=this.$refs.treeControls.getState()),this.$module.scene){let e=this.$module.scene.getZincCameraControls();t.viewport=e.getCurrentViewport()}return t},setState:function(t){t&&(t.url&&t.url!==this._currentURL?this.setURLAndState(t.url,{fileFormat:t.fileFormat,viewport:t.viewport,visibility:t.visibility}):(t.viewport||t.visibility)&&(this.isReady&&this.$module.scene?(t.viewport&&this.$module.scene.getZincCameraControls().setCurrentCameraSettings(t.viewport),t.visibility&&this.$refs.treeControls.setState(t.visibility)):this.$module.setFinishDownloadCallback(this.setURLFinishCallback({viewport:t.viewport,visibility:t.visibility}))))},exportGLTF:function(t){return this.$module.scene.exportGLTF(t)},setURLAndState:function(t,e){if(t!=this._currentURL){e&&e.format&&(this.fileFormat=e.format);let n=e&&e.viewport?e.viewport:void 0,r=e&&e.visibility?e.visibility:void 0;this._currentURL=t,this.$refs.treeControls&&this.$refs.treeControls.clear(),this.loading=!0,this.isReady=!1,this.$_searchIndex.removeAll(),this.hideRegionTooltip(),this.$module.setFinishDownloadCallback(this.setURLFinishCallback({viewport:n,region:this.region,viewURL:this.viewURL,visibility:r})),this.fileFormat==="gltf"?this.$module.loadGLTFFromURL(t,"scene",!0):this.$module.loadOrgansFromURL(t,void 0,void 0,"scene",void 0,!0),this.$module&&this.$module.scene&&(this.$module.scene.displayMarkers=this.displayMarkers,this.$module.scene.forcePickableObjectsUpdate=!0,this.$module.scene.displayMinimap=this.displayMinimap,this.updateMinimapScissor())}},setURL:function(t){this.setURLAndState(t,void 0)},drawerToggled:function(t){this.drawerOpen=t,this.adjustLayout()},adjustLayout:function(){let t=this.$refs.scaffoldContainer.clientWidth;this.minimisedSlider=t<812,this.minimisedSlider?this.sliderPosition=this.drawerOpen?"right":"left":this.sliderPosition=""},toggleRendering:function(t){this.$module.zincRenderer&&(t?this.$module.zincRenderer.animate():this.$module.zincRenderer.stopAnimate())},forceResize:function(){this.$module.zincRenderer&&this.$module.zincRenderer.onWindowResize()},syncControlCallback:function(){const t=this.$module.NDCCameraControl.getPanZoom();this.tData.visible&&this.showRegionTooltip(this.tData.label,!0,!0),this.$emit("scaffold-navigated",t)},toggleSyncControl:function(t,e){this.$module.toggleSyncControl(t,e),this.$module.setSyncControlCallback(this.syncControlCallback)},setMarkers:function(){this.markerLabels.forEach(t=>{this.setMarkerModeForObjectsWithName(t,"on")})}}},cw=t=>(c.pushScopeId("data-v-f7f6eacf"),t=t(),c.popScopeId(),t),OMe={ref:"scaffoldContainer",class:"scaffold-container","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},kMe=cw(()=>c.createElementVNode("span",{class:"message-text"},"Beta",-1)),PMe=cw(()=>c.createElementVNode("span",{class:"message-text"},"What's new?",-1)),IMe={class:"primitive-controls-box"},RMe={class:"animation-data"},NMe={class:"purple"},BMe={class:"animation-data"},DMe={class:"purple"},FMe={class:"animation-data"},zMe={class:"bottom-right-control"},UMe=cw(()=>c.createElementVNode("div",null,[c.createTextVNode(" Fit to "),c.createElementVNode("br"),c.createTextVNode(" window ")],-1)),jMe=["onClick"];function GMe(t,e,n,r,o,a){const l=c.resolveComponent("map-svg-sprite-color"),s=qR,h=CS,u=zr,d=ld,p=FE,f=RE,m=c.resolveComponent("map-svg-icon"),y=d0,v=u0,_=ME,x=zg,L=Fg,S=wE,C=ed,A=_c,H=Td;return c.withDirectives((c.openBlock(),c.createElementBlock("div",OMe,[c.createVNode(l),c.createVNode(s,{label:t.tData.label,region:t.tData.region,visible:t.tData.visible,x:t.tData.x,y:t.tData.y,annotationDisplay:t.viewingMode==="Annotation"&&t.tData.active===!0},null,8,["label","region","visible","x","y","annotationDisplay"]),c.createElementVNode("div",{id:"organsDisplayArea",ref:"display",tabindex:"-1",style:{height:"100%",width:"100%"},onKeydown:e[0]||(e[0]=c.withKeys((...k)=>a.backgroundChangeCallback&&a.backgroundChangeCallback(...k),["66"]))},null,544),c.withDirectives(c.createElementVNode("div",null,[n.displayWarning?(c.openBlock(),c.createBlock(d,{key:0,ref:"warningPopover",visible:t.hoverVisibilities[6].value,content:n.warningMessage,placement:"right",teleported:!1,"popper-class":"scaffold-popper message-popper right-popper non-selectable"},{reference:c.withCtx(()=>[n.displayWarning?(c.openBlock(),c.createElementBlock("div",{key:0,class:"message-icon warning-icon",onMouseover:e[1]||(e[1]=k=>a.showHelpText(6)),onMouseout:e[2]||(e[2]=k=>a.hideHelpText(6))},[c.createVNode(u,null,{default:c.withCtx(()=>[c.createVNode(h)]),_:1}),kMe],32)):c.createCommentVNode("",!0)]),_:1},8,["visible","content"])):c.createCommentVNode("",!0),n.displayLatestChanges?(c.openBlock(),c.createBlock(d,{key:1,visible:t.hoverVisibilities[7].value,content:n.latestChangesMessage,placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper message-popper right-popper non-selectable"},{reference:c.withCtx(()=>[n.displayLatestChanges&&n.latestChangesMessage?(c.openBlock(),c.createElementBlock("div",{key:0,class:"el-icon-warning message-icon latest-changesicon",onMouseover:e[3]||(e[3]=k=>a.showHelpText(7)),onMouseout:e[4]||(e[4]=k=>a.hideHelpText(7))},[c.createVNode(u,null,{default:c.withCtx(()=>[c.createVNode(h)]),_:1}),PMe],32)):c.createCommentVNode("",!0)]),_:1},8,["visible","content"])):c.createCommentVNode("",!0),c.createVNode(d,{visible:t.hoverVisibilities[5].value,content:"Change region visibility",placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper right-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(p,{ref:"treeControls","help-mode":n.helpMode,isReady:t.isReady,"show-colour-picker":n.showColourPicker,onObjectSelected:a.objectSelected,onObjectHovered:a.objectHovered,onDrawerToggled:a.drawerToggled},null,8,["help-mode","isReady","show-colour-picker","onObjectSelected","onObjectHovered","onDrawerToggled"])]),_:1},8,["visible"]),c.createElementVNode("div",IMe,[c.createVNode(f,{ref:"primitiveControls"},null,512)]),t.timeVarying?(c.openBlock(),c.createBlock(d,{key:2,ref:"sliderPopover",visible:t.hoverVisibilities[4].value,content:"Move the slider to animate the region",placement:"top",teleported:!1,trigger:"manual","popper-class":"scaffold-popper top-popper non-selectable"},{reference:c.withCtx(()=>[t.timeVarying?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["time-slider-container",[t.minimisedSlider?"minimised":"",t.sliderPosition]])},[c.createVNode(S,{type:"card"},{default:c.withCtx(()=>[c.createVNode(_,{label:"Animate scaffold"},{default:c.withCtx(()=>[c.createVNode(v,{class:"tab-content"},{default:c.withCtx(()=>[t.isPlaying?(c.openBlock(),c.createBlock(m,{key:0,icon:"pause",class:"icon-button video-button",onClick:e[5]||(e[5]=k=>a.play(!1))})):(c.openBlock(),c.createBlock(m,{key:1,icon:"play",class:"video-button icon-button",onClick:e[6]||(e[6]=k=>a.play(!0))})),c.createVNode(y,{min:0,max:t.timeMax,"model-value":t.currentTime/100*t.timeMax,step:.1,"tooltip-class":"time-slider-tooltip",class:"slider","format-tooltip":a.formatTooltip,marks:t.timeStamps,onInput:e[7]||(e[7]=k=>a.timeChange(k))},null,8,["max","model-value","format-tooltip","marks"])]),_:1})]),_:1}),c.createVNode(_,{label:"Animation data"},{default:c.withCtx(()=>[c.createVNode(v,{class:"tab-content"},{default:c.withCtx(()=>[c.createElementVNode("div",RMe,[c.createTextVNode(" Original duration: "),c.createElementVNode("div",NMe,c.toDisplayString(t.orginalDuration),1)]),c.createElementVNode("div",BMe,[c.createTextVNode(" Animation duration: "),c.createElementVNode("div",DMe,c.toDisplayString(t.animateDuration),1)]),c.createElementVNode("div",FMe,[c.createTextVNode(" Playback speed "),c.createVNode(L,{teleported:!0,"model-value":t.currentSpeed,placeholder:"Select",class:"select-box","popper-class":"scaffold_viewer_dropdown",onChange:e[8]||(e[8]=k=>a.speedChanged(k))},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.playSpeed,k=>(c.openBlock(),c.createBlock(x,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])])]),_:1})]),_:1})]),_:1})],2)):c.createCommentVNode("",!0)]),_:1},8,["visible"])):c.createCommentVNode("",!0),c.createElementVNode("div",zMe,[c.createVNode(d,{visible:t.hoverVisibilities[0].value,content:"Zoom in",placement:"left",teleported:!1,trigger:"manual","popper-class":"scaffold-popper left-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{icon:"zoomIn",class:"icon-button zoomIn",onClick:e[9]||(e[9]=k=>a.zoomIn()),onMouseover:e[10]||(e[10]=k=>a.showHelpText(0)),onMouseout:e[11]||(e[11]=k=>a.hideHelpText(0))})]),_:1},8,["visible"]),c.createVNode(d,{visible:t.hoverVisibilities[1].value,content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual","popper-class":"scaffold-popper popper-zoomout non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{icon:"zoomOut",class:"icon-button zoomOut",onClick:e[12]||(e[12]=k=>a.zoomOut()),onMouseover:e[13]||(e[13]=k=>a.showHelpText(1)),onMouseout:e[14]||(e[14]=k=>a.hideHelpText(1))})]),_:1},8,["visible"]),c.createVNode(d,{visible:t.hoverVisibilities[2].value,placement:"top",teleported:!1,trigger:"manual","popper-class":"scaffold-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{icon:"fitWindow",class:"icon-button fitWindow",onClick:e[15]||(e[15]=k=>a.fitWindow()),onMouseover:e[16]||(e[16]=k=>a.showHelpText(2)),onMouseout:e[17]||(e[17]=k=>a.hideHelpText(2))})]),default:c.withCtx(()=>[UMe]),_:1},8,["visible"])]),t.openMapRef?(c.openBlock(),c.createBlock(d,{key:3,ref:"open-map-popover","virtual-ref":t.openMapRef,placement:"top-start",width:"128",teleported:!1,trigger:"click","popper-class":"open-map-popper","virtual-triggering":""},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.openMapOptions,k=>(c.openBlock(),c.createBlock(v,{key:k.key},{default:c.withCtx(()=>[c.createVNode(C,{type:"primary",plain:"",onClick:B=>t.$emit("open-map",k.key)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(k.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):c.createCommentVNode("",!0),c.createVNode(d,{ref:"backgroundPopover","virtual-ref":t.backgroundIconRef,placement:"top-start",width:"128",teleported:!1,trigger:"click","popper-class":"background-popper non-selectable","virtual-triggering":""},{default:c.withCtx(()=>[c.createElementVNode("div",null,[c.createVNode(v,{class:"backgroundText"},{default:c.withCtx(()=>[c.createTextVNode("Viewing Mode")]),_:1}),c.createVNode(v,{class:"backgroundControl"},{default:c.withCtx(()=>[c.createVNode(L,{teleported:!1,modelValue:t.viewingMode,"onUpdate:modelValue":e[18]||(e[18]=k=>t.viewingMode=k),placeholder:"Select",class:"select-box viewing-mode","popper-class":"scaffold_viewer_dropdown"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.viewingModes,k=>(c.openBlock(),c.createBlock(x,{key:k,label:k,value:k},{default:c.withCtx(()=>[c.createVNode(v,null,{default:c.withCtx(()=>[c.createVNode(A,{span:12},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(k),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c.createVNode(v,{class:"backgroundSpacer"}),c.createVNode(v,{class:"backgroundText"},{default:c.withCtx(()=>[c.createTextVNode(" Change background ")]),_:1}),c.createVNode(v,{class:"backgroundChooser"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.availableBackground,k=>(c.openBlock(),c.createElementBlock("div",{key:k,class:c.normalizeClass(["backgroundChoice",k,k==t.currentBackground?"active":""]),onClick:B=>a.backgroundChangeCallback(k)},null,10,jMe))),128))]),_:1})])]),_:1},8,["virtual-ref"]),c.createElementVNode("div",{class:c.normalizeClass(["settings-group",{open:t.drawerOpen,close:!t.drawerOpen}])},[c.createVNode(v,null,{default:c.withCtx(()=>[c.createVNode(d,{visible:t.hoverVisibilities[8].value,content:"Open new map",placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper right-popper non-selectable"},{reference:c.withCtx(()=>[n.enableOpenMapUI&&n.openMapOptions.length>0?(c.openBlock(),c.createBlock(m,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:e[19]||(e[19]=k=>a.showHelpText(8)),onMouseout:e[20]||(e[20]=k=>a.hideHelpText(8))},null,512)):c.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),c.createVNode(v,null,{default:c.withCtx(()=>[c.createVNode(d,{visible:t.hoverVisibilities[3].value,content:"Change background color",placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper right-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:e[21]||(e[21]=k=>a.showHelpText(3)),onMouseout:e[22]||(e[22]=k=>a.hideHelpText(3))},null,512)]),_:1},8,["visible"])]),_:1})],2)],512),[[c.vShow,n.displayUI&&!t.isTransitioning]])])),[[H,t.loading]])}const WMe=f0(VMe,[["render",GMe],["__scopeId","data-v-f7f6eacf"]]);$r.ScaffoldVuer=WMe,Object.defineProperty($r,Symbol.toStringTag,{value:"Module"})});
|
|
4600
|
+
`),A="",H="",k=0,B=[],D=typeof"".trimLeft=="function",z=0,q=C.length;z<q;z++)if(A=C[z],A=D?A.trimLeft():A.trim(),k=A.length,k!==0&&(H=A.charAt(0),H!=="#"))if(H==="v"){var F=A.split(/\s+/);switch(F[0]){case"v":S.vertices.push(parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3])),7<=F.length?S.colors.push(parseFloat(F[4]),parseFloat(F[5]),parseFloat(F[6])):S.colors.push(void 0,void 0,void 0);break;case"vn":S.normals.push(parseFloat(F[1]),parseFloat(F[2]),parseFloat(F[3]));break;case"vt":S.uvs.push(parseFloat(F[1]),parseFloat(F[2]))}}else if(H==="f"){for(var Z,K=A.substr(1).trim(),X=K.split(/\s+/),te=[],J=0,he=X.length;J<he;J++)if(Z=X[J],0<Z.length){var xe=Z.split("/");te.push(xe)}for(var ee=te[0],oe=1,de=te.length-1;oe<de;oe++){var fe=te[oe],Ae=te[oe+1];S.addFace(ee[0],fe[0],Ae[0],ee[1],fe[1],Ae[1],ee[2],fe[2],Ae[2])}}else if(H==="l"){var Se=A.substring(1).trim().split(" "),Qe=[],Le=[];if(A.indexOf("/")===-1)Qe=Se;else for(var Ce,je=0,me=Se.length;je<me;je++)Ce=Se[je].split("/"),Ce[0]!==""&&Qe.push(Ce[0]),Ce[1]!==""&&Le.push(Ce[1]);S.addLineGeometry(Qe,Le)}else if(H==="p"){var Ne=A.substr(1).trim(),Ie=Ne.split(" ");S.addPointGeometry(Ie)}else if((B=l.exec(A))!==null){var Ke=(" "+B[0].substr(1).trim()).substr(1);S.startObject(Ke)}else if(h.test(A))S.object.startMaterial(A.substring(7).trim(),S.materialLibraries);else if(s.test(A))S.materialLibraries.push(A.substring(7).trim());else if(u.test(A))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if(H==="s"){if(B=A.split(" "),1<B.length){var Ye=B[1].trim().toLowerCase();S.object.smooth=Ye!=="0"&&Ye!=="off"}else S.object.smooth=!0;var ht=S.object.currentMaterial();ht&&(ht.smooth=S.object.smooth)}else{if(A==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+A+'"')}S.finalize();var dt=new a.Group;dt.materialLibraries=[].concat(S.materialLibraries);var Ee=S.objects.length!==1||S.objects[0].geometry.vertices.length!==0;if(Ee==!0)for(var ye=0,it=S.objects.length;ye<it;ye++){var Ve=S.objects[ye],yt=Ve.geometry,bt=Ve.materials,_t=yt.type==="Line",nt=yt.type==="Points",Je=!1;if(yt.vertices.length!==0){var et=new a.BufferGeometry;et.setAttribute("position",new a.Float32BufferAttribute(yt.vertices,3)),0<yt.normals.length&&et.setAttribute("normal",new a.Float32BufferAttribute(yt.normals,3)),0<yt.colors.length&&(Je=!0,et.setAttribute("color",new a.Float32BufferAttribute(yt.colors,3))),yt.hasUVIndices===!0&&et.setAttribute("uv",new a.Float32BufferAttribute(yt.uvs,2));for(var Xe=[],Lt=0,vt=bt.length;Lt<vt;Lt++){var Et=bt[Lt],kt=Et.name+"_"+Et.smooth+"_"+Je,pt=S.materials[kt];if(this.materials!==null){if(pt=this.materials.create(Et.name),_t&&pt&&!(pt instanceof a.LineBasicMaterial)){var Qn=new a.LineBasicMaterial;a.Material.prototype.copy.call(Qn,pt),Qn.color.copy(pt.color),pt=Qn}else if(nt&&pt&&!(pt instanceof a.PointsMaterial)){var Jt=new a.PointsMaterial({size:10,sizeAttenuation:!1});a.Material.prototype.copy.call(Jt,pt),Jt.color.copy(pt.color),Jt.map=pt.map,pt=Jt}}pt===void 0&&(pt=_t?new a.LineBasicMaterial:nt?new a.PointsMaterial({size:1,sizeAttenuation:!1}):new a.MeshPhongMaterial,pt.name=Et.name,pt.flatShading=!Et.smooth,pt.vertexColors=Je,S.materials[kt]=pt),Xe.push(pt)}var Mn=void 0;if(1<Xe.length){for(var ln,Mt=0,ze=bt.length;Mt<ze;Mt++)ln=bt[Mt],et.addGroup(ln.groupStart,ln.groupCount,Mt);Mn=_t?new a.LineSegments(et,Xe):nt?new a.Points(et,Xe):new a.Mesh(et,Xe)}else Mn=_t?new a.LineSegments(et,Xe[0]):nt?new a.Points(et,Xe[0]):new a.Mesh(et,Xe[0]);Mn.name=Ve.name,dt.add(Mn)}}else if(0<S.vertices.length){var mt=new a.PointsMaterial({size:1,sizeAttenuation:!1}),Ht=new a.BufferGeometry;Ht.setAttribute("position",new a.Float32BufferAttribute(S.vertices,3)),0<S.colors.length&&S.colors[0]!==void 0&&(Ht.setAttribute("color",new a.Float32BufferAttribute(S.colors,3)),mt.vertexColors=!0);var pn=new a.Points(Ht,mt);dt.add(pn)}return dt}}},function(n,r,o){var a=o(14).JSONLoader;r.PrimitivesLoader=function(){var l=0;this.crossOrigin="Anonymous";var s=new a,h=[];this.load=(d,p,f,m)=>{if(20>l){++l,s.crossOrigin=this.crossOrigin;var y=new u(p,this),v=new u(m,this);s.load(d,y,f,v)}else h.push({url:d,onLoad:p,onProgress:f,onError:m})},this.loadFromWaitingList=()=>{var d=h.shift();d&&this.load(d.url,d.onLoad,d.onProgress,d.onError)};var u=function(d,p){return function(){--l,d(...arguments),p.loadFromWaitingList()}};this.parse=d=>s.parse(d)}},function(n,r,o){o(3);var a=o(36).GLTFLoader,l=function(){var s=this;this.parseGLTFObjects=(h,u,d,p)=>{var f=u;if(d!==0){if(h.type!=="Object3D"){var m;if(h.type==="Mesh"?m=new(o(2)).Geometry:h.type==="LineSegments"?m=new(o(20)).Lines:h.type==="Points"&&(m=new(o(17)).Pointset),m){var y=!1,v=!1;h.geometry&&h.geometry.morphAttributes&&(y=!!h.geometry.morphAttributes.position,v=!!h.geometry.morphAttributes.color),m.setMesh(h.clone(),y,v),u.addZincObject(m),m.groupName=m.morph.name,m.morph.matrixAutoUpdate=!0,p!=null&&typeof p=="function"&&p(m)}}else if(h.name!==""&&(u&&(f=u.findOrCreateChildFromPath(h.name)),f)){var _=f.getGroup();_.position.copy(h.position),_.rotation.copy(h.rotation),_.quaternion.copy(h.quaternion),_.matrixAutoUpdate=!0}}d++,h.children.forEach(x=>{s.parseGLTFObjects(x,f,d,p)})},this.setCamera=h=>{h.viewAll();var u=h.getZincCameraControls(),d=u.getCurrentViewport();u.addViewport("default",d),u.setDefaultViewport("default")},this.load=(h,u,d,p,f)=>{var m=d.substring(0,d.lastIndexOf("/")+1),y=d.substring(d.lastIndexOf("/")+1,d.length),v=new a().setPath(m);v.load(y,function(_){console.log(_),s.parseGLTFObjects(_.scene,u,0,p),s.setCamera(h),f!=null&&typeof f=="function"&&f()})}};r.GLTFToZincJSLoader=l},function(n,r){n.exports=fMe},function(n,r,o){var a=o(38).GLTFExporter,l=function(s){var h=s;this.exportGLTF=u=>{var d=h.getRootRegion(),p=d.getAllObjects(!0),f=[];p.forEach(v=>{v.animationClip&&f.push({clip:v.animationClip[0],mesh:v.morph})});var m=new a,y={binary:u,animations:f};return new Promise(v=>{m.parse(h.getThreeJSScene(),function(_){v(_)},y)})}};r.SceneExporter=l},function(n,r,o){o.r(r),o.d(r,"GLTFExporter",function(){return l});var a=o(3);class l{constructor(){this.pluginCallbacks=[],this.register(function(F){return new B(F)}),this.register(function(F){return new D(F)}),this.register(function(F){return new z(F)})}register(F){return this.pluginCallbacks.indexOf(F)===-1&&this.pluginCallbacks.push(F),this}unregister(F){return this.pluginCallbacks.indexOf(F)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(F),1),this}parse(F,Z,K){for(var X=new k,te=[],J=0,he=this.pluginCallbacks.length;J<he;J++)te.push(this.pluginCallbacks[J](X));X.setPlugins(te),X.write(F,Z,K)}}var s={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,FLOAT:5126,UNSIGNED_INT:5125,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,REPEAT:10497},h={};h[a.NearestFilter]=s.NEAREST,h[a.NearestMipmapNearestFilter]=s.NEAREST_MIPMAP_NEAREST,h[a.NearestMipmapLinearFilter]=s.NEAREST_MIPMAP_LINEAR,h[a.LinearFilter]=s.LINEAR,h[a.LinearMipmapNearestFilter]=s.LINEAR_MIPMAP_NEAREST,h[a.LinearMipmapLinearFilter]=s.LINEAR_MIPMAP_LINEAR,h[a.ClampToEdgeWrapping]=s.CLAMP_TO_EDGE,h[a.RepeatWrapping]=s.REPEAT,h[a.MirroredRepeatWrapping]=s.MIRRORED_REPEAT;var u={scale:"scale",position:"translation",quaternion:"rotation",morphTargetInfluences:"weights"},d=12,p=1179937895,f=2,m=8,y=1313821514,v=5130562;function _(q,F){return q.length===F.length&&q.every(function(Z,K){return Z===F[K]})}function x(q){if(window.TextEncoder!==void 0)return new TextEncoder().encode(q).buffer;for(var F,Z=new Uint8Array(new ArrayBuffer(q.length)),K=0,X=q.length;K<X;K++)F=q.charCodeAt(K),Z[K]=255<F?32:F;return Z.buffer}function L(q){return _(q.elements,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}function S(q,F,Z){for(var K={min:Array(q.itemSize).fill(Number.POSITIVE_INFINITY),max:Array(q.itemSize).fill(Number.NEGATIVE_INFINITY)},X=F;X<F+Z;X++)for(var te,J=0;J<q.itemSize;J++)te=void 0,4<q.itemSize?te=q.array[X*q.itemSize+J]:J===0?te=q.getX(X):J===1?te=q.getY(X):J===2?te=q.getZ(X):J==3&&(te=q.getW(X)),K.min[J]=Math.min(K.min[J],te),K.max[J]=Math.max(K.max[J],te);return K}function C(q){return 4*Math.ceil(q/4)}function A(q){var F=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0,Z=C(q.byteLength);if(Z!==q.byteLength){var K=new Uint8Array(Z);if(K.set(new Uint8Array(q)),F!==0)for(var X=q.byteLength;X<Z;X++)K[X]=F;return K.buffer}return q}var H=null;class k{constructor(){this.plugins=[],this.options={},this.pending=[],this.buffers=[],this.byteOffset=0,this.buffers=[],this.nodeMap=new Map,this.skins=[],this.extensionsUsed={},this.uids=new Map,this.uid=0,this.json={asset:{version:"2.0",generator:"THREE.GLTFExporter"}},this.cache={meshes:new Map,attributes:new Map,attributesNormalized:new Map,materials:new Map,textures:new Map,images:new Map}}setPlugins(F){this.plugins=F}write(F,Z,K){this.options=Object.assign({},{binary:!1,trs:!1,onlyVisible:!0,truncateDrawRange:!0,embedImages:!0,maxTextureSize:1/0,animations:[],includeCustomExtensions:!1},K),0<this.options.animations.length&&(this.options.trs=!0),this.processInput(F);var X=this;Promise.all(this.pending).then(function(){var te=X.buffers,J=X.json,he=X.options,xe=X.extensionsUsed,ee=new Blob(te,{type:"application/octet-stream"}),oe=Object.keys(xe);if(0<oe.length&&(J.extensionsUsed=oe),J.buffers&&0<J.buffers.length&&(J.buffers[0].byteLength=ee.size),he.binary===!0){var de=new window.FileReader;de.readAsArrayBuffer(ee),de.onloadend=function(){var Ae=A(de.result),Se=new DataView(new ArrayBuffer(m));Se.setUint32(0,Ae.byteLength,!0),Se.setUint32(4,v,!0);var Qe=A(x(JSON.stringify(J)),32),Le=new DataView(new ArrayBuffer(m));Le.setUint32(0,Qe.byteLength,!0),Le.setUint32(4,y,!0);var Ce=new ArrayBuffer(d),je=new DataView(Ce);je.setUint32(0,p,!0),je.setUint32(4,f,!0);var me=d+Le.byteLength+Qe.byteLength+Se.byteLength+Ae.byteLength;je.setUint32(8,me,!0);var Ne=new Blob([Ce,Le,Qe,Se,Ae],{type:"application/octet-stream"}),Ie=new window.FileReader;Ie.readAsArrayBuffer(Ne),Ie.onloadend=function(){Z(Ie.result)}}}else if(J.buffers&&0<J.buffers.length){var fe=new window.FileReader;fe.readAsDataURL(ee),fe.onloadend=function(){var Ae=fe.result;J.buffers[0].uri=Ae,Z(J)}}else Z(J)})}serializeUserData(F,Z){if(!(F.userData&&F.userData.isZincObject)&&Object.keys(F.userData).length!==0){var K=this.options,X=this.extensionsUsed;try{var te=JSON.parse(JSON.stringify(F.userData));if(K.includeCustomExtensions&&te.gltfExtensions){for(var J in Z.extensions===void 0&&(Z.extensions={}),te.gltfExtensions)Z.extensions[J]=te.gltfExtensions[J],X[J]=!0;delete te.gltfExtensions}0<Object.keys(te).length&&(Z.extras=te)}catch(he){console.warn("THREE.GLTFExporter: userData of '"+F.name+"' won't be serialized because of JSON.stringify error - "+he.message)}}}getUID(F){return this.uids.has(F)||this.uids.set(F,this.uid++),this.uids.get(F)}isNormalizedNormalAttribute(F){var Z=this.cache;if(Z.attributesNormalized.has(F))return!1;for(var K=new a.Vector3,X=0,te=F.count;X<te;X++)if(5e-4<Math.abs(K.fromBufferAttribute(F,X).length()-1))return!1;return!0}createNormalizedNormalAttribute(F){var Z=this.cache;if(Z.attributesNormalized.has(F))return Z.attributesNormalized.get(F);for(var K=F.clone(),X=new a.Vector3,te=0,J=K.count;te<J;te++)X.fromBufferAttribute(K,te),X.x===0&&X.y===0&&X.z===0?X.setX(1):X.normalize(),K.setXYZ(te,X.x,X.y,X.z);return Z.attributesNormalized.set(F,K),K}applyTextureTransform(F,Z){var K=!1,X={};(Z.offset.x!==0||Z.offset.y!==0)&&(X.offset=Z.offset.toArray(),K=!0),Z.rotation!==0&&(X.rotation=Z.rotation,K=!0),(Z.repeat.x!==1||Z.repeat.y!==1)&&(X.scale=Z.repeat.toArray(),K=!0),K&&(F.extensions=F.extensions||{},F.extensions.KHR_texture_transform=X,this.extensionsUsed.KHR_texture_transform=!0)}processBuffer(F){var Z=this.json,K=this.buffers;return Z.buffers||(Z.buffers=[{byteLength:0}]),K.push(F),0}processBufferView(F,Z,K,X,te){var J=this.json;J.bufferViews||(J.bufferViews=[]);for(var he=Z===s.UNSIGNED_BYTE?1:Z===s.UNSIGNED_SHORT?2:4,xe=C(X*F.itemSize*he),ee=new DataView(new ArrayBuffer(xe)),oe=0,de=K;de<K+X;de++)for(var fe,Ae=0;Ae<F.itemSize;Ae++)fe=void 0,4<F.itemSize?fe=F.array[de*F.itemSize+Ae]:Ae===0?fe=F.getX(de):Ae===1?fe=F.getY(de):Ae===2?fe=F.getZ(de):Ae==3&&(fe=F.getW(de)),Z===s.FLOAT?ee.setFloat32(oe,fe,!0):Z===s.UNSIGNED_INT?ee.setUint32(oe,fe,!0):Z===s.UNSIGNED_SHORT?ee.setUint16(oe,fe,!0):Z===s.UNSIGNED_BYTE&&ee.setUint8(oe,fe),oe+=he;var Se={buffer:this.processBuffer(ee.buffer),byteOffset:this.byteOffset,byteLength:xe};te!==void 0&&(Se.target=te),te===s.ARRAY_BUFFER&&(Se.byteStride=F.itemSize*he),this.byteOffset+=xe,J.bufferViews.push(Se);var Qe={id:J.bufferViews.length-1,byteLength:0};return Qe}processBufferViewImage(F){var Z=this,K=Z.json;return K.bufferViews||(K.bufferViews=[]),new Promise(function(X){var te=new window.FileReader;te.readAsArrayBuffer(F),te.onloadend=function(){var J=A(te.result),he={buffer:Z.processBuffer(J),byteOffset:Z.byteOffset,byteLength:J.byteLength};Z.byteOffset+=J.byteLength,X(K.bufferViews.push(he)-1)}})}processAccessor(F,Z,K,X){var te,J=this.options,he=this.json;if(F.array.constructor===Float32Array)te=s.FLOAT;else if(F.array.constructor===Uint32Array)te=s.UNSIGNED_INT;else if(F.array.constructor===Uint16Array)te=s.UNSIGNED_SHORT;else if(F.array.constructor===Uint8Array)te=s.UNSIGNED_BYTE;else throw new Error("THREE.GLTFExporter: Unsupported bufferAttribute component type.");if(K===void 0&&(K=0),X===void 0&&(X=F.count),J.truncateDrawRange&&Z!==void 0&&Z.index===null){var xe=K+X,ee=Z.drawRange.count===1/0?F.count:Z.drawRange.start+Z.drawRange.count;K=Math.max(K,Z.drawRange.start),X=Math.min(xe,ee)-K,0>X&&(X=0)}if(X===0)return null;var oe,de=S(F,K,X);Z!==void 0&&(oe=F===Z.index?s.ELEMENT_ARRAY_BUFFER:s.ARRAY_BUFFER);var fe=this.processBufferView(F,te,K,X,oe),Ae={bufferView:fe.id,byteOffset:fe.byteOffset,componentType:te,count:X,max:de.max,min:de.min,type:{1:"SCALAR",2:"VEC2",3:"VEC3",4:"VEC4",16:"MAT4"}[F.itemSize]};return F.normalized===!0&&(Ae.normalized=!0),he.accessors||(he.accessors=[]),he.accessors.push(Ae)-1}processImage(F,Z,K){var X=this,te=X.cache,J=X.json,he=X.options,xe=X.pending;te.images.has(F)||te.images.set(F,{});var ee=te.images.get(F),oe=Z===a.RGBAFormat?"image/png":"image/jpeg",de=oe+":flipY/"+K.toString();if(ee[de]!==void 0)return ee[de];J.images||(J.images=[]);var fe={mimeType:oe};if(he.embedImages){var Ae=H=H||document.createElement("canvas");Ae.width=Math.min(F.width,he.maxTextureSize),Ae.height=Math.min(F.height,he.maxTextureSize);var Se=Ae.getContext("2d");if(K===!0&&(Se.translate(0,Ae.height),Se.scale(1,-1)),typeof HTMLImageElement<"u"&&F instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&F instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&F instanceof OffscreenCanvas||typeof ImageBitmap<"u"&&F instanceof ImageBitmap)Se.drawImage(F,0,0,Ae.width,Ae.height);else{Z!==a.RGBAFormat&&Z!==a.RGBFormat&&console.error("GLTFExporter: Only RGB and RGBA formats are supported."),(F.width>he.maxTextureSize||F.height>he.maxTextureSize)&&console.warn("GLTFExporter: Image size is bigger than maxTextureSize",F);var Qe=new Uint8ClampedArray(4*(F.height*F.width));if(Z===a.RGBAFormat)for(var Le=0;Le<Qe.length;Le+=4)Qe[Le+0]=F.data[Le+0],Qe[Le+1]=F.data[Le+1],Qe[Le+2]=F.data[Le+2],Qe[Le+3]=F.data[Le+3];else for(var Ce=0,je=0;Ce<Qe.length;Ce+=4,je+=3)Qe[Ce+0]=F.data[je+0],Qe[Ce+1]=F.data[je+1],Qe[Ce+2]=F.data[je+2],Qe[Ce+3]=255;Se.putImageData(new ImageData(Qe,F.width,F.height),0,0)}he.binary===!0?xe.push(new Promise(function(Ne){Ae.toBlob(function(Ie){X.processBufferViewImage(Ie).then(function(Ke){fe.bufferView=Ke,Ne()})},oe)})):fe.uri=Ae.toDataURL(oe)}else fe.uri=F.src;var me=J.images.push(fe)-1;return ee[de]=me,me}processSampler(F){var Z=this.json;Z.samplers||(Z.samplers=[]);var K={magFilter:h[F.magFilter],minFilter:h[F.minFilter],wrapS:h[F.wrapS],wrapT:h[F.wrapT]};return Z.samplers.push(K)-1}processTexture(F){var Z=this.cache,K=this.json;if(Z.textures.has(F))return Z.textures.get(F);K.textures||(K.textures=[]);var X={sampler:this.processSampler(F),source:this.processImage(F.image,F.format,F.flipY)};F.name&&(X.name=F.name),this._invokeAll(function(J){J.writeTexture&&J.writeTexture(F,X)});var te=K.textures.push(X)-1;return Z.textures.set(F,te),te}processMaterial(F){var Z=this.cache,K=this.json;if(Z.materials.has(F))return Z.materials.get(F);if(F.isShaderMaterial)return console.warn("GLTFExporter: THREE.ShaderMaterial not supported."),null;K.materials||(K.materials=[]);var X={pbrMetallicRoughness:{}};F.isMeshStandardMaterial!==!0&&F.isMeshBasicMaterial!==!0&&console.warn("GLTFExporter: Use MeshStandardMaterial or MeshBasicMaterial for best results.");var te=F.color.toArray().concat([F.opacity]);if(_(te,[1,1,1,1])||(X.pbrMetallicRoughness.baseColorFactor=te),F.isMeshStandardMaterial?(X.pbrMetallicRoughness.metallicFactor=F.metalness,X.pbrMetallicRoughness.roughnessFactor=F.roughness):(X.pbrMetallicRoughness.metallicFactor=.5,X.pbrMetallicRoughness.roughnessFactor=.5),F.metalnessMap||F.roughnessMap)if(F.metalnessMap===F.roughnessMap){var J={index:this.processTexture(F.metalnessMap)};this.applyTextureTransform(J,F.metalnessMap),X.pbrMetallicRoughness.metallicRoughnessTexture=J}else console.warn("THREE.GLTFExporter: Ignoring metalnessMap and roughnessMap because they are not the same Texture.");if(F.map){var he={index:this.processTexture(F.map)};this.applyTextureTransform(he,F.map),X.pbrMetallicRoughness.baseColorTexture=he}if(F.emissive){var xe=F.emissive.clone().multiplyScalar(F.emissiveIntensity),ee=Math.max(xe.r,xe.g,xe.b);if(1<ee&&(xe.multiplyScalar(1/ee),console.warn("THREE.GLTFExporter: Some emissive components exceed 1; emissive has been limited")),0<ee&&(X.emissiveFactor=xe.toArray()),F.emissiveMap){var oe={index:this.processTexture(F.emissiveMap)};this.applyTextureTransform(oe,F.emissiveMap),X.emissiveTexture=oe}}if(F.normalMap){var de={index:this.processTexture(F.normalMap)};F.normalScale&&F.normalScale.x!==-1&&(F.normalScale.x!==F.normalScale.y&&console.warn("THREE.GLTFExporter: Normal scale components are different, ignoring Y and exporting X."),de.scale=F.normalScale.x),this.applyTextureTransform(de,F.normalMap),X.normalTexture=de}if(F.aoMap){var fe={index:this.processTexture(F.aoMap),texCoord:1};F.aoMapIntensity!==1&&(fe.strength=F.aoMapIntensity),this.applyTextureTransform(fe,F.aoMap),X.occlusionTexture=fe}F.transparent?X.alphaMode="BLEND":0<F.alphaTest&&(X.alphaMode="MASK",X.alphaCutoff=F.alphaTest),F.side===a.DoubleSide&&(X.doubleSided=!0),F.name!==""&&(X.name=F.name),this.serializeUserData(F,X),this._invokeAll(function(Se){Se.writeMaterial&&Se.writeMaterial(F,X)});var Ae=K.materials.push(X)-1;return Z.materials.set(F,Ae),Ae}processMesh(F){var Z=this.cache,K=this.json,X=[F.geometry.uuid];if(Array.isArray(F.material))for(var te=0,J=F.material.length;te<J;te++)X.push(F.material[te].uuid);else X.push(F.material.uuid);var he=X.join(":");if(Z.meshes.has(he))return Z.meshes.get(he);var xe,ee=F.geometry;if(xe=F.isLineSegments?s.LINES:F.isLineLoop?s.LINE_LOOP:F.isLine?s.LINE_STRIP:F.isPoints?s.POINTS:F.material.wireframe?s.LINES:s.TRIANGLES,ee.isBufferGeometry!==!0)throw new Error("THREE.GLTFExporter: Geometry is not of type THREE.BufferGeometry.");var oe={},de={},fe=[],Ae=[],Se={uv:"TEXCOORD_0",uv2:"TEXCOORD_1",color:"COLOR_0",skinWeight:"WEIGHTS_0",skinIndex:"JOINTS_0"},Qe=ee.getAttribute("normal");Qe===void 0||this.isNormalizedNormalAttribute(Qe)||(console.warn("THREE.GLTFExporter: Creating normalized normal attribute from the non-normalized one."),ee.setAttribute("normal",this.createNormalizedNormalAttribute(Qe)));var Le=null;for(var Ce in ee.attributes)if(Ce.substr(0,5)!=="morph"){var je=ee.attributes[Ce];Ce=Se[Ce]||Ce.toUpperCase();var me=/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/;if(me.test(Ce)||(Ce="_"+Ce),Z.attributes.has(this.getUID(je))){de[Ce]=Z.attributes.get(this.getUID(je));continue}Le=null;var Ne=je.array;Ce!=="JOINTS_0"||Ne instanceof Uint16Array||Ne instanceof Uint8Array||(console.warn('GLTFExporter: Attribute "skinIndex" converted to type UNSIGNED_SHORT.'),Le=new a.BufferAttribute(new Uint16Array(Ne),je.itemSize,je.normalized));var Ie=this.processAccessor(Le||je,ee);Ie!==null&&(de[Ce]=Ie,Z.attributes.set(this.getUID(je),Ie))}if(Qe!==void 0&&ee.setAttribute("normal",Qe),Object.keys(de).length===0)return null;if(F.morphTargetInfluences!==void 0&&0<F.morphTargetInfluences.length){var Ke=[],Ye=[],ht={};if(F.morphTargetDictionary!==void 0)for(var dt in F.morphTargetDictionary)ht[F.morphTargetDictionary[dt]]=dt;for(var Ee=0;Ee<F.morphTargetInfluences.length;++Ee){var ye={},it=!1;for(var Ve in ee.morphAttributes){if(Ve!="position"&&Ve!=="normal"&&Ve!=="color"){it||(console.warn("GLTFExporter: Only POSITION and NORMAL morph are supported."),it=!0);continue}var yt=ee.morphAttributes[Ve][Ee],bt=Ve.toUpperCase();Se[Ve]&&(bt=Se[Ve]);var _t=ee.attributes[Ve];if(Z.attributes.has(this.getUID(yt))){ye[bt]=Z.attributes.get(this.getUID(yt));continue}var nt=_t.clone();if(!ee.morphTargetsRelative)if(_t)for(var Je=0,et=yt.count;Je<et;Je++)_t.count>Je&&nt.setXYZ(Je,yt.getX(Je)-_t.getX(Je),yt.getY(Je)-_t.getY(Je),yt.getZ(Je)-_t.getZ(Je));else for(var Xe=0,Lt=yt.count;Xe<Lt;Xe++)nt.setXYZ(Xe,0,0,0);ye[bt]=this.processAccessor(nt,ee),Z.attributes.set(this.getUID(_t),ye[bt])}Ae.push(ye),Ke.push(F.morphTargetInfluences[Ee]),F.morphTargetDictionary!==void 0&&Ye.push(ht[Ee])}oe.weights=Ke,0<Ye.length&&(oe.extras={},oe.extras.targetNames=Ye)}var vt=Array.isArray(F.material);if(vt&&ee.groups.length===0)return null;for(var Et,kt=vt?F.material:[F.material],pt=vt?ee.groups:[{materialIndex:0,start:void 0,count:void 0}],Qn=0,Jt=pt.length;Qn<Jt;Qn++){if(Et={mode:xe,attributes:de},this.serializeUserData(ee,Et),0<Ae.length&&(Et.targets=Ae),ee.index!==null){var Mn=this.getUID(ee.index);(pt[Qn].start!==void 0||pt[Qn].count!==void 0)&&(Mn+=":"+pt[Qn].start+":"+pt[Qn].count),Z.attributes.has(Mn)?Et.indices=Z.attributes.get(Mn):(Et.indices=this.processAccessor(ee.index,ee,pt[Qn].start,pt[Qn].count),Z.attributes.set(Mn,Et.indices)),Et.indices===null&&delete Et.indices}var ln=this.processMaterial(kt[pt[Qn].materialIndex]);ln!==null&&(Et.material=ln),fe.push(Et)}oe.primitives=fe,K.meshes||(K.meshes=[]),this._invokeAll(function(ze){ze.writeMesh&&ze.writeMesh(F,oe)});var Mt=K.meshes.push(oe)-1;return Z.meshes.set(he,Mt),Mt}processCamera(F){var Z=this.json;Z.cameras||(Z.cameras=[]);var K=F.isOrthographicCamera,X={type:K?"orthographic":"perspective"};return K?X.orthographic={xmag:2*F.right,ymag:2*F.top,zfar:0>=F.far?.001:F.far,znear:0>F.near?0:F.near}:X.perspective={aspectRatio:F.aspect,yfov:a.MathUtils.degToRad(F.fov),zfar:0>=F.far?.001:F.far,znear:0>F.near?0:F.near},F.name!==""&&(X.name=F.type),Z.cameras.push(X)-1}processAnimation(F,Z){var K=this.json,X=this.nodeMap;K.animations||(K.animations=[]),F=l.Utils.mergeMorphTargetTracks(F.clone(),Z);for(var te=F.tracks,J=[],he=[],xe=0;xe<te.length;++xe){var ee=te[xe],oe=a.PropertyBinding.parseTrackName(ee.name),de=a.PropertyBinding.findNode(Z,oe.nodeName),fe=u[oe.propertyName];if(oe.objectName==="bones"&&(de.isSkinnedMesh===!0?de=de.skeleton.getBoneByName(oe.objectIndex):de=void 0),!de||!fe)return console.warn('THREE.GLTFExporter: Could not export animation track "%s".',ee.name),null;var Ae=ee.values.length/ee.times.length;fe===u.morphTargetInfluences&&(Ae/=de.morphTargetInfluences.length);var Se=void 0;ee.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline===!0?(Se="CUBICSPLINE",Ae/=3):ee.getInterpolation()===a.InterpolateDiscrete?Se="STEP":Se="LINEAR",he.push({input:this.processAccessor(new a.BufferAttribute(ee.times,1)),output:this.processAccessor(new a.BufferAttribute(ee.values,Ae)),interpolation:Se}),J.push({sampler:he.length-1,target:{node:X.get(de),path:fe}})}return K.animations.push({name:F.name||"clip_"+K.animations.length,samplers:he,channels:J}),K.animations.length-1}processSkin(F){var Z=this.json,K=this.nodeMap,X=Z.nodes[K.get(F)],te=F.skeleton;if(te===void 0)return null;var J=F.skeleton.bones[0];if(J===void 0)return null;for(var he=[],xe=new Float32Array(16*te.bones.length),ee=new a.Matrix4,oe=0;oe<te.bones.length;++oe)he.push(K.get(te.bones[oe])),ee.copy(te.boneInverses[oe]),ee.multiply(F.bindMatrix).toArray(xe,16*oe);Z.skins===void 0&&(Z.skins=[]),Z.skins.push({inverseBindMatrices:this.processAccessor(new a.BufferAttribute(xe,16)),joints:he,skeleton:K.get(J)});var de=X.skin=Z.skins.length-1;return de}processNode(F){var Z=this.json,K=this.options,X=this.nodeMap;Z.nodes||(Z.nodes=[]);var te={};if(K.trs){var J=F.quaternion.toArray(),he=F.position.toArray(),xe=F.scale.toArray();_(J,[0,0,0,1])||(te.rotation=J),_(he,[0,0,0])||(te.translation=he),_(xe,[1,1,1])||(te.scale=xe)}else F.matrixAutoUpdate&&F.updateMatrix(),L(F.matrix)===!1&&(te.matrix=F.matrix.elements);if(F.name!==""&&(te.name=F.name+""),this.serializeUserData(F,te),F.isMesh||F.isLine||F.isPoints){var ee=this.processMesh(F);ee!==null&&(te.mesh=ee)}else F.isCamera&&(te.camera=this.processCamera(F));if(F.isSkinnedMesh&&this.skins.push(F),0<F.children.length){for(var oe,de=[],fe=0,Ae=F.children.length;fe<Ae;fe++)if(oe=F.children[fe],oe.visible||K.onlyVisible===!1){var Se=this.processNode(oe);Se!==null&&de.push(Se)}0<de.length&&(te.children=de)}this._invokeAll(function(Le){Le.writeNode&&Le.writeNode(F,te)});var Qe=Z.nodes.push(te)-1;return X.set(F,Qe),Qe}processScene(F){var Z=this.json,K=this.options;Z.scenes||(Z.scenes=[],Z.scene=0);var X={};F.name!==""&&(X.name=F.name),Z.scenes.push(X);for(var te,J=[],he=0,xe=F.children.length;he<xe;he++)if(te=F.children[he],te.visible||K.onlyVisible===!1){var ee=this.processNode(te);ee!==null&&J.push(ee)}0<J.length&&(X.nodes=J),this.serializeUserData(F,X)}processObjects(F){var Z=new a.Scene;Z.name="AuxScene";for(var K=0;K<F.length;K++)Z.children.push(F[K]);this.processScene(Z)}processInput(F){var Z=this.options;F=F instanceof Array?F:[F],this._invokeAll(function(he){he.beforeParse&&he.beforeParse(F)});for(var K=[],X=0;X<F.length;X++)F[X]instanceof a.Scene?this.processScene(F[X]):K.push(F[X]);0<K.length&&this.processObjects(K);for(var te=0;te<this.skins.length;++te)this.processSkin(this.skins[te]);for(var J=0;J<Z.animations.length;++J)this.processAnimation(Z.animations[J].clip,Z.animations[J].mesh);this._invokeAll(function(he){he.afterParse&&he.afterParse(F)})}_invokeAll(F){for(var Z=0,K=this.plugins.length;Z<K;Z++)F(this.plugins[Z])}}class B{constructor(F){this.writer=F,this.name="KHR_lights_punctual"}writeNode(F,Z){if(F.isLight){if(!F.isDirectionalLight&&!F.isPointLight&&!F.isSpotLight)return void console.warn("THREE.GLTFExporter: Only directional, point, and spot lights are supported.",F);var K=this.writer,X=K.json,te=K.extensionsUsed,J={};F.name&&(J.name=F.name),J.color=F.color.toArray(),J.intensity=F.intensity,F.isDirectionalLight?J.type="directional":F.isPointLight?(J.type="point",0<F.distance&&(J.range=F.distance)):F.isSpotLight&&(J.type="spot",0<F.distance&&(J.range=F.distance),J.spot={},J.spot.innerConeAngle=-1*((F.penumbra-1)*F.angle),J.spot.outerConeAngle=F.angle),F.decay!==void 0&&F.decay!==2&&console.warn("THREE.GLTFExporter: Light decay may be lost. glTF is physically-based, and expects light.decay=2."),F.target&&(F.target.parent!==F||F.target.position.x!==0||F.target.position.y!==0||F.target.position.z!==-1)&&console.warn("THREE.GLTFExporter: Light direction may be lost. For best results, make light.target a child of the light with position 0,0,-1."),te[this.name]||(X.extensions=X.extensions||{},X.extensions[this.name]={lights:[]},te[this.name]=!0);var he=X.extensions[this.name].lights;he.push(J),Z.extensions=Z.extensions||{},Z.extensions[this.name]={light:he.length-1}}}}class D{constructor(F){this.writer=F,this.name="KHR_materials_unlit"}writeMaterial(F,Z){if(F.isMeshBasicMaterial){var K=this.writer,X=K.extensionsUsed;Z.extensions=Z.extensions||{},Z.extensions[this.name]={},X[this.name]=!0,Z.pbrMetallicRoughness.metallicFactor=0,Z.pbrMetallicRoughness.roughnessFactor=.9}}}class z{constructor(F){this.writer=F,this.name="KHR_materials_pbrSpecularGlossiness"}writeMaterial(F,Z){if(F.isGLTFSpecularGlossinessMaterial){var K=this.writer,X=K.extensionsUsed,te={};Z.pbrMetallicRoughness.baseColorFactor&&(te.diffuseFactor=Z.pbrMetallicRoughness.baseColorFactor);var J=[1,1,1];if(F.specular.toArray(J,0),te.specularFactor=J,te.glossinessFactor=F.glossiness,Z.pbrMetallicRoughness.baseColorTexture&&(te.diffuseTexture=Z.pbrMetallicRoughness.baseColorTexture),F.specularMap){var he={index:K.processTexture(F.specularMap)};K.applyTextureTransform(he,F.specularMap),te.specularGlossinessTexture=he}Z.extensions=Z.extensions||{},Z.extensions[this.name]=te,X[this.name]=!0}}}l.Utils={insertKeyframe:function(F,Z){var K,X=.001,te=F.getValueSize(),J=new F.TimeBufferType(F.times.length+1),he=new F.ValueBufferType(F.values.length+te),xe=F.createInterpolant(new F.ValueBufferType(te));if(F.times.length===0){J[0]=Z;for(var ee=0;ee<te;ee++)he[ee]=0;K=0}else if(Z<F.times[0]){if(Math.abs(F.times[0]-Z)<X)return 0;J[0]=Z,J.set(F.times,1),he.set(xe.evaluate(Z),0),he.set(F.values,te),K=0}else if(Z>F.times[F.times.length-1]){if(Math.abs(F.times[F.times.length-1]-Z)<X)return F.times.length-1;J[J.length-1]=Z,J.set(F.times,0),he.set(F.values,0),he.set(xe.evaluate(Z),F.values.length),K=J.length-1}else for(var oe=0;oe<F.times.length;oe++){if(Math.abs(F.times[oe]-Z)<X)return oe;if(F.times[oe]<Z&&F.times[oe+1]>Z){J.set(F.times.slice(0,oe+1),0),J[oe+1]=Z,J.set(F.times.slice(oe+1),oe+2),he.set(F.values.slice(0,(oe+1)*te),0),he.set(xe.evaluate(Z),(oe+1)*te),he.set(F.values.slice((oe+1)*te),(oe+2)*te),K=oe+1;break}}return F.times=J,F.values=he,K},mergeMorphTargetTracks:function(F,Z){for(var K=[],X={},te=F.tracks,J=0;J<te.length;++J){var he=te[J],xe=a.PropertyBinding.parseTrackName(he.name),ee=a.PropertyBinding.findNode(Z,xe.nodeName);if(xe.propertyName!=="morphTargetInfluences"||xe.propertyIndex===void 0){K.push(he);continue}if(he.createInterpolant!==he.InterpolantFactoryMethodDiscrete&&he.createInterpolant!==he.InterpolantFactoryMethodLinear){if(he.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline)throw new Error("THREE.GLTFExporter: Cannot merge tracks with glTF CUBICSPLINE interpolation.");console.warn("THREE.GLTFExporter: Morph target interpolation mode not yet supported. Using LINEAR instead."),he=he.clone(),he.setInterpolation(a.InterpolateLinear)}var oe=ee.morphTargetInfluences.length,de=ee.morphTargetDictionary[xe.propertyIndex];if(de===void 0)throw new Error("THREE.GLTFExporter: Morph target name not found: "+xe.propertyIndex);var fe=void 0;if(X[ee.uuid]===void 0){fe=he.clone();for(var Ae=new fe.ValueBufferType(oe*fe.times.length),Se=0;Se<fe.times.length;Se++)Ae[Se*oe+de]=fe.values[Se];fe.name=(xe.nodeName||"")+".morphTargetInfluences",fe.values=Ae,X[ee.uuid]=fe,K.push(fe);continue}var Qe=he.createInterpolant(new he.ValueBufferType(1));fe=X[ee.uuid];for(var Le=0;Le<fe.times.length;Le++)fe.values[Le*oe+de]=Qe.evaluate(fe.times[Le]);for(var Ce,je=0;je<he.times.length;je++)Ce=this.insertKeyframe(fe,he.times[je]),fe.values[Ce*oe+de]=he.values[je]}return F.tracks=K,F}}},function(n,r,o){var a=o(3),l=o(4).resolveURL,s=function(){this.nearPlane=.168248,this.farPlane=6.82906,this.eyePosition=[.5,-2.86496,.5],this.targetPosition=[.5,.5,.5],this.upVector=[0,0,1];var x=this;this.setFromObject=L=>{var{nearPlane:S,farPlane:C,eyePosition:A,targetPosition:H,upVector:k}=L;x.nearPlane=S,x.farPlane=C,x.eyePosition=A,x.targetPosition=H,x.upVector=k}},h=function(x,L,S,C){var A={NONE:-1,DEFAULT:0,PATH:1,SMOOTH_CAMERA_TRANSITION:2,AUTO_TUMBLE:3,ROTATE_TRANSITION:4,MINIMAP:5,SYNC_CONTROL:6},H={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM:4,TOUCH_PAN:5,SCROLL:6},k={NONE:-1,FREE:1,HORIZONTAL:2,VERTICAL:3},B={};B.MAIN=H.ROTATE,B.AUXILIARY=H.ZOOM,B.SECONDARY=H.PAN,this.cameraObject=x,this.domElement=L===void 0?document:L,this.renderer=S,this.scene=C,this.tumble_rate=1.5,this.pointer_x=0,this.pointer_y=0,this.pointer_x_start=0,this.pointer_y_start=0,this.previous_pointer_x=0,this.previous_pointer_y=0,this.near_plane_fly_debt=0,this.touchZoomDistanceStart=0,this.touchZoomDistanceEnd=0,this.directionalLight=0,this.scrollRate=50;var D=6e3,z=!0,q=0,F=void 0,Z=void 0,K=!1,X=500,te=void 0,J="default",he=A.DEFAULT,xe=void 0,ee=void 0,oe=void 0,de=0,fe=k.FREE;this._state=H.NONE;var Ae;this.targetTouchId=-1;var Se=void 0,Qe=new a.Vector3,Le=new a.Vector3,Ce=new a.Vector3,je=new a.Vector3,me=new a.Vector3,Ne=new a.Vector3,Ie=new a.Vector3,Ke=new a.Vector3,Ye=new a.Sphere,ht=new a.Vector3,dt=void 0,Ee=0,ye={default:new s};ye.default.nearPlane=.1,ye.default.farPlane=2e3,ye.default.eyePosition=[0,0,0],ye.default.targetPosition=[0,0,-1],ye.default.upVector=[0,1,0],this.cameraObject.target===void 0&&(this.cameraObject.target=new a.Vector3(...ye.default.targetPosition)),this.calculateMaxAllowedDistance=ze=>{var mt=ze.getBoundingBox();if(mt){mt.getBoundingSphere(Ye),Ee=6*Ye.radius;var Ht=0;this.cameraObject&&(Ht=this.cameraObject.position.distanceTo(Ye.center)),Ee=Ht>Ee?Ht:Ee}else Ee=0},this.addViewport=(ze,mt)=>{ze&&mt&&(ye[ze]=mt)},this.setDefaultViewport=ze=>!!(ze&&ze in ye)&&(J=ze,!0),this.getDefaultViewport=()=>J,this.getViewportOfName=ze=>ye[ze],this.setCurrentViewport=ze=>ze in ye&&(this.setCurrentCameraSettings(ye[ze]),!0),this.setRotationMode=ze=>{switch(ze){case"none":fe=k.NONE;break;case"horizontal":fe=k.HORIZONTAL;break;case"vertical":fe=k.VERTICAL;break;case"free":default:fe=k.FREE}},this.onResize=()=>{Se&&(Se=void 0),dt&&dt.setCurrentCameraSettings(this.cameraObject,ye[J])},this.getNDCFromDocumentCoords=(ze,mt,Ht)=>{vt(!1);var pn=Ht||new a.Vector2,Ft=2*((ze-Se.left)/Se.width)-1,ct=2*-((mt-Se.top)/Se.height)+1;return pn.set(Ft,ct)},this.getRelativeCoordsFromNDC=(ze,mt,Ht)=>{vt(!1);var pn=Ht||new a.Vector2;return pn.x=(ze+1)*Se.width/2,pn.y=(1-mt)*Se.height/2,pn},this.setMouseButtonAction=(ze,mt)=>{B[ze]=H[mt]};var it=()=>{if(0<Ee){var ze=ht.distanceTo(Ye.center);return Ee>ze||this.cameraObject.position.distanceTo(Ye.center)>ze}return!0},Ve=ze=>{ht.copy(this.cameraObject.position).add(ze),it()&&(this.cameraObject.target.add(ze),this.cameraObject.position.add(ze),this.updateDirectionalLight())},yt=ze=>{vt(!1);var mt;if(he===A.DEFAULT&&(mt=this.scene.getNormalisedMinimapCoordinates(this.renderer,ze)),!mt)ze.button==0?ze.ctrlKey?this._state=B.AUXILIARY:ze.shiftKey?this._state=B.SECONDARY:this._state=B.MAIN:ze.button==1?(ze.preventDefault(),this._state=B.AUXILIARY):ze.button==2&&(this._state=B.SECONDARY),this.pointer_x=ze.clientX-Se.left,this.pointer_y=ze.clientY-Se.top,this.pointer_x_start=this.pointer_x,this.pointer_y_start=this.pointer_y,this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y;else{he=A.MINIMAP;var Ht=this.scene.getMinimapDiffFromNormalised(mt.x,mt.y);Ve(Ht)}},bt=ze=>{if(vt(!1),this.pointer_x=ze.clientX-Se.left,this.pointer_y=ze.clientY-Se.top,he===A.MINIMAP){var mt=this.scene.getNormalisedMinimapCoordinates(this.renderer,ze);if(mt){var Ht=this.scene.getMinimapDiffFromNormalised(mt.x,mt.y);Ve(Ht)}}else this._state===H.NONE&&Ae!==void 0&&Ae.move(this,ze.clientX,ze.clientY,this.renderer)},_t=ze=>{this._state=H.NONE,he==A.MINIMAP&&(he=A.DEFAULT),Ae!==void 0&&this.pointer_x_start==ze.clientX-Se.left&&this.pointer_y_start==ze.clientY-Se.top&&Ae.pick(this,ze.clientX,ze.clientY,this.renderer)},nt=()=>{this._state=H.NONE},Je=ze=>{vt(!1);var mt=ze.touches.length;if(mt==1)this._state=H.TOUCH_ROTATE,this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top,this.pointer_x_start=this.pointer_x,this.pointer_y_start=this.pointer_y,this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y;else if(mt==2){this._state=H.TOUCH_ZOOM;var Ht=ze.touches[0].clientX-ze.touches[1].clientX,pn=ze.touches[0].clientY-ze.touches[1].clientY;this.touchZoomDistanceEnd=this.touchZoomDistanceStart=Math.sqrt(Ht*Ht+pn*pn)}else mt==3&&(this._state=H.TOUCH_PAN,this.targetTouchId=ze.touches[0].identifier,this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top,this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y)},et=ze=>{ze.preventDefault(),ze.stopPropagation();var mt=ze.touches.length;if(mt==1)this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top;else if(mt==2){if(this._state===H.TOUCH_ZOOM){var Ht=ze.touches[0].clientX-ze.touches[1].clientX,pn=ze.touches[0].clientY-ze.touches[1].clientY;this.touchZoomDistanceEnd=Math.sqrt(Ht*Ht+pn*pn)}}else if(mt==3&&this._state===H.TOUCH_PAN)for(var Ft=0;3>Ft;Ft++)ze.touches[Ft].identifier==this.targetTouchId&&(this.pointer_x=ze.touches[0].clientX-Se.left,this.pointer_y=ze.touches[0].clientY-Se.top)},Xe=ze=>{var mt=ze.touches.length;this.touchZoomDistanceStart=this.touchZoomDistanceEnd=0,this.targetTouchId=-1,this._state=H.NONE,mt==1&&Ae!==void 0&&this.pointer_x_start==ze.touches[0].clientX-Se.left&&this.pointer_y_start==ze.touches[0].clientY-Se.top&&Ae.pick(this.cameraObject,ze.touches[0].clientX,ze.touches[0].clientY,this.renderer)},Lt=()=>{vt(!0)},vt=ze=>{if(ze||Se===void 0){var mt=new IntersectionObserver(Ht=>{for(var pn of Ht)Se=pn.boundingClientRect;mt.disconnect()});mt.observe(this.domElement)}},Et=ze=>{vt(!1),this._state=H.SCROLL;var mt=0;0<ze.deltaY?mt=this.scrollRate:0>ze.deltaY&&(mt=-1*this.scrollRate),de+=mt,ze.preventDefault(),ze.stopImmediatePropagation()},kt=()=>{if(typeof this.cameraObject<"u"){var ze=Se.height,mt=this.cameraObject.position.distanceTo(this.cameraObject.target),Ht=0;this.cameraObject.far>this.cameraObject.near&&mt>=this.cameraObject.near&&mt<=this.cameraObject.far&&(Ht=(mt-this.cameraObject.near)/(this.cameraObject.far-this.cameraObject.near)),Le.set(this.previous_pointer_x,ze-this.previous_pointer_y,0),Ce.set(this.previous_pointer_x,ze-this.previous_pointer_y,1),je.set(this.pointer_x,ze-this.pointer_y,0),me.set(this.pointer_x,ze-this.pointer_y,1),Le.unproject(this.cameraObject),Ce.unproject(this.cameraObject),je.unproject(this.cameraObject),me.unproject(this.cameraObject),je.sub(Le).multiplyScalar(1-Ht),me.sub(Ce).multiplyScalar(Ht),je.add(me).multiplyScalar(-.002),Ve(je)}this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y};this.getVectorsFromRotateAboutLookAtPoints=(ze,mt)=>{ze.normalize(),Ie.copy(this.cameraObject.position).sub(this.cameraObject.target),Ke.copy(Ie),Ie.normalize(),.8<Math.abs(Ie.dot(ze))&&Ie.copy(this.cameraObject.up),Le.crossVectors(ze,Ie).normalize(),Ce.crossVectors(ze,Le);var Ht=ze.dot(Ke),pn=Le.dot(Ke),Ft=Ce.dot(Ke),ct=ze.dot(this.cameraObject.up),ge=Le.dot(this.cameraObject.up),se=Ce.dot(this.cameraObject.up),pe=Math.cos(mt),He=Math.sin(mt);return je.set(pe*Le.x+He*Ce.x,pe*Le.y+He*Ce.y,pe*Le.z+He*Ce.z),me.set(pe*Ce.x-He*Le.x,pe*Ce.y-He*Le.y,pe*Ce.z-He*Le.z),Ie.copy(this.cameraObject.target),Ie.x=Ie.x+ze.x*Ht+je.x*pn+me.x*Ft,Ie.y=Ie.y+ze.y*Ht+je.y*pn+me.y*Ft,Ie.z=Ie.z+ze.z*Ht+je.z*pn+me.z*Ft,Qe.set(ze.x*ct+je.x*ge+me.x*se,ze.y*ct+je.y*ge+me.y*se,ze.z*ct+je.z*ge+me.z*se),{position:Ie,up:Qe}},this.rotateAboutLookAtpoint=(ze,mt)=>{var Ht=this.getVectorsFromRotateAboutLookAtPoints(ze,mt);this.cameraObject.position.copy(Ht.position),this.updateDirectionalLight(),this.cameraObject.up.copy(Ht.up)};var pt=()=>{if(typeof this.cameraObject<"u"){var ze=Se.width,mt=Se.height;if(0<ze&&0<mt){var Ht=.25*(ze+mt),pn=0,Ft=0;(fe===k.FREE||fe===k.HORIZONTAL)&&(pn=this.pointer_x-this.previous_pointer_x),(fe===k.FREE||fe===k.VERTICAL)&&(Ft=this.previous_pointer_y-this.pointer_y);var ct=Math.sqrt(pn*pn+Ft*Ft);if(0<ct){var ge=1*-Ft/ct,se=1*pn/ct;fe===k.FREE&&ge*(this.pointer_x-.5*(ze-1))+se*(.5*(mt-1)-this.pointer_y);var pe=Math.acos(0/Ht)-.5*Math.PI,He=this.tumble_rate*ct/Ht;Qe.copy(this.cameraObject.position).sub(this.cameraObject.target).normalize(),Le.copy(this.cameraObject.up).normalize(),Ce.copy(Le).cross(Qe).normalize().multiplyScalar(ge),Le.multiplyScalar(se),Ne.addVectors(Ce,Le).multiplyScalar(Math.cos(pe)),Qe.multiplyScalar(Math.sin(pe)),Ne.add(Qe),this.rotateAboutLookAtpoint(Ne,-He)}}}this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y},Qn=()=>{var ze=0;return this._state===H.ZOOM?ze=this.previous_pointer_y-this.pointer_y:this._state===H.SCROLL?ze=de:(ze=-1*(this.touchZoomDistanceEnd-this.touchZoomDistanceStart),this.touchZoomDistanceStart=this.touchZoomDistanceEnd),ze};this.changeZoomByScrollRateUnit=ze=>{var mt=ze*this.scrollRate;this.changeZoomByValue(mt)},this.changeZoomByValue=ze=>{if(typeof this.cameraObject<"u"){Se.width;var mt=Se.height,Ht=this.cameraObject.position.clone();Ht.sub(this.cameraObject.target);var pn=Ht.length(),Ft=1.5*ze/mt;if(.01<pn+Ft*pn&&(Ht.normalize(),ht.copy(this.cameraObject.position),ht.x+=Ht.x*Ft*pn,ht.y+=Ht.y*Ft*pn,ht.z+=Ht.z*Ft*pn,it())){this.cameraObject.position.copy(ht),this.updateDirectionalLight();var ct=1e-5;if(ct*this.cameraObject.far<this.cameraObject.near+Ft*pn+this.near_plane_fly_debt)this.near_plane_fly_debt!=0&&(this.near_plane_fly_debt+=Ft*pn,0<this.near_plane_fly_debt?(this.cameraObject.near+=this.near_plane_fly_debt,this.cameraObject.far+=this.near_plane_fly_debt,this.near_plane_fly_debt=0):(this.cameraObject.near+=Ft*pn,this.cameraObject.far+=Ft*pn));else{if(this.near_plane_fly_debt==0){var ge=this.cameraObject.near-ct*this.cameraObject.far;this.cameraObject.near=ct*this.cameraObject.far,this.cameraObject.far-=ge,this.near_plane_fly_debt-=ct*this.cameraObject.far}this.near_plane_fly_debt+=Ft*pn}}}};var Jt=()=>{var ze=Qn();this.changeZoomByValue(ze),this._state===H.ZOOM&&(this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y),this._state===H.SCROLL&&(de=0,this._state=H.NONE)};this.setDirectionalLight=ze=>{this.directionalLight=ze},this.updateDirectionalLight=()=>{this.directionalLight!=0&&this.directionalLight.position.set(this.cameraObject.position.x,this.cameraObject.position.y,this.cameraObject.position.z)},this.enable=function(){z=!0,this.domElement&&this.domElement.addEventListener&&(this.domElement.addEventListener("mousedown",yt,!1),this.domElement.addEventListener("mousemove",bt,!1),this.domElement.addEventListener("mouseup",_t,!1),this.domElement.addEventListener("mouseleave",nt,!1),this.domElement.addEventListener("touchstart",Je,!1),this.domElement.addEventListener("touchmove",et,!1),this.domElement.addEventListener("touchend",Xe,!1),this.domElement.addEventListener("wheel",Et,!1),this.domElement.addEventListener("contextmenu",ze=>{ze.preventDefault()},!1),this.domElement.addEventListener("mouseenter",Lt,!1))},this.disable=function(){z=!1,this.domElement&&this.domElement.removeEventListener&&(this.domElement.removeEventListener("mousedown",yt,!1),this.domElement.removeEventListener("mousemove",bt,!1),this.domElement.removeEventListener("mouseup",_t,!1),this.domElement.removeEventListener("mouseleave",nt,!1),this.domElement.removeEventListener("touchstart",Je,!1),this.domElement.removeEventListener("touchmove",et,!1),this.domElement.removeEventListener("touchend",Xe,!1),this.domElement.removeEventListener("wheel",Et,!1),this.domElement.removeEventListener("mouseenter",Lt,!1),this.domElement.removeEventListener("contextmenu",ze=>{ze.preventDefault()},!1))},this.loadPath=ze=>{F=ze.CameraPath,Z=ze.NumberOfPoints},this.loadPathURL=(ze,mt)=>{var Ht=new XMLHttpRequest;Ht.onreadystatechange=()=>{if(Ht.readyState==4&&Ht.status==200){var Ft=JSON.parse(Ht.responseText);this.loadPath(Ft),mt!=null&&typeof mt=="function"&&mt()}};var pn=l(ze);Ht.open("GET",pn,!0),Ht.send()},this.setPathDuration=ze=>{D=ze,xe&&xe.setDuration(D),ee&&ee.setDuration(D)},this.getPlayRate=()=>X,this.setPlayRate=ze=>{X=ze};var Mn=ze=>{var mt=q+ze;mt>D&&(mt-=D),q=mt};this.getTime=()=>q,this.setTime=ze=>{q=ze>D?D:0>ze?0:ze},this.getNumberOfTimeFrame=()=>Z,this.getCurrentTimeFrame=()=>{if(2<Z){var ze=q/D*(Z-1),mt=Math.floor(ze),Ht=Math.ceil(ze);return mt==Ht?mt==Z-1?[mt-1,Ht,0]:[mt,Ht+1,1]:[mt,Ht,1-(ze-mt)]}return Z==1?[0,0,0]:void 0},this.setCurrentTimeFrame=ze=>{2<Z&&(q=D*ze/(Z-1),0>q&&(q=0),q>D&&(q=D))};var ln=ze=>{if(he===A.PATH&&(Mn(ze),F)){for(var mt=this.getCurrentTimeFrame(),Ht=mt[0],pn=mt[1],Ft=mt[2],ct=[F[3*Ht],F[3*Ht+1],F[3*Ht+2]],ge=[F[3*pn],F[3*pn+1],F[3*pn+2]],se=[],pe=0;pe<ct.length;pe++)se.push(Ft*ct[pe]+(1-Ft)*ge[pe]);this.cameraObject.position.set(se[0],se[1],se[2]),this.cameraObject.target.set(ge[0],ge[1],ge[2]),te&&this.cameraObject.lookAt(this.cameraObject.target),K&&(this.directionalLight.position.set(se[0],se[1],se[2]),this.directionalLight.target.position.set(ge[0],ge[1],ge[2]))}};this.calculatePathNow=()=>{ln(0)};var Mt=()=>{this._state===H.ROTATE||this._state===H.TOUCH_ROTATE?pt():this._state===H.PAN||this._state===H.TOUCH_PAN?(kt(),dt.triggerCallback()):(this._state===H.ZOOM||this._state===H.TOUCH_ZOOM||this._state===H.SCROLL)&&(dt.zoom(Qn()),this.previous_pointer_x=this.pointer_x,this.previous_pointer_y=this.pointer_y,this._state===H.SCROLL&&(this._state=H.NONE),de=0,dt.triggerCallback())};this.update=ze=>{var mt=ze*X,Ht=z;he===A.PATH?ln(mt):he===A.SMOOTH_CAMERA_TRANSITION&&xe?(xe.update(mt),xe.isTransitionCompleted()&&(he=A.DEFAULT),Ht=!1):he===A.ROTATE_CAMERA_TRANSITION&&ee?(ee.update(mt),ee.isTransitionCompleted()&&(he=A.DEFAULT),Ht=!1):he===A.AUTO_TUMBLE&&oe?oe.update(mt):he===A.SYNC_CONTROL&&dt&&(Mt(),Ht=!1),Ht&&(this._state===H.ROTATE||this._state===H.TOUCH_ROTATE?pt():this._state===H.PAN||this._state===H.TOUCH_PAN?kt():(this._state===H.ZOOM||this._state===H.TOUCH_ZOOM||this._state===H.SCROLL)&&Jt(),this._state!==H.NONE&&he===A.AUTO_TUMBLE&&oe&&oe.stopOnCameraInput,this._state===H.SCROLL&&(this._state=H.NONE)),te?te.update():this.cameraObject.lookAt(this.cameraObject.target)},this.playPath=()=>{he=A.PATH},this.stopPath=()=>{he=A.DEFAULT},this.isPlayingPath=()=>he===A.PATH,this.enableDirectionalLightUpdateWithPath=ze=>{K=ze},this.enableDeviceOrientation=()=>{te||(te=new v(this.cameraObject))},this.disableDeviceOrientation=()=>{te&&(te.dispose(),te=void 0)},this.isDeviceOrientationEnabled=()=>!!te,this.resetView=()=>{var ze=ye[J];this.cameraObject.near=ze.nearPlane,this.cameraObject.far=ze.farPlane,this.cameraObject.position.set(ze.eyePosition[0],ze.eyePosition[1],ze.eyePosition[2]),this.cameraObject.target.set(ze.targetPosition[0],ze.targetPosition[1],ze.targetPosition[2]),this.cameraObject.up.set(ze.upVector[0],ze.upVector[1],ze.upVector[2]),this.cameraObject.updateProjectionMatrix(),this.updateDirectionalLight()},this.setCurrentCameraSettings=ze=>{ze.nearPlane&&(this.cameraObject.near=ze.nearPlane),ze.farPlane&&(this.cameraObject.far=ze.farPlane),ze.eyePosition&&this.cameraObject.position.set(ze.eyePosition[0],ze.eyePosition[1],ze.eyePosition[2]),ze.targetPosition&&this.cameraObject.target.set(ze.targetPosition[0],ze.targetPosition[1],ze.targetPosition[2]),ze.upVector&&this.cameraObject.up.set(ze.upVector[0],ze.upVector[1],ze.upVector[2]),this.cameraObject.updateProjectionMatrix(),this.updateDirectionalLight()},this.getViewportFromCentreAndRadius=(ze,mt,Ht,pn,Ft,ct)=>{var ge=this.cameraObject.position.x-this.cameraObject.target.x,se=this.cameraObject.position.y-this.cameraObject.target.y,pe=this.cameraObject.position.z-this.cameraObject.target.z,He=1/Math.sqrt(ge*ge+se*se+pe*pe);ge*=He,se*=He,pe*=He;var Pe=pn/Math.tan(Ft*Math.PI/360),Ue=[ze+ge*Pe,mt+se*Pe,Ht+pe*Pe],ot=0,Me=.95;ot=ct>Me*Pe?(1-Me)*Pe:Pe-ct;var re=new s;return re.nearPlane=ot,re.farPlane=Pe+ct,re.eyePosition=Ue,re.targetPosition=[ze,mt,Ht],re.upVector=[this.cameraObject.up.x,this.cameraObject.up.y,this.cameraObject.up.z],re},this.getCurrentViewport=()=>{var ze=new s;return ze.nearPlane=this.cameraObject.near,ze.farPlane=this.cameraObject.far,ze.eyePosition[0]=this.cameraObject.position.x,ze.eyePosition[1]=this.cameraObject.position.y,ze.eyePosition[2]=this.cameraObject.position.z,ze.targetPosition[0]=this.cameraObject.target.x,ze.targetPosition[1]=this.cameraObject.target.y,ze.targetPosition[2]=this.cameraObject.target.z,ze.upVector[0]=this.cameraObject.up.x,ze.upVector[1]=this.cameraObject.up.y,ze.upVector[2]=this.cameraObject.up.z,ze},this.getDefaultEyePosition=()=>eyePosition,this.getDefaultTargetPosition=()=>targetPosition,this.cameraTransition=(ze,mt,Ht)=>{ee==null&&(xe=new u(ze,mt,this,Ht))},this.rotateCameraTransition=(ze,mt,Ht)=>{xe==null&&(ee=new d(ze,mt,this,Ht))},this.enableCameraTransition=()=>{xe&&(he=A.SMOOTH_CAMERA_TRANSITION),ee&&(he=A.ROTATE_CAMERA_TRANSITION)},this.pauseCameraTransition=()=>{he=A.DEFAULT},this.stopCameraTransition=()=>{he=A.DEFAULT,xe=void 0,ee=void 0},this.isTransitioningCamera=()=>he===A.SMOOTH_CAMERA_TRANSITION||he===A.ROTATE_CAMERA_TRANSITION,this.autoTumble=(ze,mt,Ht)=>{oe=new f(ze,mt,Ht,this)},this.enableAutoTumble=()=>{he=A.AUTO_TUMBLE},this.stopAutoTumble=()=>{he=A.DEFAULT,oe=void 0},this.updateAutoTumble=()=>{oe&&(oe.requireUpdate=!0)},this.isAutoTumble=()=>he===A.AUTO_TUMBLE,this.enableRaycaster=(ze,mt,Ht)=>{Ae==null&&(Ae=new p(ze,this.scene,mt,Ht,this.renderer))},this.disableRaycaster=()=>{Ae.disable(),Ae=void 0},this.isSyncControl=()=>currentMpde===A.SYNC_CONTROL,this.enableSyncControl=()=>(he=A.SYNC_CONTROL,dt||(dt=new _),dt.setCurrentCameraSettings(this.cameraObject,ye[J]),dt),this.disableSyncControl=()=>{he=A.DEFAULT,this.cameraObject.zoom=1,this.cameraObject.updateProjectionMatrix()},this.enable()},u=function(x,L,S,C){var A=x.eyePosition,H=x.targetPosition,k=x.upVector,B=L.eyePosition,D=L.targetPosition,z=L.upVector,q=S,F=C,Z=0,K=!1;q.near=Math.min(x.nearPlane,L.nearPlane),q.far=Math.max(x.farPlane,L.farPlane),q.cameraObject.up.set(L.upVector[0],L.upVector[1],L.upVector[2]),this.setDuration=J=>{F=J};var X=J=>{var he=Z+J;he>F&&(he=F),Z=he},te=()=>{var J=Z/F,he=[A[0]*(1-J)+B[0]*J,A[1]*(1-J)+B[1]*J,A[2]*(1-J)+B[2]*J],xe=[H[0]*(1-J)+D[0]*J,H[1]*(1-J)+D[1]*J,H[2]*(1-J)+D[2]*J];k[0]*(1-J)+z[0]*J,k[1]*(1-J)+z[1]*J,k[2]*(1-J)+z[2]*J,q.cameraObject.position.set(he[0],he[1],he[2]),q.cameraObject.target.set(xe[0],xe[1],xe[2])};this.update=J=>{this.enabled===!1||(X(J),te(),Z==F&&(K=!0))},this.isTransitionCompleted=()=>K},d=function(x,L,S,C){var A=C,H=0,k=!1;this.setDuration=D=>{A=D};var B=D=>{var z=H,q=H+D;q>A&&(q=A),H=q;var F=H-z,Z=F/A;S.rotateAboutLookAtpoint(x,Z*L)};this.update=D=>{this.enabled===!1||(B(D),H==A&&(k=!0))},this.isTransitionCompleted=()=>k},p=function(x,L,S,C,A){var H=x,k=A,B=S,D=C,z=new a.Raycaster;z.params.Line.threshold=.1,z.params.Points.threshold=.1;var q=new a.Vector2,F=!1,Z=new Date,K=!1,X=0,te=[],J={zincCamera:void 0,x:-1,y:-1};this.enable=()=>{enable=!0},this.disable=()=>{enable=!1};var he=(oe,de,fe)=>{if(oe.getNDCFromDocumentCoords(de,fe,q),L!==H){var Ae=H.getThreeJSScene();k.render(Ae,oe.cameraObject)}z.setFromCamera(q,oe.cameraObject);var Se=H.getPickableThreeJSObjects();return te.length=0,z.intersectObjects(Se,!0,te)};this.pick=(oe,de,fe)=>{k&&H&&oe&&B&&(he(oe,de,fe),B(te,de,fe))};var xe=(oe,de,fe)=>{if(k&&H&&oe&&D){if(he(oe,de,fe),Z.setTime(Date.now()),te.length===0){if(K)return;K=!0}else K=!1;D(te,de,fe)}};this.move=(oe,de,fe)=>{k&&H&&oe&&D&&(H.displayMarkers?xe(oe,de,fe):(J.zincCamera=oe,J.x=de,J.y=fe,!F&&(X=Z?Date.now()-Z.getTime():250,250<=X?xe(oe,de,fe):(F=!0,setTimeout(ee(J),X)))))};var ee=oe=>function(){F=!1,xe(oe.zincCamera,oe.x,oe.y)}},f=function(x,L,S,C){var A=new a.Vector3,H=C;this.stopOnCameraInput=S,this.requireUpdate=!0;var k=new a.Vector3,B=new a.Vector3,D=z=>{var q=Math.sqrt(z[0]*z[0]+z[1]*z[1]),F=4*Math.abs(z[0]),Z=4*Math.abs(z[1]),K=.25*(F+Z),X=-z[1]/q,te=z[0]/q,J=X*z[0]+te*-z[1];J>K?J=K:J<-K&&(J=-K);var he=Math.acos(J/K)-.5*Math.PI;A.copy(H.cameraObject.position).sub(H.cameraObject.target).normalize(),k.copy(H.cameraObject.up).normalize(),B.crossVectors(k,A).normalize().multiplyScalar(X),k.multiplyScalar(te),k.add(B).multiplyScalar(Math.cos(he)),A.multiplyScalar(Math.sin(he)).add(k)};this.update=z=>{this.enabled===!1||(this.requireUpdate&&(D(x),this.requireUpdate=!1),H.rotateAboutLookAtpoint(A,-L*z/1e3))}},m=function(){this.type="StereoCamera",this.aspect=1,this.cameraL=new a.PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new a.PerspectiveCamera,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1};Object.assign(m.prototype,{update:(()=>{var x,L,S,C,A,H,k=new a.Matrix4,B=new a.Matrix4;return function(D){var z=x!==D.focus||L!==D.fov||S!==D.aspect*this.aspect||C!==D.near||A!==D.far||H!==D.zoom;if(z){x=D.focus,L=D.fov,S=D.aspect*this.aspect,C=D.near,A=D.far,H=D.zoom;var q,F,Z=D.projectionMatrix.clone(),K=.064/2,X=K*C/x,te=C*Math.tan(.5*(a.Math.DEG2RAD*L))/D.zoom;B.elements[12]=-K,k.elements[12]=K,q=-te*S+X,F=te*S+X,Z.elements[0]=2*C/(F-q),Z.elements[8]=(F+q)/(F-q),this.cameraL.projectionMatrix.copy(Z),q=-te*S-X,F=te*S-X,Z.elements[0]=2*C/(F-q),Z.elements[8]=(F+q)/(F-q),this.cameraR.projectionMatrix.copy(Z)}this.cameraL.matrixWorld.copy(D.matrixWorld).multiply(B),this.cameraR.matrixWorld.copy(D.matrixWorld).multiply(k)}})()});var y=function(x){var L=new m;L.aspect=.5,this.setSize=(S,C)=>{x.setSize(S,C)},this.render=(S,C)=>{S.updateMatrixWorld(),C.parent===null&&C.updateMatrixWorld(),L.update(C);var A=x.getSize();x.setScissorTest(!0),x.clear(),x.setScissor(0,0,A.width/2,A.height),x.setViewport(0,0,A.width/2,A.height),x.render(S,L.cameraL),x.setScissor(A.width/2,0,A.width/2,A.height),x.setViewport(A.width/2,0,A.width/2,A.height),x.render(S,L.cameraR),x.setScissorTest(!1)}},v=function(x){var L=this;this.object=x,this.object.rotation.reorder("YXZ"),this.enabled=!0,this.deviceOrientation={},this.screenOrientation=0;var S=H=>{L.deviceOrientation=H},C=()=>{typeof window<"u"&&(L.screenOrientation=window.orientation||0)},A=(()=>{var H=new a.Vector3(0,0,1),k=new a.Euler,B=new a.Quaternion,D=new a.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5));return(z,q,F,Z,K)=>{var X=new a.Vector3(0,0,1);X.subVectors(z.target,z.position),k.set(F,q,-Z,"YXZ");var te=new a.Quaternion;te.setFromEuler(k),te.multiply(D),te.multiply(B.setFromAxisAngle(H,-K)),X.applyQuaternion(te),X.addVectors(z.position,X),z.lookAt(X)}})();this.connect=()=>{C(),typeof window<"u"&&(window.addEventListener("orientationchange",C,!1),window.addEventListener("deviceorientation",S,!1)),L.enabled=!0},this.disconnect=()=>{typeof window<"u"&&(window.removeEventListener("orientationchange",C,!1),window.removeEventListener("deviceorientation",S,!1)),L.enabled=!1},this.update=()=>{if(L.enabled!==!1){var H=L.deviceOrientation.alpha?a.Math.degToRad(L.deviceOrientation.alpha):0,k=L.deviceOrientation.beta?a.Math.degToRad(L.deviceOrientation.beta):0,B=L.deviceOrientation.gamma?a.Math.degToRad(L.deviceOrientation.gamma):0,D=L.screenOrientation?a.Math.degToRad(L.screenOrientation):0;A(L.object,H,k,B,D)}},this.dispose=function(){this.disconnect()},this.connect()},_=function(){var x=void 0,L=void 0,S=void 0,C=new a.Vector3,A=new a.Vector3,H=new a.Vector3,k=new a.Vector3,B=void 0;this.setCurrentCameraSettings=(D,z)=>{x=D.clone(),L=D,S=z,x.near=S.nearPlane,S.farPlane&&(x.far=S.farPlane),S.eyePosition&&x.position.set(S.eyePosition[0],S.eyePosition[1],S.eyePosition[2]),S.upVector&&x.up.set(S.upVector[0],S.upVector[1],S.upVector[2]),S.targetPosition&&(x.target=new a.Vector3(S.targetPosition[0],S.targetPosition[1],S.targetPosition[2]),x.lookAt(x.target)),x.updateProjectionMatrix(),C.copy(x.position).project(x),A.copy(x.target).project(x)},this.getCurrentPosition=()=>(A.copy(L.target).project(x),[A.x,A.y]),this.zoom=D=>{var z=Math.max(L.zoom-.002*D,1);L.zoom=z,L.updateProjectionMatrix()},this.zoomToBox=(D,z)=>{D.getCenter(H),H.project(x),this.setCenterZoom([H.x,H.y],z)},this.getPanZoom=()=>({target:this.getCurrentPosition(),zoom:L.zoom}),this.setCenterZoom=(D,z)=>{H.set(D[0],D[1],A.z).unproject(x),k.copy(H).sub(L.target),L.target.copy(H),L.lookAt(L.target),L.position.add(k),L.zoom=z,L.updateProjectionMatrix()},this.setEventCallback=D=>{(D===void 0||typeof D=="function")&&(B=D)},this.triggerCallback=()=>{B!==void 0&&typeof B=="function"&&B()}};r.Viewport=s,r.CameraControls=h,r.SmoothCameraTransition=u,r.RotateCameraTransition=d,r.RayCaster=p,r.CameraAutoTumble=f,r.StereoEffect=y,r.NDCCameraControl=_},function(n,r,o){var{Group:a,Matrix4:l}=o(3),s=0,h=function(){return"re"+s++},u=function(d){var p=d,f=new a;f.matrixAutoUpdate=!1,f.userData=this;var m=[],y="",v=[],_=new l,x=3e3;_.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this.pickableUpdateRequired=!0,this.isRegion=!0,this.uuid=h(),this.hideAllPrimitives=()=>{m.forEach(L=>L.hideAllPrimitives()),v.forEach(L=>L.setVisibility(!1))},this.showAllPrimitives=()=>{m.forEach(L=>L.showAllPrimitives()),v.forEach(L=>L.setVisibility(!0))},this.setVisibility=L=>{f.visible=L},this.getVisibility=()=>f.visible,this.getGroup=()=>f,this.setTransformation=L=>{_.set(...L),f.matrix.copy(_),f.updateMatrixWorld()},this.setName=L=>{L&&L!==""&&(y=L)},this.getName=()=>y,this.getParent=()=>p,this.getFullSeparatedPath=()=>{var L=[];if(y!==""){L.push(y);for(var S,C=p;C!==void 0;)S=C.getName(),S!==""&&L.unshift(S),C=C.getParent()}return L},this.getFullPath=()=>{var L=this.getFullSeparatedPath();if(0<L.length){var S=L.shift();return L.forEach(C=>{S=S.concat("/",C)}),S}return""},this.createChild=L=>{var S=new u(this);return S.setName(L),m.push(S),f.add(S.getGroup()),S},this.getChildWithName=L=>{if(L){for(var S=L.toLowerCase(),C=0;C<m.length;C++)if(m[C].getName().toLowerCase()===S)return m[C]}},this.findChildFromSeparatedPath=L=>{if(L&&0<L.length&&L[0]===""&&L.shift(),L&&0<L.length){var S=this.getChildWithName(L[0]);return S?(L.shift(),S.findChildFromSeparatedPath(L)):void 0}return this},this.findChildFromPath=L=>{var S=L.split("/");return this.findChildFromSeparatedPath(S)},this.createChildFromSeparatedPath=L=>{if(0<L.length&&L[0]===""&&L.shift(),0<L.length){var S=this.getChildWithName(L[0]);return S||(S=this.createChild(L[0])),L.shift(),S.createChildFromSeparatedPath(L)}return this},this.createChildFromPath=L=>{var S=L.split("/");return this.createChildFromSeparatedPath(S)},this.findOrCreateChildFromPath=L=>{var S=this.findChildFromPath(L);return S||(S=this.createChildFromPath(L)),S},this.addZincObject=L=>{L&&(L.setRegion(this),f.add(L.morph),v.push(L),this.pickableUpdateRequired=!0)},this.removeZincObject=L=>{for(var S=0;S<v.length;S++)if(L===v[S])return f.remove(L.morph),v.splice(S,1),void L.dispose()},this.checkPickableUpdateRequred=L=>{if(this.pickableUpdateRequired)return!0;if(L){for(var S=!1,C=0;C<m.length;C++)if(S=m[C].checkPickableUpdateRequred(L),S)return!0}return!1},this.getPickableThreeJSObjects=(L,S)=>(v.forEach(C=>{if(C.morph&&C.morph.visible){var A=C.marker;A&&A.isEnabled()&&L.push(A.morph),L.push(C.morph)}}),S&&m.forEach(C=>{C.getPickableThreeJSObjects(L,S)}),this.pickableUpdateRequired=!1,L),this.setDuration=L=>{x=L,v.forEach(S=>S.setDuration(L)),m.forEach(S=>S.setDuration(L))},this.getDuration=()=>x,this.getBoundingBox=L=>{var S,C;return v.forEach(A=>{C=A.getBoundingBox(),C&&(S==null?S=C.clone():S.union(C))}),L&&m.forEach(A=>{C=A.getBoundingBox(L),C&&(S==null?S=C.clone():S.union(C))}),S},this.clear=L=>{L&&m.forEach(S=>S.clear(L)),v.forEach(S=>{f.remove(S.morph),S.dispose()}),m=[],v=[]},this.objectIsInRegion=(L,S)=>{for(var C=0;C<v.length;C++)if(L===v[C])return!0;if(S){for(var A=0;A<m.length;A++)if(m[A].objectIsInRegion(L,S))return!0}return!1},this.forEachGeometry=(L,S)=>{v.forEach(C=>{C.isGeometry&&L(C)}),S&&m.forEach(C=>C.forEachGeometry(L,S))},this.forEachGlyphset=(L,S)=>{v.forEach(C=>{C.isGlyphset&&L(C)}),S&&m.forEach(C=>C.forEachGlyphset(L,S))},this.forEachPointset=(L,S)=>{v.forEach(C=>{C.isPointset&&L(C)}),S&&m.forEach(C=>C.forEachPointset(L,S))},this.forEachLine=(L,S)=>{v.forEach(C=>{C.isLines&&L(C)}),S&&m.forEach(C=>C.forEachLine(L,S))},this.findObjectsWithAnatomicalId=(L,S)=>(v.forEach(C=>{C.anatomicalId===L&&objectsArray.push(C)}),S&&m.forEach(C=>{var A=C.findObjectsWithAnatomicalId(L,S);objectsArray.push(...A)}),objectsArray),this.findObjectsWithGroupName=(L,S)=>{var C=[];return v.forEach(A=>{var H=A.groupName?A.groupName.toLowerCase():A.groupName,k=L&&L.toLowerCase();H===k&&C.push(A)}),S&&m.forEach(A=>{var H=A.findObjectsWithGroupName(L,S);C.push(...H)}),C},this.findGeometriesWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isGeometry);return A},this.findPointsetsWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isPointset);return A},this.findGlyphsetsWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isGlyphset);return A},this.findLinesWithGroupName=(L,S)=>{var C=this.findObjectsWithGroupName(L,S),A=C.filter(H=>H.isLines);return A},this.getAllObjects=L=>{var S=[...v];return L&&m.forEach(C=>{var A=C.getAllObjects(L);S.push(...A)}),S},this.getChildRegions=L=>{var S=[...m];return L&&m.forEach(C=>{var A=C.getChildRegions(L);S.push(...A)}),S},this.getCurrentTime=()=>{if(v[0]!=null)return v[0].getCurrentTime();for(var L,S=0;S<m.length;S++)if(L=m[S].getCurrentTime(),L!==-1)return L;return-1},this.setMorphTime=(L,S)=>{v.forEach(C=>{C.setMorphTime(L)}),S&&m.forEach(C=>{C.setMorphTime(L)})},this.isTimeVarying=()=>{for(var L=0;L<v.length;L++)if(v[L].isTimeVarying())return!0;for(var S=0;S<m.length;S++)if(m[S].isTimeVarying())return!0;return!1},this.renderGeometries=(L,S,C,A,H)=>{var k=this.getAllObjects(H);if(k.forEach(z=>{z.render(L*S,C,A)}),A&&A.displayMarkers&&C===!1&&0<A.markerDepths.length){var B=Math.min(...A.markerDepths),D=Math.max(...A.markerDepths);k.forEach(z=>{z.processMarkerVisual(B,D,A)})}}};r.Region=u},function(n,r,o){var a=o(3);r.Minimap=function(l){var s=l;this.camera=new a.OrthographicCamera(-.5,.5,.5,-.5,.01,10),this.helper=void 0;var h=new a.BufferGeometry,u=new Float32Array([-1,-1,1,1,-1,1,1,1,1,1,1,1,-1,1,1,-1,-1,1]),d=new a.BufferAttribute(u,3);h.setAttribute("position",d);var p=new a.MeshBasicMaterial({color:3355443,depthTest:!1,depthWrite:!1,opacity:.5,transparent:!0});this.mask=new a.Mesh(h,p);var f=new a.Box3,m=new a.Vector3;this.getDiffFromNormalised=(v,_)=>{f.setFromBufferAttribute(d).getCenter(m);var x=m.clone().project(this.camera),L=new a.Vector3(v,_,x.z).unproject(this.camera);return L.sub(m)};var y=(v,_)=>{s.camera.near&&(this.camera.near=s.camera.near),_.farPlane&&(this.camera.far=_.farPlane),_.eyePosition&&this.camera.position.set(_.eyePosition[0],_.eyePosition[1],_.eyePosition[2]),_.upVector&&this.camera.up.set(_.upVector[0],_.upVector[1],_.upVector[2]),_.targetPosition&&this.camera.lookAt(new a.Vector3(_.targetPosition[0],_.targetPosition[1],_.targetPosition[2])),this.camera.zoom=1/v,this.camera.updateProjectionMatrix()};this.getBoundary=()=>{var v=new a.Vector3().copy(s.camera.target).project(s.camera),_=new a.Vector3(-1,-1,v.z).unproject(s.camera),x=new a.Vector3(1,-1,v.z).unproject(s.camera),L=new a.Vector3(1,1,v.z).unproject(s.camera),S=new a.Vector3(-1,1,v.z).unproject(s.camera);d.copyVector3sArray([_,x,L,L,S,_]),d.needsUpdate=!0},this.updateCamera=()=>{this.getBoundary();var v=s.getZincCameraControls(),_=s.getBoundingBox();if(_){var x=_.min.distanceTo(_.max),L=x/2,S=(_.min.x+_.max.x)/2,C=(_.min.y+_.max.y)/2,A=(_.min.z+_.max.z)/2,H=v.getViewportFromCentreAndRadius(S,C,A,L,40,L*4);y(x,H)}}}},function(n,r,o){var a=o(3),l=o(43)(a),s=o(2).Geometry,h=o(44),u=o(45).default,d=a.BufferGeometryLoader,p=function(f){var m;f&&f.isGeometry&&(m=f);var y=void 0,v=void 0,_=!1,x=void 0,L=k=>{var B=m.morph.material.clone();B.morphTargets=!1;var D=new s,z=new d,q=z.parse(k),F=new a.Mesh(q.geometry,B);return D.geometry=F.geometry,D.morph=F,D.morph.userData=D,D},S=k=>{switch(k.data.action){case"message":console.log(k.data.message);break;case"result":var B=new p(L(k.data.object));x&&x(B),x=void 0,_=!1;break;default:throw"Cannot handle specified action."}},C=k=>{if(h!==void 0&&(v=h(46)),!v)y=new(o(47)).GeometryCSGInternal(k);else if(k&&k.isGeometry){var B=k.morph,D=B.geometry.clone().applyMatrix(B.matrix).toJSON();v.addEventListener("message",function(z){S(z)}),v.postMessage({action:"initialise",object:D})}};this.getHostGeometry=()=>{var k=new l(m.morph);return new A(k)},this.getGeometry=()=>m;var A=k=>{var B=m.morph.material.clone();B.morphTargets=!1;var D=k.toMesh(B),z=new s;return z.geometry=D.geometry,z.morph=D,z.morph.userData=z,z};this.setCSG=k=>{y.setCSG(k)};var H=(k,B,D,z)=>{if(_)z("On progress");else{var q=k.morph,F=q.geometry.clone().applyMatrix(q.matrix).toJSON();x=D,_=!0,v.postMessage({action:B,object:F})}};this.intersect=k=>new u((B,D)=>{if(v)H(k,"intersect",B,D);else{var z=y.intersect(k),q=new p(A(z));q.setCSG(z),B(q)}}),this.subtract=k=>new u((B,D)=>{if(v)H(k,"intersect",B,D);else{var z=y.subtract(k),q=new p(A(z));q.setCSG(z),B(q)}}),this.union=k=>new u((B,D)=>{if(v)H(k,"intersect",B,D);else{var z=y.union(k),q=new p(A(z));q.setCSG(z),B(q)}}),this.terminateWorker=()=>{v&&v.terminate()},C(f)};r.GeometryCSG=p},function(n,r,o){var a=1e-5,l=0,s=1,h=2,u=3;n.exports=function(d){var p=function(f){var m,y,v,_,x,L,S,C=[];if(f.isBufferGeometry&&(f=new d.Geometry().fromBufferGeometry(f)),f instanceof d.Geometry)this.matrix=new d.Matrix4;else if(f.isMesh)f.updateMatrix(),this.matrix=f.matrix.clone(),f=f.geometry,f.isBufferGeometry&&(f=new d.Geometry().fromBufferGeometry(f)),f.mergeVertices(),f.computeVertexNormals(!1);else{if(f instanceof p.Node)return this.tree=f,this.matrix=new d.Matrix4,this;throw"ThreeBSP: Given geometry is unsupported"}for(m=0,y=f.faces.length;m<y;m++)v=f.faces[m],x=f.faceVertexUvs[0][m],S=new p.Polygon,v instanceof d.Face3?(_=f.vertices[v.a],L=x?new d.Vector2(x[0].x,x[0].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[0],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.b],L=x?new d.Vector2(x[1].x,x[1].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[2],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.c],L=x?new d.Vector2(x[2].x,x[2].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[2],L),_.applyMatrix4(this.matrix),S.vertices.push(_)):(d.Face4,_=f.vertices[v.a],L=x?new d.Vector2(x[0].x,x[0].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[0],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.b],L=x?new d.Vector2(x[1].x,x[1].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[1],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.c],L=x?new d.Vector2(x[2].x,x[2].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[2],L),_.applyMatrix4(this.matrix),S.vertices.push(_),_=f.vertices[v.d],L=x?new d.Vector2(x[3].x,x[3].y):null,_=new p.Vertex(_.x,_.y,_.z,v.vertexNormals[3],L),_.applyMatrix4(this.matrix),S.vertices.push(_)),S.calculateProperties(),C.push(S);this.tree=new p.Node(C)};return p.prototype.subtract=function(f){var m=this.tree.clone(),y=f.tree.clone();return m.invert(),m.clipTo(y),y.clipTo(m),y.invert(),y.clipTo(m),y.invert(),m.build(y.allPolygons()),m.invert(),m=new p(m),m.matrix=this.matrix,m},p.prototype.union=function(f){var m=this.tree.clone(),y=f.tree.clone();return m.clipTo(y),y.clipTo(m),y.invert(),y.clipTo(m),y.invert(),m.build(y.allPolygons()),m=new p(m),m.matrix=this.matrix,m},p.prototype.intersect=function(f){var m=this.tree.clone(),y=f.tree.clone();return m.invert(),y.clipTo(m),y.invert(),m.clipTo(y),y.clipTo(m),m.build(y.allPolygons()),m.invert(),m=new p(m),m.matrix=this.matrix,m},p.prototype.toGeometry=function(){var f,m,y,v,_,x,L,S,C,A,H=new d.Matrix4().getInverse(this.matrix),k=new d.Geometry,B=this.tree.allPolygons(),D=B.length,z={};for(f=0;f<D;f++)for(y=B[f],v=y.vertices.length,m=2;m<v;m++)A=[],S=y.vertices[0],A.push(new d.Vector2(S.uv.x,S.uv.y)),S=new d.Vector3(S.x,S.y,S.z),S.applyMatrix4(H),typeof z[S.x+","+S.y+","+S.z]>"u"?(k.vertices.push(S),_=z[S.x+","+S.y+","+S.z]=k.vertices.length-1):_=z[S.x+","+S.y+","+S.z],S=y.vertices[m-1],A.push(new d.Vector2(S.uv.x,S.uv.y)),S=new d.Vector3(S.x,S.y,S.z),S.applyMatrix4(H),typeof z[S.x+","+S.y+","+S.z]>"u"?(k.vertices.push(S),x=z[S.x+","+S.y+","+S.z]=k.vertices.length-1):x=z[S.x+","+S.y+","+S.z],S=y.vertices[m],A.push(new d.Vector2(S.uv.x,S.uv.y)),S=new d.Vector3(S.x,S.y,S.z),S.applyMatrix4(H),typeof z[S.x+","+S.y+","+S.z]>"u"?(k.vertices.push(S),L=z[S.x+","+S.y+","+S.z]=k.vertices.length-1):L=z[S.x+","+S.y+","+S.z],C=new d.Face3(_,x,L,new d.Vector3(y.normal.x,y.normal.y,y.normal.z)),k.faces.push(C),k.faceVertexUvs[0].push(A);return k},p.prototype.toBufferGeometry=function(){var f=this.toGeometry(),m=new d.BufferGeometry().fromGeometry(f);return m},p.prototype.toMesh=function(f){var m=this.toBufferGeometry(),y=new d.Mesh(m,f);return y.position.setFromMatrixPosition(this.matrix),y.rotation.setFromRotationMatrix(this.matrix),y},p.Polygon=function(f){f instanceof Array||(f=[]),this.vertices=f,0<f.length?this.calculateProperties():this.normal=this.w=void 0},p.Polygon.prototype.calculateProperties=function(){var f=this.vertices[0],m=this.vertices[1],y=this.vertices[2];return this.normal=m.clone().subtract(f).cross(y.clone().subtract(f)).normalize(),this.w=this.normal.clone().dot(f),this},p.Polygon.prototype.clone=function(){var f,m,y=new p.Polygon;for(f=0,m=this.vertices.length;f<m;f++)y.vertices.push(this.vertices[f].clone());return y.calculateProperties(),y},p.Polygon.prototype.flip=function(){var f,m=[];for(this.normal.multiplyScalar(-1),this.w*=-1,f=this.vertices.length-1;0<=f;f--)m.push(this.vertices[f]);return this.vertices=m,this},p.Polygon.prototype.classifyVertex=function(f){var m=this.normal.dot(f)-this.w;return m<-a?h:m>a?s:l},p.Polygon.prototype.classifySide=function(f){var m,y,v,_=0,x=0,L=f.vertices.length;for(m=0;m<L;m++)y=f.vertices[m],v=this.classifyVertex(y),v===s?_++:v===h&&x++;return 0<_&&x===0?s:_===0&&0<x?h:_===0&&x===0?l:u},p.Polygon.prototype.splitPolygon=function(f,m,y,v,_){var x=this.classifySide(f);if(x===l)(0<this.normal.dot(f.normal)?m:y).push(f);else if(x===s)v.push(f);else if(x===h)_.push(f);else{var L,S,C,A,H,k,B,D,z,q=[],F=[];for(S=0,L=f.vertices.length;S<L;S++)C=(S+1)%L,k=f.vertices[S],B=f.vertices[C],A=this.classifyVertex(k),H=this.classifyVertex(B),A!=h&&q.push(k),A!=s&&F.push(k),(A|H)===u&&(D=(this.w-this.normal.dot(k))/this.normal.dot(B.clone().subtract(k)),z=k.interpolate(B,D),q.push(z),F.push(z));3<=q.length&&v.push(new p.Polygon(q).calculateProperties()),3<=F.length&&_.push(new p.Polygon(F).calculateProperties())}},p.Vertex=function(f,m,y,v,_){this.x=f,this.y=m,this.z=y,this.normal=v||new d.Vector3,this.uv=_||new d.Vector2},p.Vertex.prototype.clone=function(){return new p.Vertex(this.x,this.y,this.z,this.normal.clone(),this.uv.clone())},p.Vertex.prototype.add=function(f){return this.x+=f.x,this.y+=f.y,this.z+=f.z,this},p.Vertex.prototype.subtract=function(f){return this.x-=f.x,this.y-=f.y,this.z-=f.z,this},p.Vertex.prototype.multiplyScalar=function(f){return this.x*=f,this.y*=f,this.z*=f,this},p.Vertex.prototype.cross=function(f){var m=this.x,y=this.y,v=this.z;return this.x=y*f.z-v*f.y,this.y=v*f.x-m*f.z,this.z=m*f.y-y*f.x,this},p.Vertex.prototype.normalize=function(){var f=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);return this.x/=f,this.y/=f,this.z/=f,this},p.Vertex.prototype.dot=function(f){return this.x*f.x+this.y*f.y+this.z*f.z},p.Vertex.prototype.lerp=function(f,m){return this.add(f.clone().subtract(this).multiplyScalar(m)),this.normal.add(f.normal.clone().sub(this.normal).multiplyScalar(m)),this.uv.add(f.uv.clone().sub(this.uv).multiplyScalar(m)),this},p.Vertex.prototype.interpolate=function(f,m){return this.clone().lerp(f,m)},p.Vertex.prototype.applyMatrix4=function(f){var m=this.x,y=this.y,v=this.z,_=f.elements;return this.x=_[0]*m+_[4]*y+_[8]*v+_[12],this.y=_[1]*m+_[5]*y+_[9]*v+_[13],this.z=_[2]*m+_[6]*y+_[10]*v+_[14],this},p.Node=function(f){var m,y,v=[],_=[];if(this.polygons=[],this.front=this.back=void 0,f instanceof Array&&f.length!==0){for(this.divider=f[0].clone(),m=0,y=f.length;m<y;m++)this.divider.splitPolygon(f[m],this.polygons,this.polygons,v,_);0<v.length&&(this.front=new p.Node(v)),0<_.length&&(this.back=new p.Node(_))}},p.Node.isConvex=function(f){var m,y;for(m=0;m<f.length;m++)for(y=0;y<f.length;y++)if(m!==y&&f[m].classifySide(f[y])!==h)return!1;return!0},p.Node.prototype.build=function(f){var m,y,v=[],_=[];for(this.divider||(this.divider=f[0].clone()),m=0,y=f.length;m<y;m++)this.divider.splitPolygon(f[m],this.polygons,this.polygons,v,_);0<v.length&&(!this.front&&(this.front=new p.Node),this.front.build(v)),0<_.length&&(!this.back&&(this.back=new p.Node),this.back.build(_))},p.Node.prototype.allPolygons=function(){var f=this.polygons.slice();return this.front&&(f=f.concat(this.front.allPolygons())),this.back&&(f=f.concat(this.back.allPolygons())),f},p.Node.prototype.clone=function(){var f=new p.Node;return f.divider=this.divider.clone(),f.polygons=this.polygons.map(function(m){return m.clone()}),f.front=this.front&&this.front.clone(),f.back=this.back&&this.back.clone(),f},p.Node.prototype.invert=function(){var f,m,y;for(f=0,m=this.polygons.length;f<m;f++)this.polygons[f].flip();return this.divider.flip(),this.front&&this.front.invert(),this.back&&this.back.invert(),y=this.front,this.front=this.back,this.back=y,this},p.Node.prototype.clipPolygons=function(f){var m,y,v,_;if(!this.divider)return f.slice();for(v=[],_=[],m=0,y=f.length;m<y;m++)this.divider.splitPolygon(f[m],v,_,v,_);return this.front&&(v=this.front.clipPolygons(v)),_=this.back?this.back.clipPolygons(_):[],v.concat(_)},p.Node.prototype.clipTo=function(f){this.polygons=f.clipPolygons(this.polygons),this.front&&this.front.clipTo(f),this.back&&this.back.clipTo(f)},p}},function(n,r){n.exports=TMe()},function(n,r){n.exports=_Me},function(n,r,o){var a=o(2).Geometry,l=o(3),s=l.BufferGeometryLoader;n.exports=function(h){var u=void 0,d=function(v){var _=new s,x=_.parse(v),L=new l.MeshPhongMaterial,S=new l.Mesh(x.geometry,L),C=new a;return C.morph=S,C},p=function(v){var _=d(v);u=new(o(47)).GeometryCSGInternal(_),h.postMessage({action:"message",message:"Initialised"})},f=function(v){if(u){var _=d(v),x=u.intersect(_),L=x.toBufferGeometry().toJSON();h.postMessage({action:"result",object:L})}},m=function(v){if(u){var _=d(v),x=u.subtract(_),L=x.toBufferGeometry().toJSON();h.postMessage({action:"result",object:L})}},y=function(v){if(u){var _=d(v),x=u.union(_),L=x.toBufferGeometry().toJSON();h.postMessage({action:"result",object:L})}};h.addEventListener("message",function(v){switch(v.data.action){case"initialise":p(v.data.object);break;case"intersect":f(v.data.object);break;case"subtract":m(v.data.object);break;case"union":y(v.data.object);break;default:throw"Cannot handle specified action."}})}},function(n,r,o){var a=o(3),l=o(43)(a);o(2).Geometry,o(42).GeometryCSG;var s=function(h){var u;h&&h.isGeometry&&(u=h);var d;this.setGeometry=f=>{f&&f.isGeometry&&(u=f),d=void 0},this.setCSG=f=>{d=f};var p=f=>{if(u&&u.morph&&f&&f.morph){d===void 0&&(d=new l(u.morph));var m=new l(f.morph);return m}};this.intersect=f=>{var m=p(f);return d&&m?d.intersect(m):void 0},this.subtract=f=>{var m=p(f);return d&&m?d.subtract(m):void 0},this.union=f=>{var m=p(f);return d&&m?d.union(m):void 0}};r.GeometryCSGInternal=s},function(n,r,o){var a=o(3),l=o(43)(a);o(13).Glyphset;var s=function(h){var u;h&&h.isGlyphset&&(u=h);var d=[];this.setGlyphset=m=>{m&&m.isGlyphset&&(u=m),hostCSG=void 0},this.getGlyphset=()=>u;var p=()=>m=>{var y=m.getMesh(),v=m.getLabel();if(y){var _=new l(y.geometry.clone().applyMatrix(y.matrix)),x=[];x.csg=_,x.label=v,y.material&&(x.material=y.material.clone()),d.push(x)}},f=m=>{if(u&&m&&m.morph){d.length==0&&u.forEachGlyph(p());var y=new l(m.morph);return y}};this.intersect=m=>{var y=f(m);if(0<d.length&&y){for(var v=new(o(13)).Glyphset,_=0;_<d.length;_++){var x=d[_],L=x.csg.intersect(y),S=L.toMesh();if(S&&S.geometry&&0<S.geometry.vertices.length){x.material&&(S.material=x.material,S.material.side=a.DoubleSide,S.material.clippingPlanes=null);var C=v.addMeshAsGlyph(S,_+1);C.setLabel(x.label)}}var A=new s(v);return A}}};r.GlyphsetCSG=s}])})})(IN);var Tl=IN.exports;const SQ=qY(Tl),fU={isWebGLAvailable:function(){try{var t=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl")))}catch{return!1}},isWebGL2Available:function(){try{var t=document.createElement("canvas");return!!(window.WebGL2RenderingContext&&t.getContext("webgl2"))}catch{return!1}},getWebGLErrorMessage:function(){return this.getErrorMessage(1)},getWebGL2ErrorMessage:function(){return this.getErrorMessage(2)},getErrorMessage:function(t){var e={1:"WebGL",2:"WebGL 2"},n={1:window.WebGLRenderingContext,2:window.WebGL2RenderingContext},r='This module requires <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" style="color:#008">$1</a> support but your $0 does not seem to support it.',o=document.createElement("div");return o.id="webglmessage",o.style.fontFamily="monospace",o.style.fontSize="20px",o.style.fontWeight="normal",o.style.textAlign="center",o.style.background="#fff",o.style.color="#000",o.style.padding="1.5em",o.style.width="400px",o.style.margin="5em auto 0",n[t]?r=r.replace("$0","graphics card"):r=r.replace("$0","browser"),r=r.replace("$1",e[t]),o.innerHTML=r,o}},sw={ALL:0,DESTROYED:1,NAME_CHANGED:2,SETTINGS_CHANGED:3},C1=function(){this.typeName="Base Module",this.instanceName="default",this.onChangedCallbacks=[],this.eventNotifiers=[]};C1.prototype.setName=function(t){if(t&&this.instanceName!==t){this.instanceName=t;const e=this.onChangedCallbacks.slice();for(let n=0;n<e.length;n++)e[n](this,sw.NAME_CHANGED)}},C1.prototype.settingsChanged=function(){const t=this.onChangedCallbacks.slice();for(let e=0;e<t.length;e++)t[e](this,sw.SETTINGS_CHANGED)},C1.prototype.exportSettings=function(){const t={};return t.dialog=this.typeName,t.name=this.instanceName,t},C1.prototype.importSettings=function(t){return t.dialog==this.typeName?(this.setName(t.name),!0):!1},C1.prototype.publishChanges=function(t,e,n){for(let r=0;r<this.eventNotifiers.length;r++)this.eventNotifiers[r].publish(this,e,t,n)},C1.prototype.getName=function(){return this.instanceName},C1.prototype.destroy=function(){const t=this.onChangedCallbacks.slice();for(let e=0;e<t.length;e++)t[e](this,sw.DESTROYED);delete this},C1.prototype.addChangedCallback=function(t){this.onChangedCallbacks.includes(t)==!1&&this.onChangedCallbacks.push(t)},C1.prototype.removeChangedCallback=function(t){const e=this.onChangedCallbacks.indexOf(t);e>-1&&this.onChangedCallbacks.splice(e,1)},C1.prototype.addNotifier=function(t){this.eventNotifiers.push(t)};const Qu={ALL:0,SELECTED:1,HIGHLIGHTED:2,MOVE:3},LMe=function(t,e,n){this.eventType=t,this.identifiers=e,this.zincObjects=n},wMe=function(t,e,n){this.targetedID=[];const r=t,o=e;this.targetEventType=n;const a=this;n===void 0&&(this.targetEventType=Qu.ALL),this.getEventType=function(){return n},this.notify=function(l,s,h,u){if(l!==r&&(a.targetEventType===Qu.ALL||a.targetEventType===s)){const d=new LMe(s,h,u);o(d)}}},MMe=function(){const t=[];this.publish=function(e,n,r,o){for(let a=0;a<t.length;a++)t[a].notify(e,n,r,o)},this.subscribe=function(e,n,r){if(typeof n=="function"){const o=new wMe(e,n,r);return t.push(o),o}},this.unsubscribe=function(e){for(let n=0;n<t.length;n++)if(e===t[n]){t.splice(n,1);return}}},SMe=function(){let t=[],e=[];this.highlightColour=[1,0,0],this.selectColour=[0,1,0],this.originalColour=[0,0,0];const n=[],r=[],o=this,a=function(h,u){if(h.length==0&&u.length==0)return!1;for(let d=0;d<h.length;d++){let p=!1;for(let f=0;f<u.length;f++)h[d]===u[f]&&(p=!0);if(!p)return!0}for(let d=0;d<u.length;d++){let p=!1;for(let f=0;f<h.length;f++)u[d]===h[f]&&(p=!0);if(!p)return!0}return!1},l=function(h,u){if(n.length=0,u.length==0)return h;for(let d=0;d<h.length;d++){let p=!1;for(let f=0;f<u.length;f++)h[d]===u[f]&&(p=!0);p||n.push(h[d])}return n};this.setHighlighted=function(h){const u=[...t];o.resetHighlighted();const d=l(h,e),p=s(d);for(let f=0;f<p.length;f++)p[f]&&p[f].material&&p[f].material.emissive&&p[f].material.emissive.setRGB(...o.highlightColour);return t=d,a(t,u)},this.setSelected=function(h){const u=[...e];l(t,h),o.resetHighlighted(),o.resetSelected();const d=s(h);for(let p=0;p<d.length;p++)d[p]&&d[p].material&&d[p].material.emissive&&d[p].material.emissive.setRGB(...o.selectColour);return e=h,a(e,u)};const s=function(h){r.length=0;for(let u=0;u<h.length;u++)h[u].material&&r.push(h[u]);return r};this.resetHighlighted=function(){const h=s(t);for(let u=0;u<h.length;u++)h[u]&&h[u].material&&(h[u].material.emissive&&h[u].material.emissive.setRGB(...o.originalColour),h[u].material.depthFunc&&(h[u].material.depthFunc=Tl.THREE.LessEqualDepth));t=[]},this.resetSelected=function(){const h=s(e);for(let u=0;u<h.length;u++)h[u]&&h[u].material&&(h[u].material.emissive&&h[u].material.emissive.setRGB(...o.originalColour),h[u].material.depthFunc&&(h[u].material.depthFunc=Tl.THREE.LessEqualDepth));e=[]},this.getSelected=function(){return e},this.reset=function(){o.resetSelected(),o.resetHighlighted()}},lw=SQ.THREE,CMe=function(){const t=document.createElement("div");let e;if(t.style.height="100%",fU.isWebGLAvailable())e=new SQ.Renderer(t,window),SQ.defaultMaterialColor=16777116,e.initialiseVisualisation(),e.playAnimation=!1;else{const n=fU.getWebGLErrorMessage();t.appendChild(n)}return{Zinc:SQ,renderer:e,container:t}},ii=function(){C1.call(this),this.scene=void 0,this.rendererContainer=void 0,this.displayArea=void 0,this.graphicsHighlight=new SMe,this.zincRenderer=null,this.selectedScreenCoordinates=new lw.Vector3,this.selectedCenter=void 0,this.liveUpdatesObjects=void 0};ii.prototype=Object.create(C1.prototype),ii.prototype.getIntersectedObject=function(t){if(t){const e=t.map(r=>{if(r&&r.object&&r.object.userData){if(r.object.userData.isMarker)return 1;if(r.object.name&&r.object.userData.isZincObject)return 2}return 0});let n=e.indexOf(1);return n=n>-1?n:e.indexOf(2),t[n]}},ii.prototype.getAnnotationsFromObjects=function(t){const e=[];for(var n=0;n<t.length;n++){const r=t[n].userData;let o;if(r)if(r.isGlyph||r.isGlyphset){let a=r;r.isGlyph&&(a=r.getGlyphset()),o=a.userData?a.userData.annotation:void 0,o&&o.data&&(t[n].name&&t[n].name!=""?o.data.id=t[n].name:o.data.id=a.groupName)}else o=r.userData?r.userData.annotation:void 0,o&&o.data&&(o.data.id=t[n].name);o&&e.push(o)}return e},ii.prototype.setHighlightedByObjects=function(t,e,n){const r=this.graphicsHighlight.setHighlighted(t),o=this.objectsToZincObjects(t);if(n){let a=Qu.MOVE;r&&(a=Qu.HIGHLIGHTED);const l=this.getAnnotationsFromObjects(t);l.length>0&&(l[0].coords=e),this.publishChanges(l,a,o)}return r},ii.prototype.setHighlightedByZincObjects=function(t,e,n){let r=[];return t&&t.forEach(o=>{o&&o.morph&&r.push(o.morph)}),this.setHighlightedByObjects(r,e,n)},ii.prototype.setupLiveCoordinates=function(t){if(this.liveUpdatesObjects=t,t&&t.length>0){const e=this.scene.getBoundingBoxOfZincObjects(t);let n=new lw.Vector3;e.getCenter(n),this.selectedCenter==null?this.selectedCenter=n:this.selectedCenter.copy(n)}else this.selectedCenter=void 0},ii.prototype.objectsToZincObjects=function(t){const e=[];for(let n=0;n<t.length;n++){let r=t[n].userData;if(r)if(r.isGlyph||r.isGlyphset){let o=r;r.isGlyph&&(o=r.getGlyphset()),e.push(o)}else e.push(r)}return e},ii.prototype.setSelectedByObjects=function(t,e,n){const r=this.graphicsHighlight.setSelected(t);if(r){const o=this.objectsToZincObjects(t);if(this.setupLiveCoordinates(o),n){const a=Qu.SELECTED,l=this.getAnnotationsFromObjects(t);l.length>0&&(l[0].coords=e),this.publishChanges(l,a,o)}}return r},ii.prototype.setSelectedByZincObjects=function(t,e,n){let r=[];return t&&t.forEach(o=>{o&&o.morph&&r.push(o.morph)}),this.setSelectedByObjects(r,e,n)};const EMe=function(t){return function(e){t.push(e.getMesh())}};ii.prototype.findObjectsByGroupName=function(t){const e=this.scene.findGeometriesWithGroupName(t),n=[];for(let o=0;o<e.length;o++)n.push(e[o].morph);const r=this.scene.findGlyphsetsWithGroupName(t);for(let o=0;o<r.length;o++)r[o].forEachGlyph(EMe(n));return n},ii.prototype.setHighlightedByGroupName=function(t,e){const n=this.findObjectsByGroupName(t);return this.setHighlightedByObjects(n,void 0,e)},ii.prototype.setSelectedByGroupName=function(t,e){const n=this.findObjectsByGroupName(t);return this.setSelectedByObjects(n,void 0,e)},ii.prototype.changeBackgroundColour=function(t){const e=new lw.Color(t);this.zincRenderer&&this.zincRenderer.getThreeJSRenderer().setClearColor(e,1)},ii.prototype.resetView=function(){this.zincRenderer&&this.zincRenderer.resetView()},ii.prototype.viewAll=function(){this.zincRenderer&&this.zincRenderer.viewAll()},ii.prototype.playAnimation=function(t){this.zincRenderer&&(this.zincRenderer.playAnimation=t)},ii.prototype.setPlayRate=function(t){this.zincRenderer&&this.zincRenderer.setPlayRate(t)},ii.prototype.getPlayRate=function(t){return this.zincRenderer?this.zincRenderer.getPlayRate():0},ii.prototype.initialiseRenderer=function(t){if(this.zincRenderer===void 0||this.rendererContainer===void 0){let e=CMe();this.Zinc=e.Zinc,this.zincRenderer=e.renderer,this.rendererContainer=e.container}t&&(this.displayArea=t,this.displayArea.appendChild(this.rendererContainer),this.zincRenderer&&this.zincRenderer.animate())},ii.prototype.destroy=function(){this.zincRenderer&&(this.zincRenderer.dispose(),this.zincRenderer.getThreeJSRenderer().dispose(),this.zincRenderer=void 0),C1.prototype.destroy.call(this)};const HMe=function(){this.type="anatomical",this.data=void 0,this.isAnnotation=!0},AMe=function(){this.currentName="",this.currentSystem="",this.currentPart="",this.currentSpecies="",this.metaURL="",this.viewURL="",this.currentTime=0,this.timeVarying=!1},TU=function(t){ii.call(this);const e=this;let n;this.sceneData=new AMe;const r=new Array,o=new Array,a=new Array;let l;const s=t;this.NDCCameraControl=void 0,e.typeName="Organ Viewer",this.currentTime=0,this.getSceneData=function(){return e.sceneData},this.updateTime=function(A){let H=6e3;e.scene&&(H=e.scene.getDuration());const k=A/100*H;e.sceneData.nerveMapIsActive||e.scene&&e.scene.setMorphsTime(k),e.sceneData.currentTime=A,e.currentTime=A};const h=function(){let A=3e3;e.scene&&(A=e.scene.getDuration());const H=e.zincRenderer.getCurrentTime();for(let k=0;k<r.length;k++)r[k](H);!e.sceneData.nerveMapIsActive&&n&&n.setMorphsTime(H),e.sceneData.nerveMap&&e.sceneData.nerveMap.additionalReader&&e.sceneData.nerveMap.additionalReader.setTime(H/A),e.sceneData.currentTime=H/A*100,e.currentTime=H/A*100};this.getCurrentTime=function(){return e.sceneData.currentTime},this.toggleSyncControl=(A,H)=>{let k=this.scene.getZincCameraControls();A?(k.resetView(),this.NDCCameraControl=k.enableSyncControl(),k.setRotationMode(H)):(k.disableSyncControl(),this.NDCCameraControl=void 0,k.setRotationMode("free"))},this.isSyncControl=()=>this.NDCCameraControl!==void 0,this.setSyncControlZoomToBox=A=>{this.NDCCameraControl&&this.NDCCameraControl.zoomToBox(A,2)},this.setSyncControlCallback=A=>{this.NDCCameraControl&&this.NDCCameraControl.setEventCallback(A)},this.setSyncControlCenterZoom=(A,H)=>{this.NDCCameraControl&&this.NDCCameraControl.setCenterZoom(A,H)};const u=function(){if(e.zincRenderer.playAnimation&&e.liveUpdatesObjects&&e.setupLiveCoordinates(e.liveUpdatesObjects),e.selectedCenter){const A=new Tl.THREE.Vector3;A.copy(e.selectedCenter);const H=e.scene.vectorToScreenXY(A);e.selectedScreenCoordinates.x=H.x,e.selectedScreenCoordinates.y=H.y}},d=function(){return function(){h()}},p=function(){return function(){u()}};this.addTimeChangedCallback=function(A){r.push(A)},this.setTexturePos=function(A){e.sceneData.nerveMap&&e.sceneData.nerveMap.additionalReader&&e.sceneData.nerveMap.additionalReader.setSliderPos(A)},this.addSceneChangedCallback=function(A){o.push(A)},this.addOrganPartAddedCallback=function(A){a.push(A)},this.setFinishDownloadCallback=function(A){l=A},this.unsetFinishDownloadCallback=function(){l=void 0},this.getNamedObjectsToScreenCoordinates=function(A,H){const k=new Tl.THREE.Vector3;k.setFromMatrixPosition(obj.matrixWorld);const B=width/2,D=height/2;return k.project(H),k.x=k.x*B+B,k.y=-(k.y*D)+D,k};const f=function(A){let H,k;if(A!==void 0){let B=!1;A.object.userData&&A.object.userData.isMarker?(B=!0,k=A.object.userData.parent.morph):k=A.object;try{k.userData.userData.annotation.data.lastActionOnMarker=B}finally{}if(k)if(k.name)H=k.name;else{const D=e.getAnnotationsFromObjects([k]);D&&D[0]&&(H=D[0].data.group)}}return{id:H,object:k}},m=function(){return function(A,H,k){const B=e.getIntersectedObject(A),D=f(B),z={x:H,y:k};if(D.id){D.object.userData.isGlyph?D.object.name?e.setSelectedByObjects([D.object],z,!0):e.setSelectedByZincObjects(D.object.userData.getGlyphset(),z,!0):e.setSelectedByObjects([D.object],z,!0);return}else e.setSelectedByObjects([],z,!0)}},y=function(){return function(A,H,k){const B=e.getIntersectedObject(A),D=f(B),z={x:H,y:k};if(D.id){e.displayArea.style.cursor="pointer",e.setHighlightedByObjects([D.object],z,!0);return}else e.displayArea.style.cursor="auto",e.setHighlightedByObjects([],z,!0)}},v=function(A,H,k,B){if(B=="all"||B=="geometries"){const D=A.findGeometriesWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}if(B=="all"||B=="glyphsets"){const D=A.findGlyphsetsWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}if(B=="all"||B=="pointsets"){const D=A.findPointsetsWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}if(B=="all"||B=="lines"){const D=A.findLinesWithGroupName(H);for(let z=0;z<D.length;z++)D[z].setVisibility(k)}};this.changeGeometriesVisibility=function(A,H){v(e.scene,A,H,"geometries")},this.changeGlyphsetsVisibility=function(A,H){v(e.scene,A,H,"glyphsets")},this.changeLinesVisibility=function(A,H){v(e.scene,A,H,"lines")},this.changePointsetsVisibility=function(A,H){v(e.scene,A,H,"pointsets")},this.changeOrganPartsVisibility=function(A,H,k){let B="all";k!==void 0&&(B=k),v(e.scene,A,H,B)},this.changeOrganPartsVisibilityCallback=function(A){return function(H){e.changeOrganPartsVisibility(A,H)}},this.changeBackgroundColour=function(A){const H=new Tl.THREE.Color(A);e.zincRenderer&&e.zincRenderer.getThreeJSRenderer().setClearColor(H,1)};const _=function(A,H,k,B){for(let q=0;q<a.length;q++)a[q](B,e.scene.isTimeVarying());k&&s.setGeometryColour(B,A,H);const D=new HMe,z=B.region.getFullPath();D.data={species:e.sceneData.currentSpecies,system:A,part:H,group:B.groupName,region:z,uuid:B.uuid,lastActionOnMarker:!1},B.userData.annotation=D},x=function(A,H,k){return function(B){_(A,H,k,B)}},L=function(){return function(){e.settingsChanged(),e.sceneData.timeVarying=e.scene.isTimeVarying(),l&&l()}};this.updateFieldvisibility=function(A,H){for(let k=0;k<A.length;k++)if(H!=k){const B=A[k].PartName;e.changeOrganPartsVisibility(B,!1)}if(H>-1){const k=A[H].PartName;if(e.scene.findGeometriesWithGroupName(k).length>0||e.scene.findGlyphsetsWithGroupName(k).length>0)e.changeOrganPartsVisibility(k,!0);else{const B=getOrganDetails(A[H].SystemName,k);B!=null&&e.scene.loadMetadataURL(s.getOrgansDirectoryPrefix()+"/"+B.meta)}}},this.getAvailableSpecies=function(A,H,k){const B=new Array;B.push("none");const D=Object.keys(organsFileMap);for(index in D){const z=D[index];z!=A&&organsFileMap[z].hasOwnProperty(H)&&organsFileMap[z][H].hasOwnProperty(k)&&B.push(z)}return B};const S=function(A,H,k,B){e.sceneData.nerveMapIsActive=!1,e.sceneData.nerveMap=void 0,e.sceneData.metaURL="",e.sceneData.viewURL="",e.sceneData.currentSpecies=A,e.sceneData.currentSystem=H,e.sceneData.currentPart=k,e.sceneData.currentTime=0,e.sceneData.timeVarying=!1,e.currentTime=0;let D="";A&&(D=A+"/"),H&&(D=H+"/"),k&&(D=k),e.sceneData.currentName=D};this.loadOrgansFromURL=function(A,H,k,B,D,z){if(e.zincRenderer&&B&&e.sceneData.metaURL!==A){S(H,k,B);const q=e.sceneData.currentName;let F=e.zincRenderer.getSceneByName(q);F?z&&F.clearAll():F=e.zincRenderer.createScene(q);for(let K=0;K<o.length;K++)o[K](e.sceneData);D&&D!=""?(e.sceneData.viewURL=D,F.loadViewURL(e.sceneData.viewURL)):e.sceneData.viewURL=void 0,e.sceneData.metaURL=A,F.loadMetadataURL(A,x(k,B,!1),L()),e.scene=F,e.zincRenderer.setCurrentScene(F),e.graphicsHighlight.reset();const Z=F.getZincCameraControls();Z.enableRaycaster(F,m(),y()),Z.setMouseButtonAction("AUXILIARY","ZOOM"),Z.setMouseButtonAction("SECONDARY","PAN")}},this.loadGLTFFromURL=function(A,H,k){if(e.zincRenderer&&H&&e.sceneData.metaURL!==A){S(void 0,void 0,H);const B=e.sceneData.currentName;let D=e.zincRenderer.getSceneByName(B);D?k&&D.clearAll():D=e.zincRenderer.createScene(B);for(let q=0;q<o.length;q++)o[q](e.sceneData);e.sceneData.viewURL=void 0,e.sceneData.metaURL=A,D.loadGLTF(A,x(void 0,H,!1),L()),e.scene=D,e.zincRenderer.setCurrentScene(D),e.graphicsHighlight.reset();const z=D.getZincCameraControls();z.enableRaycaster(D,m(),y()),z.setMouseButtonAction("AUXILIARY","ZOOM"),z.setMouseButtonAction("SECONDARY","PAN")}},this.alignCameraWithSelectedObject=function(A){const H=e.graphicsHighlight.getSelected();H&&H[0]&&H[0].userData&&e.scene.alignObjectToCameraView(H[0].userData,A)},this.exportSettings=function(){const A={};return A.name=e.instanceName,e.sceneData.currentSystem&&(A.system=e.sceneData.currentSystem),e.sceneData.currentSpecies&&(A.species=e.sceneData.currentSpecies),e.sceneData.currentPart&&(A.part=e.sceneData.currentPart),A.metaURL=e.sceneData.metaURL,e.sceneData.viewURL&&(A.viewURL=e.sceneData.viewURL),A.dialog="Organ Viewer",A},this.importSettings=function(A){return A&&A.dialog==this.typeName?(e.setName(A.name),A.metaURL!==void 0&&A.metaURL!=""?e.loadOrgansFromURL(A.metaURL,A.species,A.system,A.part,A.viewURL,!0):e.loadOrgans(A.species,A.system,A.part),!0):!1},function(){e.initialiseRenderer(void 0),e.zincRenderer&&(e.zincRenderer.addPreRenderCallbackFunction(d()),e.zincRenderer.addPostRenderCallbackFunction(p()))}()};TU.prototype=Object.create(ii.prototype);const VMe={name:"ScaffoldVuer",components:{Button:ed,Col:_c,Loading:OE,Option:zg,Popover:ld,Row:u0,Select:Fg,Slider:d0,TabPane:ME,Tabs:wE,MapSvgIcon:jme,MapSvgSpriteColor:ege,PrimitiveControls:RE,ScaffoldTooltip:qR,TreeControls:FE,ElIconWarningFilled:CS,ElIconArrowDown:Ph,ElIconArrowLeft:cc},props:{url:{type:String,default:""},showColourPicker:{type:Boolean,default:!1},displayUI:{type:Boolean,default:!0},displayAtStartUp:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!0},warningMessage:{type:String,default:"Beta feature - under active development"},displayLatestChanges:{type:Boolean,default:!1},latestChangesMessage:{type:String,default:"New feature - Local search is now available"},displayMarkers:{type:Boolean,default:!1},markerLabels:{type:Array,default:function(){return[]}},displayMinimap:{type:Boolean,default:!1},format:{type:String,default:"metadata"},minimapSettings:{type:Object,default:function(){return{x_offset:16,y_offset:16,width:128,height:128,align:"top-right"}}},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},state:{type:Object,default:void 0},region:{type:String,default:""},viewURL:{type:String,default:""},render:{type:Boolean,default:!0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"}},provide(){return{flatmapAPI:this.flatmapAPI,scaffoldUrl:this.url}},data:function(){return{currentTime:0,timeVarying:void 0,isPlaying:!1,isReady:!1,isTransitioning:!1,tooltipAppendToBody:!1,hoverVisibilities:[{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1}],inHelp:!1,loading:!1,duration:3e3,drawerOpen:!0,currentBackground:"white",availableBackground:["white","lightskyblue","black"],minimisedSlider:!1,sliderPosition:"",timeMax:100,orginalDuration:"",animateDuration:"6secs",playSpeed:[{value:.1,label:"0.1x"},{value:.5,label:"0.5x"},{value:1,label:"1x"},{value:2,label:"2x"},{value:5,label:"5x"},{value:10,label:"10x"}],currentSpeed:1,timeStamps:{},defaultCheckedKeys:[],tData:{label:"",region:"",visible:!1,x:200,y:200,active:!1},fileFormat:"metadata",previousMarkerLabels:[],viewingMode:"Exploration",viewingModes:["Annotation","Exploration"],openMapRef:void 0,backgroundIconRef:void 0}},watch:{format:{handler:function(t){this.fileFormat=t},immediate:!0},url:{handler:function(t){(this.state===void 0||this.state.url===void 0)&&this.setURL(t)},immediate:!0},region:{handler:function(t){this.state||this.viewURL||this.setFocusedRegion(t)},immediate:!0},state:{handler:function(t){this.setState(t)},immediate:!0,deep:!0},viewURL:{handler:function(t){this.updateViewURL(t)},immediate:!0},helpMode:function(t){this.setHelpMode(t)},displayMarkers:function(t){this.$module.scene.displayMarkers=t,this.$module.scene.forcePickableObjectsUpdate=!0},displayMinimap:function(t){this.$module.scene.displayMinimap=t},currentTime:{handler:function(){this.$emit("timeChanged",this.currentTime)}},duration:function(){this.$module.scene.setDuration(this.duration)},minimapSettings:{deep:!0,handler:"updateMinimapScissor"},render:function(t){this.toggleRendering(t)},markerLabels:function(t){this.previousMarkerLabels.forEach(e=>{this.setMarkerModeForObjectsWithName(e,"off")}),t.forEach(e=>{this.setMarkerModeForObjectsWithName(e,"on")}),this.previousMarkerLabels=t}},beforeCreate:function(){this.$module=new TU,this.selectedObjects=[],this.hoveredObjects=[],this.currentBackground="white",this._currentURL=void 0,this.availableBackground=["white","black","lightskyblue"],this.$_searchIndex=new Qge},created:function(){this.timeVarying=c.toRef(this.$module.sceneData,"timeVarying")},mounted:function(){this.openMapRef=c.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=c.shallowRef(this.$refs.backgroundIconRef),this.$refs.treeControls.setModule(this.$module);let t=new MMe;t.subscribe(this,this.eventNotifierCallback),this.$module.addNotifier(t),this.$module.addOrganPartAddedCallback(this.zincObjectAdded),this.$module.initialiseRenderer(this.$refs.display),this.toggleRendering(this.render),this.ro=new ResizeObserver(this.adjustLayout).observe(this.$refs.scaffoldContainer),this.defaultRate=this.$module.getPlayRate(),this.$module.zincRenderer.addPreRenderCallbackFunction(()=>{this.currentTime=this.$module.getCurrentTime()})},beforeDestroy:function(){this.ro&&this.ro.disconnect(),this.$module.destroy(),this.$module=void 0},methods:{addZincObject:function(t){this.$module.scene&&(this.$module.scene.addZincObject(t),this.zincObjectAdded(t),this.$refs.treeControls&&this.$refs.treeControls.zincObjectAdded(t))},zincObjectAdded:function(t){this.loading=!1,this.$_searchIndex.addZincObject(t,t.uuid),this.$emit("zinc-object-added",t)},addRegionsToSearchIndex:function(){this.$module.scene.getRootRegion().getChildRegions(!0).forEach(n=>{this.$_searchIndex.addRegion(n,n.uuid)})},backgroundChangeCallback:function(t){this.currentBackground=t,this.$module.zincRenderer.getThreeJSRenderer().setClearColor(this.currentBackground,1)},captureScreenshotCallback:function(){this.$module.zincRenderer.removePostRenderCallbackFunction(this.captureID);let t=this.$module.zincRenderer.getThreeJSRenderer().domElement.toDataURL("image/png"),e=document.createElement("a");document.body.append(e),this.captureFilename?e.download=this.captureFilename:e.download="screenshot.png",e.href=t,e.click(),e.remove()},captureScreenshot:function(t){this.captureFilename=t,this.captureID=this.$module.zincRenderer.addPostRenderCallbackFunction(this.captureScreenshotCallback)},clearScene:function(){this.$refs.treeControls&&this.$refs.treeControls.clear(),this.$_searchIndex&&this.$_searchIndex.removeAll(),this.$module.scene&&this.$module.scene.clearAll()},formatTooltip(t){if(this.timeMax>=1e3&&t){let e=(t%6e4/1e3).toFixed(2)+"s";return(t>6e4?(t/6e4).toFixed(0)+"m ":"")+e}return t?t.toFixed(2)+" ms":"0 ms"},fitWindow:function(){this.$module.scene&&this.$module.scene.viewAll()},zoomIn:function(){this.$module.scene&&this.$module.scene.changeZoomByScrollRateUnit(-1)},zoomOut:function(){this.$module.scene&&this.$module.scene.changeZoomByScrollRateUnit(1)},speedChanged:function(t){this.currentSpeed=t,this.$module.setPlayRate(this.defaultRate*this.currentSpeed)},stopFreeSpin:function(){this.$module.scene.getZincCameraControls().stopAutoTumble(),this.isTransitioning=!1},findObjectsWithGroupName:function(t){let e=[];return t&&t!=""&&this.$module.scene&&(e=this.$module.scene.findObjectsWithGroupName(t)),e},viewRegion:function(t){const e=this.$module.scene.getRootRegion(),n=Array.isArray(t)?t:[t],r=T0(e,n,"",!0);let o=this.$module.scene.getBoundingBoxOfZincObjects(r);if(o){if(this.$module.isSyncControl())this.$module.setSyncControlZoomToBox(o);else{const a=this.$module.scene.camera.far-this.$module.scene.camera.near;this.$module.scene.viewAllWithBoundingBox(o),this.$module.scene.camera.far=this.$module.scene.camera.near+a,this.$module.scene.camera.updateProjectionMatrix()}return!0}return!1},setFocusedRegion:function(t){t&&(this.isReady?this.viewRegion(t):this.$module.setFinishDownloadCallback(this.setURLFinishCallback({region:t})))},updateViewURL:function(t){if(t)if(this.isReady){const e=new URL(t,this.url);this.$module.scene.loadViewURL(e)}else this.$module.setFinishDownloadCallback(this.setURLFinishCallback({viewURL:t}))},getRendererInfo:function(){if(this.$module.zincRenderer)return this.$module.zincRenderer.getThreeJSRenderer().info},freeSpin:function(){if(this.$module.scene){let t=this.$module.scene.getZincCameraControls();this.isTransitioning=!0,t.enableAutoTumble(),t.autoTumble([1,0],Math.PI,!0),setTimeout(this.stopFreeSpin,4e3)}},eventNotifierCallback:function(t){const e=[];let n=[];if((t.eventType==1||t.eventType==2)&&(t.identifiers.forEach(r=>{if(r){let o=r.data.id?r.data.id:r.data.group;e.push(o)}}),n=t.zincObjects),t.eventType==1)this.$refs.treeControls&&(e.length>0?this.$refs.treeControls.updateActiveUI(n):(this.hideRegionTooltip(),this.$refs.treeControls.removeActive(!0))),this.viewingMode==="Annotation"&&this.showRegionTooltipWithAnnotations(t.identifiers,!0,!0),this.$emit("scaffold-selected",t.identifiers);else if(t.eventType==2){if(this.selectedObjects.length===0){if(this.hideRegionTooltip(),this.$refs.treeControls&&(e.length>0?this.$refs.treeControls.updateHoverUI(n):this.$refs.treeControls.removeHover(!0)),t.identifiers.length>0&&t.identifiers[0]){let r=t.identifiers[0].data.id?t.identifiers[0].data.id:t.identifiers[0].data.group;t.identifiers[0].coords&&(this.tData.active=!1,this.tData.visible=!0,this.tData.label=r,t.identifiers[0].data.region?this.tData.region=t.identifiers[0].data.region:this.tData.region=void 0,this.tData.x=t.identifiers[0].coords.x,this.tData.y=t.identifiers[0].coords.y)}this.$emit("scaffold-highlighted",t.identifiers)}}else if(t.eventType==3&&t.identifiers.length>0&&t.identifiers[0]&&t.identifiers[0].coords){const r=this.$refs.scaffoldContainer.getBoundingClientRect();this.tData.x=t.identifiers[0].coords.x-r.left,this.tData.y=t.identifiers[0].coords.y-r.top}},getCoordinatesOfSelected:function(){if(this.selectedObjects&&this.selectedObjects.length>0)return this.$module.scene.getObjectsScreenXY(this.selectedObjects)},getDynamicSelectedCoordinates:function(){return this.$module.selectedScreenCoordinates},timeChange:function(t){let e=t/this.timeMax*100;e!=this.currentTime&&(this.$module.updateTime(e),console.log(this.currentTime))},objectSelected:function(t,e){this.selectedObjects=t,this.selectedObjects&&this.selectedObjects.length>0&&this.$refs.primitiveControls.setObject(this.selectedObjects[0]),this.$module.setSelectedByZincObjects(t,void 0,e)},objectHovered:function(t,e){this.hoveredObjects=t,this.$module.setHighlightedByZincObjects(t,void 0,e)},changeActiveByName:function(t,e,n){const r=Array.isArray(t);if(t===void 0||r&&t.length===0)this.$refs.treeControls.removeActive(n);else{let o=t;r||(o=[o]),this.$refs.treeControls.changeActiveByNames(o,e,n)}},changeHighlightedByName:function(t,e,n){const r=Array.isArray(t);if(t===void 0||r&&t.length===0)this.$refs.treeControls.removeHover(n);else{let o=t;r||(o=[o]),this.$refs.treeControls.changeHoverByNames(o,e,n)}},play:function(t){this.$module.playAnimation(t),this.isPlaying=t},setHelpMode:function(t){t?(this.inHelp=!0,this.hoverVisibilities.forEach(e=>{e.value=!0})):(this.inHelp=!1,this.hoverVisibilities.forEach(e=>{e.value=!1}))},displayTooltipOfObjectsCallback:function(t,e,n,r,o){const a=this;return function(){a.$module.zincRenderer.removePostRenderCallbackFunction(a.$_regionTooltipCallback),a.$_regionTooltipCallback=void 0,a.displayTooltipOfObjects(t,e,n,r,o)}},liveUpdateTooltipPosition:function(){this.$module.selectedCenter&&(this.tData.x=this.$module.selectedScreenCoordinates.x,this.tData.y=this.$module.selectedScreenCoordinates.y)},displayTooltipOfObjects:function(t,e,n,r,o){if(e.length>0){let a=e[0].getClosestVertexDOMElementCoords(this.$module.scene);if(a)return a.inView?(t.includes("Search Results for")?this.tData.active=!1:this.tData.active=!0,this.tData.visible=!0,this.tData.label=t,this.tData.x=a.position.x,this.tData.y=a.position.y,this.tData.region=n,this.$_liveCoordinatesUpdated&&this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_liveCoordinatesUpdated),o&&(this.$module.setupLiveCoordinates(e),this.$_liveCoordinatesUpdated=this.$module.zincRenderer.addPostRenderCallbackFunction(this.liveUpdateTooltipPosition))):(this.hideRegionTooltip(),r&&(this.$module.scene.viewAll(),this.$_regionTooltipCallback&&this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_regionTooltipCallback),this.$_regionTooltipCallback=this.$module.zincRenderer.addPostRenderCallbackFunction(this.displayTooltipOfObjectsCallback(t,e,n,r,o)))),!0}return this.hideRegionTooltip(),!1},showRegionTooltipWithObjects:function(t,e,n,r,o){return t&&e&&e.length>0&&this.$module.scene?this.displayTooltipOfObjects(t,e,n,r,o):(this.hideRegionTooltip(),!1)},showRegionTooltip:function(t,e,n){if(t&&this.$module.scene){const r=this.$module.scene.getRootRegion(),a=T0(r,[t],"",!0);let l;return a&&a.length>0&&(l=a[0].getRegion().getFullPath()),this.showRegionTooltipWithObjects(t,a,l,e,n)}return this.hideRegionTooltip(),!1},showRegionTooltipWithAnnotations:function(t,e,n){if(this.$module.scene){const r=DE(this.$module.scene,t);if(r&&r.objects.length>0)return this.showRegionTooltipWithObjects(r.label,r.objects,r.regionPath,e,n)}return this.hideRegionTooltip(),!1},hideRegionTooltip:function(){this.$_liveCoordinatesUpdated&&(this.$module.zincRenderer.removePostRenderCallbackFunction(this.$_liveCoordinatesUpdated),this.$module.setupLiveCoordinates(void 0)),this.tData.active=!1,this.tData.visible=!1,this.tData.region=void 0},setMarkerModeForObjectsWithName:function(t,e){if(t&&this.$module.scene){const n=this.$module.scene.getRootRegion();T0(n,[t],"",!0).forEach(a=>a.setMarkerMode(e))}},setMarkerModeWithAnnotations:function(t,e){if(this.$module.scene){const n=DE(this.$module.scene,t);n&&n.objects.length>0&&n.objects.forEach(r=>r.setMarkerMode(e))}},showHelpText:function(t){this.inHelp||(this.helpTextWait=setTimeout(()=>{this.hoverVisibilities[t].value=!0},500))},hideHelpText:function(t){this.inHelp||(this.hoverVisibilities[t].value=!1,clearTimeout(this.helpTextWait))},search:function(t,e){if(this.$_searchIndex){if(t===void 0||t===""||Array.isArray(t)&&t.length===0)return this.objectSelected([],!0),!1;{const n=this.$_searchIndex.searchAndProcessResult(t),r=n.zincObjects;if(r.length>0){if(this.objectSelected(r,!0),e)for(let o=0;o<r.length;o++)r[o]&&r[o].groupName&&this.showRegionTooltipWithObjects(n.label,r,n.regionPath,!0,!0);return!0}else this.objectSelected([],!0)}}return!1},fetchSuggestions:function(t){return this.$_searchIndex===void 0?[]:this.$_searchIndex.auto_suggest(t)},updateMinimapScissor:function(){Object.keys(this.minimapSettings).forEach(t=>{this.$module.scene.minimapScissor[t]=this.minimapSettings[t]}),this.$module.scene.minimapScissor.updateRequired=!0},updateSettingsfromScene:function(){this.currentSpeed=1,this.$module.setPlayRate(this.defaultRate),this.orginalDuration=this.$module.scene.getMetadataTag("OriginalDuration"),this.animateDuration=this.$module.scene.getMetadataTag("Duration");let t=this.$module.scene.getMetadataTag("TimeStamps");this.timeStamps={};for(const e in t)this.timeStamps[t[e]]=e;this.timeMax=this.$module.scene.getDuration()},setURLFinishCallback:function(t){return()=>{if(t){if(t.viewport)this.$module.scene.getZincCameraControls().setCurrentCameraSettings(t.viewport);else if(t.viewURL&&t.viewURL!==""){const e=new URL(t.viewURL,this.url);this.$module.scene.loadViewURL(e)}else t.region&&t.region!==""&&this.viewRegion(t.region);t.visibility&&this.$nextTick(()=>{this.$refs.treeControls.setState(t.visibility)})}this.updateSettingsfromScene(),this.$module.updateTime(.01),this.$module.updateTime(0),this.$module.unsetFinishDownloadCallback(),this.addRegionsToSearchIndex(),this.$emit("on-ready"),this.setMarkers(),this.isReady=!0}},getState:function(){let t={format:this.fileFormat,url:this._currentURL,viewport:void 0,visibility:void 0};if(this.$refs.treeControls&&(t.visibility=this.$refs.treeControls.getState()),this.$module.scene){let e=this.$module.scene.getZincCameraControls();t.viewport=e.getCurrentViewport()}return t},setState:function(t){t&&(t.url&&t.url!==this._currentURL?this.setURLAndState(t.url,{fileFormat:t.fileFormat,viewport:t.viewport,visibility:t.visibility}):(t.viewport||t.visibility)&&(this.isReady&&this.$module.scene?(t.viewport&&this.$module.scene.getZincCameraControls().setCurrentCameraSettings(t.viewport),t.visibility&&this.$refs.treeControls.setState(t.visibility)):this.$module.setFinishDownloadCallback(this.setURLFinishCallback({viewport:t.viewport,visibility:t.visibility}))))},exportGLTF:function(t){return this.$module.scene.exportGLTF(t)},setURLAndState:function(t,e){if(t!=this._currentURL){e&&e.format&&(this.fileFormat=e.format);let n=e&&e.viewport?e.viewport:void 0,r=e&&e.visibility?e.visibility:void 0;this._currentURL=t,this.$refs.treeControls&&this.$refs.treeControls.clear(),this.loading=!0,this.isReady=!1,this.$_searchIndex.removeAll(),this.hideRegionTooltip(),this.$module.setFinishDownloadCallback(this.setURLFinishCallback({viewport:n,region:this.region,viewURL:this.viewURL,visibility:r})),this.fileFormat==="gltf"?this.$module.loadGLTFFromURL(t,"scene",!0):this.$module.loadOrgansFromURL(t,void 0,void 0,"scene",void 0,!0),this.$module&&this.$module.scene&&(this.$module.scene.displayMarkers=this.displayMarkers,this.$module.scene.forcePickableObjectsUpdate=!0,this.$module.scene.displayMinimap=this.displayMinimap,this.updateMinimapScissor())}},setURL:function(t){this.setURLAndState(t,void 0)},drawerToggled:function(t){this.drawerOpen=t,this.adjustLayout()},adjustLayout:function(){let t=this.$refs.scaffoldContainer.clientWidth;this.minimisedSlider=t<812,this.minimisedSlider?this.sliderPosition=this.drawerOpen?"right":"left":this.sliderPosition=""},toggleRendering:function(t){this.$module.zincRenderer&&(t?this.$module.zincRenderer.animate():this.$module.zincRenderer.stopAnimate())},forceResize:function(){this.$module.zincRenderer&&this.$module.zincRenderer.onWindowResize()},syncControlCallback:function(){const t=this.$module.NDCCameraControl.getPanZoom();this.tData.visible&&this.showRegionTooltip(this.tData.label,!0,!0),this.$emit("scaffold-navigated",t)},toggleSyncControl:function(t,e){this.$module.toggleSyncControl(t,e),this.$module.setSyncControlCallback(this.syncControlCallback)},setMarkers:function(){this.markerLabels.forEach(t=>{this.setMarkerModeForObjectsWithName(t,"on")})}}},cw=t=>(c.pushScopeId("data-v-bcaab96b"),t=t(),c.popScopeId(),t),OMe={ref:"scaffoldContainer",class:"scaffold-container","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},kMe=cw(()=>c.createElementVNode("span",{class:"message-text"},"Beta",-1)),PMe=cw(()=>c.createElementVNode("span",{class:"message-text"},"What's new?",-1)),IMe={class:"primitive-controls-box"},RMe={class:"animation-data"},NMe={class:"purple"},BMe={class:"animation-data"},DMe={class:"purple"},FMe={class:"animation-data"},zMe={class:"bottom-right-control"},UMe=cw(()=>c.createElementVNode("div",null,[c.createTextVNode(" Fit to "),c.createElementVNode("br"),c.createTextVNode(" window ")],-1)),jMe=["onClick"];function GMe(t,e,n,r,o,a){const l=c.resolveComponent("map-svg-sprite-color"),s=qR,h=CS,u=zr,d=ld,p=FE,f=RE,m=c.resolveComponent("map-svg-icon"),y=d0,v=u0,_=ME,x=zg,L=Fg,S=wE,C=ed,A=_c,H=Td;return c.withDirectives((c.openBlock(),c.createElementBlock("div",OMe,[c.createVNode(l),c.createVNode(s,{label:t.tData.label,region:t.tData.region,visible:t.tData.visible,x:t.tData.x,y:t.tData.y,annotationDisplay:t.viewingMode==="Annotation"&&t.tData.active===!0},null,8,["label","region","visible","x","y","annotationDisplay"]),c.createElementVNode("div",{id:"organsDisplayArea",ref:"display",tabindex:"-1",style:{height:"100%",width:"100%"},onKeydown:e[0]||(e[0]=c.withKeys((...k)=>a.backgroundChangeCallback&&a.backgroundChangeCallback(...k),["66"]))},null,544),c.withDirectives(c.createElementVNode("div",null,[n.displayWarning?(c.openBlock(),c.createBlock(d,{key:0,ref:"warningPopover",visible:t.hoverVisibilities[6].value,content:n.warningMessage,placement:"right",teleported:!1,"popper-class":"scaffold-popper message-popper right-popper non-selectable"},{reference:c.withCtx(()=>[n.displayWarning?(c.openBlock(),c.createElementBlock("div",{key:0,class:"message-icon warning-icon",onMouseover:e[1]||(e[1]=k=>a.showHelpText(6)),onMouseout:e[2]||(e[2]=k=>a.hideHelpText(6))},[c.createVNode(u,null,{default:c.withCtx(()=>[c.createVNode(h)]),_:1}),kMe],32)):c.createCommentVNode("",!0)]),_:1},8,["visible","content"])):c.createCommentVNode("",!0),n.displayLatestChanges?(c.openBlock(),c.createBlock(d,{key:1,visible:t.hoverVisibilities[7].value,content:n.latestChangesMessage,placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper message-popper right-popper non-selectable"},{reference:c.withCtx(()=>[n.displayLatestChanges&&n.latestChangesMessage?(c.openBlock(),c.createElementBlock("div",{key:0,class:"el-icon-warning message-icon latest-changesicon",onMouseover:e[3]||(e[3]=k=>a.showHelpText(7)),onMouseout:e[4]||(e[4]=k=>a.hideHelpText(7))},[c.createVNode(u,null,{default:c.withCtx(()=>[c.createVNode(h)]),_:1}),PMe],32)):c.createCommentVNode("",!0)]),_:1},8,["visible","content"])):c.createCommentVNode("",!0),c.createVNode(d,{visible:t.hoverVisibilities[5].value,content:"Change region visibility",placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper right-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(p,{ref:"treeControls","help-mode":n.helpMode,isReady:t.isReady,"show-colour-picker":n.showColourPicker,onObjectSelected:a.objectSelected,onObjectHovered:a.objectHovered,onDrawerToggled:a.drawerToggled},null,8,["help-mode","isReady","show-colour-picker","onObjectSelected","onObjectHovered","onDrawerToggled"])]),_:1},8,["visible"]),c.createElementVNode("div",IMe,[c.createVNode(f,{ref:"primitiveControls"},null,512)]),t.timeVarying?(c.openBlock(),c.createBlock(d,{key:2,ref:"sliderPopover",visible:t.hoverVisibilities[4].value,content:"Move the slider to animate the region",placement:"top",teleported:!1,trigger:"manual","popper-class":"scaffold-popper top-popper non-selectable"},{reference:c.withCtx(()=>[t.timeVarying?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["time-slider-container",[t.minimisedSlider?"minimised":"",t.sliderPosition]])},[c.createVNode(S,{type:"card"},{default:c.withCtx(()=>[c.createVNode(_,{label:"Animate scaffold"},{default:c.withCtx(()=>[c.createVNode(v,{class:"tab-content"},{default:c.withCtx(()=>[t.isPlaying?(c.openBlock(),c.createBlock(m,{key:0,icon:"pause",class:"icon-button video-button",onClick:e[5]||(e[5]=k=>a.play(!1))})):(c.openBlock(),c.createBlock(m,{key:1,icon:"play",class:"video-button icon-button",onClick:e[6]||(e[6]=k=>a.play(!0))})),c.createVNode(y,{min:0,max:t.timeMax,"model-value":t.currentTime/100*t.timeMax,step:.1,"tooltip-class":"time-slider-tooltip",class:"slider","format-tooltip":a.formatTooltip,marks:t.timeStamps,onInput:e[7]||(e[7]=k=>a.timeChange(k))},null,8,["max","model-value","format-tooltip","marks"])]),_:1})]),_:1}),c.createVNode(_,{label:"Animation data"},{default:c.withCtx(()=>[c.createVNode(v,{class:"tab-content"},{default:c.withCtx(()=>[c.createElementVNode("div",RMe,[c.createTextVNode(" Original duration: "),c.createElementVNode("div",NMe,c.toDisplayString(t.orginalDuration),1)]),c.createElementVNode("div",BMe,[c.createTextVNode(" Animation duration: "),c.createElementVNode("div",DMe,c.toDisplayString(t.animateDuration),1)]),c.createElementVNode("div",FMe,[c.createTextVNode(" Playback speed "),c.createVNode(L,{teleported:!0,"model-value":t.currentSpeed,placeholder:"Select",class:"select-box","popper-class":"scaffold_viewer_dropdown",onChange:e[8]||(e[8]=k=>a.speedChanged(k))},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.playSpeed,k=>(c.openBlock(),c.createBlock(x,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])])]),_:1})]),_:1})]),_:1})],2)):c.createCommentVNode("",!0)]),_:1},8,["visible"])):c.createCommentVNode("",!0),c.createElementVNode("div",zMe,[c.createVNode(d,{visible:t.hoverVisibilities[0].value,content:"Zoom in",placement:"left",teleported:!1,trigger:"manual","popper-class":"scaffold-popper left-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{icon:"zoomIn",class:"icon-button zoomIn",onClick:e[9]||(e[9]=k=>a.zoomIn()),onMouseover:e[10]||(e[10]=k=>a.showHelpText(0)),onMouseout:e[11]||(e[11]=k=>a.hideHelpText(0))})]),_:1},8,["visible"]),c.createVNode(d,{visible:t.hoverVisibilities[1].value,content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual","popper-class":"scaffold-popper popper-zoomout non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{icon:"zoomOut",class:"icon-button zoomOut",onClick:e[12]||(e[12]=k=>a.zoomOut()),onMouseover:e[13]||(e[13]=k=>a.showHelpText(1)),onMouseout:e[14]||(e[14]=k=>a.hideHelpText(1))})]),_:1},8,["visible"]),c.createVNode(d,{visible:t.hoverVisibilities[2].value,placement:"top",teleported:!1,trigger:"manual","popper-class":"scaffold-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{icon:"fitWindow",class:"icon-button fitWindow",onClick:e[15]||(e[15]=k=>a.fitWindow()),onMouseover:e[16]||(e[16]=k=>a.showHelpText(2)),onMouseout:e[17]||(e[17]=k=>a.hideHelpText(2))})]),default:c.withCtx(()=>[UMe]),_:1},8,["visible"])]),t.openMapRef?(c.openBlock(),c.createBlock(d,{key:3,ref:"open-map-popover","virtual-ref":t.openMapRef,placement:"top-start",width:"128",teleported:!1,trigger:"click","popper-class":"open-map-popper","virtual-triggering":""},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.openMapOptions,k=>(c.openBlock(),c.createBlock(v,{key:k.key},{default:c.withCtx(()=>[c.createVNode(C,{type:"primary",plain:"",onClick:B=>t.$emit("open-map",k.key)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(k.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):c.createCommentVNode("",!0),c.createVNode(d,{ref:"backgroundPopover","virtual-ref":t.backgroundIconRef,placement:"top-start",width:"128",teleported:!1,trigger:"click","popper-class":"background-popper non-selectable","virtual-triggering":""},{default:c.withCtx(()=>[c.createElementVNode("div",null,[c.createVNode(v,{class:"backgroundText"},{default:c.withCtx(()=>[c.createTextVNode("Viewing Mode")]),_:1}),c.createVNode(v,{class:"backgroundControl"},{default:c.withCtx(()=>[c.createVNode(L,{teleported:!1,modelValue:t.viewingMode,"onUpdate:modelValue":e[18]||(e[18]=k=>t.viewingMode=k),placeholder:"Select",class:"select-box viewing-mode","popper-class":"scaffold_viewer_dropdown"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.viewingModes,k=>(c.openBlock(),c.createBlock(x,{key:k,label:k,value:k},{default:c.withCtx(()=>[c.createVNode(v,null,{default:c.withCtx(()=>[c.createVNode(A,{span:12},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(k),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),c.createVNode(v,{class:"backgroundSpacer"}),c.createVNode(v,{class:"backgroundText"},{default:c.withCtx(()=>[c.createTextVNode(" Change background ")]),_:1}),c.createVNode(v,{class:"backgroundChooser"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.availableBackground,k=>(c.openBlock(),c.createElementBlock("div",{key:k,class:c.normalizeClass(["backgroundChoice",k,k==t.currentBackground?"active":""]),onClick:B=>a.backgroundChangeCallback(k)},null,10,jMe))),128))]),_:1})])]),_:1},8,["virtual-ref"]),c.createElementVNode("div",{class:c.normalizeClass(["settings-group",{open:t.drawerOpen,close:!t.drawerOpen}])},[c.createVNode(v,null,{default:c.withCtx(()=>[c.createVNode(d,{visible:t.hoverVisibilities[8].value,content:"Open new map",placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper right-popper non-selectable"},{reference:c.withCtx(()=>[n.enableOpenMapUI&&n.openMapOptions.length>0?(c.openBlock(),c.createBlock(m,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:e[19]||(e[19]=k=>a.showHelpText(8)),onMouseout:e[20]||(e[20]=k=>a.hideHelpText(8))},null,512)):c.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),c.createVNode(v,null,{default:c.withCtx(()=>[c.createVNode(d,{visible:t.hoverVisibilities[3].value,content:"Change background color",placement:"right",teleported:!1,trigger:"manual","popper-class":"scaffold-popper right-popper non-selectable"},{reference:c.withCtx(()=>[c.createVNode(m,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:e[21]||(e[21]=k=>a.showHelpText(3)),onMouseout:e[22]||(e[22]=k=>a.hideHelpText(3))},null,512)]),_:1},8,["visible"])]),_:1})],2)],512),[[c.vShow,n.displayUI&&!t.isTransitioning]])])),[[H,t.loading]])}const WMe=f0(VMe,[["render",GMe],["__scopeId","data-v-bcaab96b"]]);$r.ScaffoldVuer=WMe,Object.defineProperty($r,Symbol.toStringTag,{value:"Module"})});
|