pd-ui-package 1.3.3 → 1.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pd-ui-package",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "pd-ui-package.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -3318,6 +3318,7 @@ const ls = Ie, cs = { style: { display: "flex", "justify-content": "space-betwee
3318
3318
  q("div", cs, [
3319
3319
  q("div", null, ue(o.tableConfig.title), 1),
3320
3320
  q("div", null, [
3321
+ he(i.$slots, "operationBar", { searchForm: y.value }, void 0, !0),
3321
3322
  r(o.operationFormConfig) ? P("", !0) : (E(), I(Z, {
3322
3323
  key: 0,
3323
3324
  type: "primary",
@@ -3428,7 +3429,7 @@ const ls = Ie, cs = { style: { display: "flex", "justify-content": "space-betwee
3428
3429
  }, null, 8, ["current-page", "page-size", "page-sizes", "size", "disabled", "background", "layout", "total"])
3429
3430
  ])
3430
3431
  ]),
3431
- _: 1
3432
+ _: 3
3432
3433
  }),
3433
3434
  r(o.operationFormConfig) ? P("", !0) : (E(), I(fe, {
3434
3435
  key: 1,
@@ -3502,11 +3503,11 @@ const ls = Ie, cs = { style: { display: "flex", "justify-content": "space-betwee
3502
3503
  }, 8, ["modelValue", "title"]))
3503
3504
  ])
3504
3505
  ]),
3505
- _: 1
3506
+ _: 3
3506
3507
  }, 8, ["locale"]);
3507
3508
  };
3508
3509
  }
3509
- }), Ss = /* @__PURE__ */ jo(vs, [["__scopeId", "data-v-eca0976b"]]);
3510
+ }), Ss = /* @__PURE__ */ jo(vs, [["__scopeId", "data-v-3345f6b2"]]);
3510
3511
  export {
3511
3512
  Ss as default
3512
3513
  };
package/pd-ui-package.css CHANGED
@@ -1 +1 @@
1
- .pd-DataTable-search-card[data-v-eca0976b] .el-card__body{padding-bottom:0}.pd-DataTable-operation[data-v-eca0976b]{padding:8px}button[data-v-b16a749b]{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button[data-v-b16a749b]:hover{border-color:#646cff}button[data-v-b16a749b]:focus,button[data-v-b16a749b]:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){button[data-v-b16a749b]{background-color:#f9f9f9}}
1
+ .pd-DataTable-search-card[data-v-3345f6b2] .el-card__body{padding-bottom:0}.pd-DataTable-operation[data-v-3345f6b2]{padding:8px}button[data-v-b16a749b]{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button[data-v-b16a749b]:hover{border-color:#646cff}button[data-v-b16a749b]:focus,button[data-v-b16a749b]:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){button[data-v-b16a749b]{background-color:#f9f9f9}}
package/pd-ui-package.js CHANGED
@@ -2787,7 +2787,7 @@ function la() {
2787
2787
  };
2788
2788
  }
2789
2789
  const sa = /* @__PURE__ */ Object.assign({
2790
- "./pd-ui/pd-DataTable/pd-DataTable.vue": () => import("./pd-DataTable-DFEk_5ru.js"),
2790
+ "./pd-ui/pd-DataTable/pd-DataTable.vue": () => import("./pd-DataTable-gyvMAcQz.js"),
2791
2791
  "./pd-ui/pd-EchartsContainer/pd-EchartsContainer.vue": () => import("./pd-EchartsContainer-4DObMw2_.js"),
2792
2792
  "./pd-ui/pd-ExcelExport/pd-ExcelExport.vue": () => import("./pd-ExcelExport-D6QNrImC.js"),
2793
2793
  "./pd-ui/pd-PwdChangeForm/pd-PwdChangeForm.vue": () => import("./pd-PwdChangeForm-rZdb110w.js"),
@@ -15,7 +15,7 @@ usage: app.provide(ID_INJECTION_KEY, {
15
15
  current: number,
16
16
  })`);const t=u5();return pj(()=>j.unref(r)||`${t.value}-id-${e.prefix}-${e.current++}`)},R0=Symbol("formContextKey"),u4=Symbol("formItemContextKey"),c4=()=>{const r=j.inject(R0,void 0),e=j.inject(u4,void 0);return{form:r,formItem:e}},EH=(r,{formItemContext:e,disableIdGeneration:t,disableIdManagement:n})=>{t||(t=j.ref(!1)),n||(n=j.ref(!1));const i=j.getCurrentInstance(),a=()=>{let u=i?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},o=j.ref();let s;const l=j.computed(()=>{var u;return!!(!(r.label||r.ariaLabel)&&e&&e.inputIds&&((u=e.inputIds)==null?void 0:u.length)<=1)});return j.onMounted(()=>{s=j.watch([j.toRef(r,"id"),t],([u,c])=>{const f=u??(c?void 0:N0().value);f!==o.value&&(e?.removeInputId&&!a()&&(o.value&&e.removeInputId(o.value),!n?.value&&!c&&f&&e.addInputId(f)),o.value=f)},{immediate:!0})}),j.onUnmounted(()=>{s&&s(),e?.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},f4=r=>{const e=j.getCurrentInstance();return j.computed(()=>{var t,n;return(n=(t=e?.proxy)==null?void 0:t.$props)==null?void 0:n[r]})},h4=(r,e={})=>{const t=j.ref(void 0),n=e.prop?t:f4("size"),i=e.global?t:Nj(),a=e.form?{size:void 0}:j.inject(R0,void 0),o=e.formItem?{size:void 0}:j.inject(u4,void 0);return j.computed(()=>n.value||j.unref(r)||o?.size||a?.size||i.value||"")},B0=r=>{const e=f4("disabled"),t=j.inject(R0,void 0);return j.computed(()=>e.value||j.unref(r)||t?.disabled||!1)},MH='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',d4=r=>typeof Element>"u"?!1:r instanceof Element,AH=r=>typeof process<"u"&&process.env.NODE_ENV==="test"?!0:getComputedStyle(r).position==="fixed"?!1:r.offsetParent!==null,p4=r=>Array.from(r.querySelectorAll(MH)).filter(e=>F0(e)&&AH(e)),F0=r=>{if(r.tabIndex>0||r.tabIndex===0&&r.getAttribute("tabIndex")!==null)return!0;if(r.tabIndex<0||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true")return!1;switch(r.nodeName){case"A":return!!r.href&&r.rel!=="ignore";case"INPUT":return!(r.type==="hidden"||r.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},kH=(r,e)=>{if(!r||!r.focus)return;let t=!1;d4(r)&&!F0(r)&&!r.getAttribute("tabindex")&&(r.setAttribute("tabindex","-1"),t=!0),r.focus(e),d4(r)&&t&&r.removeAttribute("tabindex")};function DH(r,{disabled:e,beforeFocus:t,afterFocus:n,beforeBlur:i,afterBlur:a}={}){const o=j.getCurrentInstance(),{emit:s}=o,l=j.shallowRef(),u=j.ref(!1),c=d=>{const p=Ma(t)?t(d):!1;j.unref(e)||u.value||p||(u.value=!0,s("focus",d),n?.())},f=d=>{var p;const m=Ma(i)?i(d):!1;j.unref(e)||d.relatedTarget&&((p=l.value)!=null&&p.contains(d.relatedTarget))||m||(u.value=!1,s("blur",d),a?.())},h=d=>{var p,m;j.unref(e)||F0(d.target)||(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(m=r.value)==null||m.focus()};return j.watch([l,()=>j.unref(e)],([d,p])=>{d&&(p?d.removeAttribute("tabindex"):d.setAttribute("tabindex","-1"))}),Zl(l,"focus",c,!0),Zl(l,"blur",f,!0),Zl(l,"click",h,!0),typeof process<"u"&&process.env.NODE_ENV==="test"&&j.onMounted(()=>{const d=Ed(r.value)?r.value:document.querySelector("input,textarea");d&&(Zl(d,"focus",c,!0),Zl(d,"blur",f,!0))}),{isFocused:u,wrapperRef:l,handleFocus:c,handleBlur:f}}const IH=r=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(r);function LH({afterComposition:r,emit:e}){const t=j.ref(!1),n=s=>{e?.("compositionstart",s),t.value=!0},i=s=>{var l;e?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,c=u[u.length-1]||"";t.value=!IH(c)},a=s=>{e?.("compositionend",s),t.value&&(t.value=!1,j.nextTick(()=>r(s)))};return{isComposing:t,handleComposition:s=>{s.type==="compositionend"?a(s):i(s)},handleCompositionStart:n,handleCompositionUpdate:i,handleCompositionEnd:a}}function PH(r){let e;function t(){if(r.value==null)return;const{selectionStart:i,selectionEnd:a,value:o}=r.value;if(i==null||a==null)return;const s=o.slice(0,Math.max(0,i)),l=o.slice(Math.max(0,a));e={selectionStart:i,selectionEnd:a,value:o,beforeTxt:s,afterTxt:l}}function n(){if(r.value==null||e==null)return;const{value:i}=r.value,{beforeTxt:a,afterTxt:o,selectionStart:s}=e;if(a==null||o==null||s==null)return;let l=i.length;if(i.endsWith(o))l=i.length-o.length;else if(i.startsWith(a))l=a.length;else{const u=a[s-1],c=i.indexOf(u,s-1);c!==-1&&(l=c+1)}r.value.setSelectionRange(l,l)}return[t,n]}const v4="ElInput",OH=j.defineComponent({name:v4,inheritAttrs:!1}),NH=j.defineComponent({...OH,props:bH,emits:_H,setup(r,{expose:e,emit:t}){const n=r,i=j.useAttrs(),a=SH(),o=j.useSlots(),s=j.computed(()=>[n.type==="textarea"?m.b():p.b(),p.m(h.value),p.is("disabled",d.value),p.is("exceed",z.value),{[p.b("group")]:o.prepend||o.append,[p.m("prefix")]:o.prefix||n.prefixIcon,[p.m("suffix")]:o.suffix||n.suffixIcon||n.clearable||n.showPassword,[p.bm("suffix","password-clear")]:x.value&&C.value,[p.b("hidden")]:n.type==="hidden"},i.class]),l=j.computed(()=>[p.e("wrapper"),p.is("focus",D.value)]),{form:u,formItem:c}=c4(),{inputId:f}=EH(n,{formItemContext:c}),h=h4(),d=B0(),p=Wi("input"),m=Wi("textarea"),v=j.shallowRef(),g=j.shallowRef(),y=j.ref(!1),b=j.ref(!1),_=j.ref(),T=j.shallowRef(n.inputStyle),M=j.computed(()=>v.value||g.value),{wrapperRef:k,isFocused:D,handleFocus:P,handleBlur:O}=DH(M,{disabled:d,afterBlur(){var ft;n.validateEvent&&((ft=c?.validate)==null||ft.call(c,"blur").catch(xt=>ii(xt)))}}),B=j.computed(()=>{var ft;return(ft=u?.statusIcon)!=null?ft:!1}),R=j.computed(()=>c?.validateState||""),A=j.computed(()=>R.value&&fH[R.value]),I=j.computed(()=>b.value?uH:iH),E=j.computed(()=>[i.style]),w=j.computed(()=>[n.inputStyle,T.value,{resize:n.resize}]),S=j.computed(()=>C5(n.modelValue)?"":String(n.modelValue)),x=j.computed(()=>n.clearable&&!d.value&&!n.readonly&&!!S.value&&(D.value||y.value)),C=j.computed(()=>n.showPassword&&!d.value&&!!S.value),L=j.computed(()=>n.showWordLimit&&!!n.maxlength&&(n.type==="text"||n.type==="textarea")&&!d.value&&!n.readonly&&!n.showPassword),F=j.computed(()=>S.value.length),z=j.computed(()=>!!L.value&&F.value>Number(n.maxlength)),$=j.computed(()=>!!o.suffix||!!n.suffixIcon||x.value||n.showPassword||L.value||!!R.value&&B.value),G=j.computed(()=>!!Object.keys(n.modelModifiers).length),[Z,H]=PH(v);N5(g,ft=>{if(N(),!L.value||n.resize!=="both")return;const xt=ft[0],{width:Tt}=xt.contentRect;_.value={right:`calc(100% - ${Tt+15+6}px)`}});const q=()=>{const{type:ft,autosize:xt}=n;if(!(!xn||ft!=="textarea"||!g.value))if(xt){const Tt=ql(xt)?xt.minRows:void 0,Ut=ql(xt)?xt.maxRows:void 0,Xt=s4(g.value,Tt,Ut);T.value={overflowY:"hidden",...Xt},j.nextTick(()=>{g.value.offsetHeight,T.value=Xt})}else T.value={minHeight:s4(g.value).minHeight}},N=(ft=>{let xt=!1;return()=>{var Tt;if(xt||!n.autosize)return;((Tt=g.value)==null?void 0:Tt.offsetParent)===null||(setTimeout(ft),xt=!0)}})(q),U=()=>{const ft=M.value,xt=n.formatter?n.formatter(S.value):S.value;!ft||ft.value===xt||(ft.value=xt)},W=ft=>{const{trim:xt,number:Tt}=n.modelModifiers;return xt&&(ft=ft.trim()),Tt&&(ft=`${o4(ft)}`),n.formatter&&n.parser&&(ft=n.parser(ft)),ft},X=async ft=>{if(J.value)return;const{lazy:xt}=n.modelModifiers;let{value:Tt}=ft.target;if(xt){t(L0,Tt);return}if(Tt=W(Tt),String(Tt)===S.value){n.formatter&&U();return}Z(),t(Ad,Tt),t(L0,Tt),await j.nextTick(),(n.formatter&&n.parser||!G.value)&&U(),H()},Y=async ft=>{let{value:xt}=ft.target;xt=W(xt),n.modelModifiers.lazy&&t(Ad,xt),t(Q5,xt),await j.nextTick(),U()},{isComposing:J,handleCompositionStart:rt,handleCompositionUpdate:nt,handleCompositionEnd:Q}=LH({emit:t,afterComposition:X}),tt=()=>{b.value=!b.value},et=()=>{var ft;return(ft=M.value)==null?void 0:ft.focus()},ot=()=>{var ft;return(ft=M.value)==null?void 0:ft.blur()},at=ft=>{y.value=!1,t("mouseleave",ft)},ut=ft=>{y.value=!0,t("mouseenter",ft)},dt=ft=>{t("keydown",ft)},mt=()=>{var ft;(ft=M.value)==null||ft.select()},wt=()=>{t(Ad,""),t(Q5,""),t("clear"),t(L0,"")};return j.watch(()=>n.modelValue,()=>{var ft;j.nextTick(()=>q()),n.validateEvent&&((ft=c?.validate)==null||ft.call(c,"change").catch(xt=>ii(xt)))}),j.watch(S,ft=>{if(!M.value)return;const{trim:xt,number:Tt}=n.modelModifiers,Ut=M.value.value,Xt=(Tt||n.type==="number")&&!/^0\d/.test(Ut)?`${o4(Ut)}`:Ut;Xt!==ft&&(document.activeElement===M.value&&M.value.type!=="range"&&xt&&Xt.trim()===ft||U())}),j.watch(()=>n.type,async()=>{await j.nextTick(),U(),q()}),j.onMounted(()=>{!n.formatter&&n.parser&&ii(v4,"If you set the parser, you also need to set the formatter."),U(),j.nextTick(q)}),e({input:v,textarea:g,ref:M,textareaStyle:w,autosize:j.toRef(n,"autosize"),isComposing:J,focus:et,blur:ot,select:mt,clear:wt,resizeTextarea:q}),(ft,xt)=>(j.openBlock(),j.createElementBlock("div",{class:j.normalizeClass([j.unref(s),{[j.unref(p).bm("group","append")]:ft.$slots.append,[j.unref(p).bm("group","prepend")]:ft.$slots.prepend}]),style:j.normalizeStyle(j.unref(E)),onMouseenter:ut,onMouseleave:at},[j.createCommentVNode(" input "),ft.type!=="textarea"?(j.openBlock(),j.createElementBlock(j.Fragment,{key:0},[j.createCommentVNode(" prepend slot "),ft.$slots.prepend?(j.openBlock(),j.createElementBlock("div",{key:0,class:j.normalizeClass(j.unref(p).be("group","prepend"))},[j.renderSlot(ft.$slots,"prepend")],2)):j.createCommentVNode("v-if",!0),j.createElementVNode("div",{ref_key:"wrapperRef",ref:k,class:j.normalizeClass(j.unref(l))},[j.createCommentVNode(" prefix slot "),ft.$slots.prefix||ft.prefixIcon?(j.openBlock(),j.createElementBlock("span",{key:0,class:j.normalizeClass(j.unref(p).e("prefix"))},[j.createElementVNode("span",{class:j.normalizeClass(j.unref(p).e("prefix-inner"))},[j.renderSlot(ft.$slots,"prefix"),ft.prefixIcon?(j.openBlock(),j.createBlock(j.unref(Yi),{key:0,class:j.normalizeClass(j.unref(p).e("icon"))},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(ft.prefixIcon)))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0)],2)],2)):j.createCommentVNode("v-if",!0),j.createElementVNode("input",j.mergeProps({id:j.unref(f),ref_key:"input",ref:v,class:j.unref(p).e("inner")},j.unref(a),{name:ft.name,minlength:ft.minlength,maxlength:ft.maxlength,type:ft.showPassword?b.value?"text":"password":ft.type,disabled:j.unref(d),readonly:ft.readonly,autocomplete:ft.autocomplete,tabindex:ft.tabindex,"aria-label":ft.ariaLabel,placeholder:ft.placeholder,style:ft.inputStyle,form:ft.form,autofocus:ft.autofocus,role:ft.containerRole,inputmode:ft.inputmode,onCompositionstart:j.unref(rt),onCompositionupdate:j.unref(nt),onCompositionend:j.unref(Q),onInput:X,onChange:Y,onKeydown:dt}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),j.createCommentVNode(" suffix slot "),j.unref($)?(j.openBlock(),j.createElementBlock("span",{key:1,class:j.normalizeClass(j.unref(p).e("suffix"))},[j.createElementVNode("span",{class:j.normalizeClass(j.unref(p).e("suffix-inner"))},[!j.unref(x)||!j.unref(C)||!j.unref(L)?(j.openBlock(),j.createElementBlock(j.Fragment,{key:0},[j.renderSlot(ft.$slots,"suffix"),ft.suffixIcon?(j.openBlock(),j.createBlock(j.unref(Yi),{key:0,class:j.normalizeClass(j.unref(p).e("icon"))},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(ft.suffixIcon)))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0)],64)):j.createCommentVNode("v-if",!0),j.unref(x)?(j.openBlock(),j.createBlock(j.unref(Yi),{key:1,class:j.normalizeClass([j.unref(p).e("icon"),j.unref(p).e("clear")]),onMousedown:j.withModifiers(j.unref(ds),["prevent"]),onClick:wt},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(ft.clearIcon)))]),_:1},8,["class","onMousedown"])):j.createCommentVNode("v-if",!0),j.unref(C)?(j.openBlock(),j.createBlock(j.unref(Yi),{key:2,class:j.normalizeClass([j.unref(p).e("icon"),j.unref(p).e("password")]),onClick:tt,onMousedown:j.withModifiers(j.unref(ds),["prevent"]),onMouseup:j.withModifiers(j.unref(ds),["prevent"])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(j.unref(I))))]),_:1},8,["class","onMousedown","onMouseup"])):j.createCommentVNode("v-if",!0),j.unref(L)?(j.openBlock(),j.createElementBlock("span",{key:3,class:j.normalizeClass([j.unref(p).e("count"),j.unref(p).is("outside",ft.wordLimitPosition==="outside")])},[j.createElementVNode("span",{class:j.normalizeClass(j.unref(p).e("count-inner"))},j.toDisplayString(j.unref(F))+" / "+j.toDisplayString(ft.maxlength),3)],2)):j.createCommentVNode("v-if",!0),j.unref(R)&&j.unref(A)&&j.unref(B)?(j.openBlock(),j.createBlock(j.unref(Yi),{key:4,class:j.normalizeClass([j.unref(p).e("icon"),j.unref(p).e("validateIcon"),j.unref(p).is("loading",j.unref(R)==="validating")])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(j.unref(A))))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0)],2)],2)):j.createCommentVNode("v-if",!0)],2),j.createCommentVNode(" append slot "),ft.$slots.append?(j.openBlock(),j.createElementBlock("div",{key:1,class:j.normalizeClass(j.unref(p).be("group","append"))},[j.renderSlot(ft.$slots,"append")],2)):j.createCommentVNode("v-if",!0)],64)):(j.openBlock(),j.createElementBlock(j.Fragment,{key:1},[j.createCommentVNode(" textarea "),j.createElementVNode("textarea",j.mergeProps({id:j.unref(f),ref_key:"textarea",ref:g,class:[j.unref(m).e("inner"),j.unref(p).is("focus",j.unref(D))]},j.unref(a),{name:ft.name,minlength:ft.minlength,maxlength:ft.maxlength,tabindex:ft.tabindex,disabled:j.unref(d),readonly:ft.readonly,autocomplete:ft.autocomplete,style:j.unref(w),"aria-label":ft.ariaLabel,placeholder:ft.placeholder,form:ft.form,autofocus:ft.autofocus,rows:ft.rows,role:ft.containerRole,onCompositionstart:j.unref(rt),onCompositionupdate:j.unref(nt),onCompositionend:j.unref(Q),onInput:X,onFocus:j.unref(P),onBlur:j.unref(O),onChange:Y,onKeydown:dt}),null,16,["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),j.unref(L)?(j.openBlock(),j.createElementBlock("span",{key:0,style:j.normalizeStyle(_.value),class:j.normalizeClass([j.unref(p).e("count"),j.unref(p).is("outside",ft.wordLimitPosition==="outside")])},j.toDisplayString(j.unref(F))+" / "+j.toDisplayString(ft.maxlength),7)):j.createCommentVNode("v-if",!0)],64))],38))}});var RH=uo(NH,[["__file","input.vue"]]);const BH=Wc(RH),V0="focus-trap.focus-after-trapped",z0="focus-trap.focus-after-released",FH="focus-trap.focusout-prevented",m4={cancelable:!0,bubbles:!1},VH={cancelable:!0,bubbles:!1},g4="focusAfterTrapped",y4="focusAfterReleased",zH=Symbol("elFocusTrap"),j0=j.ref(),Ld=j.ref(0),H0=j.ref(0);let Pd=0;const b4=r=>{const e=[],t=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e},_4=(r,e)=>{for(const t of r)if(!jH(t,e))return t},jH=(r,e)=>{if(typeof process<"u"&&process.env.NODE_ENV==="test")return!1;if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(e&&r===e)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1},HH=r=>{const e=b4(r),t=_4(e,r),n=_4(e.reverse(),r);return[t,n]},UH=r=>r instanceof HTMLInputElement&&"select"in r,co=(r,e)=>{if(r){const t=document.activeElement;kH(r,{preventScroll:!0}),H0.value=window.performance.now(),r!==t&&UH(r)&&e&&r.select()}};function w4(r,e){const t=[...r],n=r.indexOf(e);return n!==-1&&t.splice(n,1),t}const $H=()=>{let r=[];return{push:n=>{const i=r[0];i&&n!==i&&i.pause(),r=w4(r,n),r.unshift(n)},remove:n=>{var i,a;r=w4(r,n),(a=(i=r[0])==null?void 0:i.resume)==null||a.call(i)}}},GH=(r,e=!1)=>{const t=document.activeElement;for(const n of r)if(co(n,e),document.activeElement!==t)return},x4=$H(),WH=()=>Ld.value>H0.value,Od=()=>{j0.value="pointer",Ld.value=window.performance.now()},S4=()=>{j0.value="keyboard",Ld.value=window.performance.now()},YH=()=>(j.onMounted(()=>{Pd===0&&(document.addEventListener("mousedown",Od),document.addEventListener("touchstart",Od),document.addEventListener("keydown",S4)),Pd++}),j.onBeforeUnmount(()=>{Pd--,Pd<=0&&(document.removeEventListener("mousedown",Od),document.removeEventListener("touchstart",Od),document.removeEventListener("keydown",S4))}),{focusReason:j0,lastUserFocusTimestamp:Ld,lastAutomatedFocusTimestamp:H0}),Nd=r=>new CustomEvent(FH,{...VH,detail:r}),Jl={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"},Rd=r=>{if(r.code&&r.code!=="Unidentified")return r.code;const e=qH(r);if(e){if(Object.values(Jl).includes(e))return e;switch(e){case" ":return Jl.space;default:return""}}return""},qH=r=>{let e=r.key&&r.key!=="Unidentified"?r.key:"";if(!e&&r.type==="keyup"&&dH()){const t=r.target;e=t.value.charAt(t.selectionStart-1)}return e};let Ql=[];const T4=r=>{Rd(r)===Jl.esc&&Ql.forEach(t=>t(r))},XH=r=>{j.onMounted(()=>{Ql.length===0&&document.addEventListener("keydown",T4),xn&&Ql.push(r)}),j.onBeforeUnmount(()=>{Ql=Ql.filter(e=>e!==r),Ql.length===0&&xn&&document.removeEventListener("keydown",T4)})},ZH=j.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[g4,y4,"focusin","focusout","focusout-prevented","release-requested"],setup(r,{emit:e}){const t=j.ref();let n,i;const{focusReason:a}=YH();XH(p=>{r.trapped&&!o.paused&&e("release-requested",p)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!r.loop&&!r.trapped||o.paused)return;const{altKey:m,ctrlKey:v,metaKey:g,currentTarget:y,shiftKey:b}=p,{loop:_}=r,M=Rd(p)===Jl.tab&&!m&&!v&&!g,k=document.activeElement;if(M&&k){const D=y,[P,O]=HH(D);if(P&&O){if(!b&&k===O){const R=Nd({focusReason:a.value});e("focusout-prevented",R),R.defaultPrevented||(p.preventDefault(),_&&co(P,!0))}else if(b&&[P,D].includes(k)){const R=Nd({focusReason:a.value});e("focusout-prevented",R),R.defaultPrevented||(p.preventDefault(),_&&co(O,!0))}}else if(k===D){const R=Nd({focusReason:a.value});e("focusout-prevented",R),R.defaultPrevented||p.preventDefault()}}};j.provide(zH,{focusTrapRef:t,onKeydown:s}),j.watch(()=>r.focusTrapEl,p=>{p&&(t.value=p)},{immediate:!0}),j.watch([t],([p],[m])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",s),m.removeEventListener("focusin",c),m.removeEventListener("focusout",f))});const l=p=>{e(g4,p)},u=p=>e(y4,p),c=p=>{const m=j.unref(t);if(!m)return;const v=p.target,g=p.relatedTarget,y=v&&m.contains(v);r.trapped||g&&m.contains(g)||(n=g),y&&e("focusin",p),!o.paused&&r.trapped&&(y?i=v:co(i,!0))},f=p=>{const m=j.unref(t);if(!(o.paused||!m))if(r.trapped){const v=p.relatedTarget;!C5(v)&&!m.contains(v)&&setTimeout(()=>{if(!o.paused&&r.trapped){const g=Nd({focusReason:a.value});e("focusout-prevented",g),g.defaultPrevented||co(i,!0)}},0)}else{const v=p.target;v&&m.contains(v)||e("focusout",p)}};async function h(){await j.nextTick();const p=j.unref(t);if(p){x4.push(o);const m=p.contains(document.activeElement)?n:document.activeElement;if(n=m,!p.contains(m)){const g=new Event(V0,m4);p.addEventListener(V0,l),p.dispatchEvent(g),g.defaultPrevented||j.nextTick(()=>{let y=r.focusStartEl;Gn(y)||(co(y),document.activeElement!==y&&(y="first")),y==="first"&&GH(b4(p),!0),(document.activeElement===m||y==="container")&&co(p)})}}}function d(){const p=j.unref(t);if(p){p.removeEventListener(V0,l);const m=new CustomEvent(z0,{...m4,detail:{focusReason:a.value}});p.addEventListener(z0,u),p.dispatchEvent(m),!m.defaultPrevented&&(a.value=="keyboard"||!WH()||p.contains(document.activeElement))&&co(n??document.body),p.removeEventListener(z0,u),x4.remove(o),n=null,i=null}}return j.onMounted(()=>{r.trapped&&h(),j.watch(()=>r.trapped,p=>{p?h():d()})}),j.onBeforeUnmount(()=>{r.trapped&&d(),t.value&&(t.value.removeEventListener("keydown",s),t.value.removeEventListener("focusin",c),t.value.removeEventListener("focusout",f),t.value=void 0)}),{onKeydown:s}}});function KH(r,e,t,n,i,a){return j.renderSlot(r.$slots,"default",{handleKeydown:r.onKeydown})}var JH=uo(ZH,[["render",KH],["__file","focus-trap.vue"]]);const QH=ka({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:mr([String,Object,Array])},offset:{type:mr(Array),default:[0,0]},badgeClass:{type:String}}),tU=j.defineComponent({name:"ElBadge"}),eU=j.defineComponent({...tU,props:QH,setup(r,{expose:e}){const t=r,n=Wi("badge"),i=j.computed(()=>t.isDot?"":Aa(t.value)&&Aa(t.max)?t.max<t.value?`${t.max}+`:`${t.value}`:`${t.value}`),a=j.computed(()=>{var o,s,l,u,c;return[{backgroundColor:t.color,marginRight:Gc(-((s=(o=t.offset)==null?void 0:o[0])!=null?s:0)),marginTop:Gc((u=(l=t.offset)==null?void 0:l[1])!=null?u:0)},(c=t.badgeStyle)!=null?c:{}]});return e({content:i}),(o,s)=>(j.openBlock(),j.createElementBlock("div",{class:j.normalizeClass(j.unref(n).b())},[j.renderSlot(o.$slots,"default"),j.createVNode(j.Transition,{name:`${j.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:j.withCtx(()=>[j.withDirectives(j.createElementVNode("sup",{class:j.normalizeClass([j.unref(n).e("content"),j.unref(n).em("content",o.type),j.unref(n).is("fixed",!!o.$slots.default),j.unref(n).is("dot",o.isDot),j.unref(n).is("hide-zero",!o.showZero&&o.value===0),o.badgeClass]),style:j.normalizeStyle(j.unref(a))},[j.renderSlot(o.$slots,"content",{value:j.unref(i)},()=>[j.createTextVNode(j.toDisplayString(j.unref(i)),1)])],6),[[j.vShow,!o.hidden&&(j.unref(i)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}});var rU=uo(eU,[["__file","badge.vue"]]);const nU=Wc(rU),C4=Symbol("buttonGroupContextKey"),iU=({from:r,replacement:e,scope:t,version:n,ref:i,type:a="API"},o)=>{j.watch(()=>j.unref(o),s=>{s&&ii(t,`[${a}] ${r} is about to be deprecated in version ${n}, please use ${e} instead.
17
17
  For more detail, please visit: ${i}
18
- `)},{immediate:!0})},aU=(r,e)=>{iU({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},j.computed(()=>r.type==="text"));const t=j.inject(C4,void 0),n=I0("button"),{form:i}=c4(),a=h4(j.computed(()=>t?.size)),o=B0(),s=j.ref(),l=j.useSlots(),u=j.computed(()=>{var g;return r.type||t?.type||((g=n.value)==null?void 0:g.type)||""}),c=j.computed(()=>{var g,y,b;return(b=(y=r.autoInsertSpace)!=null?y:(g=n.value)==null?void 0:g.autoInsertSpace)!=null?b:!1}),f=j.computed(()=>{var g,y,b;return(b=(y=r.plain)!=null?y:(g=n.value)==null?void 0:g.plain)!=null?b:!1}),h=j.computed(()=>{var g,y,b;return(b=(y=r.round)!=null?y:(g=n.value)==null?void 0:g.round)!=null?b:!1}),d=j.computed(()=>{var g,y,b;return(b=(y=r.text)!=null?y:(g=n.value)==null?void 0:g.text)!=null?b:!1}),p=j.computed(()=>r.tag==="button"?{ariaDisabled:o.value||r.loading,disabled:o.value||r.loading,autofocus:r.autofocus,type:r.nativeType}:{}),m=j.computed(()=>{var g;const y=(g=l.default)==null?void 0:g.call(l);if(c.value&&y?.length===1){const b=y[0];if(b?.type===j.Text){const _=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,_props:p,_plain:f,_round:h,_text:d,shouldAddSpace:m,handleClick:g=>{if(o.value||r.loading){g.stopPropagation();return}r.nativeType==="reset"&&i?.resetFields(),e("click",g)}}},U0=ka({size:D0,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Kl},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Kl,default:()=>Dd},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mr([String,Object]),default:"button"}}),oU={click:r=>r instanceof MouseEvent};function nn(r,e){sU(r)&&(r="100%");var t=lU(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function Bd(r){return Math.min(1,Math.max(0,r))}function sU(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function lU(r){return typeof r=="string"&&r.indexOf("%")!==-1}function E4(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Fd(r){return r<=1?"".concat(Number(r)*100,"%"):r}function ms(r){return r.length===1?"0"+r:String(r)}function uU(r,e,t){return{r:nn(r,255)*255,g:nn(e,255)*255,b:nn(t,255)*255}}function M4(r,e,t){r=nn(r,255),e=nn(e,255),t=nn(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case r:a=(e-t)/l+(e<t?6:0);break;case e:a=(t-r)/l+2;break;case t:a=(r-e)/l+4;break}a/=6}return{h:a,s:o,l:s}}function $0(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function cU(r,e,t){var n,i,a;if(r=nn(r,360),e=nn(e,100),t=nn(t,100),e===0)i=t,a=t,n=t;else{var o=t<.5?t*(1+e):t+e-t*e,s=2*t-o;n=$0(s,o,r+1/3),i=$0(s,o,r),a=$0(s,o,r-1/3)}return{r:n*255,g:i*255,b:a*255}}function A4(r,e,t){r=nn(r,255),e=nn(e,255),t=nn(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case r:a=(e-t)/s+(e<t?6:0);break;case e:a=(t-r)/s+2;break;case t:a=(r-e)/s+4;break}a/=6}return{h:a,s:l,v:o}}function fU(r,e,t){r=nn(r,360)*6,e=nn(e,100),t=nn(t,100);var n=Math.floor(r),i=r-n,a=t*(1-e),o=t*(1-i*e),s=t*(1-(1-i)*e),l=n%6,u=[t,o,a,a,s,t][l],c=[s,t,t,o,a,a][l],f=[a,a,s,t,t,o][l];return{r:u*255,g:c*255,b:f*255}}function k4(r,e,t,n){var i=[ms(Math.round(r).toString(16)),ms(Math.round(e).toString(16)),ms(Math.round(t).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function hU(r,e,t,n,i){var a=[ms(Math.round(r).toString(16)),ms(Math.round(e).toString(16)),ms(Math.round(t).toString(16)),ms(dU(n))];return i&&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 dU(r){return Math.round(parseFloat(r)*255).toString(16)}function D4(r){return Wn(r)/255}function Wn(r){return parseInt(r,16)}function pU(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var G0={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 vU(r){var e={r:0,g:0,b:0},t=1,n=null,i=null,a=null,o=!1,s=!1;return typeof r=="string"&&(r=yU(r)),typeof r=="object"&&(Da(r.r)&&Da(r.g)&&Da(r.b)?(e=uU(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Da(r.h)&&Da(r.s)&&Da(r.v)?(n=Fd(r.s),i=Fd(r.v),e=fU(r.h,n,i),o=!0,s="hsv"):Da(r.h)&&Da(r.s)&&Da(r.l)&&(n=Fd(r.s),a=Fd(r.l),e=cU(r.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=E4(t),{ok:o,format:r.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:t}}var mU="[-\\+]?\\d+%?",gU="[-\\+]?\\d*\\.\\d+%?",fo="(?:".concat(gU,")|(?:").concat(mU,")"),W0="[\\s|\\(]+(".concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")\\s*\\)?"),Y0="[\\s|\\(]+(".concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")\\s*\\)?"),Ci={CSS_UNIT:new RegExp(fo),rgb:new RegExp("rgb"+W0),rgba:new RegExp("rgba"+Y0),hsl:new RegExp("hsl"+W0),hsla:new RegExp("hsla"+Y0),hsv:new RegExp("hsv"+W0),hsva:new RegExp("hsva"+Y0),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 yU(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if(G0[r])r=G0[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Ci.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=Ci.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ci.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=Ci.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ci.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=Ci.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ci.hex8.exec(r),t?{r:Wn(t[1]),g:Wn(t[2]),b:Wn(t[3]),a:D4(t[4]),format:e?"name":"hex8"}:(t=Ci.hex6.exec(r),t?{r:Wn(t[1]),g:Wn(t[2]),b:Wn(t[3]),format:e?"name":"hex"}:(t=Ci.hex4.exec(r),t?{r:Wn(t[1]+t[1]),g:Wn(t[2]+t[2]),b:Wn(t[3]+t[3]),a:D4(t[4]+t[4]),format:e?"name":"hex8"}:(t=Ci.hex3.exec(r),t?{r:Wn(t[1]+t[1]),g:Wn(t[2]+t[2]),b:Wn(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function Da(r){return!!Ci.CSS_UNIT.exec(String(r))}var bU=(function(){function r(e,t){e===void 0&&(e=""),t===void 0&&(t={});var n;if(e instanceof r)return e;typeof e=="number"&&(e=pU(e)),this.originalInput=e;var i=vU(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=t.format)!==null&&n!==void 0?n:i.format,this.gradientType=t.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=i.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},r.prototype.getLuminance=function(){var e=this.toRgb(),t,n,i,a=e.r/255,o=e.g/255,s=e.b/255;return a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*n+.0722*i},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(e){return this.a=E4(e),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},r.prototype.toHsv=function(){var e=A4(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},r.prototype.toHsvString=function(){var e=A4(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var e=M4(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},r.prototype.toHslString=function(){var e=M4(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(e){return e===void 0&&(e=!1),k4(this.r,this.g,this.b,e)},r.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},r.prototype.toHex8=function(e){return e===void 0&&(e=!1),hU(this.r,this.g,this.b,this.a,e)},r.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},r.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(nn(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(nn(t,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,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+k4(this.r,this.g,this.b,!1),t=0,n=Object.entries(G0);t<n.length;t++){var i=n[t],a=i[0],o=i[1];if(e===o)return a}return!1},r.prototype.toString=function(e){var t=!!e;e=e??this.format;var n=!1,i=this.a<1&&this.a>=0,a=!t&&i&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=Bd(t.l),new r(t)},r.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new r(t)},r.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=Bd(t.l),new r(t)},r.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},r.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},r.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=Bd(t.s),new r(t)},r.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=Bd(t.s),new r(t)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new r(t)},r.prototype.mix=function(e,t){t===void 0&&(t=50);var n=this.toRgb(),i=new r(e).toRgb(),a=t/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new r(o)},r.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var n=this.toHsl(),i=360/t,a=[this];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(new r(n));return a},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(new r({h:n,s:i,v:a})),a=(a+s)%1;return o},r.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new r({h:(t+72)%360,s:e.s,l:e.l}),new r({h:(t+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var t=this.toRgb(),n=new r(e).toRgb(),i=t.a+n.a*(1-t.a);return new r({r:(t.r*t.a+n.r*n.a*(1-t.a))/i,g:(t.g*t.a+n.g*n.a*(1-t.a))/i,b:(t.b*t.a+n.b*n.a*(1-t.a))/i,a:i})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var t=this.toHsl(),n=t.h,i=[this],a=360/e,o=1;o<e;o++)i.push(new r({h:(n+o*a)%360,s:t.s,l:t.l}));return i},r.prototype.equals=function(e){return this.toRgbString()===new r(e).toRgbString()},r})();function ho(r,e=20){return r.mix("#141414",e).toString()}function _U(r){const e=B0(),t=Wi("button");return j.computed(()=>{let n={},i=r.color;if(i){const a=i.match(/var\((.*?)\)/);a&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const o=new bU(i),s=r.dark?o.tint(20).toString():ho(o,20);if(r.plain)n=t.cssVarBlock({"bg-color":r.dark?ho(o,90):o.tint(90).toString(),"text-color":i,"border-color":r.dark?ho(o,50):o.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":s,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(n[t.cssVarBlockName("disabled-bg-color")]=r.dark?ho(o,90):o.tint(90).toString(),n[t.cssVarBlockName("disabled-text-color")]=r.dark?ho(o,50):o.tint(50).toString(),n[t.cssVarBlockName("disabled-border-color")]=r.dark?ho(o,80):o.tint(80).toString());else{const l=r.dark?ho(o,30):o.tint(30).toString(),u=o.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(n=t.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const c=r.dark?ho(o,50):o.tint(50).toString();n[t.cssVarBlockName("disabled-bg-color")]=c,n[t.cssVarBlockName("disabled-text-color")]=r.dark?"rgba(255, 255, 255, 0.5)":`var(${t.cssVarName("color-white")})`,n[t.cssVarBlockName("disabled-border-color")]=c}}}return n})}const wU=j.defineComponent({name:"ElButton"}),xU=j.defineComponent({...wU,props:U0,emits:oU,setup(r,{expose:e,emit:t}){const n=r,i=_U(n),a=Wi("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,_plain:f,_round:h,_text:d,shouldAddSpace:p,handleClick:m}=aU(n,t),v=j.computed(()=>[a.b(),a.m(l.value),a.m(s.value),a.is("disabled",u.value),a.is("loading",n.loading),a.is("plain",f.value),a.is("round",h.value),a.is("circle",n.circle),a.is("text",d.value),a.is("link",n.link),a.is("has-bg",n.bg)]);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:p}),(g,y)=>(j.openBlock(),j.createBlock(j.resolveDynamicComponent(g.tag),j.mergeProps({ref_key:"_ref",ref:o},j.unref(c),{class:j.unref(v),style:j.unref(i),onClick:j.unref(m)}),{default:j.withCtx(()=>[g.loading?(j.openBlock(),j.createElementBlock(j.Fragment,{key:0},[g.$slots.loading?j.renderSlot(g.$slots,"loading",{key:0}):(j.openBlock(),j.createBlock(j.unref(Yi),{key:1,class:j.normalizeClass(j.unref(a).is("loading"))},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(j.openBlock(),j.createBlock(j.unref(Yi),{key:1},{default:j.withCtx(()=>[g.icon?(j.openBlock(),j.createBlock(j.resolveDynamicComponent(g.icon),{key:0})):j.renderSlot(g.$slots,"icon",{key:1})]),_:3})):j.createCommentVNode("v-if",!0),g.$slots.default?(j.openBlock(),j.createElementBlock("span",{key:2,class:j.normalizeClass({[j.unref(a).em("text","expand")]:j.unref(p)})},[j.renderSlot(g.$slots,"default")],2)):j.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var SU=uo(xU,[["__file","button.vue"]]);const TU={size:U0.size,type:U0.type},CU=j.defineComponent({name:"ElButtonGroup"}),EU=j.defineComponent({...CU,props:TU,setup(r){const e=r;j.provide(C4,j.reactive({size:j.toRef(e,"size"),type:j.toRef(e,"type")}));const t=Wi("button");return(n,i)=>(j.openBlock(),j.createElementBlock("div",{class:j.normalizeClass(j.unref(t).b("group"))},[j.renderSlot(n.$slots,"default")],2))}});var I4=uo(EU,[["__file","button-group.vue"]]);const MU=Wc(SU,{ButtonGroup:I4});Wj(I4);var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L4(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Vd={exports:{}},AU=Vd.exports,P4;function kU(){return P4||(P4=1,(function(r,e){(function(t,n){r.exports=n()})(AU,(function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var E=["th","st","nd","rd"],w=I%100;return"["+I+(E[(w-20)%10]||E[w]||E[0])+"]"}},b=function(I,E,w){var S=String(I);return!S||S.length>=E?I:""+Array(E+1-S.length).join(w)+I},_={s:b,z:function(I){var E=-I.utcOffset(),w=Math.abs(E),S=Math.floor(w/60),x=w%60;return(E<=0?"+":"-")+b(S,2,"0")+":"+b(x,2,"0")},m:function I(E,w){if(E.date()<w.date())return-I(w,E);var S=12*(w.year()-E.year())+(w.month()-E.month()),x=E.clone().add(S,f),C=w-x<0,L=E.clone().add(S+(C?-1:1),f);return+(-(S+(w-x)/(C?x-L:L-x))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},T="en",M={};M[T]=y;var k="$isDayjsObject",D=function(I){return I instanceof R||!(!I||!I[k])},P=function I(E,w,S){var x;if(!E)return T;if(typeof E=="string"){var C=E.toLowerCase();M[C]&&(x=C),w&&(M[C]=w,x=C);var L=E.split("-");if(!x&&L.length>1)return I(L[0])}else{var F=E.name;M[F]=E,x=F}return!S&&x&&(T=x),x||!S&&T},O=function(I,E){if(D(I))return I.clone();var w=typeof E=="object"?E:{};return w.date=I,w.args=arguments,new R(w)},B=_;B.l=P,B.i=D,B.w=function(I,E){return O(I,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var R=(function(){function I(w){this.$L=P(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[k]=!0}var E=I.prototype;return E.parse=function(w){this.$d=(function(S){var x=S.date,C=S.utc;if(x===null)return new Date(NaN);if(B.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var L=x.match(v);if(L){var F=L[2]-1||0,z=(L[7]||"0").substring(0,3);return C?new Date(Date.UTC(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)):new Date(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)}}return new Date(x)})(w),this.init()},E.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},E.$utils=function(){return B},E.isValid=function(){return this.$d.toString()!==m},E.isSame=function(w,S){var x=O(w);return this.startOf(S)<=x&&x<=this.endOf(S)},E.isAfter=function(w,S){return O(w)<this.startOf(S)},E.isBefore=function(w,S){return this.endOf(S)<O(w)},E.$g=function(w,S,x){return B.u(w)?this[S]:this.set(x,w)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(w,S){var x=this,C=!!B.u(S)||S,L=B.p(w),F=function(N,U){var W=B.w(x.$u?Date.UTC(x.$y,U,N):new Date(x.$y,U,N),x);return C?W:W.endOf(u)},z=function(N,U){return B.w(x.toDate()[N].apply(x.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(U)),x)},$=this.$W,G=this.$M,Z=this.$D,H="set"+(this.$u?"UTC":"");switch(L){case d:return C?F(1,0):F(31,11);case f:return C?F(1,G):F(0,G+1);case c:var q=this.$locale().weekStart||0,V=($<q?$+7:$)-q;return F(C?Z-V:Z+(6-V),G);case u:case p:return z(H+"Hours",0);case l:return z(H+"Minutes",1);case s:return z(H+"Seconds",2);case o:return z(H+"Milliseconds",3);default:return this.clone()}},E.endOf=function(w){return this.startOf(w,!1)},E.$set=function(w,S){var x,C=B.p(w),L="set"+(this.$u?"UTC":""),F=(x={},x[u]=L+"Date",x[p]=L+"Date",x[f]=L+"Month",x[d]=L+"FullYear",x[l]=L+"Hours",x[s]=L+"Minutes",x[o]=L+"Seconds",x[a]=L+"Milliseconds",x)[C],z=C===u?this.$D+(S-this.$W):S;if(C===f||C===d){var $=this.clone().set(p,1);$.$d[F](z),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else F&&this.$d[F](z);return this.init(),this},E.set=function(w,S){return this.clone().$set(w,S)},E.get=function(w){return this[B.p(w)]()},E.add=function(w,S){var x,C=this;w=Number(w);var L=B.p(S),F=function(G){var Z=O(C);return B.w(Z.date(Z.date()+Math.round(G*w)),C)};if(L===f)return this.set(f,this.$M+w);if(L===d)return this.set(d,this.$y+w);if(L===u)return F(1);if(L===c)return F(7);var z=(x={},x[s]=n,x[l]=i,x[o]=t,x)[L]||1,$=this.$d.getTime()+w*z;return B.w($,this)},E.subtract=function(w,S){return this.add(-1*w,S)},E.format=function(w){var S=this,x=this.$locale();if(!this.isValid())return x.invalidDate||m;var C=w||"YYYY-MM-DDTHH:mm:ssZ",L=B.z(this),F=this.$H,z=this.$m,$=this.$M,G=x.weekdays,Z=x.months,H=x.meridiem,q=function(U,W,X,Y){return U&&(U[W]||U(S,C))||X[W].slice(0,Y)},V=function(U){return B.s(F%12||12,U,"0")},N=H||function(U,W,X){var Y=U<12?"AM":"PM";return X?Y.toLowerCase():Y};return C.replace(g,(function(U,W){return W||(function(X){switch(X){case"YY":return String(S.$y).slice(-2);case"YYYY":return B.s(S.$y,4,"0");case"M":return $+1;case"MM":return B.s($+1,2,"0");case"MMM":return q(x.monthsShort,$,Z,3);case"MMMM":return q(Z,$);case"D":return S.$D;case"DD":return B.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return q(x.weekdaysMin,S.$W,G,2);case"ddd":return q(x.weekdaysShort,S.$W,G,3);case"dddd":return G[S.$W];case"H":return String(F);case"HH":return B.s(F,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return N(F,z,!0);case"A":return N(F,z,!1);case"m":return String(z);case"mm":return B.s(z,2,"0");case"s":return String(S.$s);case"ss":return B.s(S.$s,2,"0");case"SSS":return B.s(S.$ms,3,"0");case"Z":return L}return null})(U)||L.replace(":","")}))},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(w,S,x){var C,L=this,F=B.p(S),z=O(w),$=(z.utcOffset()-this.utcOffset())*n,G=this-z,Z=function(){return B.m(L,z)};switch(F){case d:C=Z()/12;break;case f:C=Z();break;case h:C=Z()/3;break;case c:C=(G-$)/6048e5;break;case u:C=(G-$)/864e5;break;case l:C=G/i;break;case s:C=G/n;break;case o:C=G/t;break;default:C=G}return x?C:B.a(C)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return M[this.$L]},E.locale=function(w,S){if(!w)return this.$L;var x=this.clone(),C=P(w,S,!0);return C&&(x.$L=C),x},E.clone=function(){return B.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},I})(),A=R.prototype;return O.prototype=A,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach((function(I){A[I[1]]=function(E){return this.$g(E,I[0],I[1])}})),O.extend=function(I,E){return I.$i||(I(E,R,O),I.$i=!0),O},O.locale=P,O.isDayjs=D,O.unix=function(I){return O(1e3*I)},O.en=M[T],O.Ls=M,O.p={},O}))})(Vd)),Vd.exports}var DU=kU();const IU=L4(DU);var zd=(r=>(r[r.TEXT=1]="TEXT",r[r.CLASS=2]="CLASS",r[r.STYLE=4]="STYLE",r[r.PROPS=8]="PROPS",r[r.FULL_PROPS=16]="FULL_PROPS",r[r.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",r[r.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",r[r.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",r[r.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",r[r.NEED_PATCH=512]="NEED_PATCH",r[r.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",r[r.HOISTED=-1]="HOISTED",r[r.BAIL=-2]="BAIL",r))(zd||{});const LU=ka({a11y:{type:Boolean,default:!0},locale:{type:mr(Object)},size:D0,button:{type:mr(Object)},card:{type:mr(Object)},dialog:{type:mr(Object)},link:{type:mr(Object)},experimentalFeatures:{type:mr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:mr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Bj}),fn={placement:"top"},PU=j.defineComponent({name:"ElConfigProvider",props:LU,setup(r,{slots:e}){const t=J5(r);return j.watch(()=>r.message,n=>{var i,a;Object.assign(fn,(a=(i=t?.value)==null?void 0:i.message)!=null?a:{},n??{})},{immediate:!0,deep:!0}),()=>j.renderSlot(e,"default",{config:t?.value})}}),OU=Wc(PU),O4=r=>{if(!r)return{onClick:ds,onMousedown:ds,onMouseup:ds};let e=!1,t=!1;return{onClick:o=>{e&&t&&r(o),e=t=!1},onMousedown:o=>{e=o.target===o.currentTarget},onMouseup:o=>{t=o.target===o.currentTarget}}},NU=ka({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:mr([String,Array,Object])},zIndex:{type:mr([String,Number])}}),RU={click:r=>r instanceof MouseEvent},BU="overlay";var FU=j.defineComponent({name:"ElOverlay",props:NU,emits:RU,setup(r,{slots:e,emit:t}){const n=Wi(BU),i=l=>{t("click",l)},{onClick:a,onMousedown:o,onMouseup:s}=O4(r.customMaskEvent?void 0:i);return()=>r.mask?j.createVNode("div",{class:[n.b(),r.overlayClass],style:{zIndex:r.zIndex},onClick:a,onMousedown:o,onMouseup:s},[j.renderSlot(e,"default")],zd.STYLE|zd.CLASS|zd.PROPS,["onClick","onMouseup","onMousedown"]):j.h("div",{class:r.overlayClass,style:{zIndex:r.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[j.renderSlot(e,"default")])}});const VU=FU,zU=(r,e,t,n)=>{const i={offsetX:0,offsetY:0},a=j.ref(!1),o=(h,d)=>{if(r.value){const{offsetX:p,offsetY:m}=i,v=r.value.getBoundingClientRect(),g=v.left,y=v.top,b=v.width,_=v.height,T=document.documentElement.clientWidth,M=document.documentElement.clientHeight,k=-g+p,D=-y+m,P=T-g-b+p,O=M-y-(_<M?_:0)+m;n?.value||(h=Math.min(Math.max(h,k),P),d=Math.min(Math.max(d,D),O)),i.offsetX=h,i.offsetY=d,r.value.style.transform=`translate(${Gc(h)}, ${Gc(d)})`}},s=h=>{const d=h.clientX,p=h.clientY,{offsetX:m,offsetY:v}=i,g=b=>{a.value||(a.value=!0);const _=m+b.clientX-d,T=v+b.clientY-p;o(_,T)},y=()=>{a.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",y)},l=()=>{e.value&&r.value&&(e.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},u=()=>{e.value&&r.value&&(e.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},c=()=>{i.offsetX=0,i.offsetY=0,r.value&&(r.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:d}=i;o(h,d)};return j.onMounted(()=>{j.watchEffect(()=>{t.value?l():u()})}),j.onBeforeUnmount(()=>{u()}),{isDragging:a,resetPosition:c,updatePosition:f}},jU=(r,e={})=>{j.isRef(r)||Aj("[useLockscreen]","You need to pass a ref param to this function");const t=e.ns||Wi("popup"),n=j.computed(()=>t.bm("parent","hidden"));let i=0,a=!1,o="0";const s=()=>{setTimeout(()=>{typeof document>"u"||a&&document&&(document.body.style.width=o,Hj(document.body,n.value))},200)};j.watch(r,l=>{if(!l){s();return}a=!zj(document.body,n.value),a&&(o=document.body.style.width,jj(document.body,n.value)),i=$j(t.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Uj(document.body,"overflowY");i>0&&(u||c==="scroll")&&a&&(document.body.style.width=`calc(100% - ${i}px)`)}),j.onScopeDispose(()=>s())},HU=r=>["",...q5].includes(r),N4=["primary","success","info","warning","error"],R4=["top","top-left","top-right","bottom","bottom-left","bottom-right"],tu="top",hn=l4({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:xn?document.body:void 0}),UU=ka({customClass:{type:String,default:hn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:hn.dangerouslyUseHTMLString},duration:{type:Number,default:hn.duration},icon:{type:Kl,default:hn.icon},id:{type:String,default:hn.id},message:{type:mr([String,Object,Function]),default:hn.message},onClose:{type:mr(Function),default:hn.onClose},showClose:{type:Boolean,default:hn.showClose},type:{type:String,values:N4,default:hn.type},plain:{type:Boolean,default:hn.plain},offset:{type:Number,default:hn.offset},placement:{type:String,values:R4,default:hn.placement},zIndex:{type:Number,default:hn.zIndex},grouping:{type:Boolean,default:hn.grouping},repeatNum:{type:Number,default:hn.repeatNum}}),$U={destroy:()=>!0},Ei=j.shallowReactive({}),GU=r=>(Ei[r]||(Ei[r]=j.shallowReactive([])),Ei[r]),WU=(r,e)=>{const t=Ei[e]||[],n=t.findIndex(o=>o.id===r),i=t[n];let a;return n>0&&(a=t[n-1]),{current:i,prev:a}},YU=(r,e)=>{const{prev:t}=WU(r,e);return t?t.vm.exposed.bottom.value:0},qU=(r,e,t)=>(Ei[t]||[]).findIndex(a=>a.id===r)>0?16:e,XU=j.defineComponent({name:"ElMessage"}),ZU=j.defineComponent({...XU,props:UU,emits:$U,setup(r,{expose:e,emit:t}){const n=r,{Close:i}=a4,a=j.ref(!1),{ns:o,zIndex:s}=K5("message"),{currentZIndex:l,nextZIndex:u}=s,c=j.ref(),f=j.ref(!1),h=j.ref(0);let d;const p=j.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),m=j.computed(()=>{const R=n.type;return{[o.bm("icon",R)]:R&&Id[R]}}),v=j.computed(()=>n.icon||Id[n.type]||""),g=j.computed(()=>n.placement||tu),y=j.computed(()=>YU(n.id,g.value)),b=j.computed(()=>qU(n.id,n.offset,g.value)+y.value),_=j.computed(()=>h.value+b.value),T=j.computed(()=>g.value.includes("left")?o.is("left"):g.value.includes("right")?o.is("right"):o.is("center")),M=j.computed(()=>g.value.startsWith("top")?"top":"bottom"),k=j.computed(()=>({[M.value]:`${b.value}px`,zIndex:l.value}));function D(){n.duration!==0&&({stop:d}=bj(()=>{O()},n.duration))}function P(){d?.()}function O(){f.value=!1,j.nextTick(()=>{var R;a.value||((R=n.onClose)==null||R.call(n),t("destroy"))})}function B(R){Rd(R)===Jl.esc&&O()}return j.onMounted(()=>{D(),u(),f.value=!0}),j.watch(()=>n.repeatNum,()=>{P(),D()}),Zl(document,"keydown",B),N5(c,()=>{h.value=c.value.getBoundingClientRect().height}),e({visible:f,bottom:_,close:O}),(R,A)=>(j.openBlock(),j.createBlock(j.Transition,{name:j.unref(o).b("fade"),onBeforeEnter:I=>a.value=!0,onBeforeLeave:R.onClose,onAfterLeave:I=>R.$emit("destroy"),persisted:""},{default:j.withCtx(()=>[j.withDirectives(j.createElementVNode("div",{id:R.id,ref_key:"messageRef",ref:c,class:j.normalizeClass([j.unref(o).b(),{[j.unref(o).m(R.type)]:R.type},j.unref(o).is("closable",R.showClose),j.unref(o).is("plain",R.plain),j.unref(o).is("bottom",j.unref(M)==="bottom"),j.unref(T),R.customClass]),style:j.normalizeStyle(j.unref(k)),role:"alert",onMouseenter:P,onMouseleave:D},[R.repeatNum>1?(j.openBlock(),j.createBlock(j.unref(nU),{key:0,value:R.repeatNum,type:j.unref(p),class:j.normalizeClass(j.unref(o).e("badge"))},null,8,["value","type","class"])):j.createCommentVNode("v-if",!0),j.unref(v)?(j.openBlock(),j.createBlock(j.unref(Yi),{key:1,class:j.normalizeClass([j.unref(o).e("icon"),j.unref(m)])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(j.unref(v))))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0),j.renderSlot(R.$slots,"default",{},()=>[R.dangerouslyUseHTMLString?(j.openBlock(),j.createElementBlock(j.Fragment,{key:1},[j.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),j.createElementVNode("p",{class:j.normalizeClass(j.unref(o).e("content")),innerHTML:R.message},null,10,["innerHTML"])],2112)):(j.openBlock(),j.createElementBlock("p",{key:0,class:j.normalizeClass(j.unref(o).e("content"))},j.toDisplayString(R.message),3))]),R.showClose?(j.openBlock(),j.createBlock(j.unref(Yi),{key:2,class:j.normalizeClass(j.unref(o).e("closeBtn")),onClick:j.withModifiers(O,["stop"])},{default:j.withCtx(()=>[j.createVNode(j.unref(i))]),_:1},8,["class","onClick"])):j.createCommentVNode("v-if",!0)],46,["id"]),[[j.vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var KU=uo(ZU,[["__file","message.vue"]]);let JU=1;const QU=r=>{if(!r.appendTo)r.appendTo=document.body;else if(Gn(r.appendTo)){let t=document.querySelector(r.appendTo);Ed(t)||(ii("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),r.appendTo=t}},t$=r=>{!r.placement&&Gn(fn.placement)&&fn.placement&&(r.placement=fn.placement),r.placement||(r.placement=tu),R4.includes(r.placement)||(ii("ElMessage",`Invalid placement: ${r.placement}. Falling back to '${tu}'.`),r.placement=tu)},B4=r=>{const e=!r||Gn(r)||j.isVNode(r)||Ma(r)?{message:r}:r,t={...hn,...e};return QU(t),t$(t),M0(fn.grouping)&&!t.grouping&&(t.grouping=fn.grouping),Aa(fn.duration)&&t.duration===3e3&&(t.duration=fn.duration),Aa(fn.offset)&&t.offset===16&&(t.offset=fn.offset),M0(fn.showClose)&&!t.showClose&&(t.showClose=fn.showClose),M0(fn.plain)&&!t.plain&&(t.plain=fn.plain),t},e$=r=>{const e=r.props.placement||tu,t=Ei[e],n=t.indexOf(r);if(n===-1)return;t.splice(n,1);const{handler:i}=r;i.close()},r$=({appendTo:r,...e},t)=>{const n=`message_${JU++}`,i=e.onClose,a=document.createElement("div"),o={...e,id:n,onClose:()=>{i?.(),e$(c)},onDestroy:()=>{j.render(null,a)}},s=j.createVNode(KU,o,Ma(o.message)||j.isVNode(o.message)?{default:Ma(o.message)?o.message:()=>o.message}:null);s.appContext=t||gs._context,j.render(s,a),r.appendChild(a.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.close()}},props:s.component.props};return c},gs=(r={},e)=>{if(!xn)return{close:()=>{}};const t=B4(r),n=GU(t.placement||tu);if(t.grouping&&n.length){const a=n.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===t.message});if(a)return a.props.repeatNum+=1,a.props.type=t.type,a.handler}if(Aa(fn.max)&&n.length>=fn.max)return{close:()=>{}};const i=r$(t,e);return n.push(i),i.handler};N4.forEach(r=>{gs[r]=(e={},t)=>{const n=B4(e);return gs({...n,type:r},t)}});function n$(r){for(const e in Ei)if(jc(Ei,e)){const t=[...Ei[e]];for(const n of t)(!r||r===n.props.type)&&n.handler.close()}}function i$(r){if(!Ei[r])return;[...Ei[r]].forEach(t=>t.handler.close())}gs.closeAll=n$,gs.closeAllByPlacement=i$,gs._context=null;const Yr=Gj(gs,"$message"),q0="_trap-focus-children",ys=[],F4=r=>{var e;if(ys.length===0)return;const t=Rd(r),n=ys[ys.length-1][q0];if(n.length>0&&t===Jl.tab){if(n.length===1){r.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const i=r.shiftKey,a=r.target===n[0],o=r.target===n[n.length-1];if(a&&i&&(r.preventDefault(),n[n.length-1].focus()),o&&!i&&(r.preventDefault(),n[0].focus()),typeof process<"u"&&process.env.NODE_ENV==="test"){const s=n.indexOf(r.target);s!==-1&&((e=n[i?s-1:s+1])==null||e.focus())}}},a$={beforeMount(r){r[q0]=p4(r),ys.push(r),ys.length<=1&&document.addEventListener("keydown",F4)},updated(r){j.nextTick(()=>{r[q0]=p4(r)})},unmounted(){ys.shift(),ys.length===0&&document.removeEventListener("keydown",F4)}},o$=j.defineComponent({name:"ElMessageBox",directives:{TrapFocus:a$},components:{ElButton:MU,ElFocusTrap:JH,ElInput:BH,ElOverlay:VU,ElIcon:Yi,...a4},inheritAttrs:!1,props:{buttonSize:{type:String,validator:HU},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(r,{emit:e}){const{locale:t,zIndex:n,ns:i,size:a}=K5("message-box",j.computed(()=>r.buttonSize)),{t:o}=t,{nextZIndex:s}=n,l=j.ref(!1),u=j.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:j.markRaw(Dd),cancelButtonLoadingIcon:j.markRaw(Dd),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=j.computed(()=>{const S=u.type;return{[i.bm("icon",S)]:S&&Id[S]}}),f=N0(),h=N0(),d=j.computed(()=>{const S=u.type;return u.icon||S&&Id[S]||""}),p=j.computed(()=>!!u.message),m=j.ref(),v=j.ref(),g=j.ref(),y=j.ref(),b=j.ref(),_=j.computed(()=>u.confirmButtonClass);j.watch(()=>u.inputValue,async S=>{await j.nextTick(),r.boxType==="prompt"&&S&&A()},{immediate:!0}),j.watch(()=>l.value,S=>{var x,C;S&&(r.boxType!=="prompt"&&(u.autofocus?g.value=(C=(x=b.value)==null?void 0:x.$el)!=null?C:m.value:g.value=m.value),u.zIndex=s()),r.boxType==="prompt"&&(S?j.nextTick().then(()=>{var L;y.value&&y.value.$el&&(u.autofocus?g.value=(L=I())!=null?L:m.value:g.value=m.value)}):(u.editorErrorMessage="",u.validateError=!1))});const T=j.computed(()=>r.draggable),M=j.computed(()=>r.overflow),{isDragging:k}=zU(m,v,T,M);j.onMounted(async()=>{await j.nextTick(),r.closeOnHashChange&&window.addEventListener("hashchange",D)}),j.onBeforeUnmount(()=>{r.closeOnHashChange&&window.removeEventListener("hashchange",D)});function D(){l.value&&(l.value=!1,j.nextTick(()=>{u.action&&e("action",u.action)}))}const P=()=>{r.closeOnClickModal&&R(u.distinguishCancelAndClose?"close":"cancel")},O=O4(P),B=S=>{if(u.inputType!=="textarea")return S.preventDefault(),R("confirm")},R=S=>{var x;r.boxType==="prompt"&&S==="confirm"&&!A()||(u.action=S,u.beforeClose?(x=u.beforeClose)==null||x.call(u,S,u,D):D())},A=()=>{if(r.boxType==="prompt"){const S=u.inputPattern;if(S&&!S.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const x=u.inputValidator;if(Ma(x)){const C=x(u.inputValue);if(C===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(Gn(C))return u.editorErrorMessage=C,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},I=()=>{var S,x;const C=(S=y.value)==null?void 0:S.$refs;return(x=C?.input)!=null?x:C?.textarea},E=()=>{R("close")},w=()=>{r.closeOnPressEscape&&E()};return r.lockScroll&&jU(l,{ns:i}),{...j.toRefs(u),ns:i,overlayEvent:O,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:h,btnSize:a,iconComponent:d,confirmButtonClasses:_,rootRef:m,focusStartRef:g,headerRef:v,inputRef:y,isDragging:k,confirmRef:b,doClose:D,handleClose:E,onCloseRequested:w,handleWrapperClick:P,handleInputEnter:B,handleAction:R,t:o}}});function s$(r,e,t,n,i,a){const o=j.resolveComponent("el-icon"),s=j.resolveComponent("el-input"),l=j.resolveComponent("el-button"),u=j.resolveComponent("el-focus-trap"),c=j.resolveComponent("el-overlay");return j.openBlock(),j.createBlock(j.Transition,{name:"fade-in-linear",onAfterLeave:f=>r.$emit("vanish"),persisted:""},{default:j.withCtx(()=>[j.withDirectives(j.createVNode(c,{"z-index":r.zIndex,"overlay-class":[r.ns.is("message-box"),r.modalClass],mask:r.modal},{default:j.withCtx(()=>[j.createElementVNode("div",{role:"dialog","aria-label":r.title,"aria-modal":"true","aria-describedby":r.showInput?void 0:r.contentId,class:j.normalizeClass(`${r.ns.namespace.value}-overlay-message-box`),onClick:r.overlayEvent.onClick,onMousedown:r.overlayEvent.onMousedown,onMouseup:r.overlayEvent.onMouseup},[j.createVNode(u,{loop:"",trapped:r.visible,"focus-trap-el":r.rootRef,"focus-start-el":r.focusStartRef,onReleaseRequested:r.onCloseRequested},{default:j.withCtx(()=>[j.createElementVNode("div",{ref:"rootRef",class:j.normalizeClass([r.ns.b(),r.customClass,r.ns.is("draggable",r.draggable),r.ns.is("dragging",r.isDragging),{[r.ns.m("center")]:r.center}]),style:j.normalizeStyle(r.customStyle),tabindex:"-1",onClick:j.withModifiers(()=>{},["stop"])},[r.title!==null&&r.title!==void 0?(j.openBlock(),j.createElementBlock("div",{key:0,ref:"headerRef",class:j.normalizeClass([r.ns.e("header"),{"show-close":r.showClose}])},[j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("title"))},[r.iconComponent&&r.center?(j.openBlock(),j.createBlock(o,{key:0,class:j.normalizeClass([r.ns.e("status"),r.typeClass])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.iconComponent)))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0),j.createElementVNode("span",null,j.toDisplayString(r.title),1)],2),r.showClose?(j.openBlock(),j.createElementBlock("button",{key:0,type:"button",class:j.normalizeClass(r.ns.e("headerbtn")),"aria-label":r.t("el.messagebox.close"),onClick:f=>r.handleAction(r.distinguishCancelAndClose?"close":"cancel"),onKeydown:j.withKeys(j.withModifiers(f=>r.handleAction(r.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[j.createVNode(o,{class:j.normalizeClass(r.ns.e("close"))},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):j.createCommentVNode("v-if",!0)],2)):j.createCommentVNode("v-if",!0),j.createElementVNode("div",{id:r.contentId,class:j.normalizeClass(r.ns.e("content"))},[j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("container"))},[r.iconComponent&&!r.center&&r.hasMessage?(j.openBlock(),j.createBlock(o,{key:0,class:j.normalizeClass([r.ns.e("status"),r.typeClass])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.iconComponent)))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0),r.hasMessage?(j.openBlock(),j.createElementBlock("div",{key:1,class:j.normalizeClass(r.ns.e("message"))},[j.renderSlot(r.$slots,"default",{},()=>[r.dangerouslyUseHTMLString?(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.showInput?"label":"p"),{key:1,for:r.showInput?r.inputId:void 0,innerHTML:r.message},null,8,["for","innerHTML"])):(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.showInput?"label":"p"),{key:0,for:r.showInput?r.inputId:void 0,textContent:j.toDisplayString(r.message)},null,8,["for","textContent"]))])],2)):j.createCommentVNode("v-if",!0)],2),j.withDirectives(j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("input"))},[j.createVNode(s,{id:r.inputId,ref:"inputRef",modelValue:r.inputValue,"onUpdate:modelValue":f=>r.inputValue=f,type:r.inputType,placeholder:r.inputPlaceholder,"aria-invalid":r.validateError,class:j.normalizeClass({invalid:r.validateError}),onKeydown:j.withKeys(r.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("errormsg")),style:j.normalizeStyle({visibility:r.editorErrorMessage?"visible":"hidden"})},j.toDisplayString(r.editorErrorMessage),7)],2),[[j.vShow,r.showInput]])],10,["id"]),j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("btns"))},[r.showCancelButton?(j.openBlock(),j.createBlock(l,{key:0,loading:r.cancelButtonLoading,"loading-icon":r.cancelButtonLoadingIcon,class:j.normalizeClass([r.cancelButtonClass]),round:r.roundButton,size:r.btnSize,onClick:f=>r.handleAction("cancel"),onKeydown:j.withKeys(j.withModifiers(f=>r.handleAction("cancel"),["prevent"]),["enter"])},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(r.cancelButtonText||r.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):j.createCommentVNode("v-if",!0),j.withDirectives(j.createVNode(l,{ref:"confirmRef",type:"primary",loading:r.confirmButtonLoading,"loading-icon":r.confirmButtonLoadingIcon,class:j.normalizeClass([r.confirmButtonClasses]),round:r.roundButton,disabled:r.confirmButtonDisabled,size:r.btnSize,onClick:f=>r.handleAction("confirm"),onKeydown:j.withKeys(j.withModifiers(f=>r.handleAction("confirm"),["prevent"]),["enter"])},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(r.confirmButtonText||r.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[j.vShow,r.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[j.vShow,r.visible]])]),_:3},8,["onAfterLeave"])}var l$=uo(o$,[["render",s$],["__file","index.vue"]]);const Yc=new Map,u$=r=>{let e=document.body;return r.appendTo&&(Gn(r.appendTo)&&(e=document.querySelector(r.appendTo)),Ed(r.appendTo)&&(e=r.appendTo),Ed(e)||(ii("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body)),e},c$=(r,e,t=null)=>{const n=j.createVNode(l$,r,Ma(r.message)||j.isVNode(r.message)?{default:Ma(r.message)?r.message:()=>r.message}:null);return n.appContext=t,j.render(n,e),u$(r).appendChild(e.firstElementChild),n.component},f$=()=>document.createElement("div"),h$=(r,e)=>{const t=f$();r.onVanish=()=>{j.render(null,t),Yc.delete(i)},r.onAction=a=>{const o=Yc.get(i);let s;r.showInput?s={value:i.inputValue,action:a}:s=a,r.callback?r.callback(s,n.proxy):a==="cancel"||a==="close"?r.distinguishCancelAndClose&&a!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const n=c$(r,t,e),i=n.proxy;for(const a in r)jc(r,a)&&!jc(i.$props,a)&&(a==="closeIcon"&&ql(r[a])?i[a]=j.markRaw(r[a]):i[a]=r[a]);return i.visible=!0,i};function eu(r,e=null){if(!xn)return Promise.reject();let t;return Gn(r)||j.isVNode(r)?r={message:r}:t=r.callback,new Promise((n,i)=>{const a=h$(r,e??eu._context);Yc.set(a,{options:r,callback:t,resolve:n,reject:i})})}const d$=["alert","confirm","prompt"],p$={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};d$.forEach(r=>{eu[r]=v$(r)});function v$(r){return(e,t,n,i)=>{let a="";return ql(t)?(n=t,a=""):E5(t)?a="":a=t,eu(Object.assign({title:a,message:e,type:"",...p$[r]},n,{boxType:r}),i)}}eu.close=()=>{Yc.forEach((r,e)=>{e.doClose()}),Yc.clear()},eu._context=null;const po=eu;po.install=r=>{po._context=r._context,r.config.globalProperties.$msgbox=po,r.config.globalProperties.$messageBox=po,r.config.globalProperties.$alert=po.alert,r.config.globalProperties.$confirm=po.confirm,r.config.globalProperties.$prompt=po.prompt};const m$=po,g$={style:{display:"flex","justify-content":"space-between","align-items":"center"}},y$={style:{display:"flex","justify-content":"flex-end","align-items":"center","margin-top":"20px"}},b$={class:"dialog-footer"},_$={name:"pd-DataTable"},w$=j.defineComponent({..._$,props:{id:{type:String,required:!0},searchFormConfig:{type:Object},operationFormConfig:{type:Object},tableConfig:{type:Object,required:!0},paginationConfig:{type:Object},requestConfig:{type:Object,required:!0}},setup(r){const{t:e}=Ul(),{elementLocale:t}=cF(),n=r;function i(x,C){const L=Object.assign({},C);return Object.keys(x).forEach(F=>{L.hasOwnProperty(F)&&(L[F]=x[F])}),L}function a(x){return x==null?!0:typeof x=="object"?Object.keys(x).length===0:!1}const o=x=>`pd-DataTable-${x}`,s=x=>{m$.confirm(e("dataTable.confirmDelete")+`【${x.id}】`,e("dataTable.confirmDeleteTitle"),{confirmButtonText:e("dataTable.confirm"),cancelButtonText:e("dataTable.cancel"),type:"warning"}).then(()=>{D(x)}).catch(()=>{})},l=()=>{B.value=!0,R.value="add"},u=x=>{B.value=!0,R.value="edit",j.nextTick(()=>{I.value=i(x,I.value)})},c=async x=>{x&&await x.validate(C=>{C?R.value==="add"?P(I.value):O(I.value):Yr.error(e("dataTable.pleaseFillInCompleteInfo"))})},f=j.ref({});(()=>{if(a(n.searchFormConfig))return;const x={};n.searchFormConfig?.formItems.forEach(C=>{x.hasOwnProperty(C.prop)||(x[C.prop]="")}),f.value=x})();const d=()=>{const x=[];return Object.keys(f.value).forEach(C=>{if(f.value[C]){const L=n.searchFormConfig?.formItems.find($=>$.prop===C),F=L?.config?.searchType||"like",z=$=>(L?.type==="date"&&($=IU($).format("YYYY-MM-DD")),F==="equals"&&($=`"${$}"`),$);x.push({searchName:C,searchType:F,searchValue:z(f.value[C])})}}),JSON.stringify(x)},p=()=>{Object.keys(f.value).forEach(x=>{f.value[x]=""}),k()},m=j.ref([]),v={headerRowStyle:{color:"#0a0a0a"},cellStyle:{color:"#0a0a0a"},size:"default",emptyText:e("dataTable.noData")},g=j.ref({...v,...n.tableConfig.table}),y=j.ref([]);function b(x){x.column.sortable==="custom"&&(x.order||(y.value=[]),x.order==="descending"&&(y.value=[{sortName:x.prop,sortType:"desc"}]),x.order==="ascending"&&(y.value=[{sortName:x.prop,sortType:"asc"}]),k())}const _={pageSize:10,pageSizes:[10,20,30,40],size:"default",disabled:!1,background:!0,layout:"total, sizes, prev, pager, next, jumper"},T=j.ref({..._,...n.paginationConfig,currentPage:1,total:100}),M=j.ref(!0),k=async()=>{M.value=!0;try{const x=await vr({...n.requestConfig.get,params:{pageNo:T.value.currentPage,pageSize:T.value.pageSize,searchStr:d(),sortStr:JSON.stringify(y.value)}});if(x.data.code===200){const C=x.data||{};if(!C.data){Yr.error(e("dataTable.dataFetchFailed"));return}if(C.data?.current>C.data?.pages&&C.data?.total!==0){T.value.currentPage=C.data?.pages;return}T.value.total=C.data?.total||0,m.value=C.data?.records||[]}else Yr.error(x.data.msg||e("dataTable.dataFetchFailed"))}catch(x){Yr.error(x.message||e("dataTable.dataFetchFailed"))}finally{M.value=!1}},D=async x=>{try{const C=await vr({...n.requestConfig.delete,data:i(x,n.requestConfig.delete?.data||{})});C.data.code===200?(Yr.success(e("dataTable.deleteSuccess")),k()):Yr.error(C.data.msg||e("dataTable.deleteError"))}catch(C){Yr.error(C.message||e("dataTable.deleteError"))}},P=async x=>{try{const C=await vr({...n.requestConfig.add,data:x});C.data.code===200?(Yr.success(e("dataTable.addSuccess")),k(),B.value=!1):Yr.error(C.data.msg||e("dataTable.addError"))}catch(C){Yr.error(C.message||e("dataTable.addError"))}},O=async x=>{try{const C=await vr({...n.requestConfig.edit,data:x});C.data.code===200?(Yr.success(e("dataTable.editSuccess")),k(),B.value=!1):Yr.error(C.data.msg||e("dataTable.editError"))}catch(C){Yr.error(C.message||e("dataTable.editError"))}};j.watch([()=>T.value.currentPage,()=>T.value.pageSize],([x,C],[L,F])=>{C!==F&&fF("peidi-common-ui-config",{[`${o(n.id)}-pageSize`]:C}),k()},{deep:!0});const B=j.ref(!1),R=j.ref("add"),A=j.computed(()=>R.value==="add"?e("dataTable.addData"):e("dataTable.editData")),I=j.ref({});(()=>{if(a(n.operationFormConfig))return;const x={};n.operationFormConfig?.formItems.forEach(C=>{x.hasOwnProperty(C.prop)||(x[C.prop]="")}),I.value=x})();const w=j.ref(),S=j.computed(()=>n.operationFormConfig?.formItems.filter(x=>x.type!=="hidden"));return j.watch(()=>B.value,x=>{x||w.value?.resetFields()},{deep:!0}),j.onMounted(()=>{const x=B3("peidi-common-ui-config",o(n.id));x&&(T.value={...T.value,pageSize:x[`${o(n.id)}-pageSize`]||T.value.pageSize})}),(x,C)=>{const L=j.resolveComponent("el-input"),F=j.resolveComponent("el-option"),z=j.resolveComponent("el-select"),$=j.resolveComponent("el-date-picker"),G=j.resolveComponent("el-form-item"),Z=j.resolveComponent("el-button"),H=j.resolveComponent("el-form"),q=j.resolveComponent("el-card"),V=j.resolveComponent("el-table-column"),N=j.resolveComponent("el-table"),U=j.resolveComponent("el-pagination"),W=j.resolveComponent("el-dialog"),X=j.resolveDirective("loading");return j.openBlock(),j.createBlock(j.unref(OU),{locale:j.unref(t)},{default:j.withCtx(()=>[j.createElementVNode("div",null,[a(n.searchFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(q,{key:0,style:{height:"100%"},shadow:"never",class:"pd-DataTable-search-card"},{default:j.withCtx(()=>[j.createElementVNode("div",null,[j.createVNode(H,{model:f.value,inline:""},{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(n.searchFormConfig?.formItems,Y=>(j.openBlock(),j.createBlock(G,{key:Y.prop,prop:Y.prop,label:Y.label},{default:j.withCtx(()=>[Y.type==="text"?(j.openBlock(),j.createBlock(L,{key:0,modelValue:f.value[Y.prop],"onUpdate:modelValue":J=>f.value[Y.prop]=J,placeholder:Y.config.placeholder,style:{width:"200px"},clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="select"?(j.openBlock(),j.createBlock(z,{key:1,modelValue:f.value[Y.prop],"onUpdate:modelValue":J=>f.value[Y.prop]=J,placeholder:Y.config.placeholder,style:{width:"200px"},clearable:""},{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(Y.config.options,J=>(j.openBlock(),j.createBlock(F,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="date"?(j.openBlock(),j.createBlock($,{key:2,modelValue:f.value[Y.prop],"onUpdate:modelValue":J=>f.value[Y.prop]=J,placeholder:Y.config.placeholder,style:{width:"200px"},clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):j.createCommentVNode("",!0)]),_:2},1032,["prop","label"]))),128)),j.createVNode(G,null,{default:j.withCtx(()=>[j.createVNode(Z,{onClick:p},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.reset")),1)]),_:1}),j.createVNode(Z,{type:"primary",onClick:k},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.query")),1)]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1})),j.createVNode(q,{style:{height:"100%","margin-top":"12px"},shadow:"never"},{default:j.withCtx(()=>[j.createElementVNode("div",g$,[j.createElementVNode("div",null,j.toDisplayString(n.tableConfig.title),1),j.createElementVNode("div",null,[a(n.operationFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(Z,{key:0,type:"primary",onClick:l},{default:j.withCtx(()=>[j.createVNode(j.unref(bd),{icon:"si:add-fill",width:"18",height:"18"}),j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.add")),1)]),_:1}))])]),j.createElementVNode("div",null,[j.withDirectives((j.openBlock(),j.createBlock(N,j.mergeProps({data:m.value,style:{width:"100%"}},g.value,{onSortChange:b}),{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(n.tableConfig.columns,Y=>(j.openBlock(),j.createBlock(V,{key:Y.prop,prop:Y.prop,label:Y.label,"min-width":Y.minWidth,align:Y.align,fixed:Y.fixed,sortable:Y.sortable,"show-overflow-tooltip":Y.showOverflowTooltip},j.createSlots({_:2},[Y.render?{name:"default",fn:j.withCtx(J=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(Y.render(J))))]),key:"0"}:{name:"default",fn:j.withCtx(J=>[j.createTextVNode(j.toDisplayString(J.row[Y.prop]),1)]),key:"1"}]),1032,["prop","label","min-width","align","fixed","sortable","show-overflow-tooltip"]))),128)),!a(n.requestConfig.edit)||!a(n.requestConfig.delete)?(j.openBlock(),j.createBlock(V,{key:0,prop:"Operation",label:j.unref(e)("dataTable.operation"),"min-width":"150"},{default:j.withCtx(Y=>[a(n.operationFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(Z,{key:0,text:"",class:"pd-DataTable-operation",onClick:J=>u(Y.row)},{default:j.withCtx(()=>[j.createVNode(j.unref(bd),{icon:"mingcute:edit-line",width:"18",height:"18",style:{color:"#2563eb"}})]),_:1},8,["onClick"])),a(n.requestConfig.delete)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(Z,{key:1,text:"",class:"pd-DataTable-operation",onClick:J=>s(Y.row)},{default:j.withCtx(()=>[j.createVNode(j.unref(bd),{icon:"lsicon:delete-outline",width:"18",height:"18",style:{color:"rgb(245, 108, 108)"}})]),_:1},8,["onClick"]))]),_:1},8,["label"])):j.createCommentVNode("",!0)]),_:1},16,["data"])),[[X,M.value]])]),j.createElementVNode("div",y$,[j.createVNode(U,{"current-page":T.value.currentPage,"onUpdate:currentPage":C[0]||(C[0]=Y=>T.value.currentPage=Y),"page-size":T.value.pageSize,"onUpdate:pageSize":C[1]||(C[1]=Y=>T.value.pageSize=Y),"page-sizes":T.value.pageSizes,size:T.value.size,disabled:T.value.disabled,background:T.value.background,layout:T.value.layout,total:T.value.total},null,8,["current-page","page-size","page-sizes","size","disabled","background","layout","total"])])]),_:1}),a(n.operationFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(W,{key:1,modelValue:B.value,"onUpdate:modelValue":C[3]||(C[3]=Y=>B.value=Y),title:A.value,width:"500"},{footer:j.withCtx(()=>[j.createElementVNode("div",b$,[j.createVNode(Z,{type:"primary",onClick:C[2]||(C[2]=Y=>c(w.value))},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.confirm")),1)]),_:1})])]),default:j.withCtx(()=>[j.createVNode(H,j.mergeProps({model:I.value},n.operationFormConfig?.form,{rules:n.operationFormConfig?.rules,ref_key:"operationFormRef",ref:w}),{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(S.value,Y=>(j.openBlock(),j.createBlock(G,{key:Y.prop,prop:Y.prop,label:Y.label},{default:j.withCtx(()=>[Y.type==="text"?(j.openBlock(),j.createBlock(L,j.mergeProps({key:0,modelValue:I.value[Y.prop],"onUpdate:modelValue":J=>I.value[Y.prop]=J,placeholder:Y.config.placeholder,clearable:""},{ref_for:!0},Y.config.expandAttribute),null,16,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="select"?(j.openBlock(),j.createBlock(z,{key:1,modelValue:I.value[Y.prop],"onUpdate:modelValue":J=>I.value[Y.prop]=J,placeholder:Y.config.placeholder,clearable:""},{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(Y.config.options,J=>(j.openBlock(),j.createBlock(F,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="date"?(j.openBlock(),j.createBlock($,{key:2,modelValue:I.value[Y.prop],"onUpdate:modelValue":J=>I.value[Y.prop]=J,placeholder:Y.config.placeholder,clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):j.createCommentVNode("",!0)]),_:2},1032,["prop","label"]))),128))]),_:1},16,["model","rules"])]),_:1},8,["modelValue","title"]))])]),_:1},8,["locale"])}}}),V4=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},x$=Object.freeze(Object.defineProperty({__proto__:null,default:V4(w$,[["__scopeId","data-v-eca0976b"]])},Symbol.toStringTag,{value:"Module"}));var X0=function(r,e){return X0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},X0(r,e)};function st(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");X0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var S$=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),T$=(function(){function r(){this.browser=new S$,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),we=new T$;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(we.wxa=!0,we.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?we.worker=!0:!we.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(we.node=!0,we.svgSupported=!0):C$(navigator.userAgent,we);function C$(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var Z0=12,z4="sans-serif",Ia=Z0+"px "+z4,E$=20,M$=100,A$="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function k$(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-E$)/M$;e[n]=i}return e}var D$=k$(A$),Mi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var i=Mi.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Ia),r.measureText(t);t=t||"",n=n||Ia;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Z0,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=D$[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},j4=qi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),H4=qi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ru=Object.prototype.toString,jd=Array.prototype,I$=jd.forEach,L$=jd.filter,K0=jd.slice,P$=jd.map,U4=(function(){}).constructor,Hd=U4?U4.prototype:null,J0="__proto__",O$=2311;function $4(){return O$++}function Ai(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function jt(r){if(r==null||typeof r!="object")return r;var e=r,t=ru.call(r);if(t==="[object Array]"){if(!qc(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=jt(r[n])}}else if(H4[t]){if(!qc(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!j4[t]&&!qc(r)&&!_s(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==J0&&(e[o]=jt(r[o]))}return e}function le(r,e,t){if(!Ht(e)||!Ht(r))return t?jt(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==J0){var i=r[n],a=e[n];Ht(a)&&Ht(i)&&!gt(a)&&!gt(i)&&!_s(a)&&!_s(i)&&!G4(a)&&!G4(i)&&!qc(a)&&!qc(i)?le(i,a,t):(t||!(n in r))&&(r[n]=jt(e[n]))}return r}function Q0(r,e){for(var t=r[0],n=1,i=r.length;n<i;n++)t=le(t,r[n],e);return t}function vt(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==J0&&(r[t]=e[t]);return r}function Yt(r,e,t){for(var n=xe(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function ae(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function N$(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function Cr(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else Yt(r,e,t)}function dn(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function K(r,e,t){if(r&&e)if(r.forEach&&r.forEach===I$)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function bt(r,e,t){if(!r)return[];if(!e)return ty(r);if(r.map&&r.map===P$)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function qi(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function Ve(r,e,t){if(!r)return[];if(!e)return ty(r);if(r.filter&&r.filter===L$)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function bs(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function xe(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function R$(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(K0.call(arguments)))}}var At=Hd&&Ft(Hd.bind)?Hd.call.bind(Hd.bind):R$;function ne(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(K0.call(arguments)))}}function gt(r){return Array.isArray?Array.isArray(r):ru.call(r)==="[object Array]"}function Ft(r){return typeof r=="function"}function Et(r){return typeof r=="string"}function Ud(r){return ru.call(r)==="[object String]"}function Me(r){return typeof r=="number"}function Ht(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function G4(r){return!!j4[ru.call(r)]}function Sn(r){return!!H4[ru.call(r)]}function _s(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function $d(r){return r.colorStops!=null}function B$(r){return r.image!=null}function W4(r){return ru.call(r)==="[object RegExp]"}function qr(r){return r!==r}function Nr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Pt(r,e){return r??e}function Tn(r,e,t){return r??e??t}function ty(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return K0.apply(r,e)}function Gd(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function It(r,e){if(!r)throw new Error(e)}function ai(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Y4="__ec_primitive__";function Wd(r){r[Y4]=!0}function qc(r){return r[Y4]}var F$=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return xe(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),q4=typeof Map=="function";function V$(){return q4?new Map:new F$}var z$=(function(){function r(e){var t=gt(e);this.data=V$();var n=this;e instanceof r?e.each(i):e&&K(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return q4?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Ot(r){return new z$(r)}function Xc(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function Yd(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&vt(t,e),t}function X4(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function kt(r,e){return r.hasOwnProperty(e)}function br(){}var qd=180/Math.PI;function ws(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Cn(r,e){return r[0]=e[0],r[1]=e[1],r}function La(r){return[r[0],r[1]]}function ey(r,e,t){return r[0]=e,r[1]=t,r}function Z4(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function ry(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function xs(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function ny(r){return Math.sqrt(j$(r))}function j$(r){return r[0]*r[0]+r[1]*r[1]}function Xd(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function nu(r,e){var t=ny(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function iy(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var vo=iy;function H$(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ss=H$;function Zd(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function _r(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function mo(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function go(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var iu=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),U$=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new iu(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new iu(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new iu(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new iu(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new iu(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new iu(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),oi=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r})(),$$=Math.log(2);function ay(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/$$);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var p=1<<h;p&i||(f+=(d%2?-1:1)*r[t][h]*ay(r,e-1,c,u,i|p,a),d++)}return a[o]=f,f}function K4(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},i=ay(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ay(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var Kd="___zrEVENTSAVED",oy=[];function G$(r,e,t,n,i){return sy(oy,e,n,i,!0)&&sy(r,t,oy[0],oy[1])}function W$(r,e){r&&t(r),e&&t(e);function t(n){var i=n[Kd];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Kd])}}function sy(r,e,t,n,i){if(e.getBoundingClientRect&&we.domSupported&&!J4(e)){var a=e[Kd]||(e[Kd]={}),o=Y$(e,a),s=q$(o,a,i);if(s)return s(r,t,n),!0}return!1}function Y$(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){K(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function q$(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?K4(s,o):K4(o,s))}function J4(r){return r.nodeName.toUpperCase()==="CANVAS"}var X$=/([&<>"'])/g,Z$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function En(r){return r==null?"":(r+"").replace(X$,function(e,t){return Z$[t]})}var K$=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ly=[],J$=we.browser.firefox&&+we.browser.version.split(".")[0]<39;function uy(r,e,t,n){return t=t||{},n?Q4(r,e,t):J$&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Q4(r,e,t),t}function Q4(r,e,t){if(we.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(J4(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(sy(ly,r,n,i)){t.zrX=ly[0],t.zrY=ly[1];return}}t.zrX=t.zrY=0}function cy(r){return r||window.event}function si(r,e,t){if(e=cy(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&uy(r,o,e,t)}else{uy(r,e,e,t);var a=Q$(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&K$.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Q$(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function fy(r,e,t,n){r.addEventListener(e,t,n)}function tG(r,e,t,n){r.removeEventListener(e,t,n)}var Pa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function t6(r){return r.which===2||r.which===3}var eG=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=uy(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in hy)if(hy.hasOwnProperty(t)){var n=hy[t](this._track,e);if(n)return n}},r})();function e6(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function rG(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hy={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=e6(n)/e6(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=rG(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Xr(){return[1,0,0,1,0,0]}function Jd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Qd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Xi(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Zi(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function yo(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=i*f+s*c,r[1]=-i*c+s*f,r[2]=a*f+l*c,r[3]=-a*c+f*l,r[4]=f*(o-n[0])+c*(u-n[1])+n[0],r[5]=f*(u-n[1])-c*(o-n[0])+n[1],r}function dy(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function ki(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function nG(r){var e=Xr();return Qd(e,r),e}var Gt=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r})(),Ts=Math.min,au=Math.max,py=Math.abs,r6=["x","y"],iG=["width","height"],Cs=new Gt,Es=new Gt,Ms=new Gt,As=new Gt,Yn=i6(),Zc=Yn.minTv,vy=Yn.maxTv,Kc=[0,0],qt=(function(){function r(e,t,n,i){r.set(this,e,t,n,i)}return r.set=function(e,t,n,i,a){return i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),e.x=t,e.y=n,e.width=i,e.height=a,e},r.prototype.union=function(e){var t=Ts(e.x,this.x),n=Ts(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=au(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=au(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=Xr();return Zi(a,a,[-t.x,-t.y]),dy(a,a,[n,i]),Zi(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,i){n&&Gt.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(aG,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(oG,t.x,t.y,t.width,t.height));var s=!!n;Yn.reset(i,s);var l=Yn.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,h=e.y+e.height-l,d=t.x+l,p=t.x+t.width-l,m=t.y+l,v=t.y+t.height-l;if(u>c||f>h||d>p||m>v)return!1;var g=!(c<d||p<u||h<m||v<f);return(s||a)&&(Kc[0]=1/0,Kc[1]=0,n6(u,c,d,p,0,s,a,o),n6(f,h,m,v,1,s,a,o),s&&Gt.copy(n,g?Yn.useDir?Yn.dirMinTv:Zc:vy)),g},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Cs.x=Ms.x=t.x,Cs.y=As.y=t.y,Es.x=As.x=t.x+t.width,Es.y=Ms.y=t.y+t.height,Cs.transform(n),As.transform(n),Es.transform(n),Ms.transform(n),e.x=Ts(Cs.x,Es.x,Ms.x,As.x),e.y=Ts(Cs.y,Es.y,Ms.y,As.y);var l=au(Cs.x,Es.x,Ms.x,As.x),u=au(Cs.y,Es.y,Ms.y,As.y);e.width=l-e.x,e.height=u-e.y},r})(),aG=new qt(0,0,0,0),oG=new qt(0,0,0,0);function n6(r,e,t,n,i,a,o,s){var l=py(e-t),u=py(n-r),c=Ts(l,u),f=r6[i],h=r6[1-i],d=iG[i];e<t||n<r?l<u?(a&&(vy[f]=-l),s&&(o[f]=e,o[d]=0)):(a&&(vy[f]=u),s&&(o[f]=r,o[d]=0)):(o&&(o[f]=au(r,t),o[d]=Ts(e,n)-o[f]),a&&(c<Kc[0]||Yn.useDir)&&(Kc[0]=Ts(c,Kc[0]),(l<u||!Yn.bidirectional)&&(Zc[f]=l,Zc[h]=0,Yn.useDir&&Yn.calcDirMTV()),(l>=u||!Yn.bidirectional)&&(Zc[f]=-u,Zc[h]=0,Yn.useDir&&Yn.calcDirMTV())))}function i6(){var r=0,e=new Gt,t=new Gt,n={minTv:new Gt,maxTv:new Gt,useDir:!1,dirMinTv:new Gt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=au(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),c=l*a.y+u*a.x;if(i(c)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,i(t.x)&&i(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function i(a){return py(a)<1e-10}return n}var a6="silent";function sG(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:lG}}function lG(){Pa(this.event)}var uG=(function(r){st(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(oi),Jc=(function(){function r(e,t){this.x=e,this.y=t}return r})(),cG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],my=new qt(0,0,0,0),o6=(function(r){st(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Jc(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new uG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new U$(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(K(cG,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=l6(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Jc(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Jc(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=sG(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new Jc(t,n);if(s6(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new qt(t-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(my.copy(h.getBoundingRect()),h.transform&&my.applyTransform(h.transform),my.intersect(c)&&s.push(h))}if(s.length)for(var d=4,p=Math.PI/12,m=Math.PI*2,v=0;v<u;v+=d)for(var g=0;g<m;g+=p){var y=t+v*Math.cos(g),b=n+v*Math.sin(g);if(s6(s,o,y,b,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new eG);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Jc;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(oi);K(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){o6.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=l6(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||vo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function fG(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?a6:!0}return!1}function s6(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=fG(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==a6)){e.target=o;break}}}function l6(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var u6=32,Qc=7;function hG(r){for(var e=0;r>=u6;)e|=r&1,r>>=1;return r+e}function c6(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;dG(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function dG(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function f6(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function gy(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(r,e[t+c])>0?o=c+1:l=c}return l}function yy(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(r,e[t+c])<0?l=c:o=c+1}return l}function pG(r,e){var t=Qc,n,i,a=0,o=[];n=[],i=[];function s(d,p){n[a]=d,i[a]=p,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var p=n[d],m=i[d],v=n[d+1],g=i[d+1];i[d]=m+g,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var y=yy(r[v],r,p,m,0,e);p+=y,m-=y,m!==0&&(g=gy(r[p+m-1],r,v,g,g-1,e),g!==0&&(m<=g?f(p,m,v,g):h(p,m,v,g)))}function f(d,p,m,v){var g=0;for(g=0;g<p;g++)o[g]=r[d+g];var y=0,b=m,_=d;if(r[_++]=r[b++],--v===0){for(g=0;g<p;g++)r[_+g]=o[y+g];return}if(p===1){for(g=0;g<v;g++)r[_+g]=r[b+g];r[_+v]=o[y];return}for(var T=t,M,k,D;;){M=0,k=0,D=!1;do if(e(r[b],o[y])<0){if(r[_++]=r[b++],k++,M=0,--v===0){D=!0;break}}else if(r[_++]=o[y++],M++,k=0,--p===1){D=!0;break}while((M|k)<T);if(D)break;do{if(M=yy(r[b],o,y,p,0,e),M!==0){for(g=0;g<M;g++)r[_+g]=o[y+g];if(_+=M,y+=M,p-=M,p<=1){D=!0;break}}if(r[_++]=r[b++],--v===0){D=!0;break}if(k=gy(o[y],r,b,v,0,e),k!==0){for(g=0;g<k;g++)r[_+g]=r[b+g];if(_+=k,b+=k,v-=k,v===0){D=!0;break}}if(r[_++]=o[y++],--p===1){D=!0;break}T--}while(M>=Qc||k>=Qc);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),p===1){for(g=0;g<v;g++)r[_+g]=r[b+g];r[_+v]=o[y]}else{if(p===0)throw new Error;for(g=0;g<p;g++)r[_+g]=o[y+g]}}function h(d,p,m,v){var g=0;for(g=0;g<v;g++)o[g]=r[m+g];var y=d+p-1,b=v-1,_=m+v-1,T=0,M=0;if(r[_--]=r[y--],--p===0){for(T=_-(v-1),g=0;g<v;g++)r[T+g]=o[g];return}if(v===1){for(_-=p,y-=p,M=_+1,T=y+1,g=p-1;g>=0;g--)r[M+g]=r[T+g];r[_]=o[b];return}for(var k=t;;){var D=0,P=0,O=!1;do if(e(o[b],r[y])<0){if(r[_--]=r[y--],D++,P=0,--p===0){O=!0;break}}else if(r[_--]=o[b--],P++,D=0,--v===1){O=!0;break}while((D|P)<k);if(O)break;do{if(D=p-yy(o[b],r,d,p,p-1,e),D!==0){for(_-=D,y-=D,p-=D,M=_+1,T=y+1,g=D-1;g>=0;g--)r[M+g]=r[T+g];if(p===0){O=!0;break}}if(r[_--]=o[b--],--v===1){O=!0;break}if(P=v-gy(r[y],o,0,v,v-1,e),P!==0){for(_-=P,b-=P,v-=P,M=_+1,T=b+1,g=0;g<P;g++)r[M+g]=o[T+g];if(v<=1){O=!0;break}}if(r[_--]=r[y--],--p===0){O=!0;break}k--}while(D>=Qc||P>=Qc);if(O)break;k<0&&(k=0),k+=2}if(t=k,t<1&&(t=1),v===1){for(_-=p,y-=p,M=_+1,T=y+1,g=p-1;g>=0;g--)r[M+g]=r[T+g];r[_]=o[b]}else{if(v===0)throw new Error;for(T=_-(v-1),g=0;g<v;g++)r[T+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function tp(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<u6){a=c6(r,t,n,e),f6(r,t,n,t+a,e);return}var o=pG(r,e),s=hG(i);do{if(a=c6(r,t,n,e),a<s){var l=i;l>s&&(l=s),f6(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var qn=1,tf=2,ou=4,h6=!1;function by(){h6||(h6=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d6(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var vG=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d6}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,tp(n,d6)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=i,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),h=0;h<f.length;h++){var d=f[h];e.__dirty&&(d.__dirty|=qn),this._updateAndAddDisplayable(d,s,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(by(),p.z=0),isNaN(p.z2)&&(by(),p.z2=0),isNaN(p.zlevel)&&(by(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=ae(this._roots,e);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),ep;ep=we.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ef={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ef.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ef.bounceIn(r*2)*.5:ef.bounceOut(r*2-1)*.5+.5}},rp=Math.pow,bo=Math.sqrt,np=1e-8,p6=1e-4,v6=bo(3),ip=1/3,Ki=ws(),li=ws(),su=ws();function _o(r){return r>-np&&r<np}function m6(r){return r>np||r<-np}function jr(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function g6(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function ap(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(_o(c)&&_o(f))if(_o(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[d++]=p)}else{var m=f*f-4*c*h;if(_o(m)){var v=f/c,p=-s/o+v,g=-v/2;p>=0&&p<=1&&(a[d++]=p),g>=0&&g<=1&&(a[d++]=g)}else if(m>0){var y=bo(m),b=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);b<0?b=-rp(-b,ip):b=rp(b,ip),_<0?_=-rp(-_,ip):_=rp(_,ip);var p=(-s-(b+_))/(3*o);p>=0&&p<=1&&(a[d++]=p)}else{var T=(2*c*s-3*o*f)/(2*bo(c*c*c)),M=Math.acos(T)/3,k=bo(c),D=Math.cos(M),p=(-s-2*k*D)/(3*o),g=(-s+k*(D+v6*Math.sin(M)))/(3*o),P=(-s+k*(D-v6*Math.sin(M)))/(3*o);p>=0&&p<=1&&(a[d++]=p),g>=0&&g<=1&&(a[d++]=g),P>=0&&P<=1&&(a[d++]=P)}}return d}function y6(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(_o(o)){if(m6(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(_o(c))i[0]=-a/(2*o);else if(c>0){var f=bo(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function wo(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function b6(r,e,t,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,p,m,v,g;Ki[0]=l,Ki[1]=u;for(var y=0;y<1;y+=.05)li[0]=jr(r,t,i,o,y),li[1]=jr(e,n,a,s,y),v=Ss(Ki,li),v<d&&(f=y,d=v);d=1/0;for(var b=0;b<32&&!(h<p6);b++)p=f-h,m=f+h,li[0]=jr(r,t,i,o,p),li[1]=jr(e,n,a,s,p),v=Ss(li,Ki),p>=0&&v<d?(f=p,d=v):(su[0]=jr(r,t,i,o,m),su[1]=jr(e,n,a,s,m),g=Ss(su,Ki),m<=1&&g<d?(f=m,d=g):h*=.5);return c&&(c[0]=jr(r,t,i,o,f),c[1]=jr(e,n,a,s,f)),bo(d)}function mG(r,e,t,n,i,a,o,s,l){for(var u=r,c=e,f=0,h=1/l,d=1;d<=l;d++){var p=d*h,m=jr(r,t,i,o,p),v=jr(e,n,a,s,p),g=m-u,y=v-c;f+=Math.sqrt(g*g+y*y),u=m,c=v}return f}function Zr(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function _y(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function gG(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(_o(a)){if(m6(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(_o(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=bo(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function _6(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function rf(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function w6(r,e,t,n,i,a,o,s,l){var u,c=.005,f=1/0;Ki[0]=o,Ki[1]=s;for(var h=0;h<1;h+=.05){li[0]=Zr(r,t,i,h),li[1]=Zr(e,n,a,h);var d=Ss(Ki,li);d<f&&(u=h,f=d)}f=1/0;for(var p=0;p<32&&!(c<p6);p++){var m=u-c,v=u+c;li[0]=Zr(r,t,i,m),li[1]=Zr(e,n,a,m);var d=Ss(li,Ki);if(m>=0&&d<f)u=m,f=d;else{su[0]=Zr(r,t,i,v),su[1]=Zr(e,n,a,v);var g=Ss(su,Ki);v<=1&&g<f?(u=v,f=g):c*=.5}}return l&&(l[0]=Zr(r,t,i,u),l[1]=Zr(e,n,a,u)),bo(f)}function yG(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,d=Zr(r,t,i,h),p=Zr(e,n,a,h),m=d-s,v=p-l;u+=Math.sqrt(m*m+v*v),s=d,l=p}return u}var bG=/cubic-bezier\(([0-9,\.e ]+)\)/;function wy(r){var e=r&&bG.exec(r);if(e){var t=e[1].split(","),n=+ai(t[0]),i=+ai(t[1]),a=+ai(t[2]),o=+ai(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ap(0,n,a,1,l,s)&&jr(0,i,o,1,s[0])}}}var _G=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||br,this.ondestroy=e.ondestroy||br,this.onrestart=e.onrestart||br,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ft(e)?e:ef[e]||wy(e)},r})(),x6=(function(){function r(e){this.value=e}return r})(),wG=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new x6(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),lu=(function(){function r(e){this._list=new wG,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new x6(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),S6={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Di(r){return r=Math.round(r),r<0?0:r>255?255:r}function xG(r){return r=Math.round(r),r<0?0:r>360?360:r}function nf(r){return r<0?0:r>1?1:r}function xy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Di(parseFloat(e)/100*255):Di(parseInt(e,10))}function xo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?nf(parseFloat(e)/100):nf(parseFloat(e))}function Sy(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function So(r,e,t){return r+(e-r)*t}function ui(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Ty(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var T6=new lu(20),op=null;function uu(r,e){op&&Ty(op,e),op=T6.put(r,op||e.slice())}function Bn(r,e){if(r){e=e||[];var t=T6.get(r);if(t)return Ty(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in S6)return Ty(e,S6[n]),uu(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ui(e,0,0,0,1);return}return ui(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),uu(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ui(e,0,0,0,1);return}return ui(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),uu(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ui(e,+u[0],+u[1],+u[2],1):ui(e,0,0,0,1);c=xo(u.pop());case"rgb":if(u.length>=3)return ui(e,xy(u[0]),xy(u[1]),xy(u[2]),u.length===3?c:xo(u[3])),uu(r,e),e;ui(e,0,0,0,1);return;case"hsla":if(u.length!==4){ui(e,0,0,0,1);return}return u[3]=xo(u[3]),Cy(u,e),uu(r,e),e;case"hsl":if(u.length!==3){ui(e,0,0,0,1);return}return Cy(u,e),uu(r,e),e;default:return}}ui(e,0,0,0,1)}}function Cy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=xo(r[1]),i=xo(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],ui(e,Di(Sy(o,a,t+1/3)*255),Di(Sy(o,a,t)*255),Di(Sy(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function SG(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,f=((a-t)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-f:t===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return r[3]!=null&&d.push(r[3]),d}}function Ey(r,e){var t=Bn(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Ji(t,t.length===4?"rgba":"rgb")}}function My(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=Di(So(o[0],s[0],l)),t[1]=Di(So(o[1],s[1],l)),t[2]=Di(So(o[2],s[2],l)),t[3]=nf(So(o[3],s[3],l)),t}}function TG(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Bn(e[i]),s=Bn(e[a]),l=n-i,u=Ji([Di(So(o[0],s[0],l)),Di(So(o[1],s[1],l)),Di(So(o[2],s[2],l)),nf(So(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function To(r,e,t,n){var i=Bn(r);if(r)return i=SG(i),e!=null&&(i[0]=xG(Ft(e)?e(i[0]):e)),t!=null&&(i[1]=xo(Ft(t)?t(i[1]):t)),n!=null&&(i[2]=xo(Ft(n)?n(i[2]):n)),Ji(Cy(i),"rgba")}function sp(r,e){var t=Bn(r);if(t&&e!=null)return t[3]=nf(e),Ji(t,"rgba")}function Ji(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function lp(r,e){var t=Bn(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var C6=new lu(100);function Ay(r){if(Et(r)){var e=C6.get(r);return e||(e=Ey(r,-.1),C6.put(r,e)),e}else if($d(r)){var t=vt({},r);return t.colorStops=bt(r.colorStops,function(n){return{offset:n.offset,color:Ey(n.color,-.1)}}),t}return r}var up=Math.round;function af(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Bn(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var E6=1e-4;function Co(r){return r<E6&&r>-E6}function cp(r){return up(r*1e3)/1e3}function ky(r){return up(r*1e4)/1e4}function CG(r){return"matrix("+cp(r[0])+","+cp(r[1])+","+cp(r[2])+","+cp(r[3])+","+ky(r[4])+","+ky(r[5])+")"}var EG={left:"start",right:"end",center:"middle",middle:"middle"};function MG(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function AG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function kG(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function M6(r){return r&&!!r.image}function DG(r){return r&&!!r.svgElement}function Dy(r){return M6(r)||DG(r)}function A6(r){return r.type==="linear"}function k6(r){return r.type==="radial"}function D6(r){return r&&(r.type==="linear"||r.type==="radial")}function fp(r){return"url(#"+r+")"}function I6(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function L6(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*qd,i=Pt(r.scaleX,1),a=Pt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+up(o*qd)+"deg, "+up(s*qd)+"deg)"),l.join(" ")}var IG=(function(){return we.hasGlobalWindow&&Ft(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&Ai("Base64 isn't natively supported in the current environment."),null}})(),Iy=Array.prototype.slice;function Oa(r,e,t){return(e-r)*t+r}function Ly(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=Oa(e[a],t[a],n);return r}function LG(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Oa(e[o][s],t[o][s],n)}return r}function hp(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function P6(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function PG(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function OG(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:Iy.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function of(r){if(dn(r)){var e=r.length;if(dn(r[0])){for(var t=[],n=0;n<e;n++)t.push(Iy.call(r[n]));return t}return Iy.call(r)}return r}function dp(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function NG(r){return dn(r&&r[0])?2:1}var pp=0,vp=1,O6=2,sf=3,Py=4,Oy=5,N6=6;function R6(r){return r===Py||r===Oy}function mp(r){return r===vp||r===O6}var lf=[0,0,0,0],RG=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=N6,l=t;if(dn(t)){var u=NG(t);s=u,(u===1&&!Me(t[0])||u===2&&!Me(t[0][0]))&&(o=!0)}else if(Me(t)&&!qr(t))s=pp;else if(Et(t))if(!isNaN(+t))s=pp;else{var c=Bn(t);c&&(l=c,s=sf)}else if($d(t)){var f=vt({},l);f.colorStops=bt(t.colorStops,function(d){return{offset:d.offset,color:Bn(d.color)}}),A6(t)?s=Py:k6(t)&&(s=Oy),l=f}a===0?this.valType=s:(s!==this.valType||s===N6)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Ft(n)?n:ef[n]||wy(n)),i.push(h),h},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(m,v){return m.time-v.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=mp(i),u=R6(i),c=0;c<a;c++){var f=n[c],h=f.value,d=o.value;f.percent=f.time/e,s||(l&&c!==a-1?OG(h,d,i):u&&PG(h.colorStops,d.colorStops))}if(!s&&i!==Oy&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,c=0;c<a;c++)i===pp?n[c].additiveValue=n[c].value-p:i===sf?n[c].additiveValue=hp([],n[c].value,p,-1):mp(i)&&(n[c].additiveValue=i===vp?hp([],n[c].value,p,-1):P6([],n[c].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===sf,c,f=this._lastFr,h=Math.min,d,p;if(s===1)d=p=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var m=h(f+1,s-1);for(c=m;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}p=o[c+1],d=o[c]}if(d&&p){this._lastFr=c,this._lastFrP=t;var v=p.percent-d.percent,g=v===0?1:h((t-d.percent)/v,1);p.easingFunc&&(g=p.easingFunc(g));var y=n?this._additiveValue:u?lf:e[l];if((mp(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?d.rawValue:p.rawValue;else if(mp(a))a===vp?Ly(y,d[i],p[i],g):LG(y,d[i],p[i],g);else if(R6(a)){var b=d[i],_=p[i],T=a===Py;e[l]={type:T?"linear":"radial",x:Oa(b.x,_.x,g),y:Oa(b.y,_.y,g),colorStops:bt(b.colorStops,function(k,D){var P=_.colorStops[D];return{offset:Oa(k.offset,P.offset,g),color:dp(Ly([],k.color,P.color,g))}}),global:_.global},T?(e[l].x2=Oa(b.x2,_.x2,g),e[l].y2=Oa(b.y2,_.y2,g)):e[l].r=Oa(b.r,_.r,g)}else if(u)Ly(y,d[i],p[i],g),n||(e[l]=dp(y));else{var M=Oa(d[i],p[i],g);n?this._additiveValue=M:e[l]=M}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===pp?e[n]=e[n]+i:t===sf?(Bn(e[n],lf),hp(lf,lf,i,1),e[n]=dp(lf)):t===vp?hp(e[n],e[n],i,1):t===O6&&P6(e[n],e[n],i,1)},r})(),Ny=(function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){Ai("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,xe(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new RG(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===sf&&u&&(u=dp(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,of(u),i),this._trackKeys.push(s)}l.addKeyframe(e,of(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new _G({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){t._started=2;var p=t._additiveAnimators;if(p){for(var m=!1,v=0;v<p.length;v++)if(p[v]._clip){m=!0;break}m||(t._additiveAnimators=null)}for(var v=0;v<n.length;v++)n[v].step(t._target,d);var g=t._onframeCbs;if(g)for(var v=0;v<g.length;v++)g[v](t._target,d)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return bt(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=of(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||xe(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function cu(){return new Date().getTime()}var BG=(function(r){st(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=cu()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(ep(n),!t._paused&&t.update())}ep(n)},e.prototype.start=function(){this._running||(this._time=cu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=cu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=cu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new Ny(t,n.loop);return this.addAnimator(i),i},e})(oi),FG=300,Ry=we.domSupported,By=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=bt(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}})(),B6={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},F6=!1;function Fy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function VG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Vy(r){r&&(r.zrByTouch=!0)}function zG(r,e){return si(r.dom,new jG(r,e),!0)}function V6(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var jG=(function(){function r(e,t){this.stopPropagation=br,this.stopImmediatePropagation=br,this.preventDefault=br,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Ii={mousedown:function(r){r=si(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=si(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=si(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=si(this.dom,r);var e=r.toElement||r.relatedTarget;V6(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){F6=!0,r=si(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){F6||(r=si(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=si(this.dom,r),Vy(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ii.mousemove.call(this,r),Ii.mousedown.call(this,r)},touchmove:function(r){r=si(this.dom,r),Vy(r),this.handler.processGesture(r,"change"),Ii.mousemove.call(this,r)},touchend:function(r){r=si(this.dom,r),Vy(r),this.handler.processGesture(r,"end"),Ii.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<FG&&Ii.click.call(this,r)},pointerdown:function(r){Ii.mousedown.call(this,r)},pointermove:function(r){Fy(r)||Ii.mousemove.call(this,r)},pointerup:function(r){Ii.mouseup.call(this,r)},pointerout:function(r){Fy(r)||Ii.mouseout.call(this,r)}};K(["click","dblclick","contextmenu"],function(r){Ii[r]=function(e){e=si(this.dom,e),this.trigger(r,e)}});var zy={pointermove:function(r){Fy(r)||zy.mousemove.call(this,r)},pointerup:function(r){zy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function HG(r,e){var t=e.domHandlers;we.pointerEventsSupported?K(By.pointer,function(n){gp(e,n,function(i){t[n].call(r,i)})}):(we.touchEventsSupported&&K(By.touch,function(n){gp(e,n,function(i){t[n].call(r,i),VG(e)})}),K(By.mouse,function(n){gp(e,n,function(i){i=cy(i),e.touching||t[n].call(r,i)})}))}function UG(r,e){we.pointerEventsSupported?K(B6.pointer,t):we.touchEventsSupported||K(B6.mouse,t);function t(n){function i(a){a=cy(a),V6(r,a.target)||(a=zG(r,a),e.domHandlers[n].call(r,a))}gp(e,n,i,{capture:!0})}}function gp(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,fy(r.domTarget,e,t,n)}function jy(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&tG(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var z6=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),$G=(function(r){st(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new z6(t,Ii),Ry&&(i._globalHandlerScope=new z6(document,zy)),HG(i,i._localHandlerScope),i}return e.prototype.dispose=function(){jy(this._localHandlerScope),Ry&&jy(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ry&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?UG(this,n):jy(n)}},e})(oi),j6=1;we.hasGlobalWindow&&(j6=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var yp=j6,Hy=.4,Uy="#333",$y="#ccc",GG="#eee",H6=Jd,U6=5e-5;function ks(r){return r>U6||r<-U6}var Ds=[],fu=[],Gy=Xr(),Wy=Math.abs,Na=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ks(this.rotation)||ks(this.x)||ks(this.y)||ks(this.scaleX-1)||ks(this.scaleY-1)||ks(this.skewX)||ks(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(H6(n),this.invTransform=null);return}n=n||Xr(),t?this.getLocalTransform(n):H6(n),e&&(t?Xi(n,e,n):Qd(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ds);var n=Ds[0]<0?-1:1,i=Ds[1]<0?-1:1,a=((Ds[0]-n)*t+n)/Ds[0]||0,o=((Ds[1]-i)*t+i)/Ds[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Xr(),ki(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Xr(),Xi(fu,e.invTransform,t),t=fu);var n=this.originX,i=this.originY;(n||i)&&(Gy[4]=n,Gy[5]=i,Xi(fu,t,Gy),fu[4]-=n,fu[5]-=i,t=fu),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&_r(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&_r(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Wy(e[0]-1)>1e-10&&Wy(e[3]-1)>1e-10?Math.sqrt(Wy(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){bp(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,m=i+l;t[4]=-p*a-h*m*o,t[5]=-m*o-d*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=h*o,u&&yo(t,t,u),t[4]+=n+c,t[5]+=i+f,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Qi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bp(r,e){for(var t=0;t<Qi.length;t++){var n=Qi[t];r[n]=e[n]}}function ta(r){_p||(_p=new lu(100)),r=r||Ia;var e=_p.get(r);return e||(e={font:r,strWidthCache:new lu(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Mi.measureText("国",r).width,asciiCharWidth:Mi.measureText("a",r).width},_p.put(r,e)),e}var _p;function WG(r){if(!(Yy>=$6)){r=r||Ia;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=Mi.measureText(String.fromCharCode(n),r).width;var i=+new Date-t;return i>16?Yy=$6:i>2&&Yy++,e}}var Yy=0,$6=5;function G6(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=WG(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function ea(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=Mi.measureText(e,r.font).width,t.put(e,n)),n}function W6(r,e,t,n){var i=ea(ta(e),r),a=uf(e),o=hu(0,i,t),s=Is(0,a,n),l=new qt(o,s,i,a);return l}function wp(r,e,t,n){var i=((r||"")+"").split(`
18
+ `)},{immediate:!0})},aU=(r,e)=>{iU({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},j.computed(()=>r.type==="text"));const t=j.inject(C4,void 0),n=I0("button"),{form:i}=c4(),a=h4(j.computed(()=>t?.size)),o=B0(),s=j.ref(),l=j.useSlots(),u=j.computed(()=>{var g;return r.type||t?.type||((g=n.value)==null?void 0:g.type)||""}),c=j.computed(()=>{var g,y,b;return(b=(y=r.autoInsertSpace)!=null?y:(g=n.value)==null?void 0:g.autoInsertSpace)!=null?b:!1}),f=j.computed(()=>{var g,y,b;return(b=(y=r.plain)!=null?y:(g=n.value)==null?void 0:g.plain)!=null?b:!1}),h=j.computed(()=>{var g,y,b;return(b=(y=r.round)!=null?y:(g=n.value)==null?void 0:g.round)!=null?b:!1}),d=j.computed(()=>{var g,y,b;return(b=(y=r.text)!=null?y:(g=n.value)==null?void 0:g.text)!=null?b:!1}),p=j.computed(()=>r.tag==="button"?{ariaDisabled:o.value||r.loading,disabled:o.value||r.loading,autofocus:r.autofocus,type:r.nativeType}:{}),m=j.computed(()=>{var g;const y=(g=l.default)==null?void 0:g.call(l);if(c.value&&y?.length===1){const b=y[0];if(b?.type===j.Text){const _=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,_props:p,_plain:f,_round:h,_text:d,shouldAddSpace:m,handleClick:g=>{if(o.value||r.loading){g.stopPropagation();return}r.nativeType==="reset"&&i?.resetFields(),e("click",g)}}},U0=ka({size:D0,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Kl},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Kl,default:()=>Dd},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:mr([String,Object]),default:"button"}}),oU={click:r=>r instanceof MouseEvent};function nn(r,e){sU(r)&&(r="100%");var t=lU(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function Bd(r){return Math.min(1,Math.max(0,r))}function sU(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function lU(r){return typeof r=="string"&&r.indexOf("%")!==-1}function E4(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Fd(r){return r<=1?"".concat(Number(r)*100,"%"):r}function ms(r){return r.length===1?"0"+r:String(r)}function uU(r,e,t){return{r:nn(r,255)*255,g:nn(e,255)*255,b:nn(t,255)*255}}function M4(r,e,t){r=nn(r,255),e=nn(e,255),t=nn(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case r:a=(e-t)/l+(e<t?6:0);break;case e:a=(t-r)/l+2;break;case t:a=(r-e)/l+4;break}a/=6}return{h:a,s:o,l:s}}function $0(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function cU(r,e,t){var n,i,a;if(r=nn(r,360),e=nn(e,100),t=nn(t,100),e===0)i=t,a=t,n=t;else{var o=t<.5?t*(1+e):t+e-t*e,s=2*t-o;n=$0(s,o,r+1/3),i=$0(s,o,r),a=$0(s,o,r-1/3)}return{r:n*255,g:i*255,b:a*255}}function A4(r,e,t){r=nn(r,255),e=nn(e,255),t=nn(t,255);var n=Math.max(r,e,t),i=Math.min(r,e,t),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case r:a=(e-t)/s+(e<t?6:0);break;case e:a=(t-r)/s+2;break;case t:a=(r-e)/s+4;break}a/=6}return{h:a,s:l,v:o}}function fU(r,e,t){r=nn(r,360)*6,e=nn(e,100),t=nn(t,100);var n=Math.floor(r),i=r-n,a=t*(1-e),o=t*(1-i*e),s=t*(1-(1-i)*e),l=n%6,u=[t,o,a,a,s,t][l],c=[s,t,t,o,a,a][l],f=[a,a,s,t,t,o][l];return{r:u*255,g:c*255,b:f*255}}function k4(r,e,t,n){var i=[ms(Math.round(r).toString(16)),ms(Math.round(e).toString(16)),ms(Math.round(t).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function hU(r,e,t,n,i){var a=[ms(Math.round(r).toString(16)),ms(Math.round(e).toString(16)),ms(Math.round(t).toString(16)),ms(dU(n))];return i&&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 dU(r){return Math.round(parseFloat(r)*255).toString(16)}function D4(r){return Wn(r)/255}function Wn(r){return parseInt(r,16)}function pU(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var G0={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 vU(r){var e={r:0,g:0,b:0},t=1,n=null,i=null,a=null,o=!1,s=!1;return typeof r=="string"&&(r=yU(r)),typeof r=="object"&&(Da(r.r)&&Da(r.g)&&Da(r.b)?(e=uU(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Da(r.h)&&Da(r.s)&&Da(r.v)?(n=Fd(r.s),i=Fd(r.v),e=fU(r.h,n,i),o=!0,s="hsv"):Da(r.h)&&Da(r.s)&&Da(r.l)&&(n=Fd(r.s),a=Fd(r.l),e=cU(r.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=E4(t),{ok:o,format:r.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:t}}var mU="[-\\+]?\\d+%?",gU="[-\\+]?\\d*\\.\\d+%?",fo="(?:".concat(gU,")|(?:").concat(mU,")"),W0="[\\s|\\(]+(".concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")\\s*\\)?"),Y0="[\\s|\\(]+(".concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")\\s*\\)?"),Ci={CSS_UNIT:new RegExp(fo),rgb:new RegExp("rgb"+W0),rgba:new RegExp("rgba"+Y0),hsl:new RegExp("hsl"+W0),hsla:new RegExp("hsla"+Y0),hsv:new RegExp("hsv"+W0),hsva:new RegExp("hsva"+Y0),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 yU(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var e=!1;if(G0[r])r=G0[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Ci.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=Ci.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ci.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=Ci.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ci.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=Ci.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ci.hex8.exec(r),t?{r:Wn(t[1]),g:Wn(t[2]),b:Wn(t[3]),a:D4(t[4]),format:e?"name":"hex8"}:(t=Ci.hex6.exec(r),t?{r:Wn(t[1]),g:Wn(t[2]),b:Wn(t[3]),format:e?"name":"hex"}:(t=Ci.hex4.exec(r),t?{r:Wn(t[1]+t[1]),g:Wn(t[2]+t[2]),b:Wn(t[3]+t[3]),a:D4(t[4]+t[4]),format:e?"name":"hex8"}:(t=Ci.hex3.exec(r),t?{r:Wn(t[1]+t[1]),g:Wn(t[2]+t[2]),b:Wn(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function Da(r){return!!Ci.CSS_UNIT.exec(String(r))}var bU=(function(){function r(e,t){e===void 0&&(e=""),t===void 0&&(t={});var n;if(e instanceof r)return e;typeof e=="number"&&(e=pU(e)),this.originalInput=e;var i=vU(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=t.format)!==null&&n!==void 0?n:i.format,this.gradientType=t.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=i.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},r.prototype.getLuminance=function(){var e=this.toRgb(),t,n,i,a=e.r/255,o=e.g/255,s=e.b/255;return a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*n+.0722*i},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(e){return this.a=E4(e),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},r.prototype.toHsv=function(){var e=A4(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},r.prototype.toHsvString=function(){var e=A4(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var e=M4(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},r.prototype.toHslString=function(){var e=M4(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(e){return e===void 0&&(e=!1),k4(this.r,this.g,this.b,e)},r.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},r.prototype.toHex8=function(e){return e===void 0&&(e=!1),hU(this.r,this.g,this.b,this.a,e)},r.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},r.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(nn(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(nn(t,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,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+k4(this.r,this.g,this.b,!1),t=0,n=Object.entries(G0);t<n.length;t++){var i=n[t],a=i[0],o=i[1];if(e===o)return a}return!1},r.prototype.toString=function(e){var t=!!e;e=e??this.format;var n=!1,i=this.a<1&&this.a>=0,a=!t&&i&&(e.startsWith("hex")||e==="name");return a?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=Bd(t.l),new r(t)},r.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new r(t)},r.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=Bd(t.l),new r(t)},r.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},r.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},r.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=Bd(t.s),new r(t)},r.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=Bd(t.s),new r(t)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(e){var t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new r(t)},r.prototype.mix=function(e,t){t===void 0&&(t=50);var n=this.toRgb(),i=new r(e).toRgb(),a=t/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new r(o)},r.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var n=this.toHsl(),i=360/t,a=[this];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(new r(n));return a},r.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new r(e)},r.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),n=t.h,i=t.s,a=t.v,o=[],s=1/e;e--;)o.push(new r({h:n,s:i,v:a})),a=(a+s)%1;return o},r.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new r({h:(t+72)%360,s:e.s,l:e.l}),new r({h:(t+216)%360,s:e.s,l:e.l})]},r.prototype.onBackground=function(e){var t=this.toRgb(),n=new r(e).toRgb(),i=t.a+n.a*(1-t.a);return new r({r:(t.r*t.a+n.r*n.a*(1-t.a))/i,g:(t.g*t.a+n.g*n.a*(1-t.a))/i,b:(t.b*t.a+n.b*n.a*(1-t.a))/i,a:i})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(e){for(var t=this.toHsl(),n=t.h,i=[this],a=360/e,o=1;o<e;o++)i.push(new r({h:(n+o*a)%360,s:t.s,l:t.l}));return i},r.prototype.equals=function(e){return this.toRgbString()===new r(e).toRgbString()},r})();function ho(r,e=20){return r.mix("#141414",e).toString()}function _U(r){const e=B0(),t=Wi("button");return j.computed(()=>{let n={},i=r.color;if(i){const a=i.match(/var\((.*?)\)/);a&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const o=new bU(i),s=r.dark?o.tint(20).toString():ho(o,20);if(r.plain)n=t.cssVarBlock({"bg-color":r.dark?ho(o,90):o.tint(90).toString(),"text-color":i,"border-color":r.dark?ho(o,50):o.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":s,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(n[t.cssVarBlockName("disabled-bg-color")]=r.dark?ho(o,90):o.tint(90).toString(),n[t.cssVarBlockName("disabled-text-color")]=r.dark?ho(o,50):o.tint(50).toString(),n[t.cssVarBlockName("disabled-border-color")]=r.dark?ho(o,80):o.tint(80).toString());else{const l=r.dark?ho(o,30):o.tint(30).toString(),u=o.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(n=t.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const c=r.dark?ho(o,50):o.tint(50).toString();n[t.cssVarBlockName("disabled-bg-color")]=c,n[t.cssVarBlockName("disabled-text-color")]=r.dark?"rgba(255, 255, 255, 0.5)":`var(${t.cssVarName("color-white")})`,n[t.cssVarBlockName("disabled-border-color")]=c}}}return n})}const wU=j.defineComponent({name:"ElButton"}),xU=j.defineComponent({...wU,props:U0,emits:oU,setup(r,{expose:e,emit:t}){const n=r,i=_U(n),a=Wi("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,_plain:f,_round:h,_text:d,shouldAddSpace:p,handleClick:m}=aU(n,t),v=j.computed(()=>[a.b(),a.m(l.value),a.m(s.value),a.is("disabled",u.value),a.is("loading",n.loading),a.is("plain",f.value),a.is("round",h.value),a.is("circle",n.circle),a.is("text",d.value),a.is("link",n.link),a.is("has-bg",n.bg)]);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:p}),(g,y)=>(j.openBlock(),j.createBlock(j.resolveDynamicComponent(g.tag),j.mergeProps({ref_key:"_ref",ref:o},j.unref(c),{class:j.unref(v),style:j.unref(i),onClick:j.unref(m)}),{default:j.withCtx(()=>[g.loading?(j.openBlock(),j.createElementBlock(j.Fragment,{key:0},[g.$slots.loading?j.renderSlot(g.$slots,"loading",{key:0}):(j.openBlock(),j.createBlock(j.unref(Yi),{key:1,class:j.normalizeClass(j.unref(a).is("loading"))},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(j.openBlock(),j.createBlock(j.unref(Yi),{key:1},{default:j.withCtx(()=>[g.icon?(j.openBlock(),j.createBlock(j.resolveDynamicComponent(g.icon),{key:0})):j.renderSlot(g.$slots,"icon",{key:1})]),_:3})):j.createCommentVNode("v-if",!0),g.$slots.default?(j.openBlock(),j.createElementBlock("span",{key:2,class:j.normalizeClass({[j.unref(a).em("text","expand")]:j.unref(p)})},[j.renderSlot(g.$slots,"default")],2)):j.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var SU=uo(xU,[["__file","button.vue"]]);const TU={size:U0.size,type:U0.type},CU=j.defineComponent({name:"ElButtonGroup"}),EU=j.defineComponent({...CU,props:TU,setup(r){const e=r;j.provide(C4,j.reactive({size:j.toRef(e,"size"),type:j.toRef(e,"type")}));const t=Wi("button");return(n,i)=>(j.openBlock(),j.createElementBlock("div",{class:j.normalizeClass(j.unref(t).b("group"))},[j.renderSlot(n.$slots,"default")],2))}});var I4=uo(EU,[["__file","button-group.vue"]]);const MU=Wc(SU,{ButtonGroup:I4});Wj(I4);var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L4(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Vd={exports:{}},AU=Vd.exports,P4;function kU(){return P4||(P4=1,(function(r,e){(function(t,n){r.exports=n()})(AU,(function(){var t=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var E=["th","st","nd","rd"],w=I%100;return"["+I+(E[(w-20)%10]||E[w]||E[0])+"]"}},b=function(I,E,w){var S=String(I);return!S||S.length>=E?I:""+Array(E+1-S.length).join(w)+I},_={s:b,z:function(I){var E=-I.utcOffset(),w=Math.abs(E),S=Math.floor(w/60),x=w%60;return(E<=0?"+":"-")+b(S,2,"0")+":"+b(x,2,"0")},m:function I(E,w){if(E.date()<w.date())return-I(w,E);var S=12*(w.year()-E.year())+(w.month()-E.month()),x=E.clone().add(S,f),C=w-x<0,L=E.clone().add(S+(C?-1:1),f);return+(-(S+(w-x)/(C?x-L:L-x))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},T="en",M={};M[T]=y;var k="$isDayjsObject",D=function(I){return I instanceof R||!(!I||!I[k])},P=function I(E,w,S){var x;if(!E)return T;if(typeof E=="string"){var C=E.toLowerCase();M[C]&&(x=C),w&&(M[C]=w,x=C);var L=E.split("-");if(!x&&L.length>1)return I(L[0])}else{var F=E.name;M[F]=E,x=F}return!S&&x&&(T=x),x||!S&&T},O=function(I,E){if(D(I))return I.clone();var w=typeof E=="object"?E:{};return w.date=I,w.args=arguments,new R(w)},B=_;B.l=P,B.i=D,B.w=function(I,E){return O(I,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var R=(function(){function I(w){this.$L=P(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[k]=!0}var E=I.prototype;return E.parse=function(w){this.$d=(function(S){var x=S.date,C=S.utc;if(x===null)return new Date(NaN);if(B.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var L=x.match(v);if(L){var F=L[2]-1||0,z=(L[7]||"0").substring(0,3);return C?new Date(Date.UTC(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)):new Date(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,z)}}return new Date(x)})(w),this.init()},E.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},E.$utils=function(){return B},E.isValid=function(){return this.$d.toString()!==m},E.isSame=function(w,S){var x=O(w);return this.startOf(S)<=x&&x<=this.endOf(S)},E.isAfter=function(w,S){return O(w)<this.startOf(S)},E.isBefore=function(w,S){return this.endOf(S)<O(w)},E.$g=function(w,S,x){return B.u(w)?this[S]:this.set(x,w)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(w,S){var x=this,C=!!B.u(S)||S,L=B.p(w),F=function(N,U){var W=B.w(x.$u?Date.UTC(x.$y,U,N):new Date(x.$y,U,N),x);return C?W:W.endOf(u)},z=function(N,U){return B.w(x.toDate()[N].apply(x.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(U)),x)},$=this.$W,G=this.$M,Z=this.$D,H="set"+(this.$u?"UTC":"");switch(L){case d:return C?F(1,0):F(31,11);case f:return C?F(1,G):F(0,G+1);case c:var q=this.$locale().weekStart||0,V=($<q?$+7:$)-q;return F(C?Z-V:Z+(6-V),G);case u:case p:return z(H+"Hours",0);case l:return z(H+"Minutes",1);case s:return z(H+"Seconds",2);case o:return z(H+"Milliseconds",3);default:return this.clone()}},E.endOf=function(w){return this.startOf(w,!1)},E.$set=function(w,S){var x,C=B.p(w),L="set"+(this.$u?"UTC":""),F=(x={},x[u]=L+"Date",x[p]=L+"Date",x[f]=L+"Month",x[d]=L+"FullYear",x[l]=L+"Hours",x[s]=L+"Minutes",x[o]=L+"Seconds",x[a]=L+"Milliseconds",x)[C],z=C===u?this.$D+(S-this.$W):S;if(C===f||C===d){var $=this.clone().set(p,1);$.$d[F](z),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else F&&this.$d[F](z);return this.init(),this},E.set=function(w,S){return this.clone().$set(w,S)},E.get=function(w){return this[B.p(w)]()},E.add=function(w,S){var x,C=this;w=Number(w);var L=B.p(S),F=function(G){var Z=O(C);return B.w(Z.date(Z.date()+Math.round(G*w)),C)};if(L===f)return this.set(f,this.$M+w);if(L===d)return this.set(d,this.$y+w);if(L===u)return F(1);if(L===c)return F(7);var z=(x={},x[s]=n,x[l]=i,x[o]=t,x)[L]||1,$=this.$d.getTime()+w*z;return B.w($,this)},E.subtract=function(w,S){return this.add(-1*w,S)},E.format=function(w){var S=this,x=this.$locale();if(!this.isValid())return x.invalidDate||m;var C=w||"YYYY-MM-DDTHH:mm:ssZ",L=B.z(this),F=this.$H,z=this.$m,$=this.$M,G=x.weekdays,Z=x.months,H=x.meridiem,q=function(U,W,X,Y){return U&&(U[W]||U(S,C))||X[W].slice(0,Y)},V=function(U){return B.s(F%12||12,U,"0")},N=H||function(U,W,X){var Y=U<12?"AM":"PM";return X?Y.toLowerCase():Y};return C.replace(g,(function(U,W){return W||(function(X){switch(X){case"YY":return String(S.$y).slice(-2);case"YYYY":return B.s(S.$y,4,"0");case"M":return $+1;case"MM":return B.s($+1,2,"0");case"MMM":return q(x.monthsShort,$,Z,3);case"MMMM":return q(Z,$);case"D":return S.$D;case"DD":return B.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return q(x.weekdaysMin,S.$W,G,2);case"ddd":return q(x.weekdaysShort,S.$W,G,3);case"dddd":return G[S.$W];case"H":return String(F);case"HH":return B.s(F,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return N(F,z,!0);case"A":return N(F,z,!1);case"m":return String(z);case"mm":return B.s(z,2,"0");case"s":return String(S.$s);case"ss":return B.s(S.$s,2,"0");case"SSS":return B.s(S.$ms,3,"0");case"Z":return L}return null})(U)||L.replace(":","")}))},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(w,S,x){var C,L=this,F=B.p(S),z=O(w),$=(z.utcOffset()-this.utcOffset())*n,G=this-z,Z=function(){return B.m(L,z)};switch(F){case d:C=Z()/12;break;case f:C=Z();break;case h:C=Z()/3;break;case c:C=(G-$)/6048e5;break;case u:C=(G-$)/864e5;break;case l:C=G/i;break;case s:C=G/n;break;case o:C=G/t;break;default:C=G}return x?C:B.a(C)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return M[this.$L]},E.locale=function(w,S){if(!w)return this.$L;var x=this.clone(),C=P(w,S,!0);return C&&(x.$L=C),x},E.clone=function(){return B.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},I})(),A=R.prototype;return O.prototype=A,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach((function(I){A[I[1]]=function(E){return this.$g(E,I[0],I[1])}})),O.extend=function(I,E){return I.$i||(I(E,R,O),I.$i=!0),O},O.locale=P,O.isDayjs=D,O.unix=function(I){return O(1e3*I)},O.en=M[T],O.Ls=M,O.p={},O}))})(Vd)),Vd.exports}var DU=kU();const IU=L4(DU);var zd=(r=>(r[r.TEXT=1]="TEXT",r[r.CLASS=2]="CLASS",r[r.STYLE=4]="STYLE",r[r.PROPS=8]="PROPS",r[r.FULL_PROPS=16]="FULL_PROPS",r[r.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",r[r.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",r[r.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",r[r.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",r[r.NEED_PATCH=512]="NEED_PATCH",r[r.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",r[r.HOISTED=-1]="HOISTED",r[r.BAIL=-2]="BAIL",r))(zd||{});const LU=ka({a11y:{type:Boolean,default:!0},locale:{type:mr(Object)},size:D0,button:{type:mr(Object)},card:{type:mr(Object)},dialog:{type:mr(Object)},link:{type:mr(Object)},experimentalFeatures:{type:mr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:mr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Bj}),fn={placement:"top"},PU=j.defineComponent({name:"ElConfigProvider",props:LU,setup(r,{slots:e}){const t=J5(r);return j.watch(()=>r.message,n=>{var i,a;Object.assign(fn,(a=(i=t?.value)==null?void 0:i.message)!=null?a:{},n??{})},{immediate:!0,deep:!0}),()=>j.renderSlot(e,"default",{config:t?.value})}}),OU=Wc(PU),O4=r=>{if(!r)return{onClick:ds,onMousedown:ds,onMouseup:ds};let e=!1,t=!1;return{onClick:o=>{e&&t&&r(o),e=t=!1},onMousedown:o=>{e=o.target===o.currentTarget},onMouseup:o=>{t=o.target===o.currentTarget}}},NU=ka({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:mr([String,Array,Object])},zIndex:{type:mr([String,Number])}}),RU={click:r=>r instanceof MouseEvent},BU="overlay";var FU=j.defineComponent({name:"ElOverlay",props:NU,emits:RU,setup(r,{slots:e,emit:t}){const n=Wi(BU),i=l=>{t("click",l)},{onClick:a,onMousedown:o,onMouseup:s}=O4(r.customMaskEvent?void 0:i);return()=>r.mask?j.createVNode("div",{class:[n.b(),r.overlayClass],style:{zIndex:r.zIndex},onClick:a,onMousedown:o,onMouseup:s},[j.renderSlot(e,"default")],zd.STYLE|zd.CLASS|zd.PROPS,["onClick","onMouseup","onMousedown"]):j.h("div",{class:r.overlayClass,style:{zIndex:r.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[j.renderSlot(e,"default")])}});const VU=FU,zU=(r,e,t,n)=>{const i={offsetX:0,offsetY:0},a=j.ref(!1),o=(h,d)=>{if(r.value){const{offsetX:p,offsetY:m}=i,v=r.value.getBoundingClientRect(),g=v.left,y=v.top,b=v.width,_=v.height,T=document.documentElement.clientWidth,M=document.documentElement.clientHeight,k=-g+p,D=-y+m,P=T-g-b+p,O=M-y-(_<M?_:0)+m;n?.value||(h=Math.min(Math.max(h,k),P),d=Math.min(Math.max(d,D),O)),i.offsetX=h,i.offsetY=d,r.value.style.transform=`translate(${Gc(h)}, ${Gc(d)})`}},s=h=>{const d=h.clientX,p=h.clientY,{offsetX:m,offsetY:v}=i,g=b=>{a.value||(a.value=!0);const _=m+b.clientX-d,T=v+b.clientY-p;o(_,T)},y=()=>{a.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",y)},l=()=>{e.value&&r.value&&(e.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},u=()=>{e.value&&r.value&&(e.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},c=()=>{i.offsetX=0,i.offsetY=0,r.value&&(r.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:d}=i;o(h,d)};return j.onMounted(()=>{j.watchEffect(()=>{t.value?l():u()})}),j.onBeforeUnmount(()=>{u()}),{isDragging:a,resetPosition:c,updatePosition:f}},jU=(r,e={})=>{j.isRef(r)||Aj("[useLockscreen]","You need to pass a ref param to this function");const t=e.ns||Wi("popup"),n=j.computed(()=>t.bm("parent","hidden"));let i=0,a=!1,o="0";const s=()=>{setTimeout(()=>{typeof document>"u"||a&&document&&(document.body.style.width=o,Hj(document.body,n.value))},200)};j.watch(r,l=>{if(!l){s();return}a=!zj(document.body,n.value),a&&(o=document.body.style.width,jj(document.body,n.value)),i=$j(t.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Uj(document.body,"overflowY");i>0&&(u||c==="scroll")&&a&&(document.body.style.width=`calc(100% - ${i}px)`)}),j.onScopeDispose(()=>s())},HU=r=>["",...q5].includes(r),N4=["primary","success","info","warning","error"],R4=["top","top-left","top-right","bottom","bottom-left","bottom-right"],tu="top",hn=l4({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:xn?document.body:void 0}),UU=ka({customClass:{type:String,default:hn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:hn.dangerouslyUseHTMLString},duration:{type:Number,default:hn.duration},icon:{type:Kl,default:hn.icon},id:{type:String,default:hn.id},message:{type:mr([String,Object,Function]),default:hn.message},onClose:{type:mr(Function),default:hn.onClose},showClose:{type:Boolean,default:hn.showClose},type:{type:String,values:N4,default:hn.type},plain:{type:Boolean,default:hn.plain},offset:{type:Number,default:hn.offset},placement:{type:String,values:R4,default:hn.placement},zIndex:{type:Number,default:hn.zIndex},grouping:{type:Boolean,default:hn.grouping},repeatNum:{type:Number,default:hn.repeatNum}}),$U={destroy:()=>!0},Ei=j.shallowReactive({}),GU=r=>(Ei[r]||(Ei[r]=j.shallowReactive([])),Ei[r]),WU=(r,e)=>{const t=Ei[e]||[],n=t.findIndex(o=>o.id===r),i=t[n];let a;return n>0&&(a=t[n-1]),{current:i,prev:a}},YU=(r,e)=>{const{prev:t}=WU(r,e);return t?t.vm.exposed.bottom.value:0},qU=(r,e,t)=>(Ei[t]||[]).findIndex(a=>a.id===r)>0?16:e,XU=j.defineComponent({name:"ElMessage"}),ZU=j.defineComponent({...XU,props:UU,emits:$U,setup(r,{expose:e,emit:t}){const n=r,{Close:i}=a4,a=j.ref(!1),{ns:o,zIndex:s}=K5("message"),{currentZIndex:l,nextZIndex:u}=s,c=j.ref(),f=j.ref(!1),h=j.ref(0);let d;const p=j.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),m=j.computed(()=>{const R=n.type;return{[o.bm("icon",R)]:R&&Id[R]}}),v=j.computed(()=>n.icon||Id[n.type]||""),g=j.computed(()=>n.placement||tu),y=j.computed(()=>YU(n.id,g.value)),b=j.computed(()=>qU(n.id,n.offset,g.value)+y.value),_=j.computed(()=>h.value+b.value),T=j.computed(()=>g.value.includes("left")?o.is("left"):g.value.includes("right")?o.is("right"):o.is("center")),M=j.computed(()=>g.value.startsWith("top")?"top":"bottom"),k=j.computed(()=>({[M.value]:`${b.value}px`,zIndex:l.value}));function D(){n.duration!==0&&({stop:d}=bj(()=>{O()},n.duration))}function P(){d?.()}function O(){f.value=!1,j.nextTick(()=>{var R;a.value||((R=n.onClose)==null||R.call(n),t("destroy"))})}function B(R){Rd(R)===Jl.esc&&O()}return j.onMounted(()=>{D(),u(),f.value=!0}),j.watch(()=>n.repeatNum,()=>{P(),D()}),Zl(document,"keydown",B),N5(c,()=>{h.value=c.value.getBoundingClientRect().height}),e({visible:f,bottom:_,close:O}),(R,A)=>(j.openBlock(),j.createBlock(j.Transition,{name:j.unref(o).b("fade"),onBeforeEnter:I=>a.value=!0,onBeforeLeave:R.onClose,onAfterLeave:I=>R.$emit("destroy"),persisted:""},{default:j.withCtx(()=>[j.withDirectives(j.createElementVNode("div",{id:R.id,ref_key:"messageRef",ref:c,class:j.normalizeClass([j.unref(o).b(),{[j.unref(o).m(R.type)]:R.type},j.unref(o).is("closable",R.showClose),j.unref(o).is("plain",R.plain),j.unref(o).is("bottom",j.unref(M)==="bottom"),j.unref(T),R.customClass]),style:j.normalizeStyle(j.unref(k)),role:"alert",onMouseenter:P,onMouseleave:D},[R.repeatNum>1?(j.openBlock(),j.createBlock(j.unref(nU),{key:0,value:R.repeatNum,type:j.unref(p),class:j.normalizeClass(j.unref(o).e("badge"))},null,8,["value","type","class"])):j.createCommentVNode("v-if",!0),j.unref(v)?(j.openBlock(),j.createBlock(j.unref(Yi),{key:1,class:j.normalizeClass([j.unref(o).e("icon"),j.unref(m)])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(j.unref(v))))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0),j.renderSlot(R.$slots,"default",{},()=>[R.dangerouslyUseHTMLString?(j.openBlock(),j.createElementBlock(j.Fragment,{key:1},[j.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),j.createElementVNode("p",{class:j.normalizeClass(j.unref(o).e("content")),innerHTML:R.message},null,10,["innerHTML"])],2112)):(j.openBlock(),j.createElementBlock("p",{key:0,class:j.normalizeClass(j.unref(o).e("content"))},j.toDisplayString(R.message),3))]),R.showClose?(j.openBlock(),j.createBlock(j.unref(Yi),{key:2,class:j.normalizeClass(j.unref(o).e("closeBtn")),onClick:j.withModifiers(O,["stop"])},{default:j.withCtx(()=>[j.createVNode(j.unref(i))]),_:1},8,["class","onClick"])):j.createCommentVNode("v-if",!0)],46,["id"]),[[j.vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var KU=uo(ZU,[["__file","message.vue"]]);let JU=1;const QU=r=>{if(!r.appendTo)r.appendTo=document.body;else if(Gn(r.appendTo)){let t=document.querySelector(r.appendTo);Ed(t)||(ii("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),r.appendTo=t}},t$=r=>{!r.placement&&Gn(fn.placement)&&fn.placement&&(r.placement=fn.placement),r.placement||(r.placement=tu),R4.includes(r.placement)||(ii("ElMessage",`Invalid placement: ${r.placement}. Falling back to '${tu}'.`),r.placement=tu)},B4=r=>{const e=!r||Gn(r)||j.isVNode(r)||Ma(r)?{message:r}:r,t={...hn,...e};return QU(t),t$(t),M0(fn.grouping)&&!t.grouping&&(t.grouping=fn.grouping),Aa(fn.duration)&&t.duration===3e3&&(t.duration=fn.duration),Aa(fn.offset)&&t.offset===16&&(t.offset=fn.offset),M0(fn.showClose)&&!t.showClose&&(t.showClose=fn.showClose),M0(fn.plain)&&!t.plain&&(t.plain=fn.plain),t},e$=r=>{const e=r.props.placement||tu,t=Ei[e],n=t.indexOf(r);if(n===-1)return;t.splice(n,1);const{handler:i}=r;i.close()},r$=({appendTo:r,...e},t)=>{const n=`message_${JU++}`,i=e.onClose,a=document.createElement("div"),o={...e,id:n,onClose:()=>{i?.(),e$(c)},onDestroy:()=>{j.render(null,a)}},s=j.createVNode(KU,o,Ma(o.message)||j.isVNode(o.message)?{default:Ma(o.message)?o.message:()=>o.message}:null);s.appContext=t||gs._context,j.render(s,a),r.appendChild(a.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.close()}},props:s.component.props};return c},gs=(r={},e)=>{if(!xn)return{close:()=>{}};const t=B4(r),n=GU(t.placement||tu);if(t.grouping&&n.length){const a=n.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===t.message});if(a)return a.props.repeatNum+=1,a.props.type=t.type,a.handler}if(Aa(fn.max)&&n.length>=fn.max)return{close:()=>{}};const i=r$(t,e);return n.push(i),i.handler};N4.forEach(r=>{gs[r]=(e={},t)=>{const n=B4(e);return gs({...n,type:r},t)}});function n$(r){for(const e in Ei)if(jc(Ei,e)){const t=[...Ei[e]];for(const n of t)(!r||r===n.props.type)&&n.handler.close()}}function i$(r){if(!Ei[r])return;[...Ei[r]].forEach(t=>t.handler.close())}gs.closeAll=n$,gs.closeAllByPlacement=i$,gs._context=null;const Yr=Gj(gs,"$message"),q0="_trap-focus-children",ys=[],F4=r=>{var e;if(ys.length===0)return;const t=Rd(r),n=ys[ys.length-1][q0];if(n.length>0&&t===Jl.tab){if(n.length===1){r.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const i=r.shiftKey,a=r.target===n[0],o=r.target===n[n.length-1];if(a&&i&&(r.preventDefault(),n[n.length-1].focus()),o&&!i&&(r.preventDefault(),n[0].focus()),typeof process<"u"&&process.env.NODE_ENV==="test"){const s=n.indexOf(r.target);s!==-1&&((e=n[i?s-1:s+1])==null||e.focus())}}},a$={beforeMount(r){r[q0]=p4(r),ys.push(r),ys.length<=1&&document.addEventListener("keydown",F4)},updated(r){j.nextTick(()=>{r[q0]=p4(r)})},unmounted(){ys.shift(),ys.length===0&&document.removeEventListener("keydown",F4)}},o$=j.defineComponent({name:"ElMessageBox",directives:{TrapFocus:a$},components:{ElButton:MU,ElFocusTrap:JH,ElInput:BH,ElOverlay:VU,ElIcon:Yi,...a4},inheritAttrs:!1,props:{buttonSize:{type:String,validator:HU},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(r,{emit:e}){const{locale:t,zIndex:n,ns:i,size:a}=K5("message-box",j.computed(()=>r.buttonSize)),{t:o}=t,{nextZIndex:s}=n,l=j.ref(!1),u=j.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:j.markRaw(Dd),cancelButtonLoadingIcon:j.markRaw(Dd),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=j.computed(()=>{const S=u.type;return{[i.bm("icon",S)]:S&&Id[S]}}),f=N0(),h=N0(),d=j.computed(()=>{const S=u.type;return u.icon||S&&Id[S]||""}),p=j.computed(()=>!!u.message),m=j.ref(),v=j.ref(),g=j.ref(),y=j.ref(),b=j.ref(),_=j.computed(()=>u.confirmButtonClass);j.watch(()=>u.inputValue,async S=>{await j.nextTick(),r.boxType==="prompt"&&S&&A()},{immediate:!0}),j.watch(()=>l.value,S=>{var x,C;S&&(r.boxType!=="prompt"&&(u.autofocus?g.value=(C=(x=b.value)==null?void 0:x.$el)!=null?C:m.value:g.value=m.value),u.zIndex=s()),r.boxType==="prompt"&&(S?j.nextTick().then(()=>{var L;y.value&&y.value.$el&&(u.autofocus?g.value=(L=I())!=null?L:m.value:g.value=m.value)}):(u.editorErrorMessage="",u.validateError=!1))});const T=j.computed(()=>r.draggable),M=j.computed(()=>r.overflow),{isDragging:k}=zU(m,v,T,M);j.onMounted(async()=>{await j.nextTick(),r.closeOnHashChange&&window.addEventListener("hashchange",D)}),j.onBeforeUnmount(()=>{r.closeOnHashChange&&window.removeEventListener("hashchange",D)});function D(){l.value&&(l.value=!1,j.nextTick(()=>{u.action&&e("action",u.action)}))}const P=()=>{r.closeOnClickModal&&R(u.distinguishCancelAndClose?"close":"cancel")},O=O4(P),B=S=>{if(u.inputType!=="textarea")return S.preventDefault(),R("confirm")},R=S=>{var x;r.boxType==="prompt"&&S==="confirm"&&!A()||(u.action=S,u.beforeClose?(x=u.beforeClose)==null||x.call(u,S,u,D):D())},A=()=>{if(r.boxType==="prompt"){const S=u.inputPattern;if(S&&!S.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const x=u.inputValidator;if(Ma(x)){const C=x(u.inputValue);if(C===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(Gn(C))return u.editorErrorMessage=C,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},I=()=>{var S,x;const C=(S=y.value)==null?void 0:S.$refs;return(x=C?.input)!=null?x:C?.textarea},E=()=>{R("close")},w=()=>{r.closeOnPressEscape&&E()};return r.lockScroll&&jU(l,{ns:i}),{...j.toRefs(u),ns:i,overlayEvent:O,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:h,btnSize:a,iconComponent:d,confirmButtonClasses:_,rootRef:m,focusStartRef:g,headerRef:v,inputRef:y,isDragging:k,confirmRef:b,doClose:D,handleClose:E,onCloseRequested:w,handleWrapperClick:P,handleInputEnter:B,handleAction:R,t:o}}});function s$(r,e,t,n,i,a){const o=j.resolveComponent("el-icon"),s=j.resolveComponent("el-input"),l=j.resolveComponent("el-button"),u=j.resolveComponent("el-focus-trap"),c=j.resolveComponent("el-overlay");return j.openBlock(),j.createBlock(j.Transition,{name:"fade-in-linear",onAfterLeave:f=>r.$emit("vanish"),persisted:""},{default:j.withCtx(()=>[j.withDirectives(j.createVNode(c,{"z-index":r.zIndex,"overlay-class":[r.ns.is("message-box"),r.modalClass],mask:r.modal},{default:j.withCtx(()=>[j.createElementVNode("div",{role:"dialog","aria-label":r.title,"aria-modal":"true","aria-describedby":r.showInput?void 0:r.contentId,class:j.normalizeClass(`${r.ns.namespace.value}-overlay-message-box`),onClick:r.overlayEvent.onClick,onMousedown:r.overlayEvent.onMousedown,onMouseup:r.overlayEvent.onMouseup},[j.createVNode(u,{loop:"",trapped:r.visible,"focus-trap-el":r.rootRef,"focus-start-el":r.focusStartRef,onReleaseRequested:r.onCloseRequested},{default:j.withCtx(()=>[j.createElementVNode("div",{ref:"rootRef",class:j.normalizeClass([r.ns.b(),r.customClass,r.ns.is("draggable",r.draggable),r.ns.is("dragging",r.isDragging),{[r.ns.m("center")]:r.center}]),style:j.normalizeStyle(r.customStyle),tabindex:"-1",onClick:j.withModifiers(()=>{},["stop"])},[r.title!==null&&r.title!==void 0?(j.openBlock(),j.createElementBlock("div",{key:0,ref:"headerRef",class:j.normalizeClass([r.ns.e("header"),{"show-close":r.showClose}])},[j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("title"))},[r.iconComponent&&r.center?(j.openBlock(),j.createBlock(o,{key:0,class:j.normalizeClass([r.ns.e("status"),r.typeClass])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.iconComponent)))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0),j.createElementVNode("span",null,j.toDisplayString(r.title),1)],2),r.showClose?(j.openBlock(),j.createElementBlock("button",{key:0,type:"button",class:j.normalizeClass(r.ns.e("headerbtn")),"aria-label":r.t("el.messagebox.close"),onClick:f=>r.handleAction(r.distinguishCancelAndClose?"close":"cancel"),onKeydown:j.withKeys(j.withModifiers(f=>r.handleAction(r.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[j.createVNode(o,{class:j.normalizeClass(r.ns.e("close"))},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):j.createCommentVNode("v-if",!0)],2)):j.createCommentVNode("v-if",!0),j.createElementVNode("div",{id:r.contentId,class:j.normalizeClass(r.ns.e("content"))},[j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("container"))},[r.iconComponent&&!r.center&&r.hasMessage?(j.openBlock(),j.createBlock(o,{key:0,class:j.normalizeClass([r.ns.e("status"),r.typeClass])},{default:j.withCtx(()=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.iconComponent)))]),_:1},8,["class"])):j.createCommentVNode("v-if",!0),r.hasMessage?(j.openBlock(),j.createElementBlock("div",{key:1,class:j.normalizeClass(r.ns.e("message"))},[j.renderSlot(r.$slots,"default",{},()=>[r.dangerouslyUseHTMLString?(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.showInput?"label":"p"),{key:1,for:r.showInput?r.inputId:void 0,innerHTML:r.message},null,8,["for","innerHTML"])):(j.openBlock(),j.createBlock(j.resolveDynamicComponent(r.showInput?"label":"p"),{key:0,for:r.showInput?r.inputId:void 0,textContent:j.toDisplayString(r.message)},null,8,["for","textContent"]))])],2)):j.createCommentVNode("v-if",!0)],2),j.withDirectives(j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("input"))},[j.createVNode(s,{id:r.inputId,ref:"inputRef",modelValue:r.inputValue,"onUpdate:modelValue":f=>r.inputValue=f,type:r.inputType,placeholder:r.inputPlaceholder,"aria-invalid":r.validateError,class:j.normalizeClass({invalid:r.validateError}),onKeydown:j.withKeys(r.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("errormsg")),style:j.normalizeStyle({visibility:r.editorErrorMessage?"visible":"hidden"})},j.toDisplayString(r.editorErrorMessage),7)],2),[[j.vShow,r.showInput]])],10,["id"]),j.createElementVNode("div",{class:j.normalizeClass(r.ns.e("btns"))},[r.showCancelButton?(j.openBlock(),j.createBlock(l,{key:0,loading:r.cancelButtonLoading,"loading-icon":r.cancelButtonLoadingIcon,class:j.normalizeClass([r.cancelButtonClass]),round:r.roundButton,size:r.btnSize,onClick:f=>r.handleAction("cancel"),onKeydown:j.withKeys(j.withModifiers(f=>r.handleAction("cancel"),["prevent"]),["enter"])},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(r.cancelButtonText||r.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):j.createCommentVNode("v-if",!0),j.withDirectives(j.createVNode(l,{ref:"confirmRef",type:"primary",loading:r.confirmButtonLoading,"loading-icon":r.confirmButtonLoadingIcon,class:j.normalizeClass([r.confirmButtonClasses]),round:r.roundButton,disabled:r.confirmButtonDisabled,size:r.btnSize,onClick:f=>r.handleAction("confirm"),onKeydown:j.withKeys(j.withModifiers(f=>r.handleAction("confirm"),["prevent"]),["enter"])},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(r.confirmButtonText||r.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[j.vShow,r.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[j.vShow,r.visible]])]),_:3},8,["onAfterLeave"])}var l$=uo(o$,[["render",s$],["__file","index.vue"]]);const Yc=new Map,u$=r=>{let e=document.body;return r.appendTo&&(Gn(r.appendTo)&&(e=document.querySelector(r.appendTo)),Ed(r.appendTo)&&(e=r.appendTo),Ed(e)||(ii("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body)),e},c$=(r,e,t=null)=>{const n=j.createVNode(l$,r,Ma(r.message)||j.isVNode(r.message)?{default:Ma(r.message)?r.message:()=>r.message}:null);return n.appContext=t,j.render(n,e),u$(r).appendChild(e.firstElementChild),n.component},f$=()=>document.createElement("div"),h$=(r,e)=>{const t=f$();r.onVanish=()=>{j.render(null,t),Yc.delete(i)},r.onAction=a=>{const o=Yc.get(i);let s;r.showInput?s={value:i.inputValue,action:a}:s=a,r.callback?r.callback(s,n.proxy):a==="cancel"||a==="close"?r.distinguishCancelAndClose&&a!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const n=c$(r,t,e),i=n.proxy;for(const a in r)jc(r,a)&&!jc(i.$props,a)&&(a==="closeIcon"&&ql(r[a])?i[a]=j.markRaw(r[a]):i[a]=r[a]);return i.visible=!0,i};function eu(r,e=null){if(!xn)return Promise.reject();let t;return Gn(r)||j.isVNode(r)?r={message:r}:t=r.callback,new Promise((n,i)=>{const a=h$(r,e??eu._context);Yc.set(a,{options:r,callback:t,resolve:n,reject:i})})}const d$=["alert","confirm","prompt"],p$={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};d$.forEach(r=>{eu[r]=v$(r)});function v$(r){return(e,t,n,i)=>{let a="";return ql(t)?(n=t,a=""):E5(t)?a="":a=t,eu(Object.assign({title:a,message:e,type:"",...p$[r]},n,{boxType:r}),i)}}eu.close=()=>{Yc.forEach((r,e)=>{e.doClose()}),Yc.clear()},eu._context=null;const po=eu;po.install=r=>{po._context=r._context,r.config.globalProperties.$msgbox=po,r.config.globalProperties.$messageBox=po,r.config.globalProperties.$alert=po.alert,r.config.globalProperties.$confirm=po.confirm,r.config.globalProperties.$prompt=po.prompt};const m$=po,g$={style:{display:"flex","justify-content":"space-between","align-items":"center"}},y$={style:{display:"flex","justify-content":"flex-end","align-items":"center","margin-top":"20px"}},b$={class:"dialog-footer"},_$={name:"pd-DataTable"},w$=j.defineComponent({..._$,props:{id:{type:String,required:!0},searchFormConfig:{type:Object},operationFormConfig:{type:Object},tableConfig:{type:Object,required:!0},paginationConfig:{type:Object},requestConfig:{type:Object,required:!0}},setup(r){const{t:e}=Ul(),{elementLocale:t}=cF(),n=r;function i(x,C){const L=Object.assign({},C);return Object.keys(x).forEach(F=>{L.hasOwnProperty(F)&&(L[F]=x[F])}),L}function a(x){return x==null?!0:typeof x=="object"?Object.keys(x).length===0:!1}const o=x=>`pd-DataTable-${x}`,s=x=>{m$.confirm(e("dataTable.confirmDelete")+`【${x.id}】`,e("dataTable.confirmDeleteTitle"),{confirmButtonText:e("dataTable.confirm"),cancelButtonText:e("dataTable.cancel"),type:"warning"}).then(()=>{D(x)}).catch(()=>{})},l=()=>{B.value=!0,R.value="add"},u=x=>{B.value=!0,R.value="edit",j.nextTick(()=>{I.value=i(x,I.value)})},c=async x=>{x&&await x.validate(C=>{C?R.value==="add"?P(I.value):O(I.value):Yr.error(e("dataTable.pleaseFillInCompleteInfo"))})},f=j.ref({});(()=>{if(a(n.searchFormConfig))return;const x={};n.searchFormConfig?.formItems.forEach(C=>{x.hasOwnProperty(C.prop)||(x[C.prop]="")}),f.value=x})();const d=()=>{const x=[];return Object.keys(f.value).forEach(C=>{if(f.value[C]){const L=n.searchFormConfig?.formItems.find($=>$.prop===C),F=L?.config?.searchType||"like",z=$=>(L?.type==="date"&&($=IU($).format("YYYY-MM-DD")),F==="equals"&&($=`"${$}"`),$);x.push({searchName:C,searchType:F,searchValue:z(f.value[C])})}}),JSON.stringify(x)},p=()=>{Object.keys(f.value).forEach(x=>{f.value[x]=""}),k()},m=j.ref([]),v={headerRowStyle:{color:"#0a0a0a"},cellStyle:{color:"#0a0a0a"},size:"default",emptyText:e("dataTable.noData")},g=j.ref({...v,...n.tableConfig.table}),y=j.ref([]);function b(x){x.column.sortable==="custom"&&(x.order||(y.value=[]),x.order==="descending"&&(y.value=[{sortName:x.prop,sortType:"desc"}]),x.order==="ascending"&&(y.value=[{sortName:x.prop,sortType:"asc"}]),k())}const _={pageSize:10,pageSizes:[10,20,30,40],size:"default",disabled:!1,background:!0,layout:"total, sizes, prev, pager, next, jumper"},T=j.ref({..._,...n.paginationConfig,currentPage:1,total:100}),M=j.ref(!0),k=async()=>{M.value=!0;try{const x=await vr({...n.requestConfig.get,params:{pageNo:T.value.currentPage,pageSize:T.value.pageSize,searchStr:d(),sortStr:JSON.stringify(y.value)}});if(x.data.code===200){const C=x.data||{};if(!C.data){Yr.error(e("dataTable.dataFetchFailed"));return}if(C.data?.current>C.data?.pages&&C.data?.total!==0){T.value.currentPage=C.data?.pages;return}T.value.total=C.data?.total||0,m.value=C.data?.records||[]}else Yr.error(x.data.msg||e("dataTable.dataFetchFailed"))}catch(x){Yr.error(x.message||e("dataTable.dataFetchFailed"))}finally{M.value=!1}},D=async x=>{try{const C=await vr({...n.requestConfig.delete,data:i(x,n.requestConfig.delete?.data||{})});C.data.code===200?(Yr.success(e("dataTable.deleteSuccess")),k()):Yr.error(C.data.msg||e("dataTable.deleteError"))}catch(C){Yr.error(C.message||e("dataTable.deleteError"))}},P=async x=>{try{const C=await vr({...n.requestConfig.add,data:x});C.data.code===200?(Yr.success(e("dataTable.addSuccess")),k(),B.value=!1):Yr.error(C.data.msg||e("dataTable.addError"))}catch(C){Yr.error(C.message||e("dataTable.addError"))}},O=async x=>{try{const C=await vr({...n.requestConfig.edit,data:x});C.data.code===200?(Yr.success(e("dataTable.editSuccess")),k(),B.value=!1):Yr.error(C.data.msg||e("dataTable.editError"))}catch(C){Yr.error(C.message||e("dataTable.editError"))}};j.watch([()=>T.value.currentPage,()=>T.value.pageSize],([x,C],[L,F])=>{C!==F&&fF("peidi-common-ui-config",{[`${o(n.id)}-pageSize`]:C}),k()},{deep:!0});const B=j.ref(!1),R=j.ref("add"),A=j.computed(()=>R.value==="add"?e("dataTable.addData"):e("dataTable.editData")),I=j.ref({});(()=>{if(a(n.operationFormConfig))return;const x={};n.operationFormConfig?.formItems.forEach(C=>{x.hasOwnProperty(C.prop)||(x[C.prop]="")}),I.value=x})();const w=j.ref(),S=j.computed(()=>n.operationFormConfig?.formItems.filter(x=>x.type!=="hidden"));return j.watch(()=>B.value,x=>{x||w.value?.resetFields()},{deep:!0}),j.onMounted(()=>{const x=B3("peidi-common-ui-config",o(n.id));x&&(T.value={...T.value,pageSize:x[`${o(n.id)}-pageSize`]||T.value.pageSize})}),(x,C)=>{const L=j.resolveComponent("el-input"),F=j.resolveComponent("el-option"),z=j.resolveComponent("el-select"),$=j.resolveComponent("el-date-picker"),G=j.resolveComponent("el-form-item"),Z=j.resolveComponent("el-button"),H=j.resolveComponent("el-form"),q=j.resolveComponent("el-card"),V=j.resolveComponent("el-table-column"),N=j.resolveComponent("el-table"),U=j.resolveComponent("el-pagination"),W=j.resolveComponent("el-dialog"),X=j.resolveDirective("loading");return j.openBlock(),j.createBlock(j.unref(OU),{locale:j.unref(t)},{default:j.withCtx(()=>[j.createElementVNode("div",null,[a(n.searchFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(q,{key:0,style:{height:"100%"},shadow:"never",class:"pd-DataTable-search-card"},{default:j.withCtx(()=>[j.createElementVNode("div",null,[j.createVNode(H,{model:f.value,inline:""},{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(n.searchFormConfig?.formItems,Y=>(j.openBlock(),j.createBlock(G,{key:Y.prop,prop:Y.prop,label:Y.label},{default:j.withCtx(()=>[Y.type==="text"?(j.openBlock(),j.createBlock(L,{key:0,modelValue:f.value[Y.prop],"onUpdate:modelValue":J=>f.value[Y.prop]=J,placeholder:Y.config.placeholder,style:{width:"200px"},clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="select"?(j.openBlock(),j.createBlock(z,{key:1,modelValue:f.value[Y.prop],"onUpdate:modelValue":J=>f.value[Y.prop]=J,placeholder:Y.config.placeholder,style:{width:"200px"},clearable:""},{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(Y.config.options,J=>(j.openBlock(),j.createBlock(F,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="date"?(j.openBlock(),j.createBlock($,{key:2,modelValue:f.value[Y.prop],"onUpdate:modelValue":J=>f.value[Y.prop]=J,placeholder:Y.config.placeholder,style:{width:"200px"},clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):j.createCommentVNode("",!0)]),_:2},1032,["prop","label"]))),128)),j.createVNode(G,null,{default:j.withCtx(()=>[j.createVNode(Z,{onClick:p},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.reset")),1)]),_:1}),j.createVNode(Z,{type:"primary",onClick:k},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.query")),1)]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1})),j.createVNode(q,{style:{height:"100%","margin-top":"12px"},shadow:"never"},{default:j.withCtx(()=>[j.createElementVNode("div",g$,[j.createElementVNode("div",null,j.toDisplayString(n.tableConfig.title),1),j.createElementVNode("div",null,[j.renderSlot(x.$slots,"operationBar",{searchForm:f.value},void 0,!0),a(n.operationFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(Z,{key:0,type:"primary",onClick:l},{default:j.withCtx(()=>[j.createVNode(j.unref(bd),{icon:"si:add-fill",width:"18",height:"18"}),j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.add")),1)]),_:1}))])]),j.createElementVNode("div",null,[j.withDirectives((j.openBlock(),j.createBlock(N,j.mergeProps({data:m.value,style:{width:"100%"}},g.value,{onSortChange:b}),{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(n.tableConfig.columns,Y=>(j.openBlock(),j.createBlock(V,{key:Y.prop,prop:Y.prop,label:Y.label,"min-width":Y.minWidth,align:Y.align,fixed:Y.fixed,sortable:Y.sortable,"show-overflow-tooltip":Y.showOverflowTooltip},j.createSlots({_:2},[Y.render?{name:"default",fn:j.withCtx(J=>[(j.openBlock(),j.createBlock(j.resolveDynamicComponent(Y.render(J))))]),key:"0"}:{name:"default",fn:j.withCtx(J=>[j.createTextVNode(j.toDisplayString(J.row[Y.prop]),1)]),key:"1"}]),1032,["prop","label","min-width","align","fixed","sortable","show-overflow-tooltip"]))),128)),!a(n.requestConfig.edit)||!a(n.requestConfig.delete)?(j.openBlock(),j.createBlock(V,{key:0,prop:"Operation",label:j.unref(e)("dataTable.operation"),"min-width":"150"},{default:j.withCtx(Y=>[a(n.operationFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(Z,{key:0,text:"",class:"pd-DataTable-operation",onClick:J=>u(Y.row)},{default:j.withCtx(()=>[j.createVNode(j.unref(bd),{icon:"mingcute:edit-line",width:"18",height:"18",style:{color:"#2563eb"}})]),_:1},8,["onClick"])),a(n.requestConfig.delete)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(Z,{key:1,text:"",class:"pd-DataTable-operation",onClick:J=>s(Y.row)},{default:j.withCtx(()=>[j.createVNode(j.unref(bd),{icon:"lsicon:delete-outline",width:"18",height:"18",style:{color:"rgb(245, 108, 108)"}})]),_:1},8,["onClick"]))]),_:1},8,["label"])):j.createCommentVNode("",!0)]),_:1},16,["data"])),[[X,M.value]])]),j.createElementVNode("div",y$,[j.createVNode(U,{"current-page":T.value.currentPage,"onUpdate:currentPage":C[0]||(C[0]=Y=>T.value.currentPage=Y),"page-size":T.value.pageSize,"onUpdate:pageSize":C[1]||(C[1]=Y=>T.value.pageSize=Y),"page-sizes":T.value.pageSizes,size:T.value.size,disabled:T.value.disabled,background:T.value.background,layout:T.value.layout,total:T.value.total},null,8,["current-page","page-size","page-sizes","size","disabled","background","layout","total"])])]),_:3}),a(n.operationFormConfig)?j.createCommentVNode("",!0):(j.openBlock(),j.createBlock(W,{key:1,modelValue:B.value,"onUpdate:modelValue":C[3]||(C[3]=Y=>B.value=Y),title:A.value,width:"500"},{footer:j.withCtx(()=>[j.createElementVNode("div",b$,[j.createVNode(Z,{type:"primary",onClick:C[2]||(C[2]=Y=>c(w.value))},{default:j.withCtx(()=>[j.createTextVNode(j.toDisplayString(j.unref(e)("dataTable.confirm")),1)]),_:1})])]),default:j.withCtx(()=>[j.createVNode(H,j.mergeProps({model:I.value},n.operationFormConfig?.form,{rules:n.operationFormConfig?.rules,ref_key:"operationFormRef",ref:w}),{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(S.value,Y=>(j.openBlock(),j.createBlock(G,{key:Y.prop,prop:Y.prop,label:Y.label},{default:j.withCtx(()=>[Y.type==="text"?(j.openBlock(),j.createBlock(L,j.mergeProps({key:0,modelValue:I.value[Y.prop],"onUpdate:modelValue":J=>I.value[Y.prop]=J,placeholder:Y.config.placeholder,clearable:""},{ref_for:!0},Y.config.expandAttribute),null,16,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="select"?(j.openBlock(),j.createBlock(z,{key:1,modelValue:I.value[Y.prop],"onUpdate:modelValue":J=>I.value[Y.prop]=J,placeholder:Y.config.placeholder,clearable:""},{default:j.withCtx(()=>[(j.openBlock(!0),j.createElementBlock(j.Fragment,null,j.renderList(Y.config.options,J=>(j.openBlock(),j.createBlock(F,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):Y.type==="date"?(j.openBlock(),j.createBlock($,{key:2,modelValue:I.value[Y.prop],"onUpdate:modelValue":J=>I.value[Y.prop]=J,placeholder:Y.config.placeholder,clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):j.createCommentVNode("",!0)]),_:2},1032,["prop","label"]))),128))]),_:1},16,["model","rules"])]),_:1},8,["modelValue","title"]))])]),_:3},8,["locale"])}}}),V4=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},x$=Object.freeze(Object.defineProperty({__proto__:null,default:V4(w$,[["__scopeId","data-v-3345f6b2"]])},Symbol.toStringTag,{value:"Module"}));var X0=function(r,e){return X0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},X0(r,e)};function st(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");X0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var S$=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),T$=(function(){function r(){this.browser=new S$,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),we=new T$;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(we.wxa=!0,we.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?we.worker=!0:!we.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(we.node=!0,we.svgSupported=!0):C$(navigator.userAgent,we);function C$(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var Z0=12,z4="sans-serif",Ia=Z0+"px "+z4,E$=20,M$=100,A$="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function k$(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-E$)/M$;e[n]=i}return e}var D$=k$(A$),Mi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var i=Mi.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Ia),r.measureText(t);t=t||"",n=n||Ia;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Z0,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=D$[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},j4=qi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),H4=qi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ru=Object.prototype.toString,jd=Array.prototype,I$=jd.forEach,L$=jd.filter,K0=jd.slice,P$=jd.map,U4=(function(){}).constructor,Hd=U4?U4.prototype:null,J0="__proto__",O$=2311;function $4(){return O$++}function Ai(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function jt(r){if(r==null||typeof r!="object")return r;var e=r,t=ru.call(r);if(t==="[object Array]"){if(!qc(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=jt(r[n])}}else if(H4[t]){if(!qc(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!j4[t]&&!qc(r)&&!_s(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==J0&&(e[o]=jt(r[o]))}return e}function le(r,e,t){if(!Ht(e)||!Ht(r))return t?jt(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==J0){var i=r[n],a=e[n];Ht(a)&&Ht(i)&&!gt(a)&&!gt(i)&&!_s(a)&&!_s(i)&&!G4(a)&&!G4(i)&&!qc(a)&&!qc(i)?le(i,a,t):(t||!(n in r))&&(r[n]=jt(e[n]))}return r}function Q0(r,e){for(var t=r[0],n=1,i=r.length;n<i;n++)t=le(t,r[n],e);return t}function vt(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==J0&&(r[t]=e[t]);return r}function Yt(r,e,t){for(var n=xe(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function ae(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function N$(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function Cr(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else Yt(r,e,t)}function dn(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function K(r,e,t){if(r&&e)if(r.forEach&&r.forEach===I$)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function bt(r,e,t){if(!r)return[];if(!e)return ty(r);if(r.map&&r.map===P$)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function qi(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function Ve(r,e,t){if(!r)return[];if(!e)return ty(r);if(r.filter&&r.filter===L$)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function bs(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function xe(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function R$(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(K0.call(arguments)))}}var At=Hd&&Ft(Hd.bind)?Hd.call.bind(Hd.bind):R$;function ne(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(K0.call(arguments)))}}function gt(r){return Array.isArray?Array.isArray(r):ru.call(r)==="[object Array]"}function Ft(r){return typeof r=="function"}function Et(r){return typeof r=="string"}function Ud(r){return ru.call(r)==="[object String]"}function Me(r){return typeof r=="number"}function Ht(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function G4(r){return!!j4[ru.call(r)]}function Sn(r){return!!H4[ru.call(r)]}function _s(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function $d(r){return r.colorStops!=null}function B$(r){return r.image!=null}function W4(r){return ru.call(r)==="[object RegExp]"}function qr(r){return r!==r}function Nr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Pt(r,e){return r??e}function Tn(r,e,t){return r??e??t}function ty(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return K0.apply(r,e)}function Gd(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function It(r,e){if(!r)throw new Error(e)}function ai(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Y4="__ec_primitive__";function Wd(r){r[Y4]=!0}function qc(r){return r[Y4]}var F$=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return xe(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),q4=typeof Map=="function";function V$(){return q4?new Map:new F$}var z$=(function(){function r(e){var t=gt(e);this.data=V$();var n=this;e instanceof r?e.each(i):e&&K(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return q4?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Ot(r){return new z$(r)}function Xc(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function Yd(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&vt(t,e),t}function X4(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function kt(r,e){return r.hasOwnProperty(e)}function br(){}var qd=180/Math.PI;function ws(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Cn(r,e){return r[0]=e[0],r[1]=e[1],r}function La(r){return[r[0],r[1]]}function ey(r,e,t){return r[0]=e,r[1]=t,r}function Z4(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function ry(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function xs(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function ny(r){return Math.sqrt(j$(r))}function j$(r){return r[0]*r[0]+r[1]*r[1]}function Xd(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function nu(r,e){var t=ny(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function iy(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var vo=iy;function H$(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ss=H$;function Zd(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function _r(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function mo(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function go(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var iu=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),U$=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new iu(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new iu(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new iu(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new iu(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new iu(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new iu(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),oi=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r})(),$$=Math.log(2);function ay(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/$$);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var p=1<<h;p&i||(f+=(d%2?-1:1)*r[t][h]*ay(r,e-1,c,u,i|p,a),d++)}return a[o]=f,f}function K4(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},i=ay(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ay(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var Kd="___zrEVENTSAVED",oy=[];function G$(r,e,t,n,i){return sy(oy,e,n,i,!0)&&sy(r,t,oy[0],oy[1])}function W$(r,e){r&&t(r),e&&t(e);function t(n){var i=n[Kd];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Kd])}}function sy(r,e,t,n,i){if(e.getBoundingClientRect&&we.domSupported&&!J4(e)){var a=e[Kd]||(e[Kd]={}),o=Y$(e,a),s=q$(o,a,i);if(s)return s(r,t,n),!0}return!1}function Y$(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){K(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function q$(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?K4(s,o):K4(o,s))}function J4(r){return r.nodeName.toUpperCase()==="CANVAS"}var X$=/([&<>"'])/g,Z$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function En(r){return r==null?"":(r+"").replace(X$,function(e,t){return Z$[t]})}var K$=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ly=[],J$=we.browser.firefox&&+we.browser.version.split(".")[0]<39;function uy(r,e,t,n){return t=t||{},n?Q4(r,e,t):J$&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Q4(r,e,t),t}function Q4(r,e,t){if(we.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(J4(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(sy(ly,r,n,i)){t.zrX=ly[0],t.zrY=ly[1];return}}t.zrX=t.zrY=0}function cy(r){return r||window.event}function si(r,e,t){if(e=cy(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&uy(r,o,e,t)}else{uy(r,e,e,t);var a=Q$(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&K$.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Q$(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function fy(r,e,t,n){r.addEventListener(e,t,n)}function tG(r,e,t,n){r.removeEventListener(e,t,n)}var Pa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function t6(r){return r.which===2||r.which===3}var eG=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=uy(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in hy)if(hy.hasOwnProperty(t)){var n=hy[t](this._track,e);if(n)return n}},r})();function e6(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function rG(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hy={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=e6(n)/e6(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=rG(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Xr(){return[1,0,0,1,0,0]}function Jd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Qd(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Xi(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Zi(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function yo(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=i*f+s*c,r[1]=-i*c+s*f,r[2]=a*f+l*c,r[3]=-a*c+f*l,r[4]=f*(o-n[0])+c*(u-n[1])+n[0],r[5]=f*(u-n[1])-c*(o-n[0])+n[1],r}function dy(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function ki(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function nG(r){var e=Xr();return Qd(e,r),e}var Gt=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r})(),Ts=Math.min,au=Math.max,py=Math.abs,r6=["x","y"],iG=["width","height"],Cs=new Gt,Es=new Gt,Ms=new Gt,As=new Gt,Yn=i6(),Zc=Yn.minTv,vy=Yn.maxTv,Kc=[0,0],qt=(function(){function r(e,t,n,i){r.set(this,e,t,n,i)}return r.set=function(e,t,n,i,a){return i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),e.x=t,e.y=n,e.width=i,e.height=a,e},r.prototype.union=function(e){var t=Ts(e.x,this.x),n=Ts(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=au(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=au(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=Xr();return Zi(a,a,[-t.x,-t.y]),dy(a,a,[n,i]),Zi(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,i){n&&Gt.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set(aG,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(oG,t.x,t.y,t.width,t.height));var s=!!n;Yn.reset(i,s);var l=Yn.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,h=e.y+e.height-l,d=t.x+l,p=t.x+t.width-l,m=t.y+l,v=t.y+t.height-l;if(u>c||f>h||d>p||m>v)return!1;var g=!(c<d||p<u||h<m||v<f);return(s||a)&&(Kc[0]=1/0,Kc[1]=0,n6(u,c,d,p,0,s,a,o),n6(f,h,m,v,1,s,a,o),s&&Gt.copy(n,g?Yn.useDir?Yn.dirMinTv:Zc:vy)),g},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Cs.x=Ms.x=t.x,Cs.y=As.y=t.y,Es.x=As.x=t.x+t.width,Es.y=Ms.y=t.y+t.height,Cs.transform(n),As.transform(n),Es.transform(n),Ms.transform(n),e.x=Ts(Cs.x,Es.x,Ms.x,As.x),e.y=Ts(Cs.y,Es.y,Ms.y,As.y);var l=au(Cs.x,Es.x,Ms.x,As.x),u=au(Cs.y,Es.y,Ms.y,As.y);e.width=l-e.x,e.height=u-e.y},r})(),aG=new qt(0,0,0,0),oG=new qt(0,0,0,0);function n6(r,e,t,n,i,a,o,s){var l=py(e-t),u=py(n-r),c=Ts(l,u),f=r6[i],h=r6[1-i],d=iG[i];e<t||n<r?l<u?(a&&(vy[f]=-l),s&&(o[f]=e,o[d]=0)):(a&&(vy[f]=u),s&&(o[f]=r,o[d]=0)):(o&&(o[f]=au(r,t),o[d]=Ts(e,n)-o[f]),a&&(c<Kc[0]||Yn.useDir)&&(Kc[0]=Ts(c,Kc[0]),(l<u||!Yn.bidirectional)&&(Zc[f]=l,Zc[h]=0,Yn.useDir&&Yn.calcDirMTV()),(l>=u||!Yn.bidirectional)&&(Zc[f]=-u,Zc[h]=0,Yn.useDir&&Yn.calcDirMTV())))}function i6(){var r=0,e=new Gt,t=new Gt,n={minTv:new Gt,maxTv:new Gt,useDir:!1,dirMinTv:new Gt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=au(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),c=l*a.y+u*a.x;if(i(c)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,i(t.x)&&i(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function i(a){return py(a)<1e-10}return n}var a6="silent";function sG(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:lG}}function lG(){Pa(this.event)}var uG=(function(r){st(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(oi),Jc=(function(){function r(e,t){this.x=e,this.y=t}return r})(),cG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],my=new qt(0,0,0,0),o6=(function(r){st(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Jc(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new uG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new U$(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(K(cG,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=l6(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Jc(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Jc(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=sG(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new Jc(t,n);if(s6(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new qt(t-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(my.copy(h.getBoundingRect()),h.transform&&my.applyTransform(h.transform),my.intersect(c)&&s.push(h))}if(s.length)for(var d=4,p=Math.PI/12,m=Math.PI*2,v=0;v<u;v+=d)for(var g=0;g<m;g+=p){var y=t+v*Math.cos(g),b=n+v*Math.sin(g);if(s6(s,o,y,b,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new eG);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Jc;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(oi);K(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){o6.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=l6(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||vo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function fG(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?a6:!0}return!1}function s6(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=fG(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==a6)){e.target=o;break}}}function l6(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var u6=32,Qc=7;function hG(r){for(var e=0;r>=u6;)e|=r&1,r>>=1;return r+e}function c6(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;dG(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function dG(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function f6(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function gy(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(r,e[t+c])>0?o=c+1:l=c}return l}function yy(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(r,e[t+c])<0?l=c:o=c+1}return l}function pG(r,e){var t=Qc,n,i,a=0,o=[];n=[],i=[];function s(d,p){n[a]=d,i[a]=p,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var p=n[d],m=i[d],v=n[d+1],g=i[d+1];i[d]=m+g,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var y=yy(r[v],r,p,m,0,e);p+=y,m-=y,m!==0&&(g=gy(r[p+m-1],r,v,g,g-1,e),g!==0&&(m<=g?f(p,m,v,g):h(p,m,v,g)))}function f(d,p,m,v){var g=0;for(g=0;g<p;g++)o[g]=r[d+g];var y=0,b=m,_=d;if(r[_++]=r[b++],--v===0){for(g=0;g<p;g++)r[_+g]=o[y+g];return}if(p===1){for(g=0;g<v;g++)r[_+g]=r[b+g];r[_+v]=o[y];return}for(var T=t,M,k,D;;){M=0,k=0,D=!1;do if(e(r[b],o[y])<0){if(r[_++]=r[b++],k++,M=0,--v===0){D=!0;break}}else if(r[_++]=o[y++],M++,k=0,--p===1){D=!0;break}while((M|k)<T);if(D)break;do{if(M=yy(r[b],o,y,p,0,e),M!==0){for(g=0;g<M;g++)r[_+g]=o[y+g];if(_+=M,y+=M,p-=M,p<=1){D=!0;break}}if(r[_++]=r[b++],--v===0){D=!0;break}if(k=gy(o[y],r,b,v,0,e),k!==0){for(g=0;g<k;g++)r[_+g]=r[b+g];if(_+=k,b+=k,v-=k,v===0){D=!0;break}}if(r[_++]=o[y++],--p===1){D=!0;break}T--}while(M>=Qc||k>=Qc);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),p===1){for(g=0;g<v;g++)r[_+g]=r[b+g];r[_+v]=o[y]}else{if(p===0)throw new Error;for(g=0;g<p;g++)r[_+g]=o[y+g]}}function h(d,p,m,v){var g=0;for(g=0;g<v;g++)o[g]=r[m+g];var y=d+p-1,b=v-1,_=m+v-1,T=0,M=0;if(r[_--]=r[y--],--p===0){for(T=_-(v-1),g=0;g<v;g++)r[T+g]=o[g];return}if(v===1){for(_-=p,y-=p,M=_+1,T=y+1,g=p-1;g>=0;g--)r[M+g]=r[T+g];r[_]=o[b];return}for(var k=t;;){var D=0,P=0,O=!1;do if(e(o[b],r[y])<0){if(r[_--]=r[y--],D++,P=0,--p===0){O=!0;break}}else if(r[_--]=o[b--],P++,D=0,--v===1){O=!0;break}while((D|P)<k);if(O)break;do{if(D=p-yy(o[b],r,d,p,p-1,e),D!==0){for(_-=D,y-=D,p-=D,M=_+1,T=y+1,g=D-1;g>=0;g--)r[M+g]=r[T+g];if(p===0){O=!0;break}}if(r[_--]=o[b--],--v===1){O=!0;break}if(P=v-gy(r[y],o,0,v,v-1,e),P!==0){for(_-=P,b-=P,v-=P,M=_+1,T=b+1,g=0;g<P;g++)r[M+g]=o[T+g];if(v<=1){O=!0;break}}if(r[_--]=r[y--],--p===0){O=!0;break}k--}while(D>=Qc||P>=Qc);if(O)break;k<0&&(k=0),k+=2}if(t=k,t<1&&(t=1),v===1){for(_-=p,y-=p,M=_+1,T=y+1,g=p-1;g>=0;g--)r[M+g]=r[T+g];r[_]=o[b]}else{if(v===0)throw new Error;for(T=_-(v-1),g=0;g<v;g++)r[T+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function tp(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<u6){a=c6(r,t,n,e),f6(r,t,n,t+a,e);return}var o=pG(r,e),s=hG(i);do{if(a=c6(r,t,n,e),a<s){var l=i;l>s&&(l=s),f6(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var qn=1,tf=2,ou=4,h6=!1;function by(){h6||(h6=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d6(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var vG=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d6}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,tp(n,d6)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=i,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),h=0;h<f.length;h++){var d=f[h];e.__dirty&&(d.__dirty|=qn),this._updateAndAddDisplayable(d,s,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(by(),p.z=0),isNaN(p.z2)&&(by(),p.z2=0),isNaN(p.zlevel)&&(by(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=ae(this._roots,e);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),ep;ep=we.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ef={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ef.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ef.bounceIn(r*2)*.5:ef.bounceOut(r*2-1)*.5+.5}},rp=Math.pow,bo=Math.sqrt,np=1e-8,p6=1e-4,v6=bo(3),ip=1/3,Ki=ws(),li=ws(),su=ws();function _o(r){return r>-np&&r<np}function m6(r){return r>np||r<-np}function jr(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function g6(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function ap(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(_o(c)&&_o(f))if(_o(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[d++]=p)}else{var m=f*f-4*c*h;if(_o(m)){var v=f/c,p=-s/o+v,g=-v/2;p>=0&&p<=1&&(a[d++]=p),g>=0&&g<=1&&(a[d++]=g)}else if(m>0){var y=bo(m),b=c*s+1.5*o*(-f+y),_=c*s+1.5*o*(-f-y);b<0?b=-rp(-b,ip):b=rp(b,ip),_<0?_=-rp(-_,ip):_=rp(_,ip);var p=(-s-(b+_))/(3*o);p>=0&&p<=1&&(a[d++]=p)}else{var T=(2*c*s-3*o*f)/(2*bo(c*c*c)),M=Math.acos(T)/3,k=bo(c),D=Math.cos(M),p=(-s-2*k*D)/(3*o),g=(-s+k*(D+v6*Math.sin(M)))/(3*o),P=(-s+k*(D-v6*Math.sin(M)))/(3*o);p>=0&&p<=1&&(a[d++]=p),g>=0&&g<=1&&(a[d++]=g),P>=0&&P<=1&&(a[d++]=P)}}return d}function y6(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(_o(o)){if(m6(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(_o(c))i[0]=-a/(2*o);else if(c>0){var f=bo(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function wo(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function b6(r,e,t,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,p,m,v,g;Ki[0]=l,Ki[1]=u;for(var y=0;y<1;y+=.05)li[0]=jr(r,t,i,o,y),li[1]=jr(e,n,a,s,y),v=Ss(Ki,li),v<d&&(f=y,d=v);d=1/0;for(var b=0;b<32&&!(h<p6);b++)p=f-h,m=f+h,li[0]=jr(r,t,i,o,p),li[1]=jr(e,n,a,s,p),v=Ss(li,Ki),p>=0&&v<d?(f=p,d=v):(su[0]=jr(r,t,i,o,m),su[1]=jr(e,n,a,s,m),g=Ss(su,Ki),m<=1&&g<d?(f=m,d=g):h*=.5);return c&&(c[0]=jr(r,t,i,o,f),c[1]=jr(e,n,a,s,f)),bo(d)}function mG(r,e,t,n,i,a,o,s,l){for(var u=r,c=e,f=0,h=1/l,d=1;d<=l;d++){var p=d*h,m=jr(r,t,i,o,p),v=jr(e,n,a,s,p),g=m-u,y=v-c;f+=Math.sqrt(g*g+y*y),u=m,c=v}return f}function Zr(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function _y(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function gG(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(_o(a)){if(m6(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(_o(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=bo(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function _6(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function rf(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function w6(r,e,t,n,i,a,o,s,l){var u,c=.005,f=1/0;Ki[0]=o,Ki[1]=s;for(var h=0;h<1;h+=.05){li[0]=Zr(r,t,i,h),li[1]=Zr(e,n,a,h);var d=Ss(Ki,li);d<f&&(u=h,f=d)}f=1/0;for(var p=0;p<32&&!(c<p6);p++){var m=u-c,v=u+c;li[0]=Zr(r,t,i,m),li[1]=Zr(e,n,a,m);var d=Ss(li,Ki);if(m>=0&&d<f)u=m,f=d;else{su[0]=Zr(r,t,i,v),su[1]=Zr(e,n,a,v);var g=Ss(su,Ki);v<=1&&g<f?(u=v,f=g):c*=.5}}return l&&(l[0]=Zr(r,t,i,u),l[1]=Zr(e,n,a,u)),bo(f)}function yG(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,d=Zr(r,t,i,h),p=Zr(e,n,a,h),m=d-s,v=p-l;u+=Math.sqrt(m*m+v*v),s=d,l=p}return u}var bG=/cubic-bezier\(([0-9,\.e ]+)\)/;function wy(r){var e=r&&bG.exec(r);if(e){var t=e[1].split(","),n=+ai(t[0]),i=+ai(t[1]),a=+ai(t[2]),o=+ai(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ap(0,n,a,1,l,s)&&jr(0,i,o,1,s[0])}}}var _G=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||br,this.ondestroy=e.ondestroy||br,this.onrestart=e.onrestart||br,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ft(e)?e:ef[e]||wy(e)},r})(),x6=(function(){function r(e){this.value=e}return r})(),wG=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new x6(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),lu=(function(){function r(e){this._list=new wG,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new x6(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),S6={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Di(r){return r=Math.round(r),r<0?0:r>255?255:r}function xG(r){return r=Math.round(r),r<0?0:r>360?360:r}function nf(r){return r<0?0:r>1?1:r}function xy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Di(parseFloat(e)/100*255):Di(parseInt(e,10))}function xo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?nf(parseFloat(e)/100):nf(parseFloat(e))}function Sy(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function So(r,e,t){return r+(e-r)*t}function ui(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Ty(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var T6=new lu(20),op=null;function uu(r,e){op&&Ty(op,e),op=T6.put(r,op||e.slice())}function Bn(r,e){if(r){e=e||[];var t=T6.get(r);if(t)return Ty(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in S6)return Ty(e,S6[n]),uu(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ui(e,0,0,0,1);return}return ui(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),uu(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ui(e,0,0,0,1);return}return ui(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),uu(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ui(e,+u[0],+u[1],+u[2],1):ui(e,0,0,0,1);c=xo(u.pop());case"rgb":if(u.length>=3)return ui(e,xy(u[0]),xy(u[1]),xy(u[2]),u.length===3?c:xo(u[3])),uu(r,e),e;ui(e,0,0,0,1);return;case"hsla":if(u.length!==4){ui(e,0,0,0,1);return}return u[3]=xo(u[3]),Cy(u,e),uu(r,e),e;case"hsl":if(u.length!==3){ui(e,0,0,0,1);return}return Cy(u,e),uu(r,e),e;default:return}}ui(e,0,0,0,1)}}function Cy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=xo(r[1]),i=xo(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],ui(e,Di(Sy(o,a,t+1/3)*255),Di(Sy(o,a,t)*255),Di(Sy(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function SG(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,f=((a-t)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-f:t===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return r[3]!=null&&d.push(r[3]),d}}function Ey(r,e){var t=Bn(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Ji(t,t.length===4?"rgba":"rgb")}}function My(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=Di(So(o[0],s[0],l)),t[1]=Di(So(o[1],s[1],l)),t[2]=Di(So(o[2],s[2],l)),t[3]=nf(So(o[3],s[3],l)),t}}function TG(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Bn(e[i]),s=Bn(e[a]),l=n-i,u=Ji([Di(So(o[0],s[0],l)),Di(So(o[1],s[1],l)),Di(So(o[2],s[2],l)),nf(So(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function To(r,e,t,n){var i=Bn(r);if(r)return i=SG(i),e!=null&&(i[0]=xG(Ft(e)?e(i[0]):e)),t!=null&&(i[1]=xo(Ft(t)?t(i[1]):t)),n!=null&&(i[2]=xo(Ft(n)?n(i[2]):n)),Ji(Cy(i),"rgba")}function sp(r,e){var t=Bn(r);if(t&&e!=null)return t[3]=nf(e),Ji(t,"rgba")}function Ji(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function lp(r,e){var t=Bn(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var C6=new lu(100);function Ay(r){if(Et(r)){var e=C6.get(r);return e||(e=Ey(r,-.1),C6.put(r,e)),e}else if($d(r)){var t=vt({},r);return t.colorStops=bt(r.colorStops,function(n){return{offset:n.offset,color:Ey(n.color,-.1)}}),t}return r}var up=Math.round;function af(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Bn(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var E6=1e-4;function Co(r){return r<E6&&r>-E6}function cp(r){return up(r*1e3)/1e3}function ky(r){return up(r*1e4)/1e4}function CG(r){return"matrix("+cp(r[0])+","+cp(r[1])+","+cp(r[2])+","+cp(r[3])+","+ky(r[4])+","+ky(r[5])+")"}var EG={left:"start",right:"end",center:"middle",middle:"middle"};function MG(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function AG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function kG(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function M6(r){return r&&!!r.image}function DG(r){return r&&!!r.svgElement}function Dy(r){return M6(r)||DG(r)}function A6(r){return r.type==="linear"}function k6(r){return r.type==="radial"}function D6(r){return r&&(r.type==="linear"||r.type==="radial")}function fp(r){return"url(#"+r+")"}function I6(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function L6(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*qd,i=Pt(r.scaleX,1),a=Pt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+up(o*qd)+"deg, "+up(s*qd)+"deg)"),l.join(" ")}var IG=(function(){return we.hasGlobalWindow&&Ft(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&Ai("Base64 isn't natively supported in the current environment."),null}})(),Iy=Array.prototype.slice;function Oa(r,e,t){return(e-r)*t+r}function Ly(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=Oa(e[a],t[a],n);return r}function LG(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Oa(e[o][s],t[o][s],n)}return r}function hp(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function P6(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function PG(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function OG(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:Iy.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function of(r){if(dn(r)){var e=r.length;if(dn(r[0])){for(var t=[],n=0;n<e;n++)t.push(Iy.call(r[n]));return t}return Iy.call(r)}return r}function dp(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function NG(r){return dn(r&&r[0])?2:1}var pp=0,vp=1,O6=2,sf=3,Py=4,Oy=5,N6=6;function R6(r){return r===Py||r===Oy}function mp(r){return r===vp||r===O6}var lf=[0,0,0,0],RG=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=N6,l=t;if(dn(t)){var u=NG(t);s=u,(u===1&&!Me(t[0])||u===2&&!Me(t[0][0]))&&(o=!0)}else if(Me(t)&&!qr(t))s=pp;else if(Et(t))if(!isNaN(+t))s=pp;else{var c=Bn(t);c&&(l=c,s=sf)}else if($d(t)){var f=vt({},l);f.colorStops=bt(t.colorStops,function(d){return{offset:d.offset,color:Bn(d.color)}}),A6(t)?s=Py:k6(t)&&(s=Oy),l=f}a===0?this.valType=s:(s!==this.valType||s===N6)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:t,percent:0};return n&&(h.easing=n,h.easingFunc=Ft(n)?n:ef[n]||wy(n)),i.push(h),h},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(m,v){return m.time-v.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=mp(i),u=R6(i),c=0;c<a;c++){var f=n[c],h=f.value,d=o.value;f.percent=f.time/e,s||(l&&c!==a-1?OG(h,d,i):u&&PG(h.colorStops,d.colorStops))}if(!s&&i!==Oy&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,c=0;c<a;c++)i===pp?n[c].additiveValue=n[c].value-p:i===sf?n[c].additiveValue=hp([],n[c].value,p,-1):mp(i)&&(n[c].additiveValue=i===vp?hp([],n[c].value,p,-1):P6([],n[c].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===sf,c,f=this._lastFr,h=Math.min,d,p;if(s===1)d=p=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var m=h(f+1,s-1);for(c=m;c>=0&&!(o[c].percent<=t);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>t);c++);c=h(c-1,s-2)}p=o[c+1],d=o[c]}if(d&&p){this._lastFr=c,this._lastFrP=t;var v=p.percent-d.percent,g=v===0?1:h((t-d.percent)/v,1);p.easingFunc&&(g=p.easingFunc(g));var y=n?this._additiveValue:u?lf:e[l];if((mp(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?d.rawValue:p.rawValue;else if(mp(a))a===vp?Ly(y,d[i],p[i],g):LG(y,d[i],p[i],g);else if(R6(a)){var b=d[i],_=p[i],T=a===Py;e[l]={type:T?"linear":"radial",x:Oa(b.x,_.x,g),y:Oa(b.y,_.y,g),colorStops:bt(b.colorStops,function(k,D){var P=_.colorStops[D];return{offset:Oa(k.offset,P.offset,g),color:dp(Ly([],k.color,P.color,g))}}),global:_.global},T?(e[l].x2=Oa(b.x2,_.x2,g),e[l].y2=Oa(b.y2,_.y2,g)):e[l].r=Oa(b.r,_.r,g)}else if(u)Ly(y,d[i],p[i],g),n||(e[l]=dp(y));else{var M=Oa(d[i],p[i],g);n?this._additiveValue=M:e[l]=M}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===pp?e[n]=e[n]+i:t===sf?(Bn(e[n],lf),hp(lf,lf,i,1),e[n]=dp(lf)):t===vp?hp(e[n],e[n],i,1):t===O6&&P6(e[n],e[n],i,1)},r})(),Ny=(function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){Ai("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,xe(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new RG(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===sf&&u&&(u=dp(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,of(u),i),this._trackKeys.push(s)}l.addKeyframe(e,of(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(t._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new _G({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){t._started=2;var p=t._additiveAnimators;if(p){for(var m=!1,v=0;v<p.length;v++)if(p[v]._clip){m=!0;break}m||(t._additiveAnimators=null)}for(var v=0;v<n.length;v++)n[v].step(t._target,d);var g=t._onframeCbs;if(g)for(var v=0;v<g.length;v++)g[v](t._target,d)},ondestroy:function(){t._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return bt(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=of(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||xe(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function cu(){return new Date().getTime()}var BG=(function(r){st(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=cu()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(ep(n),!t._paused&&t.update())}ep(n)},e.prototype.start=function(){this._running||(this._time=cu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=cu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=cu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new Ny(t,n.loop);return this.addAnimator(i),i},e})(oi),FG=300,Ry=we.domSupported,By=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=bt(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}})(),B6={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},F6=!1;function Fy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function VG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Vy(r){r&&(r.zrByTouch=!0)}function zG(r,e){return si(r.dom,new jG(r,e),!0)}function V6(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var jG=(function(){function r(e,t){this.stopPropagation=br,this.stopImmediatePropagation=br,this.preventDefault=br,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Ii={mousedown:function(r){r=si(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=si(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=si(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=si(this.dom,r);var e=r.toElement||r.relatedTarget;V6(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){F6=!0,r=si(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){F6||(r=si(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=si(this.dom,r),Vy(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ii.mousemove.call(this,r),Ii.mousedown.call(this,r)},touchmove:function(r){r=si(this.dom,r),Vy(r),this.handler.processGesture(r,"change"),Ii.mousemove.call(this,r)},touchend:function(r){r=si(this.dom,r),Vy(r),this.handler.processGesture(r,"end"),Ii.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<FG&&Ii.click.call(this,r)},pointerdown:function(r){Ii.mousedown.call(this,r)},pointermove:function(r){Fy(r)||Ii.mousemove.call(this,r)},pointerup:function(r){Ii.mouseup.call(this,r)},pointerout:function(r){Fy(r)||Ii.mouseout.call(this,r)}};K(["click","dblclick","contextmenu"],function(r){Ii[r]=function(e){e=si(this.dom,e),this.trigger(r,e)}});var zy={pointermove:function(r){Fy(r)||zy.mousemove.call(this,r)},pointerup:function(r){zy.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function HG(r,e){var t=e.domHandlers;we.pointerEventsSupported?K(By.pointer,function(n){gp(e,n,function(i){t[n].call(r,i)})}):(we.touchEventsSupported&&K(By.touch,function(n){gp(e,n,function(i){t[n].call(r,i),VG(e)})}),K(By.mouse,function(n){gp(e,n,function(i){i=cy(i),e.touching||t[n].call(r,i)})}))}function UG(r,e){we.pointerEventsSupported?K(B6.pointer,t):we.touchEventsSupported||K(B6.mouse,t);function t(n){function i(a){a=cy(a),V6(r,a.target)||(a=zG(r,a),e.domHandlers[n].call(r,a))}gp(e,n,i,{capture:!0})}}function gp(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,fy(r.domTarget,e,t,n)}function jy(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&tG(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var z6=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),$G=(function(r){st(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new z6(t,Ii),Ry&&(i._globalHandlerScope=new z6(document,zy)),HG(i,i._localHandlerScope),i}return e.prototype.dispose=function(){jy(this._localHandlerScope),Ry&&jy(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ry&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?UG(this,n):jy(n)}},e})(oi),j6=1;we.hasGlobalWindow&&(j6=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var yp=j6,Hy=.4,Uy="#333",$y="#ccc",GG="#eee",H6=Jd,U6=5e-5;function ks(r){return r>U6||r<-U6}var Ds=[],fu=[],Gy=Xr(),Wy=Math.abs,Na=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ks(this.rotation)||ks(this.x)||ks(this.y)||ks(this.scaleX-1)||ks(this.scaleY-1)||ks(this.skewX)||ks(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(H6(n),this.invTransform=null);return}n=n||Xr(),t?this.getLocalTransform(n):H6(n),e&&(t?Xi(n,e,n):Qd(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ds);var n=Ds[0]<0?-1:1,i=Ds[1]<0?-1:1,a=((Ds[0]-n)*t+n)/Ds[0]||0,o=((Ds[1]-i)*t+i)/Ds[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Xr(),ki(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Xr(),Xi(fu,e.invTransform,t),t=fu);var n=this.originX,i=this.originY;(n||i)&&(Gy[4]=n,Gy[5]=i,Xi(fu,t,Gy),fu[4]-=n,fu[5]-=i,t=fu),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&_r(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&_r(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Wy(e[0]-1)>1e-10&&Wy(e[3]-1)>1e-10?Math.sqrt(Wy(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){bp(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,m=i+l;t[4]=-p*a-h*m*o,t[5]=-m*o-d*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=h*o,u&&yo(t,t,u),t[4]+=n+c,t[5]+=i+f,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Qi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function bp(r,e){for(var t=0;t<Qi.length;t++){var n=Qi[t];r[n]=e[n]}}function ta(r){_p||(_p=new lu(100)),r=r||Ia;var e=_p.get(r);return e||(e={font:r,strWidthCache:new lu(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Mi.measureText("国",r).width,asciiCharWidth:Mi.measureText("a",r).width},_p.put(r,e)),e}var _p;function WG(r){if(!(Yy>=$6)){r=r||Ia;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=Mi.measureText(String.fromCharCode(n),r).width;var i=+new Date-t;return i>16?Yy=$6:i>2&&Yy++,e}}var Yy=0,$6=5;function G6(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=WG(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function ea(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=Mi.measureText(e,r.font).width,t.put(e,n)),n}function W6(r,e,t,n){var i=ea(ta(e),r),a=uf(e),o=hu(0,i,t),s=Is(0,a,n),l=new qt(o,s,i,a);return l}function wp(r,e,t,n){var i=((r||"")+"").split(`
19
19
  `),a=i.length;if(a===1)return W6(i[0],e,t,n);for(var o=new qt(0,0,0,0),s=0;s<i.length;s++){var l=W6(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function hu(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function Is(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function uf(r){return ta(r).stWideCharWidth}function Li(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function xp(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,c="left",f="top";if(n instanceof Array)l+=Li(n[0],t.width),u+=Li(n[1],t.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var qy="__zr_normal__",Xy=Qi.concat(["ignore"]),YG=qi(Qi,function(r,e){return r[e]=!0,r},{ignore:!1}),du={},qG=new qt(0,0,0,0),Sp=[],Tp=(function(){function r(e){this.id=$4(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(t);var c=n.position!=null,f=n.autoOverflowArea,h=void 0;if((f||c)&&(h=qG,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(du,n,h):xp(du,n,h),a.x=du.x,a.y=du.y,o=du.align,s=du.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var p=void 0,m=void 0;d==="center"?(p=h.width*.5,m=h.height*.5):(p=Li(d[0],h.width),m=Li(d[1],h.height)),u=!0,a.originX=-a.x+p+(i?0:h.x),a.originY=-a.y+m+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=g.overflowRect=g.overflowRect||new qt(0,0,0,0);a.getLocalTransform(Sp),ki(Sp,Sp),qt.copy(y,h),y.applyTransform(Sp)}else g.overflowRect=null;var b=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,_=void 0,T=void 0,M=void 0;b&&this.canBeInsideText()?(_=n.insideFill,T=n.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(T==null||T==="auto")&&(T=this.getInsideTextStroke(_),M=!0)):(_=n.outsideFill,T=n.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(T==null||T==="auto")&&(T=this.getOutsideStroke(_),M=!0)),_=_||"#000",(_!==g.fill||T!==g.stroke||M!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=_,g.stroke=T,g.autoStroke=M,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=qn,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$y:Uy},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&Bn(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ji(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},vt(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Ht(e))for(var n=e,i=xe(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==qy)){var o=i.targetName,s=o?t[o]:t;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Xy)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(qy,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===qy,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ae(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ai("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(e,t,n,c),h&&h.useState(e,t,n,c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qn),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],h=!!(f&&f.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,v=this._textGuide;m&&m.useStates(e,t,h),v&&v.useStates(e,t,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qn)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=ae(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=ae(i,e),o=ae(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i<e.length;i++){var a=e[i];vt(t,a),a.textConfig&&(n=n||{},vt(n,a.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,i,a,o){var s=!(t&&i);t&&t.textConfig?(this.textConfig=vt({},i?this.textConfig:n.textConfig),vt(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Xy.length;c++){var f=Xy[c],h=a&&YG[f];t&&t[f]!=null?h?(u=!0,l[f]=t[f]):this[f]=t[f]:s&&n[f]!=null&&(h?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(t||n)[p]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Na,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),vt(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=qn;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){Ai('Property "'+e+'" is not existed in element '+this.id);return}var a=new Ny(i,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var a=i.animators,o=ae(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,n){Zy(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){Zy(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,i){for(var a=Zy(this,t,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=qn;var t={};function n(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(h){c[s]=h}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),r})();Cr(Tp,oi),Cr(Tp,Na);function Zy(r,e,t,n,i){t=t||{};var a=[];Y6(r,"",r,e,t,n,a,i);var o=a.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(p,m){t.during(m)});for(var h=0;h<a.length;h++){var d=a[h];c&&d.done(c),f&&d.aborted(f),t.force&&d.duration(t.duration),d.start(t.easing)}return a}function Ky(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function XG(r){return dn(r[0])}function ZG(r,e,t){if(dn(e[t]))if(dn(r[t])||(r[t]=[]),Sn(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Ky(r[t],e[t],n))}else{var i=e[t],a=r[t],o=i.length;if(XG(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Ky(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Ky(a,i,o);a.length=i.length}else r[t]=e[t]}function KG(r,e){return r===e||dn(r)&&dn(e)&&JG(r,e)}function JG(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function Y6(r,e,t,n,i,a,o,s){for(var l=xe(n),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,d=!Ht(a),p=r.animators,m=[],v=0;v<l.length;v++){var g=l[v],y=n[g];if(y!=null&&t[g]!=null&&(d||a[g]))if(Ht(y)&&!dn(y)&&!$d(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}Y6(r,g,t[g],y,i,a&&a[g],o,s)}else m.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),m.push(g))}var b=m.length;if(!f&&b)for(var _=0;_<p.length;_++){var T=p[_];if(T.targetName===e){var M=T.stopTracks(m);if(M){var k=ae(p,T);p.splice(k,1)}}}if(i.force||(m=Ve(m,function(B){return!KG(n[B],t[B])}),b=m.length),b>0||i.force&&!o.length){var D=void 0,P=void 0,O=void 0;if(s){P={},h&&(D={});for(var _=0;_<b;_++){var g=m[_];P[g]=t[g],h?D[g]=n[g]:t[g]=n[g]}}else if(h){O={};for(var _=0;_<b;_++){var g=m[_];O[g]=of(t[g]),ZG(t,n,g)}}var T=new Ny(t,!1,!1,f?Ve(p,function(R){return R.targetName===e}):null);T.targetName=e,i.scope&&(T.scope=i.scope),h&&D&&T.whenWithKeys(0,D,m),O&&T.whenWithKeys(0,O,m),T.whenWithKeys(u??500,s?P:n,m).delay(c||0),r.addAnimator(T,e),o.push(T)}}var zt=(function(r){st(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===t)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=ae(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=ae(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i<t.length;i++){var a=t[i];n&&a.removeSelfFromZr(n),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];t.call(n,o,a)}return this},e.prototype.traverse=function(t,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=t.call(n,a);a.isGroup&&!o&&a.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new qt(0,0,0,0),i=t||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(qt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Tp);zt.prototype.type="group";var cf={},q6={};function QG(r){delete q6[r]}function tW(r){if(!r)return!1;if(typeof r=="string")return lp(r,1)<Hy;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,i=0;i<n;i++)t+=lp(e[i].color,1);return t/=n,t<Hy}return!1}var eW=(function(){function r(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new vG,o=n.renderer||"canvas";if(cf[o]||(o=xe(cf)[0]),process.env.NODE_ENV!=="production"&&!cf[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new cf[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!we.node&&!we.worker&&!l?new $G(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?we.touchEventsSupported:!!c,h=44,d;f&&(d=Pt(n.pointerSize,h)),this.handler=new o6(a,s,u,s.root,d),this.animation=new BG({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=tW(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=cu();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=cu();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof zt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,QG(this.id))},r})();function X6(r,e){var t=new eW($4(),r,e);return q6[t.id]=t,t}function rW(r,e){cf[r]=e}var Jy;function nW(r){if(typeof Jy=="function")return Jy(r)}function iW(r){Jy=r}var Z6=1e-4,K6=20;function aW(r){return r.replace(/^\s+|\s+$/g,"")}var Xn=Math.min,wr=Math.max,ra=Math.abs;function Re(r,e,t,n){var i=e[0],a=e[1],o=t[0],s=t[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}var Ct=oW;function oW(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Cp(r,e,t)}function Cp(r,e,t){return Et(r)?aW(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function Er(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),K6),r=(+r).toFixed(e),t?r:+r}function ci(r){return r.sort(function(e,t){return e-t}),r}function na(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Qy(r)}function Qy(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function J6(r,e){var t=Math.log,n=Math.LN10,i=Math.floor(t(r[1]-r[0])/n),a=Math.round(t(ra(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function sW(r,e){var t=qi(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(t===0)return[];for(var n=Math.pow(10,e),i=bt(r,function(d){return(isNaN(d)?0:d)/t*n*100}),a=n*100,o=bt(i,function(d){return Math.floor(d)}),s=qi(o,function(d,p){return d+p},0),l=bt(i,function(d,p){return d-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return bt(o,function(d){return d/n})}function lW(r,e){var t=Math.max(na(r),na(e)),n=r+e;return t>K6?n:Er(n,t)}var Q6=9007199254740991;function tT(r){var e=Math.PI*2;return(r%e+e)%e}function ff(r){return r>-Z6&&r<Z6}var uW=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ls(r){if(r instanceof Date)return r;if(Et(r)){var e=uW.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function cW(r){return Math.pow(10,Ep(r))}function Ep(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function eT(r,e){var t=Ep(r),n=Math.pow(10,t),i=r/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,r=a*n,t>=-20?+r.toFixed(t<0?-t:0):r}function t1(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),i=+r[n-1],a=t-n;return a?i+a*(r[n]-i):i}function rT(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-t),e=i[o],t=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ra(r){var e=parseFloat(r);return e==r&&(e!==0||!Et(r)||r.indexOf("x")<=0)?e:NaN}function e1(r){return!isNaN(Ra(r))}function nT(){return Math.round(Math.random()*9)}function iT(r,e){return e===0?r:iT(e,r%e)}function aT(r,e){return r==null?e:e==null?r:r*e/iT(r,e)}var fW="[ECharts] ",oT={},hW=typeof console<"u"&&console.warn&&console.log;function Mp(r,e,t){if(hW){if(t){if(oT[e])return;oT[e]=!0}console[r](fW+e)}}function sT(r,e){Mp("log",r,e)}function dr(r,e){Mp("warn",r,e)}function Ae(r,e){Mp("error",r,e)}function ia(r){process.env.NODE_ENV!=="production"&&Mp("warn","DEPRECATED: "+r,!0)}function Mr(r,e,t){process.env.NODE_ENV!=="production"&&ia((t?"["+t+"]":"")+(r+" is deprecated; use "+e+" instead."))}function Mn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":qr(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":Ft(i)?"function () { ... }":W4(i)?i+"":null};t=bt(r,function(i){if(Et(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function Be(r){throw new Error(r)}function lT(r,e,t){return(e-r)*t+r}var uT="series\0",cT="\0_ec_\0";function Ze(r){return r instanceof Array?r:r==null?[]:[r]}function Ps(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,i=t.length;n<i;n++){var a=t[n];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var fT=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function pu(r){return Ht(r)&&!gt(r)&&!(r instanceof Date)?r.value:r}function dW(r){return Ht(r)&&!(r instanceof Array)}function hT(r,e,t){var n=t==="normalMerge",i=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Ot();K(e,function(l,u){if(!Ht(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!vT(l.id)&&pT(l.id),l.name!=null&&!vT(l.name)&&pT(l.name))});var s=pW(r,o,t);return(n||i)&&vW(s,r,o,e),n&&mW(s,e),n||i?gW(s,e,i):a&&yW(s,e),bW(s),s}function pW(r,e,t){var n=[];if(t==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:t==="replaceMerge"||vu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function vW(r,e,t,n){K(n,function(i,a){if(!(!i||i.id==null)){var o=hf(i.id),s=t.get(o);if(s!=null){var l=r[s];It(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function mW(r,e){K(e,function(t,n){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||t.id==null)&&!vu(t)&&!vu(a)&&dT("name",a,t)){r[i].newOption=t,e[n]=null;return}}})}function gW(r,e,t){K(e,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||vu(i.existing)||i.existing&&n.id!=null&&!dT("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),a++}})}function yW(r,e){K(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function bW(r){var e=Ot();K(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),K(r,function(t){var n=t.newOption;It(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),K(r,function(t,n){var i=t.existing,a=t.newOption,o=t.keyInfo;if(Ht(a)){if(o.name=a.name!=null?hf(a.name):i?i.name:uT+n,i)o.id=hf(i.id);else if(a.id!=null)o.id=hf(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function dT(r,e,t){var n=Rr(e[r],null),i=Rr(t[r],null);return n!=null&&i!=null&&n===i}function hf(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return Rr(r,"")}function Rr(r,e){return r==null?e:Et(r)?r:Me(r)||Ud(r)?r+"":e}function pT(r){process.env.NODE_ENV!=="production"&&dr("`"+r+"` is invalid id or name. Must be a string or number.")}function vT(r){return Ud(r)||e1(r)}function r1(r){var e=r.name;return!!(e&&e.indexOf(uT))}function vu(r){return r&&r.id!=null&&hf(r.id).indexOf(cT)===0}function _W(r){return cT+r}function wW(r,e,t){K(r,function(n){var i=n.newOption;Ht(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=xW(e,i,n.existing,t))})}function xW(r,e,t,n){var i=e.type?e.type:t?t.subType:n.determineSubType(r,e);return i}function SW(r,e){var t={},n={};return i(r||[],t),i(e||[],n,t),[a(t),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Rr(o[u].seriesId,null);if(f==null)return;for(var h=Ze(o[u].dataIndex),d=l&&l[f],p=0,m=h.length;p<m;p++){var v=h[p];d&&d[v]?d[v]=null:(s[f]||(s[f]={}))[v]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Os(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return gt(e.dataIndex)?bt(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return gt(e.name)?bt(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ve(){var r="__ec_inner_"+TW++;return function(e){return e[r]||(e[r]={})}}var TW=nT();function mu(r,e,t){var n=n1(e,t),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=gu(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function n1(r,e){var t;if(Et(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var i=Ot(),a={},o=!1;return K(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&ae(e.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var gr={useDefault:!0,enableAll:!1,enableNone:!1},CW={useDefault:!1,enableAll:!0,enableNone:!0};function gu(r,e,t,n){n=n||gr;var i=t.index,a=t.id,o=t.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&Ae('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&Ae('`"all"` is not a valid value on index option.'),i=-1)),s.models=r.queryComponents({mainType:e,index:i,id:a,name:o}),s}function mT(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function EW(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function MW(r){return r==="auto"?we.domSupported?"html":"richText":r||"html"}function i1(r,e){var t=Ot(),n=[];return K(r,function(i){var a=e(i);(t.get(a)||(n.push(a),t.set(a,[]))).push(i)}),{keys:n,buckets:t}}function gT(r,e,t,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Me(n)){var o=lT(t||0,n,i);return Er(o,a?Math.max(na(t||0),na(n)):e)}else{if(Et(n))return i<1?t:n;for(var s=[],l=t,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,p=u[f],o=lT(d,p,i);s[f]=Er(o,a?Math.max(na(d),na(p)):e)}}return s}}var Eo=(function(){function r(){}return r.prototype.reset=function(e,t,n,i){return this._list=e,this._step=i=i||1,this._idx=t,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function a1(r){r.option=r.parentModel=r.ecModel=null}var AW=".",Ns="___EC__COMPONENT__CONTAINER___",yT="___EC__EXTENDED_CLASS___";function aa(r){var e={main:"",sub:""};if(r){var t=r.split(AW);e.main=t[0]||"",e.sub=t[1]||""}return e}function kW(r){It(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function DW(r){return!!(r&&r[yT])}function o1(r,e){r.$constructor=r,r.extend=function(t){process.env.NODE_ENV!=="production"&&K(e,function(a){t[a]||console.warn("Method `"+a+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i;return IW(n)?i=(function(a){st(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(t.$constructor||n).apply(this,arguments)},N$(i,this)),vt(i.prototype,t),i[yT]=!0,i.extend=this.extend,i.superCall=OW,i.superApply=NW,i.superClass=n,i}}function IW(r){return Ft(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function bT(r,e){r.extend=e.extend}var LW=Math.round(Math.random()*10);function PW(r){var e=["__\0is_clz",LW++].join("_");r.prototype[e]=!0,process.env.NODE_ENV!=="production"&&It(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function OW(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function NW(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ap(r){var e={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){kW(i),n.prototype.type=i;var a=aa(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==Ns){var o=t(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=e[n];if(o&&o[Ns]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=aa(n),a=[],o=e[i.main];return o&&o[Ns]?K(o,function(s,l){l!==Ns&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=aa(n);return!!e[i.main]},r.getAllClassMainTypes=function(){var n=[];return K(e,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=aa(n),a=e[i.main];return a&&a[Ns]};function t(n){var i=e[n.main];return(!i||!i[Ns])&&(i=e[n.main]={},i[Ns]=!0),i}}function Rs(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&ae(i,l)>=0||a&&ae(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var RW=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],BW=Rs(RW),FW=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return BW(this,e,t)},r})(),s1=new lu(50);function VW(r){if(typeof r=="string"){var e=s1.get(r);return e&&e.image}else return r}function l1(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=s1.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!kp(e)&&a.pending.push(o)):(e=Mi.loadImage(r,_T,_T),e.__zrImageSrc=r,s1.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function _T(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function kp(r){return r&&r.width&&r.height}var u1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function zW(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
20
20
  `);a=wT(t,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)xT(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
21
21
  `),r.isTruncated=s}function wT(r,e,t,n){n=n||{};var i=vt({},n);t=Pt(t,"..."),i.maxIterations=Pt(n.maxIterations,2);var a=i.minChar=Pt(n.minChar,0),o=i.fontMeasureInfo=ta(e),s=o.asciiCharWidth;i.placeholder=Pt(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var c=ea(o,t);return c>l&&(t="",c=0),l=r-c,i.ellipsis=t,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=r,i}function xT(r,e,t){var n=t.containerWidth,i=t.contentWidth,a=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=ea(a,e);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?jW(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=ea(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function jW(r,e,t){for(var n=0,i=0,a=r.length;i<a&&n<e;i++)n+=G6(t,r.charCodeAt(i));return i}function HW(r,e,t,n){var i=f1(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=a==="truncate",f=uf(u),h=Pt(e.lineHeight,f),d=e.lineOverflow==="truncate",p=!1,m=e.width;m==null&&t!=null&&(m=t-s);var v=e.height;v==null&&n!=null&&(v=n-l);var g;m!=null&&(a==="break"||a==="breakAll")?g=i?TT(i,e.font,m,a==="breakAll",0).lines:[]:g=i?i.split(`