shalu-dashboard-ui.umd.cjs 2.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. (function(Lt,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(Lt=typeof globalThis<"u"?globalThis:Lt||self,h(Lt.shaluDashboardUi={},Lt.Vue))})(this,function(Lt,h){"use strict";var Kn=(t=>(t[t.STATIC=0]="STATIC",t[t.API=1]="API",t[t.BASIC_PATH=2]="BASIC_PATH",t[t.VIEW_CODE=3]="VIEW_CODE",t))(Kn||{});const _l=(t,e,{checkForDefaultPrevented:n=!0}={})=>i=>{const o=t==null?void 0:t(i);if(n===!1||!o)return e==null?void 0:e(i)};var ZB;const sr=typeof window<"u",Jve=t=>typeof t=="string",XB=()=>{},eme=sr&&((ZB=window==null?void 0:window.navigator)==null?void 0:ZB.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function S2(t){return typeof t=="function"?t():h.unref(t)}function tme(t){return t}function U_(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function nme(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function YB(t,e,n={}){const{immediate:r=!0}=n,i=h.ref(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...u)},S2(e))}return r&&(i.value=!0,sr&&l()),U_(s),{isPending:h.readonly(i),start:l,stop:s}}function Su(t){var e;const n=S2(t);return(e=n==null?void 0:n.$el)!=null?e:n}const x2=sr?window:void 0;function nm(...t){let e,n,r,i;if(Jve(t[0])||Array.isArray(t[0])?([n,r,i]=t,e=x2):[e,n,r,i]=t,!e)return XB;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[Su(e),S2(i)],([c,f])=>{a(),c&&o.push(...n.flatMap(d=>r.map(p=>s(c,d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return U_(u),u}let qB=!1;function rme(t,e,n={}){const{window:r=x2,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;eme&&!qB&&(qB=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",XB)));let s=!0;const l=d=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(g=>g===d.target||d.composedPath().includes(g));{const g=Su(p);return g&&(d.target===g||d.composedPath().includes(g))}}),c=[nm(r,"click",d=>{const p=Su(t);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:o}),nm(r,"pointerdown",d=>{const p=Su(t);p&&(s=!d.composedPath().includes(p)&&!l(d))},{passive:!0}),a&&nm(r,"blur",d=>{var p;const g=Su(t);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function ime(t,e=!1){const n=h.ref(),r=()=>n.value=!!t();return r(),nme(r,e),n}const KB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JB="__vueuse_ssr_handlers__";KB[JB]=KB[JB]||{};var e6=Object.getOwnPropertySymbols,ome=Object.prototype.hasOwnProperty,ame=Object.prototype.propertyIsEnumerable,sme=(t,e)=>{var n={};for(var r in t)ome.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&e6)for(var r of e6(t))e.indexOf(r)<0&&ame.call(t,r)&&(n[r]=t[r]);return n};function lme(t,e,n={}){const r=n,{window:i=x2}=r,o=sme(r,["window"]);let a;const s=ime(()=>i&&"ResizeObserver"in i),l=()=>{a&&(a.disconnect(),a=void 0)},u=h.watch(()=>Su(t),f=>{l(),s.value&&i&&f&&(a=new ResizeObserver(e),a.observe(f,o))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return U_(c),{isSupported:s,stop:c}}var t6;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(t6||(t6={}));var ume=Object.defineProperty,n6=Object.getOwnPropertySymbols,cme=Object.prototype.hasOwnProperty,fme=Object.prototype.propertyIsEnumerable,r6=(t,e,n)=>e in t?ume(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dme=(t,e)=>{for(var n in e||(e={}))cme.call(e,n)&&r6(t,n,e[n]);if(n6)for(var n of n6(e))fme.call(e,n)&&r6(t,n,e[n]);return t};dme({linear:tme},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const hme=()=>sr&&/firefox/i.test(window.navigator.userAgent),C2=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};/**
  2. * @vue/shared v3.4.31
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xu=()=>{},pme=Object.prototype.hasOwnProperty,of=(t,e)=>pme.call(t,e),Vh=Array.isArray,af=t=>typeof t=="function",vi=t=>typeof t=="string",sf=t=>t!==null&&typeof t=="object",gme=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},vme=/-(\w)/g,mme=gme(t=>t.replace(vme,(e,n)=>n?n.toUpperCase():""));var i6=typeof global=="object"&&global&&global.Object===Object&&global,yme=typeof self=="object"&&self&&self.Object===Object&&self,Ba=i6||yme||Function("return this")(),zo=Ba.Symbol,o6=Object.prototype,bme=o6.hasOwnProperty,_me=o6.toString,rm=zo?zo.toStringTag:void 0;function Ome(t){var e=bme.call(t,rm),n=t[rm];try{t[rm]=void 0;var r=!0}catch{}var i=_me.call(t);return r&&(e?t[rm]=n:delete t[rm]),i}var wme=Object.prototype,Sme=wme.toString;function xme(t){return Sme.call(t)}var Cme="[object Null]",Tme="[object Undefined]",a6=zo?zo.toStringTag:void 0;function Cu(t){return t==null?t===void 0?Tme:Cme:a6&&a6 in Object(t)?Ome(t):xme(t)}function Va(t){return t!=null&&typeof t=="object"}var Pme="[object Symbol]";function Z_(t){return typeof t=="symbol"||Va(t)&&Cu(t)==Pme}function X_(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var zi=Array.isArray,$me=1/0,s6=zo?zo.prototype:void 0,l6=s6?s6.toString:void 0;function u6(t){if(typeof t=="string")return t;if(zi(t))return X_(t,u6)+"";if(Z_(t))return l6?l6.call(t):"";var e=t+"";return e=="0"&&1/t==-$me?"-0":e}var Ame=/\s/;function Eme(t){for(var e=t.length;e--&&Ame.test(t.charAt(e)););return e}var Mme=/^\s+/;function Ime(t){return t&&t.slice(0,Eme(t)+1).replace(Mme,"")}function Lr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var c6=NaN,Dme=/^[-+]0x[0-9a-f]+$/i,Rme=/^0b[01]+$/i,kme=/^0o[0-7]+$/i,Nme=parseInt;function T2(t){if(typeof t=="number")return t;if(Z_(t))return c6;if(Lr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Lr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ime(t);var n=Rme.test(t);return n||kme.test(t)?Nme(t.slice(2),n?2:8):Dme.test(t)?c6:+t}var f6=1/0,Lme=17976931348623157e292;function Bme(t){if(!t)return t===0?t:0;if(t=T2(t),t===f6||t===-f6){var e=t<0?-1:1;return e*Lme}return t===t?t:0}function Vme(t){var e=Bme(t),n=e%1;return e===e?n?e-n:e:0}function P2(t){return t}var zme="[object AsyncFunction]",Fme="[object Function]",Wme="[object GeneratorFunction]",Qme="[object Proxy]";function $2(t){if(!Lr(t))return!1;var e=Cu(t);return e==Fme||e==Wme||e==zme||e==Qme}var A2=Ba["__core-js_shared__"],d6=function(){var t=/[^.]+$/.exec(A2&&A2.keys&&A2.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Hme(t){return!!d6&&d6 in t}var Gme=Function.prototype,jme=Gme.toString;function lf(t){if(t!=null){try{return jme.call(t)}catch{}try{return t+""}catch{}}return""}var Ume=/[\\^$.*+?()[\]{}|]/g,Zme=/^\[object .+?Constructor\]$/,Xme=Function.prototype,Yme=Object.prototype,qme=Xme.toString,Kme=Yme.hasOwnProperty,Jme=RegExp("^"+qme.call(Kme).replace(Ume,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function e0e(t){if(!Lr(t)||Hme(t))return!1;var e=$2(t)?Jme:Zme;return e.test(lf(t))}function t0e(t,e){return t==null?void 0:t[e]}function uf(t,e){var n=t0e(t,e);return e0e(n)?n:void 0}var E2=uf(Ba,"WeakMap"),h6=Object.create,n0e=function(){function t(){}return function(e){if(!Lr(e))return{};if(h6)return h6(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function p6(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r0e(){}function g6(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var i0e=800,o0e=16,a0e=Date.now;function s0e(t){var e=0,n=0;return function(){var r=a0e(),i=o0e-(r-n);if(n=r,i>0){if(++e>=i0e)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function l0e(t){return function(){return t}}var Y_=function(){try{var t=uf(Object,"defineProperty");return t({},"",{}),t}catch{}}(),u0e=Y_?function(t,e){return Y_(t,"toString",{configurable:!0,enumerable:!1,value:l0e(e),writable:!0})}:P2,v6=s0e(u0e);function c0e(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function m6(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function f0e(t){return t!==t}function d0e(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function h0e(t,e,n){return e===e?d0e(t,e,n):m6(t,f0e,n)}function y6(t,e){var n=t==null?0:t.length;return!!n&&h0e(t,e,0)>-1}var p0e=9007199254740991,g0e=/^(?:0|[1-9]\d*)$/;function q_(t,e){var n=typeof t;return e=e??p0e,!!e&&(n=="number"||n!="symbol"&&g0e.test(t))&&t>-1&&t%1==0&&t<e}function M2(t,e,n){e=="__proto__"&&Y_?Y_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function im(t,e){return t===e||t!==t&&e!==e}var v0e=Object.prototype,m0e=v0e.hasOwnProperty;function I2(t,e,n){var r=t[e];(!(m0e.call(t,e)&&im(r,n))||n===void 0&&!(e in t))&&M2(t,e,n)}function zh(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=void 0;l===void 0&&(l=t[s]),i?M2(n,s,l):I2(n,s,l)}return n}var b6=Math.max;function _6(t,e,n){return e=b6(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=b6(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),p6(t,this,s)}}function D2(t,e){return v6(_6(t,e,P2),t+"")}var y0e=9007199254740991;function R2(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=y0e}function Fh(t){return t!=null&&R2(t.length)&&!$2(t)}function b0e(t,e,n){if(!Lr(n))return!1;var r=typeof e;return(r=="number"?Fh(n)&&q_(e,n.length):r=="string"&&e in n)?im(n[e],t):!1}function _0e(t){return D2(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&b0e(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var O0e=Object.prototype;function K_(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||O0e;return t===n}function w0e(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var S0e="[object Arguments]";function O6(t){return Va(t)&&Cu(t)==S0e}var w6=Object.prototype,x0e=w6.hasOwnProperty,C0e=w6.propertyIsEnumerable,Wh=O6(function(){return arguments}())?O6:function(t){return Va(t)&&x0e.call(t,"callee")&&!C0e.call(t,"callee")};function T0e(){return!1}var S6=typeof Lt=="object"&&Lt&&!Lt.nodeType&&Lt,x6=S6&&typeof module=="object"&&module&&!module.nodeType&&module,P0e=x6&&x6.exports===S6,C6=P0e?Ba.Buffer:void 0,$0e=C6?C6.isBuffer:void 0,Qh=$0e||T0e,A0e="[object Arguments]",E0e="[object Array]",M0e="[object Boolean]",I0e="[object Date]",D0e="[object Error]",R0e="[object Function]",k0e="[object Map]",N0e="[object Number]",L0e="[object Object]",B0e="[object RegExp]",V0e="[object Set]",z0e="[object String]",F0e="[object WeakMap]",W0e="[object ArrayBuffer]",Q0e="[object DataView]",H0e="[object Float32Array]",G0e="[object Float64Array]",j0e="[object Int8Array]",U0e="[object Int16Array]",Z0e="[object Int32Array]",X0e="[object Uint8Array]",Y0e="[object Uint8ClampedArray]",q0e="[object Uint16Array]",K0e="[object Uint32Array]",Pn={};Pn[H0e]=Pn[G0e]=Pn[j0e]=Pn[U0e]=Pn[Z0e]=Pn[X0e]=Pn[Y0e]=Pn[q0e]=Pn[K0e]=!0,Pn[A0e]=Pn[E0e]=Pn[W0e]=Pn[M0e]=Pn[Q0e]=Pn[I0e]=Pn[D0e]=Pn[R0e]=Pn[k0e]=Pn[N0e]=Pn[L0e]=Pn[B0e]=Pn[V0e]=Pn[z0e]=Pn[F0e]=!1;function J0e(t){return Va(t)&&R2(t.length)&&!!Pn[Cu(t)]}function J_(t){return function(e){return t(e)}}var T6=typeof Lt=="object"&&Lt&&!Lt.nodeType&&Lt,om=T6&&typeof module=="object"&&module&&!module.nodeType&&module,eye=om&&om.exports===T6,k2=eye&&i6.process,Hh=function(){try{var t=om&&om.require&&om.require("util").types;return t||k2&&k2.binding&&k2.binding("util")}catch{}}(),P6=Hh&&Hh.isTypedArray,e1=P6?J_(P6):J0e,tye=Object.prototype,nye=tye.hasOwnProperty;function $6(t,e){var n=zi(t),r=!n&&Wh(t),i=!n&&!r&&Qh(t),o=!n&&!r&&!i&&e1(t),a=n||r||i||o,s=a?w0e(t.length,String):[],l=s.length;for(var u in t)(e||nye.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||q_(u,l)))&&s.push(u);return s}function A6(t,e){return function(n){return t(e(n))}}var rye=A6(Object.keys,Object),iye=Object.prototype,oye=iye.hasOwnProperty;function E6(t){if(!K_(t))return rye(t);var e=[];for(var n in Object(t))oye.call(t,n)&&n!="constructor"&&e.push(n);return e}function am(t){return Fh(t)?$6(t):E6(t)}function aye(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var sye=Object.prototype,lye=sye.hasOwnProperty;function uye(t){if(!Lr(t))return aye(t);var e=K_(t),n=[];for(var r in t)r=="constructor"&&(e||!lye.call(t,r))||n.push(r);return n}function sm(t){return Fh(t)?$6(t,!0):uye(t)}var cye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fye=/^\w*$/;function N2(t,e){if(zi(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Z_(t)?!0:fye.test(t)||!cye.test(t)||e!=null&&t in Object(e)}var lm=uf(Object,"create");function dye(){this.__data__=lm?lm(null):{},this.size=0}function hye(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var pye="__lodash_hash_undefined__",gye=Object.prototype,vye=gye.hasOwnProperty;function mye(t){var e=this.__data__;if(lm){var n=e[t];return n===pye?void 0:n}return vye.call(e,t)?e[t]:void 0}var yye=Object.prototype,bye=yye.hasOwnProperty;function _ye(t){var e=this.__data__;return lm?e[t]!==void 0:bye.call(e,t)}var Oye="__lodash_hash_undefined__";function wye(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=lm&&e===void 0?Oye:e,this}function cf(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}cf.prototype.clear=dye,cf.prototype.delete=hye,cf.prototype.get=mye,cf.prototype.has=_ye,cf.prototype.set=wye;function Sye(){this.__data__=[],this.size=0}function t1(t,e){for(var n=t.length;n--;)if(im(t[n][0],e))return n;return-1}var xye=Array.prototype,Cye=xye.splice;function Tye(t){var e=this.__data__,n=t1(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Cye.call(e,n,1),--this.size,!0}function Pye(t){var e=this.__data__,n=t1(e,t);return n<0?void 0:e[n][1]}function $ye(t){return t1(this.__data__,t)>-1}function Aye(t,e){var n=this.__data__,r=t1(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Ol(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ol.prototype.clear=Sye,Ol.prototype.delete=Tye,Ol.prototype.get=Pye,Ol.prototype.has=$ye,Ol.prototype.set=Aye;var um=uf(Ba,"Map");function Eye(){this.size=0,this.__data__={hash:new cf,map:new(um||Ol),string:new cf}}function Mye(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function n1(t,e){var n=t.__data__;return Mye(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Iye(t){var e=n1(this,t).delete(t);return this.size-=e?1:0,e}function Dye(t){return n1(this,t).get(t)}function Rye(t){return n1(this,t).has(t)}function kye(t,e){var n=n1(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function wl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}wl.prototype.clear=Eye,wl.prototype.delete=Iye,wl.prototype.get=Dye,wl.prototype.has=Rye,wl.prototype.set=kye;var Nye="Expected a function";function L2(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Nye);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(L2.Cache||wl),n}L2.Cache=wl;var Lye=500;function Bye(t){var e=L2(t,function(r){return n.size===Lye&&n.clear(),r}),n=e.cache;return e}var Vye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zye=/\\(\\)?/g,Fye=Bye(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Vye,function(n,r,i,o){e.push(i?o.replace(zye,"$1"):r||n)}),e});function Wye(t){return t==null?"":u6(t)}function Gh(t,e){return zi(t)?t:N2(t,e)?[t]:Fye(Wye(t))}var Qye=1/0;function jh(t){if(typeof t=="string"||Z_(t))return t;var e=t+"";return e=="0"&&1/t==-Qye?"-0":e}function r1(t,e){e=Gh(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[jh(e[n++])];return n&&n==r?t:void 0}function Ut(t,e,n){var r=t==null?void 0:r1(t,e);return r===void 0?n:r}function B2(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var M6=zo?zo.isConcatSpreadable:void 0;function Hye(t){return zi(t)||Wh(t)||!!(M6&&t&&t[M6])}function Gye(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Hye),i||(i=[]);++o<a;){var s=t[o];n(s)?B2(i,s):i[i.length]=s}return i}function jye(t){var e=t==null?0:t.length;return e?Gye(t):[]}function I6(t){return v6(_6(t,void 0,jye),t+"")}var V2=A6(Object.getPrototypeOf,Object),Uye="[object Object]",Zye=Function.prototype,Xye=Object.prototype,D6=Zye.toString,Yye=Xye.hasOwnProperty,qye=D6.call(Object);function z2(t){if(!Va(t)||Cu(t)!=Uye)return!1;var e=V2(t);if(e===null)return!0;var n=Yye.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&D6.call(n)==qye}function Kye(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function Jye(){this.__data__=new Ol,this.size=0}function ebe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function tbe(t){return this.__data__.get(t)}function nbe(t){return this.__data__.has(t)}var rbe=200;function ibe(t,e){var n=this.__data__;if(n instanceof Ol){var r=n.__data__;if(!um||r.length<rbe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new wl(r)}return n.set(t,e),this.size=n.size,this}function za(t){var e=this.__data__=new Ol(t);this.size=e.size}za.prototype.clear=Jye,za.prototype.delete=ebe,za.prototype.get=tbe,za.prototype.has=nbe,za.prototype.set=ibe;function obe(t,e){return t&&zh(e,am(e),t)}function abe(t,e){return t&&zh(e,sm(e),t)}var R6=typeof Lt=="object"&&Lt&&!Lt.nodeType&&Lt,k6=R6&&typeof module=="object"&&module&&!module.nodeType&&module,sbe=k6&&k6.exports===R6,N6=sbe?Ba.Buffer:void 0,L6=N6?N6.allocUnsafe:void 0;function B6(t,e){if(e)return t.slice();var n=t.length,r=L6?L6(n):new t.constructor(n);return t.copy(r),r}function lbe(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function V6(){return[]}var ube=Object.prototype,cbe=ube.propertyIsEnumerable,z6=Object.getOwnPropertySymbols,F2=z6?function(t){return t==null?[]:(t=Object(t),lbe(z6(t),function(e){return cbe.call(t,e)}))}:V6;function fbe(t,e){return zh(t,F2(t),e)}var dbe=Object.getOwnPropertySymbols,F6=dbe?function(t){for(var e=[];t;)B2(e,F2(t)),t=V2(t);return e}:V6;function hbe(t,e){return zh(t,F6(t),e)}function W6(t,e,n){var r=e(t);return zi(t)?r:B2(r,n(t))}function W2(t){return W6(t,am,F2)}function Q6(t){return W6(t,sm,F6)}var Q2=uf(Ba,"DataView"),H2=uf(Ba,"Promise"),Uh=uf(Ba,"Set"),H6="[object Map]",pbe="[object Object]",G6="[object Promise]",j6="[object Set]",U6="[object WeakMap]",Z6="[object DataView]",gbe=lf(Q2),vbe=lf(um),mbe=lf(H2),ybe=lf(Uh),bbe=lf(E2),Fo=Cu;(Q2&&Fo(new Q2(new ArrayBuffer(1)))!=Z6||um&&Fo(new um)!=H6||H2&&Fo(H2.resolve())!=G6||Uh&&Fo(new Uh)!=j6||E2&&Fo(new E2)!=U6)&&(Fo=function(t){var e=Cu(t),n=e==pbe?t.constructor:void 0,r=n?lf(n):"";if(r)switch(r){case gbe:return Z6;case vbe:return H6;case mbe:return G6;case ybe:return j6;case bbe:return U6}return e});var _be=Object.prototype,Obe=_be.hasOwnProperty;function wbe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Obe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var i1=Ba.Uint8Array;function G2(t){var e=new t.constructor(t.byteLength);return new i1(e).set(new i1(t)),e}function Sbe(t,e){var n=e?G2(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var xbe=/\w*$/;function Cbe(t){var e=new t.constructor(t.source,xbe.exec(t));return e.lastIndex=t.lastIndex,e}var X6=zo?zo.prototype:void 0,Y6=X6?X6.valueOf:void 0;function Tbe(t){return Y6?Object(Y6.call(t)):{}}function q6(t,e){var n=e?G2(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Pbe="[object Boolean]",$be="[object Date]",Abe="[object Map]",Ebe="[object Number]",Mbe="[object RegExp]",Ibe="[object Set]",Dbe="[object String]",Rbe="[object Symbol]",kbe="[object ArrayBuffer]",Nbe="[object DataView]",Lbe="[object Float32Array]",Bbe="[object Float64Array]",Vbe="[object Int8Array]",zbe="[object Int16Array]",Fbe="[object Int32Array]",Wbe="[object Uint8Array]",Qbe="[object Uint8ClampedArray]",Hbe="[object Uint16Array]",Gbe="[object Uint32Array]";function jbe(t,e,n){var r=t.constructor;switch(e){case kbe:return G2(t);case Pbe:case $be:return new r(+t);case Nbe:return Sbe(t,n);case Lbe:case Bbe:case Vbe:case zbe:case Fbe:case Wbe:case Qbe:case Hbe:case Gbe:return q6(t,n);case Abe:return new r;case Ebe:case Dbe:return new r(t);case Mbe:return Cbe(t);case Ibe:return new r;case Rbe:return Tbe(t)}}function K6(t){return typeof t.constructor=="function"&&!K_(t)?n0e(V2(t)):{}}var Ube="[object Map]";function Zbe(t){return Va(t)&&Fo(t)==Ube}var J6=Hh&&Hh.isMap,Xbe=J6?J_(J6):Zbe,Ybe="[object Set]";function qbe(t){return Va(t)&&Fo(t)==Ybe}var eV=Hh&&Hh.isSet,Kbe=eV?J_(eV):qbe,Jbe=1,e_e=2,t_e=4,tV="[object Arguments]",n_e="[object Array]",r_e="[object Boolean]",i_e="[object Date]",o_e="[object Error]",nV="[object Function]",a_e="[object GeneratorFunction]",s_e="[object Map]",l_e="[object Number]",rV="[object Object]",u_e="[object RegExp]",c_e="[object Set]",f_e="[object String]",d_e="[object Symbol]",h_e="[object WeakMap]",p_e="[object ArrayBuffer]",g_e="[object DataView]",v_e="[object Float32Array]",m_e="[object Float64Array]",y_e="[object Int8Array]",b_e="[object Int16Array]",__e="[object Int32Array]",O_e="[object Uint8Array]",w_e="[object Uint8ClampedArray]",S_e="[object Uint16Array]",x_e="[object Uint32Array]",Sn={};Sn[tV]=Sn[n_e]=Sn[p_e]=Sn[g_e]=Sn[r_e]=Sn[i_e]=Sn[v_e]=Sn[m_e]=Sn[y_e]=Sn[b_e]=Sn[__e]=Sn[s_e]=Sn[l_e]=Sn[rV]=Sn[u_e]=Sn[c_e]=Sn[f_e]=Sn[d_e]=Sn[O_e]=Sn[w_e]=Sn[S_e]=Sn[x_e]=!0,Sn[o_e]=Sn[nV]=Sn[h_e]=!1;function cm(t,e,n,r,i,o){var a,s=e&Jbe,l=e&e_e,u=e&t_e;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Lr(t))return t;var c=zi(t);if(c){if(a=wbe(t),!s)return g6(t,a)}else{var f=Fo(t),d=f==nV||f==a_e;if(Qh(t))return B6(t,s);if(f==rV||f==tV||d&&!i){if(a=l||d?{}:K6(t),!s)return l?hbe(t,abe(a,t)):fbe(t,obe(a,t))}else{if(!Sn[f])return i?t:{};a=jbe(t,f,s)}}o||(o=new za);var p=o.get(t);if(p)return p;o.set(t,a),Kbe(t)?t.forEach(function(m){a.add(cm(m,e,n,m,t,o))}):Xbe(t)&&t.forEach(function(m,y){a.set(y,cm(m,e,n,y,t,o))});var g=u?l?Q6:W2:l?sm:am,v=c?void 0:g(t);return c0e(v||t,function(m,y){v&&(y=m,m=t[y]),I2(a,y,cm(m,e,n,y,t,o))}),a}var C_e=1,T_e=4;function ff(t){return cm(t,C_e|T_e)}var P_e="__lodash_hash_undefined__";function $_e(t){return this.__data__.set(t,P_e),this}function A_e(t){return this.__data__.has(t)}function Zh(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new wl;++e<n;)this.add(t[e])}Zh.prototype.add=Zh.prototype.push=$_e,Zh.prototype.has=A_e;function E_e(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function o1(t,e){return t.has(e)}var M_e=1,I_e=2;function iV(t,e,n,r,i,o){var a=n&M_e,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,p=n&I_e?new Zh:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var g=t[f],v=e[f];if(r)var m=a?r(v,g,f,e,t,o):r(g,v,f,t,e,o);if(m!==void 0){if(m)continue;d=!1;break}if(p){if(!E_e(e,function(y,b){if(!o1(p,b)&&(g===y||i(g,y,n,r,o)))return p.push(b)})){d=!1;break}}else if(!(g===v||i(g,v,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function D_e(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function j2(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var R_e=1,k_e=2,N_e="[object Boolean]",L_e="[object Date]",B_e="[object Error]",V_e="[object Map]",z_e="[object Number]",F_e="[object RegExp]",W_e="[object Set]",Q_e="[object String]",H_e="[object Symbol]",G_e="[object ArrayBuffer]",j_e="[object DataView]",oV=zo?zo.prototype:void 0,U2=oV?oV.valueOf:void 0;function U_e(t,e,n,r,i,o,a){switch(n){case j_e:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case G_e:return!(t.byteLength!=e.byteLength||!o(new i1(t),new i1(e)));case N_e:case L_e:case z_e:return im(+t,+e);case B_e:return t.name==e.name&&t.message==e.message;case F_e:case Q_e:return t==e+"";case V_e:var s=D_e;case W_e:var l=r&R_e;if(s||(s=j2),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=k_e,a.set(t,e);var c=iV(s(t),s(e),r,i,o,a);return a.delete(t),c;case H_e:if(U2)return U2.call(t)==U2.call(e)}return!1}var Z_e=1,X_e=Object.prototype,Y_e=X_e.hasOwnProperty;function q_e(t,e,n,r,i,o){var a=n&Z_e,s=W2(t),l=s.length,u=W2(e),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:Y_e.call(e,d)))return!1}var p=o.get(t),g=o.get(e);if(p&&g)return p==e&&g==t;var v=!0;o.set(t,e),o.set(e,t);for(var m=a;++f<l;){d=s[f];var y=t[d],b=e[d];if(r)var O=a?r(b,y,d,e,t,o):r(y,b,d,t,e,o);if(!(O===void 0?y===b||i(y,b,n,r,o):O)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=t.constructor,S=e.constructor;w!=S&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(v=!1)}return o.delete(t),o.delete(e),v}var K_e=1,aV="[object Arguments]",sV="[object Array]",a1="[object Object]",J_e=Object.prototype,lV=J_e.hasOwnProperty;function e1e(t,e,n,r,i,o){var a=zi(t),s=zi(e),l=a?sV:Fo(t),u=s?sV:Fo(e);l=l==aV?a1:l,u=u==aV?a1:u;var c=l==a1,f=u==a1,d=l==u;if(d&&Qh(t)){if(!Qh(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new za),a||e1(t)?iV(t,e,n,r,i,o):U_e(t,e,l,n,r,i,o);if(!(n&K_e)){var p=c&&lV.call(t,"__wrapped__"),g=f&&lV.call(e,"__wrapped__");if(p||g){var v=p?t.value():t,m=g?e.value():e;return o||(o=new za),i(v,m,n,r,o)}}return d?(o||(o=new za),q_e(t,e,n,r,i,o)):!1}function s1(t,e,n,r,i){return t===e?!0:t==null||e==null||!Va(t)&&!Va(e)?t!==t&&e!==e:e1e(t,e,n,r,s1,i)}var t1e=1,n1e=2;function r1e(t,e,n,r){var i=n.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var a=n[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var s=a[0],l=t[s],u=a[1];if(a[2]){if(l===void 0&&!(s in t))return!1}else{var c=new za,f;if(!(f===void 0?s1(u,l,t1e|n1e,r,c):f))return!1}}return!0}function uV(t){return t===t&&!Lr(t)}function i1e(t){for(var e=am(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,uV(i)]}return e}function cV(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function o1e(t){var e=i1e(t);return e.length==1&&e[0][2]?cV(e[0][0],e[0][1]):function(n){return n===t||r1e(n,t,e)}}function a1e(t,e){return t!=null&&e in Object(t)}function s1e(t,e,n){e=Gh(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=jh(e[r]);if(!(o=t!=null&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&R2(i)&&q_(a,i)&&(zi(t)||Wh(t)))}function fV(t,e){return t!=null&&s1e(t,e,a1e)}var l1e=1,u1e=2;function c1e(t,e){return N2(t)&&uV(e)?cV(jh(t),e):function(n){var r=Ut(n,t);return r===void 0&&r===e?fV(n,t):s1(e,r,l1e|u1e)}}function f1e(t){return function(e){return e==null?void 0:e[t]}}function d1e(t){return function(e){return r1(e,t)}}function h1e(t){return N2(t)?f1e(jh(t)):d1e(t)}function dV(t){return typeof t=="function"?t:t==null?P2:typeof t=="object"?zi(t)?c1e(t[0],t[1]):o1e(t):h1e(t)}function p1e(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return e}}var g1e=p1e(),Z2=function(){return Ba.Date.now()},v1e="Expected a function",m1e=Math.max,y1e=Math.min;function X2(t,e,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(v1e);e=T2(e)||0,Lr(n)&&(c=!!n.leading,f="maxWait"in n,o=f?m1e(T2(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function p(x){var T=r,$=i;return r=i=void 0,u=x,a=t.apply($,T),a}function g(x){return u=x,s=setTimeout(y,e),c?p(x):a}function v(x){var T=x-l,$=x-u,A=e-T;return f?y1e(A,o-$):A}function m(x){var T=x-l,$=x-u;return l===void 0||T>=e||T<0||f&&$>=o}function y(){var x=Z2();if(m(x))return b(x);s=setTimeout(y,v(x))}function b(x){return s=void 0,d&&r?p(x):(r=i=void 0,a)}function O(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return s===void 0?a:b(Z2())}function S(){var x=Z2(),T=m(x);if(r=arguments,i=this,l=x,T){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(y,e),p(l)}return s===void 0&&(s=setTimeout(y,e)),a}return S.cancel=O,S.flush=w,S}function Y2(t,e,n){(n!==void 0&&!im(t[e],n)||n===void 0&&!(e in t))&&M2(t,e,n)}function hV(t){return Va(t)&&Fh(t)}function q2(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function b1e(t){return zh(t,sm(t))}function _1e(t,e,n,r,i,o,a){var s=q2(t,n),l=q2(e,n),u=a.get(l);if(u){Y2(t,n,u);return}var c=o?o(s,l,n+"",t,e,a):void 0,f=c===void 0;if(f){var d=zi(l),p=!d&&Qh(l),g=!d&&!p&&e1(l);c=l,d||p||g?zi(s)?c=s:hV(s)?c=g6(s):p?(f=!1,c=B6(l,!0)):g?(f=!1,c=q6(l,!0)):c=[]:z2(l)||Wh(l)?(c=s,Wh(s)?c=b1e(s):(!Lr(s)||$2(s))&&(c=K6(l))):f=!1}f&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Y2(t,n,c)}function K2(t,e,n,r,i){t!==e&&g1e(e,function(o,a){if(i||(i=new za),Lr(o))_1e(t,e,a,n,K2,r,i);else{var s=r?r(q2(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),Y2(t,a,s)}},sm)}function pV(t,e,n,r,i,o){return Lr(t)&&Lr(e)&&(o.set(e,t),K2(t,e,void 0,pV,o),o.delete(e)),t}var O1e=_0e(function(t,e,n,r){K2(t,e,n,r)}),gV=D2(function(t){return t.push(void 0,pV),p6(O1e,void 0,t)});function w1e(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function S1e(t){return function(e,n,r){var i=Object(e);if(!Fh(e)){var o=dV(n);e=am(e),n=function(s){return o(i[s],s,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}var x1e=Math.max;function C1e(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:Vme(n);return i<0&&(i=x1e(r+i,0)),m6(t,dV(e),i)}var T1e=S1e(C1e);function l1(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}var P1e=Math.min;function $1e(t,e,n){for(var r=y6,i=t[0].length,o=t.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=t[a];a&&e&&(c=X_(c,J_(e))),l=P1e(c.length,l),s[a]=i>=120&&c.length>=120?new Zh(a&&c):void 0}c=t[0];var f=-1,d=s[0];e:for(;++f<i&&u.length<l;){var p=c[f],g=p;if(p=p!==0?p:0,!(d?o1(d,g):r(u,g))){for(a=o;--a;){var v=s[a];if(!(v?o1(v,g):r(t[a],g)))continue e}d&&d.push(g),u.push(p)}}return u}function A1e(t){return hV(t)?t:[]}var E1e=D2(function(t){var e=X_(t,A1e);return e.length&&e[0]===t[0]?$1e(e):[]});function M1e(t,e){return e.length<2?t:r1(t,Kye(e,0,-1))}var I1e="[object Map]",D1e="[object Set]",R1e=Object.prototype,k1e=R1e.hasOwnProperty;function vV(t){if(t==null)return!0;if(Fh(t)&&(zi(t)||typeof t=="string"||typeof t.splice=="function"||Qh(t)||e1(t)||Wh(t)))return!t.length;var e=Fo(t);if(e==I1e||e==D1e)return!t.size;if(K_(t))return!E6(t).length;for(var n in t)if(k1e.call(t,n))return!1;return!0}function fm(t,e){return s1(t,e)}var N1e="[object Number]";function L1e(t){return typeof t=="number"||Va(t)&&Cu(t)==N1e}function Tu(t){return t==null}function mV(t){return t===void 0}function B1e(t,e){return e=Gh(e,t),t=M1e(t,e),t==null||delete t[jh(w1e(e))]}function V1e(t){return z2(t)?void 0:t}var z1e=1,F1e=2,W1e=4,yV=I6(function(t,e){var n={};if(t==null)return n;var r=!1;e=X_(e,function(o){return o=Gh(o,t),r||(r=o.length>1),o}),zh(t,Q6(t),n),r&&(n=cm(n,z1e|F1e|W1e,V1e));for(var i=e.length;i--;)B1e(n,e[i]);return n});function bV(t,e,n,r){if(!Lr(t))return t;e=Gh(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=jh(e[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var c=s[l];u=void 0,u===void 0&&(u=Lr(c)?c:q_(e[i+1])?[]:{})}I2(s,l,u),s=s[l]}return t}function Q1e(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=r1(t,a);n(s,a)&&bV(o,Gh(a,t),s)}return o}function H1e(t,e){return Q1e(t,e,function(n,r){return fV(t,r)})}var Xh=I6(function(t,e){return t==null?{}:H1e(t,e)});function J2(t,e,n){return t==null?t:bV(t,e,n)}var G1e="Expected a function";function j1e(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(G1e);return Lr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),X2(t,e,{leading:r,maxWait:e,trailing:i})}var U1e=1/0,Z1e=Uh&&1/j2(new Uh([,-0]))[1]==U1e?function(t){return new Uh(t)}:r0e,X1e=200;function Y1e(t,e,n){var r=-1,i=y6,o=t.length,a=!0,s=[],l=s;if(o>=X1e){var u=Z1e(t);if(u)return j2(u);a=!1,i=o1,l=new Zh}else l=s;e:for(;++r<o;){var c=t[r],f=c;if(c=c!==0?c:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;s.push(c)}else i(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}function e$(t){return t&&t.length?Y1e(t):[]}const u1=t=>t===void 0,Pu=t=>typeof t=="boolean",Fa=t=>typeof t=="number",dm=t=>typeof Element>"u"?!1:t instanceof Element,Yh=t=>Tu(t),q1e=t=>vi(t)?!Number.isNaN(Number(t)):!1;class _V extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function K1e(t,e){throw new _V(`[${t}] ${e}`)}function ti(t,e){if(process.env.NODE_ENV!=="production"){const n=vi(t)?new _V(`[${t}] ${e}`):t;console.warn(n)}}const J1e="utils/dom/style",OV=(t="")=>t.split(" ").filter(e=>!!e.trim()),wV=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},SV=(t,e)=>{!t||!e.trim()||t.classList.add(...OV(e))},c1=(t,e)=>{!t||!e.trim()||t.classList.remove(...OV(e))},eOe=(t,e)=>{var n;if(!sr||!t||!e)return"";let r=mme(e);r==="float"&&(r="cssFloat");try{const i=t.style[r];if(i)return i;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return o?o[r]:""}catch{return t.style[r]}};function qh(t,e="px"){if(!t)return"";if(Fa(t)||q1e(t))return`${t}${e}`;if(vi(t))return t;ti(J1e,"binding value must be a string or number")}let f1;const tOe=t=>{var e;if(!sr)return 0;if(f1!==void 0)return f1;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),f1=r-o,f1};/*! Element Plus Icons Vue v2.3.1 */var nOe=h.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),rOe=nOe,iOe=h.defineComponent({name:"CaretRight",__name:"caret-right",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),oOe=iOe,aOe=h.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),h.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),sOe=aOe,lOe=h.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),h.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),xV=lOe,uOe=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),CV=uOe,cOe=h.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),h.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),fOe=cOe,dOe=h.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),t$=dOe,hOe=h.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),pOe=hOe;const TV="__epPropKey",Zt=t=>t,gOe=t=>sf(t)&&!!t[TV],d1=(t,e)=>{if(!sf(t)||gOe(t))return t;const{values:n,required:r,default:i,type:o,validator:a}=t,l={type:o,required:!!r,validator:n||a?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),of(t,"default")&&f.push(i),c||(c=f.includes(u))),a&&(c||(c=a(u))),!c&&f.length>0){const d=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[TV]:!0};return of(t,"default")&&(l.default=i),l},zn=t=>l1(Object.entries(t).map(([e,n])=>[e,d1(n,e)])),Kh=Zt([String,Object,Function]),vOe={Close:CV},mOe={validating:t$,success:sOe,error:xV},Sl=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},hm=t=>(t.install=xu,t),yOe=(...t)=>e=>{t.forEach(n=>{af(n)?n(e):n.value=e})},Fi={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"},mi="update:modelValue",PV="change",bOe=["","default","small","large"];var h1=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(h1||{});const _Oe=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),OOe=t=>t,wOe=["class","style"],SOe=/^on[A-Z]/,xOe=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=h.computed(()=>((n==null?void 0:n.value)||[]).concat(wOe)),i=h.getCurrentInstance();return i?h.computed(()=>{var o;return l1(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(e&&SOe.test(a))))}):(ti("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),h.computed(()=>({})))},Wa=({from:t,replacement:e,scope:n,version:r,ref:i,type:o="API"},a)=>{h.watch(()=>h.unref(a),s=>{s&&ti(n,`[${o}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
  6. For more detail, please visit: ${i}
  7. `)},{immediate:!0})},COe=(t,e,n,r)=>{let i={offsetX:0,offsetY:0};const o=l=>{const u=l.clientX,c=l.clientY,{offsetX:f,offsetY:d}=i,p=t.value.getBoundingClientRect(),g=p.left,v=p.top,m=p.width,y=p.height,b=document.documentElement.clientWidth,O=document.documentElement.clientHeight,w=-g+f,S=-v+d,x=b-g-m+f,T=O-v-y+d,$=P=>{let M=f+P.clientX-u,I=d+P.clientY-c;r!=null&&r.value||(M=Math.min(Math.max(M,w),x),I=Math.min(Math.max(I,S),T)),i={offsetX:M,offsetY:I},t.value&&(t.value.style.transform=`translate(${qh(M)}, ${qh(I)})`)},A=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",A)},a=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",o)},s=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",o)};h.onMounted(()=>{h.watchEffect(()=>{n.value?a():s()})}),h.onBeforeUnmount(()=>{s()})};var TOe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const POe=t=>(e,n)=>$Oe(e,n,h.unref(t)),$Oe=(t,e,n)=>Ut(n,t,t).replace(/\{(\w+)\}/g,(r,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),AOe=t=>{const e=h.computed(()=>h.unref(t).name),n=h.isRef(t)?t:h.ref(t);return{lang:e,locale:n,t:POe(t)}},EOe=Symbol("localeContextKey"),n$=t=>{const e=h.inject(EOe,h.ref());return AOe(h.computed(()=>e.value||TOe))},p1="el",MOe="is-",df=(t,e,n,r,i)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o},IOe=Symbol("namespaceContextKey"),r$=t=>{const e=h.getCurrentInstance()?h.inject(IOe,h.ref(p1)):h.ref(p1);return h.computed(()=>h.unref(e)||p1)},an=(t,e)=>{const n=r$();return{namespace:n,b:(v="")=>df(n.value,t,v,"",""),e:v=>v?df(n.value,t,"",v,""):"",m:v=>v?df(n.value,t,"","",v):"",be:(v,m)=>v&&m?df(n.value,t,v,m,""):"",em:(v,m)=>v&&m?df(n.value,t,"",v,m):"",bm:(v,m)=>v&&m?df(n.value,t,v,"",m):"",bem:(v,m,y)=>v&&m&&y?df(n.value,t,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${MOe}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${t}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${t}-${v}`}},DOe=(t,e={})=>{h.isRef(t)||K1e("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||an("popup"),r=h.computed(()=>n.bm("parent","hidden"));if(!sr||wV(document.body,r.value))return;let i=0,o=!1,a="0";const s=()=>{setTimeout(()=>{c1(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)},200)};h.watch(t,l=>{if(!l){s();return}o=!wV(document.body,r.value),o&&(a=document.body.style.width),i=tOe(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=eOe(document.body,"overflowY");i>0&&(u||c==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),SV(document.body,r.value)}),h.onScopeDispose(()=>s())},ROe=d1({type:Zt(Boolean),default:null}),kOe=d1({type:Zt(Function)}),$V=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],i={[t]:ROe,[n]:kOe};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=h.getCurrentInstance(),{emit:p}=d,g=d.props,v=h.computed(()=>af(g[n])),m=h.computed(()=>g[t]===null),y=T=>{a.value!==!0&&(a.value=!0,s&&(s.value=T),af(c)&&c(T))},b=T=>{a.value!==!1&&(a.value=!1,s&&(s.value=T),af(f)&&f(T))},O=T=>{if(g.disabled===!0||af(u)&&!u())return;const $=v.value&&sr;$&&p(e,!0),(m.value||!$)&&y(T)},w=T=>{if(g.disabled===!0||!sr)return;const $=v.value&&sr;$&&p(e,!1),(m.value||!$)&&b(T)},S=T=>{Pu(T)&&(g.disabled&&T?v.value&&p(e,!1):a.value!==T&&(T?y():b()))},x=()=>{a.value?w():O()};return h.watch(()=>g[t],S),l&&d.appContext.config.globalProperties.$route!==void 0&&h.watch(()=>({...d.proxy.$route}),()=>{l.value&&a.value&&w()}),h.onMounted(()=>{S(g[t])}),{hide:w,show:O,toggle:x,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};$V("modelValue");const AV=t=>{const e=h.getCurrentInstance();return h.computed(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var Wi="top",Wo="bottom",Qo="right",Qi="left",i$="auto",pm=[Wi,Wo,Qo,Qi],Jh="start",gm="end",NOe="clippingParents",EV="viewport",vm="popper",LOe="reference",MV=pm.reduce(function(t,e){return t.concat([e+"-"+Jh,e+"-"+gm])},[]),o$=[].concat(pm,[i$]).reduce(function(t,e){return t.concat([e,e+"-"+Jh,e+"-"+gm])},[]),BOe="beforeRead",VOe="read",zOe="afterRead",FOe="beforeMain",WOe="main",QOe="afterMain",HOe="beforeWrite",GOe="write",jOe="afterWrite",UOe=[BOe,VOe,zOe,FOe,WOe,QOe,HOe,GOe,jOe];function ws(t){return t?(t.nodeName||"").toLowerCase():null}function Qa(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ep(t){var e=Qa(t).Element;return t instanceof e||t instanceof Element}function Ho(t){var e=Qa(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function a$(t){if(typeof ShadowRoot>"u")return!1;var e=Qa(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZOe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!Ho(o)||!ws(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function XOe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ho(i)||!ws(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var IV={name:"applyStyles",enabled:!0,phase:"write",fn:ZOe,effect:XOe,requires:["computeStyles"]};function Ss(t){return t.split("-")[0]}var hf=Math.max,g1=Math.min,tp=Math.round;function np(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Ho(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(r=tp(n.width)/a||1),o>0&&(i=tp(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function s$(t){var e=np(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function DV(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&a$(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xl(t){return Qa(t).getComputedStyle(t)}function YOe(t){return["table","td","th"].indexOf(ws(t))>=0}function $u(t){return((ep(t)?t.ownerDocument:t.document)||window.document).documentElement}function v1(t){return ws(t)==="html"?t:t.assignedSlot||t.parentNode||(a$(t)?t.host:null)||$u(t)}function RV(t){return!Ho(t)||xl(t).position==="fixed"?null:t.offsetParent}function qOe(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ho(t)){var r=xl(t);if(r.position==="fixed")return null}var i=v1(t);for(a$(i)&&(i=i.host);Ho(i)&&["html","body"].indexOf(ws(i))<0;){var o=xl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function mm(t){for(var e=Qa(t),n=RV(t);n&&YOe(n)&&xl(n).position==="static";)n=RV(n);return n&&(ws(n)==="html"||ws(n)==="body"&&xl(n).position==="static")?e:n||qOe(t)||e}function l$(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ym(t,e,n){return hf(t,g1(e,n))}function KOe(t,e,n){var r=ym(t,e,n);return r>n?n:r}function kV(){return{top:0,right:0,bottom:0,left:0}}function NV(t){return Object.assign({},kV(),t)}function LV(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var JOe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,NV(typeof t!="number"?t:LV(t,pm))};function ewe(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ss(n.placement),l=l$(s),u=[Qi,Qo].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=JOe(i.padding,n),d=s$(o),p=l==="y"?Wi:Qi,g=l==="y"?Wo:Qo,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],y=mm(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,O=v/2-m/2,w=f[p],S=b-d[c]-f[g],x=b/2-d[c]/2+O,T=ym(w,x,S),$=l;n.modifiersData[r]=(e={},e[$]=T,e.centerOffset=T-x,e)}}function twe(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!DV(e.elements.popper,i)||(e.elements.arrow=i))}var nwe={name:"arrow",enabled:!0,phase:"main",fn:ewe,effect:twe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rp(t){return t.split("-")[1]}var rwe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iwe(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:tp(e*i)/i||0,y:tp(n*i)/i||0}}function BV(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=a.x,p=d===void 0?0:d,g=a.y,v=g===void 0?0:g,m=typeof c=="function"?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),O=Qi,w=Wi,S=window;if(u){var x=mm(n),T="clientHeight",$="clientWidth";if(x===Qa(n)&&(x=$u(n),xl(x).position!=="static"&&s==="absolute"&&(T="scrollHeight",$="scrollWidth")),x=x,i===Wi||(i===Qi||i===Qo)&&o===gm){w=Wo;var A=f&&x===S&&S.visualViewport?S.visualViewport.height:x[T];v-=A-r.height,v*=l?1:-1}if(i===Qi||(i===Wi||i===Wo)&&o===gm){O=Qo;var P=f&&x===S&&S.visualViewport?S.visualViewport.width:x[$];p-=P-r.width,p*=l?1:-1}}var M=Object.assign({position:s},u&&rwe),I=c===!0?iwe({x:p,y:v}):{x:p,y:v};if(p=I.x,v=I.y,l){var R;return Object.assign({},M,(R={},R[w]=b?"0":"",R[O]=y?"0":"",R.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",R))}return Object.assign({},M,(e={},e[w]=b?v+"px":"",e[O]=y?p+"px":"",e.transform="",e))}function owe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Ss(e.placement),variation:rp(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,BV(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,BV(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var VV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:owe,data:{}},m1={passive:!0};function awe(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qa(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,m1)}),s&&l.addEventListener("resize",n.update,m1),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,m1)}),s&&l.removeEventListener("resize",n.update,m1)}}var zV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:awe,data:{}},swe={left:"right",right:"left",bottom:"top",top:"bottom"};function y1(t){return t.replace(/left|right|bottom|top/g,function(e){return swe[e]})}var lwe={start:"end",end:"start"};function FV(t){return t.replace(/start|end/g,function(e){return lwe[e]})}function u$(t){var e=Qa(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c$(t){return np($u(t)).left+u$(t).scrollLeft}function uwe(t){var e=Qa(t),n=$u(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+c$(t),y:s}}function cwe(t){var e,n=$u(t),r=u$(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=hf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=hf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+c$(t),l=-r.scrollTop;return xl(i||n).direction==="rtl"&&(s+=hf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function f$(t){var e=xl(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function WV(t){return["html","body","#document"].indexOf(ws(t))>=0?t.ownerDocument.body:Ho(t)&&f$(t)?t:WV(v1(t))}function bm(t,e){var n;e===void 0&&(e=[]);var r=WV(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Qa(r),a=i?[o].concat(o.visualViewport||[],f$(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(bm(v1(a)))}function d$(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fwe(t){var e=np(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function QV(t,e){return e===EV?d$(uwe(t)):ep(e)?fwe(e):d$(cwe($u(t)))}function dwe(t){var e=bm(v1(t)),n=["absolute","fixed"].indexOf(xl(t).position)>=0,r=n&&Ho(t)?mm(t):t;return ep(r)?e.filter(function(i){return ep(i)&&DV(i,r)&&ws(i)!=="body"}):[]}function hwe(t,e,n){var r=e==="clippingParents"?dwe(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,l){var u=QV(t,l);return s.top=hf(u.top,s.top),s.right=g1(u.right,s.right),s.bottom=g1(u.bottom,s.bottom),s.left=hf(u.left,s.left),s},QV(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function HV(t){var e=t.reference,n=t.element,r=t.placement,i=r?Ss(r):null,o=r?rp(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case Wi:l={x:a,y:e.y-n.height};break;case Wo:l={x:a,y:e.y+e.height};break;case Qo:l={x:e.x+e.width,y:s};break;case Qi:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=i?l$(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Jh:l[u]=l[u]-(e[c]/2-n[c]/2);break;case gm:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function _m(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.boundary,a=o===void 0?NOe:o,s=n.rootBoundary,l=s===void 0?EV:s,u=n.elementContext,c=u===void 0?vm:u,f=n.altBoundary,d=f===void 0?!1:f,p=n.padding,g=p===void 0?0:p,v=NV(typeof g!="number"?g:LV(g,pm)),m=c===vm?LOe:vm,y=t.rects.popper,b=t.elements[d?m:c],O=hwe(ep(b)?b:b.contextElement||$u(t.elements.popper),a,l),w=np(t.elements.reference),S=HV({reference:w,element:y,strategy:"absolute",placement:i}),x=d$(Object.assign({},y,S)),T=c===vm?x:w,$={top:O.top-T.top+v.top,bottom:T.bottom-O.bottom+v.bottom,left:O.left-T.left+v.left,right:T.right-O.right+v.right},A=t.modifiersData.offset;if(c===vm&&A){var P=A[i];Object.keys($).forEach(function(M){var I=[Qo,Wo].indexOf(M)>=0?1:-1,R=[Wi,Wo].indexOf(M)>=0?"y":"x";$[M]+=P[R]*I})}return $}function pwe(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?o$:l,c=rp(r),f=c?s?MV:MV.filter(function(g){return rp(g)===c}):pm,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var p=d.reduce(function(g,v){return g[v]=_m(t,{placement:v,boundary:i,rootBoundary:o,padding:a})[Ss(v)],g},{});return Object.keys(p).sort(function(g,v){return p[g]-p[v]})}function gwe(t){if(Ss(t)===i$)return[];var e=y1(t);return[FV(t),e,FV(e)]}function vwe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,v=n.allowedAutoPlacements,m=e.options.placement,y=Ss(m),b=y===m,O=l||(b||!g?[y1(m)]:gwe(m)),w=[m].concat(O).reduce(function(se,oe){return se.concat(Ss(oe)===i$?pwe(e,{placement:oe,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):oe)},[]),S=e.rects.reference,x=e.rects.popper,T=new Map,$=!0,A=w[0],P=0;P<w.length;P++){var M=w[P],I=Ss(M),R=rp(M)===Jh,L=[Wi,Wo].indexOf(I)>=0,D=L?"width":"height",B=_m(e,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),F=L?R?Qo:Qi:R?Wo:Wi;S[D]>x[D]&&(F=y1(F));var z=y1(F),W=[];if(o&&W.push(B[I]<=0),s&&W.push(B[F]<=0,B[z]<=0),W.every(function(se){return se})){A=M,$=!1;break}T.set(M,W)}if($)for(var j=g?3:1,H=function(se){var oe=w.find(function(de){var ie=T.get(de);if(ie)return ie.slice(0,se).every(function(ue){return ue})});if(oe)return A=oe,"break"},Z=j;Z>0;Z--){var J=H(Z);if(J==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}}var mwe={name:"flip",enabled:!0,phase:"main",fn:vwe,requiresIfExists:["offset"],data:{_skip:!1}};function GV(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jV(t){return[Wi,Qo,Wo,Qi].some(function(e){return t[e]>=0})}function ywe(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=_m(e,{elementContext:"reference"}),s=_m(e,{altBoundary:!0}),l=GV(a,r),u=GV(s,i,o),c=jV(l),f=jV(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var bwe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ywe};function _we(t,e,n){var r=Ss(t),i=[Qi,Wi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Qi,Qo].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Owe(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=o$.reduce(function(c,f){return c[f]=_we(f,e.rects,o),c},{}),s=a[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}var wwe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Owe};function Swe(t){var e=t.state,n=t.name;e.modifiersData[n]=HV({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var UV={name:"popperOffsets",enabled:!0,phase:"read",fn:Swe,data:{}};function xwe(t){return t==="x"?"y":"x"}function Cwe(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,g=n.tetherOffset,v=g===void 0?0:g,m=_m(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Ss(e.placement),b=rp(e.placement),O=!b,w=l$(y),S=xwe(w),x=e.modifiersData.popperOffsets,T=e.rects.reference,$=e.rects.popper,A=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(x){if(o){var R,L=w==="y"?Wi:Qi,D=w==="y"?Wo:Qo,B=w==="y"?"height":"width",F=x[w],z=F+m[L],W=F-m[D],j=p?-$[B]/2:0,H=b===Jh?T[B]:$[B],Z=b===Jh?-$[B]:-T[B],J=e.elements.arrow,se=p&&J?s$(J):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kV(),de=oe[L],ie=oe[D],ue=ym(0,T[B],se[B]),ee=O?T[B]/2-j-ue-de-P.mainAxis:H-ue-de-P.mainAxis,X=O?-T[B]/2+j+ue+ie+P.mainAxis:Z+ue+ie+P.mainAxis,Y=e.elements.arrow&&mm(e.elements.arrow),le=Y?w==="y"?Y.clientTop||0:Y.clientLeft||0:0,ve=(R=M==null?void 0:M[w])!=null?R:0,ye=F+ee-ve-le,Ne=F+X-ve,Be=ym(p?g1(z,ye):z,F,p?hf(W,Ne):W);x[w]=Be,I[w]=Be-F}if(s){var Me,$e=w==="x"?Wi:Qi,_e=w==="x"?Wo:Qo,De=x[S],Fe=S==="y"?"height":"width",ct=De+m[$e],vt=De-m[_e],zt=[Wi,Qi].indexOf(y)!==-1,we=(Me=M==null?void 0:M[S])!=null?Me:0,rt=zt?ct:De-T[Fe]-$[Fe]-we+P.altAxis,Mt=zt?De+T[Fe]+$[Fe]-we-P.altAxis:vt,mn=p&&zt?KOe(rt,De,Mt):ym(p?rt:ct,De,p?Mt:vt);x[S]=mn,I[S]=mn-De}e.modifiersData[r]=I}}var Twe={name:"preventOverflow",enabled:!0,phase:"main",fn:Cwe,requiresIfExists:["offset"]};function Pwe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function $we(t){return t===Qa(t)||!Ho(t)?u$(t):Pwe(t)}function Awe(t){var e=t.getBoundingClientRect(),n=tp(e.width)/t.offsetWidth||1,r=tp(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ewe(t,e,n){n===void 0&&(n=!1);var r=Ho(e),i=Ho(e)&&Awe(e),o=$u(e),a=np(t,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ws(e)!=="body"||f$(o))&&(s=$we(e)),Ho(e)?(l=np(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=c$(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Mwe(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function Iwe(t){var e=Mwe(t);return UOe.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function Dwe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Rwe(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var ZV={placement:"bottom",modifiers:[],strategy:"absolute"};function XV(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function h$(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?ZV:i;return function(a,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ZV,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(v){var m=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},o,u.options,m),u.scrollParents={reference:ep(a)?bm(a):a.contextElement?bm(a.contextElement):[],popper:bm(s)};var y=Iwe(Rwe([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),p(),d.update()},forceUpdate:function(){if(!f){var v=u.elements,m=v.reference,y=v.popper;if(XV(m,y)){u.rects={reference:Ewe(m,mm(y),u.options.strategy==="fixed"),popper:s$(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function($){return u.modifiersData[$.name]=Object.assign({},$.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var O=u.orderedModifiers[b],w=O.fn,S=O.options,x=S===void 0?{}:S,T=O.name;typeof w=="function"&&(u=w({state:u,options:x,name:T,instance:d})||u)}}}},update:Dwe(function(){return new Promise(function(v){d.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!XV(a,s))return d;d.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function p(){u.orderedModifiers.forEach(function(v){var m=v.name,y=v.options,b=y===void 0?{}:y,O=v.effect;if(typeof O=="function"){var w=O({state:u,name:m,instance:d,options:b}),S=function(){};c.push(w||S)}})}function g(){c.forEach(function(v){return v()}),c=[]}return d}}h$();var kwe=[zV,UV,VV,IV];h$({defaultModifiers:kwe});var Nwe=[zV,UV,VV,IV,wwe,mwe,Twe,nwe,bwe],Lwe=h$({defaultModifiers:Nwe});const Bwe=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Vwe(l);Object.assign(a.value,u)},requires:["computeStyles"]},i=h.computed(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=h.unref(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=h.shallowRef(),a=h.ref({styles:{popper:{position:h.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return h.watch(i,l=>{const u=h.unref(o);u&&u.setOptions(l)},{deep:!0}),h.watch([t,e],([l,u])=>{s(),!(!l||!u)&&(o.value=Lwe(l,u,h.unref(i)))}),h.onBeforeUnmount(()=>{s()}),{state:h.computed(()=>{var l;return{...((l=h.unref(o))==null?void 0:l.state)||{}}}),styles:h.computed(()=>h.unref(a).styles),attributes:h.computed(()=>h.unref(a).attributes),update:()=>{var l;return(l=h.unref(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=h.unref(o))==null?void 0:l.forceUpdate()},instanceRef:h.computed(()=>h.unref(o))}};function Vwe(t){const e=Object.keys(t.elements),n=l1(e.map(i=>[i,t.styles[i]||{}])),r=l1(e.map(i=>[i,t.attributes[i]]));return{styles:n,attributes:r}}const YV=t=>{if(!t)return{onClick:xu,onMousedown:xu,onMouseup:xu};let e=!1,n=!1;return{onClick:a=>{e&&n&&t(a),e=n=!1},onMousedown:a=>{e=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function qV(){let t;const e=(r,i)=>{n(),t=window.setTimeout(r,i)},n=()=>window.clearTimeout(t);return U_(()=>n()),{registerTimeout:e,cancelTimeout:n}}const p$={prefix:Math.floor(Math.random()*1e4),current:0},zwe=Symbol("elIdInjection"),KV=()=>h.getCurrentInstance()?h.inject(zwe,p$):p$,Om=t=>{const e=KV();!sr&&e===p$&&ti("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
  8. usage: app.provide(ID_INJECTION_KEY, {
  9. prefix: number,
  10. current: number,
  11. })`);const n=r$();return h.computed(()=>h.unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let ip=[];const JV=t=>{const e=t;e.key===Fi.esc&&ip.forEach(n=>n(e))},Fwe=t=>{h.onMounted(()=>{ip.length===0&&document.addEventListener("keydown",JV),sr&&ip.push(t)}),h.onBeforeUnmount(()=>{ip=ip.filter(e=>e!==t),ip.length===0&&sr&&document.removeEventListener("keydown",JV)})};let ez;const tz=()=>{const t=r$(),e=KV(),n=h.computed(()=>`${t.value}-popper-container-${e.prefix}`),r=h.computed(()=>`#${n.value}`);return{id:n,selector:r}},Wwe=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},Qwe=()=>{const{id:t,selector:e}=tz();return h.onBeforeMount(()=>{sr&&(process.env.NODE_ENV==="test"||!ez&&!document.body.querySelector(e.value))&&(ez=Wwe(t.value))}),{id:t,selector:e}},Hwe=zn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Gwe=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:i})=>{const{registerTimeout:o}=qV(),{registerTimeout:a,cancelTimeout:s}=qV();return{onOpen:c=>{o(()=>{r(c);const f=h.unref(n);Fa(f)&&f>0&&a(()=>{i(c)},f)},h.unref(t))},onClose:c=>{s(),o(()=>{i(c)},h.unref(e))}}},nz=Symbol("elForwardRef"),jwe=t=>{const e=n=>{t.value=n};h.provide(nz,{setForwardRef:e})},Uwe=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),rz={current:0},iz=h.ref(0),Zwe=2e3,oz=Symbol("elZIndexContextKey"),Xwe=Symbol("zIndexContextKey"),az=t=>{const e=h.getCurrentInstance()?h.inject(oz,rz):rz,n=h.getCurrentInstance()?h.inject(Xwe,void 0):void 0,r=h.computed(()=>{const a=h.unref(n);return Fa(a)?a:Zwe}),i=h.computed(()=>r.value+iz.value),o=()=>(e.current++,iz.value=e.current,i.value);return!sr&&!h.inject(oz)&&ti("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
  12. usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:i,nextZIndex:o}};function Ywe(t){const e=h.ref();function n(){if(t.value==null)return;const{selectionStart:i,selectionEnd:o,value:a}=t.value;if(i==null||o==null)return;const s=a.slice(0,Math.max(0,i)),l=a.slice(Math.max(0,o));e.value={selectionStart:i,selectionEnd:o,value:a,beforeTxt:s,afterTxt:l}}function r(){if(t.value==null||e.value==null)return;const{value:i}=t.value,{beforeTxt:o,afterTxt:a,selectionStart:s}=e.value;if(o==null||a==null||s==null)return;let l=i.length;if(i.endsWith(a))l=i.length-a.length;else if(i.startsWith(o))l=o.length;else{const u=o[s-1],c=i.indexOf(u,s-1);c!==-1&&(l=c+1)}t.value.setSelectionRange(l,l)}return[n,r]}const pf=d1({type:String,values:bOe,required:!1}),qwe=Symbol("size"),Kwe=()=>{const t=h.inject(qwe,{});return h.computed(()=>h.unref(t.size)||"")};function sz(t,{afterFocus:e,beforeBlur:n,afterBlur:r}={}){const i=h.getCurrentInstance(),{emit:o}=i,a=h.shallowRef(),s=h.ref(!1),l=f=>{s.value||(s.value=!0,o("focus",f),e==null||e())},u=f=>{var d;af(n)&&n(f)||f.relatedTarget&&((d=a.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,o("blur",f),r==null||r())},c=()=>{var f;(f=t.value)==null||f.focus()};return h.watch(a,f=>{f&&f.setAttribute("tabindex","-1")}),nm(a,"click",c),{wrapperRef:a,isFocused:s,handleFocus:l,handleBlur:u}}const Jwe=zn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),gf=t=>Xh(Jwe,t),eSe=Symbol(),lz=h.ref();function uz(t,e=void 0){const n=h.getCurrentInstance()?h.inject(eSe,lz):lz;return t?h.computed(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[t])!=null?i:e}):n}var fn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const tSe=zn({size:{type:Zt([Number,String])},color:{type:String}}),nSe=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),rSe=h.defineComponent({...nSe,props:tSe,setup(t){const e=t,n=an("icon"),r=h.computed(()=>{const{size:i,color:o}=e;return!i&&!o?{}:{fontSize:u1(i)?void 0:qh(i),"--color":o}});return(i,o)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(n).b(),style:h.unref(r)},i.$attrs),[h.renderSlot(i.$slots,"default")],16))}});var iSe=fn(rSe,[["__file","icon.vue"]]);const Ha=Sl(iSe),g$=Symbol("formContextKey"),wm=Symbol("formItemContextKey"),op=(t,e={})=>{const n=h.ref(void 0),r=e.prop?n:AV("size"),i=e.global?n:Kwe(),o=e.form?{size:void 0}:h.inject(g$,void 0),a=e.formItem?{size:void 0}:h.inject(wm,void 0);return h.computed(()=>r.value||h.unref(t)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||i.value||"")},ap=t=>{const e=AV("disabled"),n=h.inject(g$,void 0);return h.computed(()=>e.value||h.unref(t)||(n==null?void 0:n.disabled)||!1)},vf=()=>{const t=h.inject(g$,void 0),e=h.inject(wm,void 0);return{form:t,formItem:e}},Sm=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=h.ref(!1)),r||(r=h.ref(!1));const i=h.ref();let o;const a=h.computed(()=>{var s;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return h.onMounted(()=>{o=h.watch([h.toRef(t,"id"),n],([s,l])=>{const u=s??(l?void 0:Om().value);u!==i.value&&(e!=null&&e.removeInputId&&(i.value&&e.removeInputId(i.value),!(r!=null&&r.value)&&!l&&u&&e.addInputId(u)),i.value=u)},{immediate:!0})}),h.onUnmounted(()=>{o&&o(),e!=null&&e.removeInputId&&i.value&&e.removeInputId(i.value)}),{isLabeledByFormItem:a,inputId:i}};function mf(){return mf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mf.apply(this,arguments)}function oSe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xm(t,e)}function v$(t){return v$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},v$(t)}function xm(t,e){return xm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xm(t,e)}function aSe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b1(t,e,n){return aSe()?b1=Reflect.construct.bind():b1=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&xm(u,a.prototype),u},b1.apply(null,arguments)}function sSe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function m$(t){var e=typeof Map=="function"?new Map:void 0;return m$=function(r){if(r===null||!sSe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return b1(r,arguments,v$(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),xm(i,r)},m$(t)}var lSe=/%[sdj%]/g,cz=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(cz=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function y$(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function fo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var a=t.replace(lSe,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return t}function uSe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function gr(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||uSe(e)&&typeof t=="string"&&!t)}function cSe(t,e,n){var r=[],i=0,o=t.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}t.forEach(function(s){e(s,a)})}function fz(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?e(t[s],o):n([])}o([])}function fSe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var dz=function(t){oSe(e,t);function e(n,r){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return e}(m$(Error));function dSe(t,e,n,r,i){if(e.first){var o=new Promise(function(d,p){var g=function(y){return r(y),y.length?p(new dz(y,y$(y))):d(i)},v=fSe(t);fz(v,n,g)});return o.catch(function(d){return d}),o}var a=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,u=0,c=[],f=new Promise(function(d,p){var g=function(m){if(c.push.apply(c,m),u++,u===l)return r(c),c.length?p(new dz(c,y$(c))):d(i)};s.length||(r(c),d(i)),s.forEach(function(v){var m=t[v];a.indexOf(v)!==-1?fz(m,n,g):cSe(m,n,g)})});return f.catch(function(d){return d}),f}function hSe(t){return!!(t&&t.message!==void 0)}function pSe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function hz(t,e){return function(n){var r;return t.fullFields?r=pSe(e,t.fullFields):r=e[n.field||t.fullField],hSe(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function pz(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=mf({},t[n],r):t[n]=r}}return t}var gz=function(e,n,r,i,o,a){e.required&&(!r.hasOwnProperty(e.field)||gr(n,a||e.type))&&i.push(fo(o.messages.required,e.fullField))},gSe=function(e,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(fo(o.messages.whitespace,e.fullField))},_1,vSe=function(){if(_1)return _1;var t="[a-fA-F\\d:]",e=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
  13. (?:
  14. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  15. (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  16. (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  17. (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  18. (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  19. (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  20. (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  21. (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  22. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  23. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(w){return w&&w.exact?o:new RegExp("(?:"+e(w)+n+e(w)+")|(?:"+e(w)+i+e(w)+")","g")};l.v4=function(O){return O&&O.exact?a:new RegExp(""+e(O)+n+e(O),"g")},l.v6=function(O){return O&&O.exact?s:new RegExp(""+e(O)+i+e(O),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+p+g+v+")"+m+y;return _1=new RegExp("(?:^"+b+"$)","i"),_1},vz={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Cm={integer:function(e){return Cm.number(e)&&parseInt(e,10)===e},float:function(e){return Cm.number(e)&&!Cm.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Cm.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(vz.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(vSe())},hex:function(e){return typeof e=="string"&&!!e.match(vz.hex)}},mSe=function(e,n,r,i,o){if(e.required&&n===void 0){gz(e,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?Cm[s](n)||i.push(fo(o.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&i.push(fo(o.messages.types[s],e.fullField,e.type))},ySe=function(e,n,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(d?f="number":p?f="string":g&&(f="array"),!f)return!1;g&&(c=n.length),p&&(c=n.replace(u,"_").length),a?c!==e.len&&i.push(fo(o.messages[f].len,e.fullField,e.len)):s&&!l&&c<e.min?i.push(fo(o.messages[f].min,e.fullField,e.min)):l&&!s&&c>e.max?i.push(fo(o.messages[f].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&i.push(fo(o.messages[f].range,e.fullField,e.min,e.max))},sp="enum",bSe=function(e,n,r,i,o){e[sp]=Array.isArray(e[sp])?e[sp]:[],e[sp].indexOf(n)===-1&&i.push(fo(o.messages[sp],e.fullField,e[sp].join(", ")))},_Se=function(e,n,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(fo(o.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||i.push(fo(o.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Wt={required:gz,whitespace:gSe,type:mSe,range:ySe,enum:bSe,pattern:_Se},OSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n,"string")&&!e.required)return r();Wt.required(e,n,i,a,o,"string"),gr(n,"string")||(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o),Wt.pattern(e,n,i,a,o),e.whitespace===!0&&Wt.whitespace(e,n,i,a,o))}r(a)},wSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt.type(e,n,i,a,o)}r(a)},SSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},xSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt.type(e,n,i,a,o)}r(a)},CSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),gr(n)||Wt.type(e,n,i,a,o)}r(a)},TSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},PSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},$Se=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();Wt.required(e,n,i,a,o,"array"),n!=null&&(Wt.type(e,n,i,a,o),Wt.range(e,n,i,a,o))}r(a)},ASe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt.type(e,n,i,a,o)}r(a)},ESe="enum",MSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o),n!==void 0&&Wt[ESe](e,n,i,a,o)}r(a)},ISe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n,"string")&&!e.required)return r();Wt.required(e,n,i,a,o),gr(n,"string")||Wt.pattern(e,n,i,a,o)}r(a)},DSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n,"date")&&!e.required)return r();if(Wt.required(e,n,i,a,o),!gr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Wt.type(e,l,i,a,o),l&&Wt.range(e,l.getTime(),i,a,o)}}r(a)},RSe=function(e,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Wt.required(e,n,i,a,o,s),r(a)},b$=function(e,n,r,i,o){var a=e.type,s=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(gr(n,a)&&!e.required)return r();Wt.required(e,n,i,s,o,a),gr(n,a)||Wt.type(e,n,i,s,o)}r(s)},kSe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(gr(n)&&!e.required)return r();Wt.required(e,n,i,a,o)}r(a)},Tm={string:OSe,method:wSe,number:SSe,boolean:xSe,regexp:CSe,integer:TSe,float:PSe,array:$Se,object:ASe,enum:MSe,pattern:ISe,date:DSe,url:b$,hex:b$,email:b$,required:RSe,any:kSe};function _$(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var O$=_$(),Pm=function(){function t(n){this.rules=null,this._messages=O$,this.define(n)}var e=t.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=pz(_$(),r)),this._messages},e.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var m=[],y={};function b(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,w)}else m.push(w)}for(var O=0;O<v.length;O++)b(v[O]);m.length?(y=y$(m),u(m,y)):u(null,s)}if(l.messages){var f=this.messages();f===O$&&(f=_$()),pz(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},p=l.keys||Object.keys(this.rules);p.forEach(function(v){var m=a.rules[v],y=s[v];m.forEach(function(b){var O=b;typeof O.transform=="function"&&(s===r&&(s=mf({},s)),y=s[v]=O.transform(y)),typeof O=="function"?O={validator:O}:O=mf({},O),O.validator=a.getValidationMethod(O),O.validator&&(O.field=v,O.fullField=O.fullField||v,O.type=a.getType(O),d[v]=d[v]||[],d[v].push({rule:O,value:y,source:s,field:v}))})});var g={};return dSe(d,l,function(v,m){var y=v.rule,b=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");b=b&&(y.required||!y.required&&v.value),y.field=v.field;function O(x,T){return mf({},T,{fullField:y.fullField+"."+x,fullFields:y.fullFields?[].concat(y.fullFields,[x]):[x]})}function w(x){x===void 0&&(x=[]);var T=Array.isArray(x)?x:[x];!l.suppressWarning&&T.length&&t.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var $=T.map(hz(y,s));if(l.first&&$.length)return g[y.field]=1,m($);if(!b)m($);else{if(y.required&&!v.value)return y.message!==void 0?$=[].concat(y.message).map(hz(y,s)):l.error&&($=[l.error(y,fo(l.messages.required,y.field))]),m($);var A={};y.defaultField&&Object.keys(v.value).map(function(I){A[I]=y.defaultField}),A=mf({},A,v.rule.fields);var P={};Object.keys(A).forEach(function(I){var R=A[I],L=Array.isArray(R)?R:[R];P[I]=L.map(O.bind(null,I))});var M=new t(P);M.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),M.validate(v.value,v.rule.options||l,function(I){var R=[];$&&$.length&&R.push.apply(R,$),I&&I.length&&R.push.apply(R,I),m(R.length?R:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,v.value,w,v.source,l);else if(y.validator){try{S=y.validator(y,v.value,w,v.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),w(x.message)}S===!0?w():S===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(x){return w(x)})},function(v){c(v)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Tm.hasOwnProperty(r.type))throw new Error(fo("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?Tm.required:Tm[this.getType(r)]||void 0},t}();Pm.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Tm[e]=n},Pm.warning=cz,Pm.messages=O$,Pm.validators=Tm;let Ga;const NSe=`
  24. height:0 !important;
  25. visibility:hidden !important;
  26. ${hme()?"":"overflow:hidden !important;"}
  27. position:absolute !important;
  28. z-index:-1000 !important;
  29. top:0 !important;
  30. right:0 !important;
  31. `,LSe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function BSe(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),i=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:LSe.map(a=>`${a}:${e.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function mz(t,e=1,n){var r;Ga||(Ga=document.createElement("textarea"),document.body.appendChild(Ga));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=BSe(t);Ga.setAttribute("style",`${s};${NSe}`),Ga.value=t.value||t.placeholder||"";let l=Ga.scrollHeight;const u={};a==="border-box"?l=l+o:a==="content-box"&&(l=l-i),Ga.value="";const c=Ga.scrollHeight-i;if(Fa(e)){let f=c*e;a==="border-box"&&(f=f+i+o),l=Math.max(f,l),u.minHeight=`${f}px`}if(Fa(n)){let f=c*n;a==="border-box"&&(f=f+i+o),l=Math.min(f,l)}return u.height=`${l}px`,(r=Ga.parentNode)==null||r.removeChild(Ga),Ga=void 0,u}const VSe=zn({id:{type:String,default:void 0},size:pf,disabled:Boolean,modelValue:{type:Zt([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Zt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Kh},prefixIcon:{type:Kh},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Zt([Object,Array,String]),default:()=>OOe({})},autofocus:{type:Boolean,default:!1},...gf(["ariaLabel"])}),zSe={[mi]:t=>vi(t),input:t=>vi(t),change:t=>vi(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},FSe=["role"],WSe=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],QSe=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],HSe=h.defineComponent({name:"ElInput",inheritAttrs:!1}),GSe=h.defineComponent({...HSe,props:VSe,emits:zSe,setup(t,{expose:e,emit:n}){const r=t,i=h.useAttrs(),o=h.useSlots(),a=h.computed(()=>{const we={};return r.containerRole==="combobox"&&(we["aria-haspopup"]=i["aria-haspopup"],we["aria-owns"]=i["aria-owns"],we["aria-expanded"]=i["aria-expanded"]),we}),s=h.computed(()=>[r.type==="textarea"?m.b():v.b(),v.m(p.value),v.is("disabled",g.value),v.is("exceed",se.value),{[v.b("group")]:o.prepend||o.append,[v.m("prefix")]:o.prefix||r.prefixIcon,[v.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:j.value&&H.value,[v.b("hidden")]:r.type==="hidden"},i.class]),l=h.computed(()=>[v.e("wrapper"),v.is("focus",P.value)]),u=xOe({excludeKeys:h.computed(()=>Object.keys(a.value))}),{form:c,formItem:f}=vf(),{inputId:d}=Sm(r,{formItemContext:f}),p=op(),g=ap(),v=an("input"),m=an("textarea"),y=h.shallowRef(),b=h.shallowRef(),O=h.ref(!1),w=h.ref(!1),S=h.ref(!1),x=h.ref(),T=h.shallowRef(r.inputStyle),$=h.computed(()=>y.value||b.value),{wrapperRef:A,isFocused:P,handleFocus:M,handleBlur:I}=sz($,{afterBlur(){var we;r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"blur").catch(rt=>ti(rt)))}}),R=h.computed(()=>{var we;return(we=c==null?void 0:c.statusIcon)!=null?we:!1}),L=h.computed(()=>(f==null?void 0:f.validateState)||""),D=h.computed(()=>L.value&&mOe[L.value]),B=h.computed(()=>S.value?pOe:fOe),F=h.computed(()=>[i.style]),z=h.computed(()=>[r.inputStyle,T.value,{resize:r.resize}]),W=h.computed(()=>Tu(r.modelValue)?"":String(r.modelValue)),j=h.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!W.value&&(P.value||O.value)),H=h.computed(()=>r.showPassword&&!g.value&&!r.readonly&&!!W.value&&(!!W.value||P.value)),Z=h.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),J=h.computed(()=>W.value.length),se=h.computed(()=>!!Z.value&&J.value>Number(r.maxlength)),oe=h.computed(()=>!!o.suffix||!!r.suffixIcon||j.value||r.showPassword||Z.value||!!L.value&&R.value),[de,ie]=Ywe(y);lme(b,we=>{if(X(),!Z.value||r.resize!=="both")return;const rt=we[0],{width:Mt}=rt.contentRect;x.value={right:`calc(100% - ${Mt+15+6}px)`}});const ue=()=>{const{type:we,autosize:rt}=r;if(!(!sr||we!=="textarea"||!b.value))if(rt){const Mt=sf(rt)?rt.minRows:void 0,mn=sf(rt)?rt.maxRows:void 0,pn=mz(b.value,Mt,mn);T.value={overflowY:"hidden",...pn},h.nextTick(()=>{b.value.offsetHeight,T.value=pn})}else T.value={minHeight:mz(b.value).minHeight}},X=(we=>{let rt=!1;return()=>{var Mt;if(rt||!r.autosize)return;((Mt=b.value)==null?void 0:Mt.offsetParent)===null||(we(),rt=!0)}})(ue),Y=()=>{const we=$.value,rt=r.formatter?r.formatter(W.value):W.value;!we||we.value===rt||(we.value=rt)},le=async we=>{de();let{value:rt}=we.target;if(r.formatter&&(rt=r.parser?r.parser(rt):rt),!w.value){if(rt===W.value){Y();return}n(mi,rt),n("input",rt),await h.nextTick(),Y(),ie()}},ve=we=>{n("change",we.target.value)},ye=we=>{n("compositionstart",we),w.value=!0},Ne=we=>{var rt;n("compositionupdate",we);const Mt=(rt=we.target)==null?void 0:rt.value,mn=Mt[Mt.length-1]||"";w.value=!_Oe(mn)},Be=we=>{n("compositionend",we),w.value&&(w.value=!1,le(we))},Me=()=>{S.value=!S.value,$e()},$e=async()=>{var we;await h.nextTick(),(we=$.value)==null||we.focus()},_e=()=>{var we;return(we=$.value)==null?void 0:we.blur()},De=we=>{O.value=!1,n("mouseleave",we)},Fe=we=>{O.value=!0,n("mouseenter",we)},ct=we=>{n("keydown",we)},vt=()=>{var we;(we=$.value)==null||we.select()},zt=()=>{n(mi,""),n("change",""),n("clear"),n("input","")};return h.watch(()=>r.modelValue,()=>{var we;h.nextTick(()=>ue()),r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"change").catch(rt=>ti(rt)))}),h.watch(W,()=>Y()),h.watch(()=>r.type,async()=>{await h.nextTick(),Y(),ue()}),h.onMounted(()=>{!r.formatter&&r.parser&&ti("ElInput","If you set the parser, you also need to set the formatter."),Y(),h.nextTick(ue)}),Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},h.computed(()=>!!r.label)),e({input:y,textarea:b,ref:$,textareaStyle:z,autosize:h.toRef(r,"autosize"),focus:$e,blur:_e,select:vt,clear:zt,resizeTextarea:ue}),(we,rt)=>(h.openBlock(),h.createElementBlock("div",h.mergeProps(h.unref(a),{class:[h.unref(s),{[h.unref(v).bm("group","append")]:we.$slots.append,[h.unref(v).bm("group","prepend")]:we.$slots.prepend}],style:h.unref(F),role:we.containerRole,onMouseenter:Fe,onMouseleave:De}),[h.createCommentVNode(" input "),we.type!=="textarea"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createCommentVNode(" prepend slot "),we.$slots.prepend?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(v).be("group","prepend"))},[h.renderSlot(we.$slots,"prepend")],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:h.normalizeClass(h.unref(l))},[h.createCommentVNode(" prefix slot "),we.$slots.prefix||we.prefixIcon?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(v).e("prefix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("prefix-inner"))},[h.renderSlot(we.$slots,"prefix"),we.prefixIcon?(h.openBlock(),h.createBlock(h.unref(Ha),{key:0,class:h.normalizeClass(h.unref(v).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(we.prefixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("input",h.mergeProps({id:h.unref(d),ref_key:"input",ref:y,class:h.unref(v).e("inner")},h.unref(u),{minlength:we.minlength,maxlength:we.maxlength,type:we.showPassword?S.value?"text":"password":we.type,disabled:h.unref(g),readonly:we.readonly,autocomplete:we.autocomplete,tabindex:we.tabindex,"aria-label":we.label||we.ariaLabel,placeholder:we.placeholder,style:we.inputStyle,form:we.form,autofocus:we.autofocus,onCompositionstart:ye,onCompositionupdate:Ne,onCompositionend:Be,onInput:le,onFocus:rt[0]||(rt[0]=(...Mt)=>h.unref(M)&&h.unref(M)(...Mt)),onBlur:rt[1]||(rt[1]=(...Mt)=>h.unref(I)&&h.unref(I)(...Mt)),onChange:ve,onKeydown:ct}),null,16,WSe),h.createCommentVNode(" suffix slot "),h.unref(oe)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(h.unref(v).e("suffix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("suffix-inner"))},[!h.unref(j)||!h.unref(H)||!h.unref(Z)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.renderSlot(we.$slots,"suffix"),we.suffixIcon?(h.openBlock(),h.createBlock(h.unref(Ha),{key:0,class:h.normalizeClass(h.unref(v).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(we.suffixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],64)):h.createCommentVNode("v-if",!0),h.unref(j)?(h.openBlock(),h.createBlock(h.unref(Ha),{key:1,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("clear")]),onMousedown:h.withModifiers(h.unref(xu),["prevent"]),onClick:zt},{default:h.withCtx(()=>[h.createVNode(h.unref(xV))]),_:1},8,["class","onMousedown"])):h.createCommentVNode("v-if",!0),h.unref(H)?(h.openBlock(),h.createBlock(h.unref(Ha),{key:2,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("password")]),onClick:Me},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(B))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.unref(Z)?(h.openBlock(),h.createElementBlock("span",{key:3,class:h.normalizeClass(h.unref(v).e("count"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("count-inner"))},h.toDisplayString(h.unref(J))+" / "+h.toDisplayString(we.maxlength),3)],2)):h.createCommentVNode("v-if",!0),h.unref(L)&&h.unref(D)&&h.unref(R)?(h.openBlock(),h.createBlock(h.unref(Ha),{key:4,class:h.normalizeClass([h.unref(v).e("icon"),h.unref(v).e("validateIcon"),h.unref(v).is("loading",h.unref(L)==="validating")])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(D))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0)],2),h.createCommentVNode(" append slot "),we.$slots.append?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(h.unref(v).be("group","append"))},[h.renderSlot(we.$slots,"append")],2)):h.createCommentVNode("v-if",!0)],64)):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" textarea "),h.createElementVNode("textarea",h.mergeProps({id:h.unref(d),ref_key:"textarea",ref:b,class:[h.unref(m).e("inner"),h.unref(v).is("focus",h.unref(P))]},h.unref(u),{minlength:we.minlength,maxlength:we.maxlength,tabindex:we.tabindex,disabled:h.unref(g),readonly:we.readonly,autocomplete:we.autocomplete,style:h.unref(z),"aria-label":we.label||we.ariaLabel,placeholder:we.placeholder,form:we.form,autofocus:we.autofocus,onCompositionstart:ye,onCompositionupdate:Ne,onCompositionend:Be,onInput:le,onFocus:rt[2]||(rt[2]=(...Mt)=>h.unref(M)&&h.unref(M)(...Mt)),onBlur:rt[3]||(rt[3]=(...Mt)=>h.unref(I)&&h.unref(I)(...Mt)),onChange:ve,onKeydown:ct}),null,16,QSe),h.unref(Z)?(h.openBlock(),h.createElementBlock("span",{key:0,style:h.normalizeStyle(x.value),class:h.normalizeClass(h.unref(v).e("count"))},h.toDisplayString(h.unref(J))+" / "+h.toDisplayString(we.maxlength),7)):h.createCommentVNode("v-if",!0)],64))],16,FSe))}});var jSe=fn(GSe,[["__file","input.vue"]]);const O1=Sl(jSe),w$=Symbol("popper"),yz=Symbol("popperContent"),bz=zn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),USe=h.defineComponent({name:"ElPopper",inheritAttrs:!1}),ZSe=h.defineComponent({...USe,props:bz,setup(t,{expose:e}){const n=t,r=h.ref(),i=h.ref(),o=h.ref(),a=h.ref(),s=h.computed(()=>n.role),l={triggerRef:r,popperInstanceRef:i,contentRef:o,referenceRef:a,role:s};return e(l),h.provide(w$,l),(u,c)=>h.renderSlot(u.$slots,"default")}});var XSe=fn(ZSe,[["__file","popper.vue"]]);const _z=zn({arrowOffset:{type:Number,default:5}}),YSe=h.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),qSe=h.defineComponent({...YSe,props:_z,setup(t,{expose:e}){const n=t,r=an("popper"),{arrowOffset:i,arrowRef:o,arrowStyle:a}=h.inject(yz,void 0);return h.watch(()=>n.arrowOffset,s=>{i.value=s}),h.onBeforeUnmount(()=>{o.value=void 0}),e({arrowRef:o}),(s,l)=>(h.openBlock(),h.createElementBlock("span",{ref_key:"arrowRef",ref:o,class:h.normalizeClass(h.unref(r).e("arrow")),style:h.normalizeStyle(h.unref(a)),"data-popper-arrow":""},null,6))}});var KSe=fn(qSe,[["__file","arrow.vue"]]);const S$="ElOnlyChild",JSe=h.defineComponent({name:S$,setup(t,{slots:e,attrs:n}){var r;const i=h.inject(nz),o=Uwe((r=i==null?void 0:i.setForwardRef)!=null?r:xu);return()=>{var a;const s=(a=e.default)==null?void 0:a.call(e,n);if(!s)return null;if(s.length>1)return ti(S$,"requires exact only one valid child."),null;const l=Oz(s);return l?h.withDirectives(h.cloneVNode(l,n),[[o]]):(ti(S$,"no valid child node found"),null)}}});function Oz(t){if(!t)return null;const e=t;for(const n of e){if(sf(n))switch(n.type){case h.Comment:continue;case h.Text:case"svg":return wz(n);case h.Fragment:return Oz(n.children);default:return n}return wz(n)}return null}function wz(t){const e=an("only-child");return h.createVNode("span",{class:e.e("content")},[t])}const Sz=zn({virtualRef:{type:Zt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Zt(Function)},onMouseleave:{type:Zt(Function)},onClick:{type:Zt(Function)},onKeydown:{type:Zt(Function)},onFocus:{type:Zt(Function)},onBlur:{type:Zt(Function)},onContextmenu:{type:Zt(Function)},id:String,open:Boolean}),exe=h.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),txe=h.defineComponent({...exe,props:Sz,setup(t,{expose:e}){const n=t,{role:r,triggerRef:i}=h.inject(w$,void 0);jwe(i);const o=h.computed(()=>s.value?n.id:void 0),a=h.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=h.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),l=h.computed(()=>s.value?`${n.open}`:void 0);let u;return h.onMounted(()=>{h.watch(()=>n.virtualRef,c=>{c&&(i.value=Su(c))},{immediate:!0}),h.watch(i,(c,f)=>{u==null||u(),u=void 0,dm(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var p;const g=n[d];g&&(c.addEventListener(d.slice(2).toLowerCase(),g),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,d.slice(2).toLowerCase(),g))}),u=h.watch([o,a,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{Tu(d[g])?c.removeAttribute(p):c.setAttribute(p,d[g])})},{immediate:!0})),dm(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),h.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:i}),(c,f)=>c.virtualTriggering?h.createCommentVNode("v-if",!0):(h.openBlock(),h.createBlock(h.unref(JSe),h.mergeProps({key:0},c.$attrs,{"aria-controls":h.unref(o),"aria-describedby":h.unref(a),"aria-expanded":h.unref(l),"aria-haspopup":h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var nxe=fn(txe,[["__file","trigger.vue"]]);const x$="focus-trap.focus-after-trapped",C$="focus-trap.focus-after-released",rxe="focus-trap.focusout-prevented",xz={cancelable:!0,bubbles:!1},ixe={cancelable:!0,bubbles:!1},Cz="focusAfterTrapped",Tz="focusAfterReleased",Pz=Symbol("elFocusTrap"),T$=h.ref(),w1=h.ref(0),P$=h.ref(0);let S1=0;const $z=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},Az=(t,e)=>{for(const n of t)if(!oxe(n,e))return n},oxe=(t,e)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},axe=t=>{const e=$z(t),n=Az(e,t),r=Az(e.reverse(),t);return[n,r]},sxe=t=>t instanceof HTMLInputElement&&"select"in t,Au=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),P$.value=window.performance.now(),t!==n&&sxe(t)&&e&&t.select()}};function Ez(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const lxe=()=>{let t=[];return{push:r=>{const i=t[0];i&&r!==i&&i.pause(),t=Ez(t,r),t.unshift(r)},remove:r=>{var i,o;t=Ez(t,r),(o=(i=t[0])==null?void 0:i.resume)==null||o.call(i)}}},uxe=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Au(r,e),document.activeElement!==n)return},Mz=lxe(),cxe=()=>w1.value>P$.value,x1=()=>{T$.value="pointer",w1.value=window.performance.now()},Iz=()=>{T$.value="keyboard",w1.value=window.performance.now()},fxe=()=>(h.onMounted(()=>{S1===0&&(document.addEventListener("mousedown",x1),document.addEventListener("touchstart",x1),document.addEventListener("keydown",Iz)),S1++}),h.onBeforeUnmount(()=>{S1--,S1<=0&&(document.removeEventListener("mousedown",x1),document.removeEventListener("touchstart",x1),document.removeEventListener("keydown",Iz))}),{focusReason:T$,lastUserFocusTimestamp:w1,lastAutomatedFocusTimestamp:P$}),C1=t=>new CustomEvent(rxe,{...ixe,detail:t}),dxe=h.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Cz,Tz,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=h.ref();let r,i;const{focusReason:o}=fxe();Fwe(g=>{t.trapped&&!a.paused&&e("release-requested",g)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!t.loop&&!t.trapped||a.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:O,shiftKey:w}=g,{loop:S}=t,x=v===Fi.tab&&!m&&!y&&!b,T=document.activeElement;if(x&&T){const $=O,[A,P]=axe($);if(A&&P){if(!w&&T===P){const I=C1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||(g.preventDefault(),S&&Au(A,!0))}else if(w&&[A,$].includes(T)){const I=C1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||(g.preventDefault(),S&&Au(P,!0))}}else if(T===$){const I=C1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||g.preventDefault()}}};h.provide(Pz,{focusTrapRef:n,onKeydown:s}),h.watch(()=>t.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),h.watch([n],([g],[v])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",c),g.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=g=>{e(Cz,g)},u=g=>e(Tz,g),c=g=>{const v=h.unref(n);if(!v)return;const m=g.target,y=g.relatedTarget,b=m&&v.contains(m);t.trapped||y&&v.contains(y)||(r=y),b&&e("focusin",g),!a.paused&&t.trapped&&(b?i=m:Au(i,!0))},f=g=>{const v=h.unref(n);if(!(a.paused||!v))if(t.trapped){const m=g.relatedTarget;!Tu(m)&&!v.contains(m)&&setTimeout(()=>{if(!a.paused&&t.trapped){const y=C1({focusReason:o.value});e("focusout-prevented",y),y.defaultPrevented||Au(i,!0)}},0)}else{const m=g.target;m&&v.contains(m)||e("focusout",g)}};async function d(){await h.nextTick();const g=h.unref(n);if(g){Mz.push(a);const v=g.contains(document.activeElement)?r:document.activeElement;if(r=v,!g.contains(v)){const y=new Event(x$,xz);g.addEventListener(x$,l),g.dispatchEvent(y),y.defaultPrevented||h.nextTick(()=>{let b=t.focusStartEl;vi(b)||(Au(b),document.activeElement!==b&&(b="first")),b==="first"&&uxe($z(g),!0),(document.activeElement===v||b==="container")&&Au(g)})}}}function p(){const g=h.unref(n);if(g){g.removeEventListener(x$,l);const v=new CustomEvent(C$,{...xz,detail:{focusReason:o.value}});g.addEventListener(C$,u),g.dispatchEvent(v),!v.defaultPrevented&&(o.value=="keyboard"||!cxe()||g.contains(document.activeElement))&&Au(r??document.body),g.removeEventListener(C$,u),Mz.remove(a)}}return h.onMounted(()=>{t.trapped&&d(),h.watch(()=>t.trapped,g=>{g?d():p()})}),h.onBeforeUnmount(()=>{t.trapped&&p()}),{onKeydown:s}}});function hxe(t,e,n,r,i,o){return h.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var Dz=fn(dxe,[["render",hxe],["__file","focus-trap.vue"]]);const pxe=["fixed","absolute"],gxe=zn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Zt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:o$,default:"bottom"},popperOptions:{type:Zt(Object),default:()=>({})},strategy:{type:String,values:pxe,default:"absolute"}}),Rz=zn({...gxe,id:String,style:{type:Zt([String,Array,Object])},className:{type:Zt([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Zt([String,Array,Object])},popperStyle:{type:Zt([String,Array,Object])},referenceEl:{type:Zt(Object)},triggerTargetEl:{type:Zt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...gf(["ariaLabel"])}),vxe={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},mxe=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:i}=t,o={placement:n,strategy:r,...i,modifiers:[...bxe(t),...e]};return _xe(o,i==null?void 0:i.modifiers),o},yxe=t=>{if(sr)return Su(t)};function bxe(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function _xe(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const Oxe=0,wxe=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:i}=h.inject(w$,void 0),o=h.ref(),a=h.ref(),s=h.computed(()=>({name:"eventListeners",enabled:!!t.visible})),l=h.computed(()=>{var y;const b=h.unref(o),O=(y=h.unref(a))!=null?y:Oxe;return{name:"arrow",enabled:!mV(b),options:{element:b,padding:O}}}),u=h.computed(()=>({onFirstUpdate:()=>{g()},...mxe(t,[h.unref(l),h.unref(s)])})),c=h.computed(()=>yxe(t.referenceEl)||h.unref(r)),{attributes:f,state:d,styles:p,update:g,forceUpdate:v,instanceRef:m}=Bwe(c,n,u);return h.watch(m,y=>e.value=y),h.onMounted(()=>{h.watch(()=>{var y;return(y=h.unref(c))==null?void 0:y.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:m,state:d,styles:p,role:i,forceUpdate:v,update:g}},Sxe=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:i}=az(),o=an("popper"),a=h.computed(()=>h.unref(e).popper),s=h.ref(Fa(t.zIndex)?t.zIndex:i()),l=h.computed(()=>[o.b(),o.is("pure",t.pure),o.is(t.effect),t.popperClass]),u=h.computed(()=>[{zIndex:h.unref(s)},h.unref(n).popper,t.popperStyle||{}]),c=h.computed(()=>r.value==="dialog"?"false":void 0),f=h.computed(()=>h.unref(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=Fa(t.zIndex)?t.zIndex:i()}}},xxe=(t,e)=>{const n=h.ref(!1),r=h.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},Cxe=h.defineComponent({name:"ElPopperContent"}),Txe=h.defineComponent({...Cxe,props:Rz,emits:vxe,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:i,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=xxe(r,n),{attributes:f,arrowRef:d,contentRef:p,styles:g,instanceRef:v,role:m,update:y}=wxe(r),{ariaModal:b,arrowStyle:O,contentAttrs:w,contentClass:S,contentStyle:x,updateZIndex:T}=Sxe(r,{styles:g,attributes:f,role:m}),$=h.inject(wm,void 0),A=h.ref();h.provide(yz,{arrowStyle:O,arrowRef:d,arrowOffset:A}),$&&h.provide(wm,{...$,addInputId:xu,removeInputId:xu});let P;const M=(R=!0)=>{y(),R&&T()},I=()=>{M(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return h.onMounted(()=>{h.watch(()=>r.triggerTargetEl,(R,L)=>{P==null||P(),P=void 0;const D=h.unref(R||p.value),B=h.unref(L||p.value);dm(D)&&(P=h.watch([m,()=>r.ariaLabel,b,()=>r.id],F=>{["role","aria-label","aria-modal","id"].forEach((z,W)=>{Tu(F[W])?D.removeAttribute(z):D.setAttribute(z,F[W])})},{immediate:!0})),B!==D&&dm(B)&&["role","aria-label","aria-modal","id"].forEach(F=>{B.removeAttribute(F)})},{immediate:!0}),h.watch(()=>r.visible,I,{immediate:!0})}),h.onBeforeUnmount(()=>{P==null||P(),P=void 0}),e({popperContentRef:p,popperInstanceRef:v,updatePopper:M,contentStyle:x}),(R,L)=>(h.openBlock(),h.createElementBlock("div",h.mergeProps({ref_key:"contentRef",ref:p},h.unref(w),{style:h.unref(x),class:h.unref(S),tabindex:"-1",onMouseenter:L[0]||(L[0]=D=>R.$emit("mouseenter",D)),onMouseleave:L[1]||(L[1]=D=>R.$emit("mouseleave",D))}),[h.createVNode(h.unref(Dz),{trapped:h.unref(o),"trap-on-focus-in":!0,"focus-trap-el":h.unref(p),"focus-start-el":h.unref(i),onFocusAfterTrapped:h.unref(s),onFocusAfterReleased:h.unref(a),onFocusin:h.unref(l),onFocusoutPrevented:h.unref(u),onReleaseRequested:h.unref(c)},{default:h.withCtx(()=>[h.renderSlot(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Pxe=fn(Txe,[["__file","content.vue"]]);const $xe=Sl(XSe),$$=Symbol("elTooltip"),A$=zn({...Hwe,...Rz,appendTo:{type:Zt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Zt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...gf(["ariaLabel"])}),kz=zn({...Sz,disabled:Boolean,trigger:{type:Zt([String,Array]),default:"hover"},triggerKeys:{type:Zt(Array),default:()=>[Fi.enter,Fi.space]}}),{useModelToggleProps:Axe,useModelToggleEmits:Exe,useModelToggle:Mxe}=$V("visible"),Ixe=zn({...bz,...Axe,...A$,...kz,..._z,showArrow:{type:Boolean,default:!0}}),Dxe=[...Exe,"before-show","before-hide","show","hide","open","close"],Rxe=(t,e)=>Vh(t)?t.includes(e):t===e,lp=(t,e,n)=>r=>{Rxe(h.unref(t),e)&&n(r)},kxe=h.defineComponent({name:"ElTooltipTrigger"}),Nxe=h.defineComponent({...kxe,props:kz,setup(t,{expose:e}){const n=t,r=an("tooltip"),{controlled:i,id:o,open:a,onOpen:s,onClose:l,onToggle:u}=h.inject($$,void 0),c=h.ref(null),f=()=>{if(h.unref(i)||n.disabled)return!0},d=h.toRef(n,"trigger"),p=_l(f,lp(d,"hover",s)),g=_l(f,lp(d,"hover",l)),v=_l(f,lp(d,"click",w=>{w.button===0&&u(w)})),m=_l(f,lp(d,"focus",s)),y=_l(f,lp(d,"focus",l)),b=_l(f,lp(d,"contextmenu",w=>{w.preventDefault(),u(w)})),O=_l(f,w=>{const{code:S}=w;n.triggerKeys.includes(S)&&(w.preventDefault(),u(w))});return e({triggerRef:c}),(w,S)=>(h.openBlock(),h.createBlock(h.unref(nxe),{id:h.unref(o),"virtual-ref":w.virtualRef,open:h.unref(a),"virtual-triggering":w.virtualTriggering,class:h.normalizeClass(h.unref(r).e("trigger")),onBlur:h.unref(y),onClick:h.unref(v),onContextmenu:h.unref(b),onFocus:h.unref(m),onMouseenter:h.unref(p),onMouseleave:h.unref(g),onKeydown:h.unref(O)},{default:h.withCtx(()=>[h.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Lxe=fn(Nxe,[["__file","trigger.vue"]]);const Bxe=h.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Vxe=h.defineComponent({...Bxe,props:A$,setup(t,{expose:e}){const n=t,{selector:r}=tz(),i=an("tooltip"),o=h.ref(null),a=h.ref(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:p,onHide:g,onBeforeShow:v,onBeforeHide:m}=h.inject($$,void 0),y=h.computed(()=>n.transition||`${i.namespace.value}-fade-in-linear`),b=h.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);h.onBeforeUnmount(()=>{a.value=!0});const O=h.computed(()=>h.unref(b)?!0:h.unref(u)),w=h.computed(()=>n.disabled?!1:h.unref(u)),S=h.computed(()=>n.appendTo||r.value),x=h.computed(()=>{var F;return(F=n.style)!=null?F:{}}),T=h.computed(()=>!h.unref(u)),$=()=>{g()},A=()=>{if(h.unref(s))return!0},P=_l(A,()=>{n.enterable&&h.unref(c)==="hover"&&d()}),M=_l(A,()=>{h.unref(c)==="hover"&&f()}),I=()=>{var F,z;(z=(F=o.value)==null?void 0:F.updatePopper)==null||z.call(F),v==null||v()},R=()=>{m==null||m()},L=()=>{p(),B=rme(h.computed(()=>{var F;return(F=o.value)==null?void 0:F.popperContentRef}),()=>{if(h.unref(s))return;h.unref(c)!=="hover"&&f()})},D=()=>{n.virtualTriggering||f()};let B;return h.watch(()=>h.unref(u),F=>{F||B==null||B()},{flush:"post"}),h.watch(()=>n.content,()=>{var F,z;(z=(F=o.value)==null?void 0:F.updatePopper)==null||z.call(F)}),e({contentRef:o}),(F,z)=>(h.openBlock(),h.createBlock(h.Teleport,{disabled:!F.teleported,to:h.unref(S)},[h.createVNode(h.Transition,{name:h.unref(y),onAfterLeave:$,onBeforeEnter:I,onAfterEnter:L,onBeforeLeave:R},{default:h.withCtx(()=>[h.unref(O)?h.withDirectives((h.openBlock(),h.createBlock(h.unref(Pxe),h.mergeProps({key:0,id:h.unref(l),ref_key:"contentRef",ref:o},F.$attrs,{"aria-label":F.ariaLabel,"aria-hidden":h.unref(T),"boundaries-padding":F.boundariesPadding,"fallback-placements":F.fallbackPlacements,"gpu-acceleration":F.gpuAcceleration,offset:F.offset,placement:F.placement,"popper-options":F.popperOptions,strategy:F.strategy,effect:F.effect,enterable:F.enterable,pure:F.pure,"popper-class":F.popperClass,"popper-style":[F.popperStyle,h.unref(x)],"reference-el":F.referenceEl,"trigger-target-el":F.triggerTargetEl,visible:h.unref(w),"z-index":F.zIndex,onMouseenter:h.unref(P),onMouseleave:h.unref(M),onBlur:D,onClose:h.unref(f)}),{default:h.withCtx(()=>[a.value?h.createCommentVNode("v-if",!0):h.renderSlot(F.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[h.vShow,h.unref(w)]]):h.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var zxe=fn(Vxe,[["__file","content.vue"]]);const Fxe=["innerHTML"],Wxe={key:1},Qxe=h.defineComponent({name:"ElTooltip"}),Hxe=h.defineComponent({...Qxe,props:Ixe,emits:Dxe,setup(t,{expose:e,emit:n}){const r=t;Qwe();const i=Om(),o=h.ref(),a=h.ref(),s=()=>{var y;const b=h.unref(o);b&&((y=b.popperInstanceRef)==null||y.update())},l=h.ref(!1),u=h.ref(),{show:c,hide:f,hasUpdateHandler:d}=Mxe({indicator:l,toggleReason:u}),{onOpen:p,onClose:g}=Gwe({showAfter:h.toRef(r,"showAfter"),hideAfter:h.toRef(r,"hideAfter"),autoClose:h.toRef(r,"autoClose"),open:c,close:f}),v=h.computed(()=>Pu(r.visible)&&!d.value);h.provide($$,{controlled:v,id:i,open:h.readonly(l),trigger:h.toRef(r,"trigger"),onOpen:y=>{p(y)},onClose:y=>{g(y)},onToggle:y=>{h.unref(l)?g(y):p(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),h.watch(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const m=y=>{var b,O;const w=(O=(b=a.value)==null?void 0:b.contentRef)==null?void 0:O.popperContentRef,S=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(S)};return h.onDeactivated(()=>l.value&&f()),e({popperRef:o,contentRef:a,isFocusInsideContent:m,updatePopper:s,onOpen:p,onClose:g,hide:f}),(y,b)=>(h.openBlock(),h.createBlock(h.unref($xe),{ref_key:"popperRef",ref:o,role:y.role},{default:h.withCtx(()=>[h.createVNode(Lxe,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:h.withCtx(()=>[y.$slots.default?h.renderSlot(y.$slots,"default",{key:0}):h.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),h.createVNode(zxe,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:h.withCtx(()=>[h.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(h.openBlock(),h.createElementBlock("span",{key:0,innerHTML:y.content},null,8,Fxe)):(h.openBlock(),h.createElementBlock("span",Wxe,h.toDisplayString(y.content),1))]),y.showArrow?(h.openBlock(),h.createBlock(h.unref(KSe),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):h.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Gxe=fn(Hxe,[["__file","tooltip.vue"]]);const jxe=Sl(Gxe),Nz=Symbol("buttonGroupContextKey"),Uxe=(t,e)=>{Wa({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},h.computed(()=>t.type==="text"));const n=h.inject(Nz,void 0),r=uz("button"),{form:i}=vf(),o=op(h.computed(()=>n==null?void 0:n.size)),a=ap(),s=h.ref(),l=h.useSlots(),u=h.computed(()=>t.type||(n==null?void 0:n.type)||""),c=h.computed(()=>{var g,v,m;return(m=(v=t.autoInsertSpace)!=null?v:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?m:!1}),f=h.computed(()=>t.tag==="button"?{ariaDisabled:a.value||t.loading,disabled:a.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=h.computed(()=>{var g;const v=(g=l.default)==null?void 0:g.call(l);if(c.value&&(v==null?void 0:v.length)===1){const m=v[0];if((m==null?void 0:m.type)===h.Text){const y=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:g=>{t.nativeType==="reset"&&(i==null||i.resetFields()),e("click",g)}}},E$=zn({size:pf,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Kh},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Kh,default:()=>t$},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Zt([String,Object]),default:"button"}}),Zxe={click:t=>t instanceof MouseEvent};function Br(t,e){Xxe(t)&&(t="100%");var n=Yxe(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function T1(t){return Math.min(1,Math.max(0,t))}function Xxe(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Yxe(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Lz(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P1(t){return t<=1?"".concat(Number(t)*100,"%"):t}function yf(t){return t.length===1?"0"+t:String(t)}function qxe(t,e,n){return{r:Br(t,255)*255,g:Br(e,255)*255,b:Br(n,255)*255}}function Bz(t,e,n){t=Br(t,255),e=Br(e,255),n=Br(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s:a,l:s}}function M$(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kxe(t,e,n){var r,i,o;if(t=Br(t,360),e=Br(e,100),n=Br(n,100),e===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=M$(s,a,t+1/3),i=M$(s,a,t),o=M$(s,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function I$(t,e,n){t=Br(t,255),e=Br(e,255),n=Br(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e<n?6:0);break;case e:o=(n-t)/s+2;break;case n:o=(t-e)/s+4;break}o/=6}return{h:o,s:l,v:a}}function Jxe(t,e,n){t=Br(t,360)*6,e=Br(e,100),n=Br(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],f=[o,o,s,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function D$(t,e,n,r){var i=[yf(Math.round(t).toString(16)),yf(Math.round(e).toString(16)),yf(Math.round(n).toString(16))];return r&&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 eCe(t,e,n,r,i){var o=[yf(Math.round(t).toString(16)),yf(Math.round(e).toString(16)),yf(Math.round(n).toString(16)),yf(tCe(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function tCe(t){return Math.round(parseFloat(t)*255).toString(16)}function Vz(t){return ho(t)/255}function ho(t){return parseInt(t,16)}function nCe(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var R$={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 up(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof t=="string"&&(t=oCe(t)),typeof t=="object"&&(Cl(t.r)&&Cl(t.g)&&Cl(t.b)?(e=qxe(t.r,t.g,t.b),a=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Cl(t.h)&&Cl(t.s)&&Cl(t.v)?(r=P1(t.s),i=P1(t.v),e=Jxe(t.h,r,i),a=!0,s="hsv"):Cl(t.h)&&Cl(t.s)&&Cl(t.l)&&(r=P1(t.s),o=P1(t.l),e=Kxe(t.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=Lz(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var rCe="[-\\+]?\\d+%?",iCe="[-\\+]?\\d*\\.\\d+%?",Eu="(?:".concat(iCe,")|(?:").concat(rCe,")"),k$="[\\s|\\(]+(".concat(Eu,")[,|\\s]+(").concat(Eu,")[,|\\s]+(").concat(Eu,")\\s*\\)?"),N$="[\\s|\\(]+(".concat(Eu,")[,|\\s]+(").concat(Eu,")[,|\\s]+(").concat(Eu,")[,|\\s]+(").concat(Eu,")\\s*\\)?"),ja={CSS_UNIT:new RegExp(Eu),rgb:new RegExp("rgb"+k$),rgba:new RegExp("rgba"+N$),hsl:new RegExp("hsl"+k$),hsla:new RegExp("hsla"+N$),hsv:new RegExp("hsv"+k$),hsva:new RegExp("hsva"+N$),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 oCe(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(R$[t])t=R$[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ja.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=ja.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ja.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=ja.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ja.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=ja.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ja.hex8.exec(t),n?{r:ho(n[1]),g:ho(n[2]),b:ho(n[3]),a:Vz(n[4]),format:e?"name":"hex8"}:(n=ja.hex6.exec(t),n?{r:ho(n[1]),g:ho(n[2]),b:ho(n[3]),format:e?"name":"hex"}:(n=ja.hex4.exec(t),n?{r:ho(n[1]+n[1]),g:ho(n[2]+n[2]),b:ho(n[3]+n[3]),a:Vz(n[4]+n[4]),format:e?"name":"hex8"}:(n=ja.hex3.exec(t),n?{r:ho(n[1]+n[1]),g:ho(n[2]+n[2]),b:ho(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Cl(t){return!!ja.CSS_UNIT.exec(String(t))}var yn=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=nCe(e)),this.originalInput=e;var i=up(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=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,o=e.r/255,a=e.g/255,s=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=Lz(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=I$(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=I$(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Bz(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Bz(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),D$(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),eCe(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Br(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Br(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+D$(this.r,this.g,this.b,!1),n=0,r=Object.entries(R$);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(e===a)return o}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=T1(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=T1(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=T1(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=T1(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(a)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a<e;a++)i.push(new t({h:(r+a*o)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Mu(t,e=20){return t.mix("#141414",e).toString()}function aCe(t){const e=ap(),n=an("button");return h.computed(()=>{let r={},i=t.color;if(i){const o=i.match(/var\((.*?)\)/);o&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new yn(i),s=t.dark?a.tint(20).toString():Mu(a,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Mu(a,90):a.tint(90).toString(),"text-color":i,"border-color":t.dark?Mu(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?Mu(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Mu(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Mu(a,80):a.tint(80).toString());else{const l=t.dark?Mu(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.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=t.dark?Mu(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const sCe=h.defineComponent({name:"ElButton"}),lCe=h.defineComponent({...sCe,props:E$,emits:Zxe,setup(t,{expose:e,emit:n}){const r=t,i=aCe(r),o=an("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Uxe(r,n),p=h.computed(()=>[o.b(),o.m(l.value),o.m(s.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return e({ref:a,size:s,type:l,disabled:u,shouldAddSpace:f}),(g,v)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.tag),h.mergeProps({ref_key:"_ref",ref:a},h.unref(c),{class:h.unref(p),style:h.unref(i),onClick:h.unref(d)}),{default:h.withCtx(()=>[g.loading?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[g.$slots.loading?h.renderSlot(g.$slots,"loading",{key:0}):(h.openBlock(),h.createBlock(h.unref(Ha),{key:1,class:h.normalizeClass(h.unref(o).is("loading"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(h.openBlock(),h.createBlock(h.unref(Ha),{key:1},{default:h.withCtx(()=>[g.icon?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.icon),{key:0})):h.renderSlot(g.$slots,"icon",{key:1})]),_:3})):h.createCommentVNode("v-if",!0),g.$slots.default?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass({[h.unref(o).em("text","expand")]:h.unref(f)})},[h.renderSlot(g.$slots,"default")],2)):h.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var uCe=fn(lCe,[["__file","button.vue"]]);const cCe={size:E$.size,type:E$.type},fCe=h.defineComponent({name:"ElButtonGroup"}),dCe=h.defineComponent({...fCe,props:cCe,setup(t){const e=t;h.provide(Nz,h.reactive({size:h.toRef(e,"size"),type:h.toRef(e,"type")}));const n=an("button");return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(`${h.unref(n).b("group")}`)},[h.renderSlot(r.$slots,"default")],2))}});var zz=fn(dCe,[["__file","button-group.vue"]]);const L$=Sl(uCe,{ButtonGroup:zz});hm(zz);var Tl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Iu=new Map;let Fz;sr&&(document.addEventListener("mousedown",t=>Fz=t),document.addEventListener("mouseup",t=>{for(const e of Iu.values())for(const{documentHandler:n}of e)n(t,Fz)}));function Wz(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:dm(e.arg)&&n.push(e.arg),function(r,i){const o=e.instance.popperRef,a=r.target,s=i==null?void 0:i.target,l=!e||!e.instance,u=!a||!s,c=t.contains(a)||t.contains(s),f=t===a,d=n.length&&n.some(g=>g==null?void 0:g.contains(a))||n.length&&n.includes(s),p=o&&(o.contains(a)||o.contains(s));l||u||c||f||d||p||e.value(r,i)}}const hCe={beforeMount(t,e){Iu.has(t)||Iu.set(t,[]),Iu.get(t).push({documentHandler:Wz(t,e),bindingFn:e.value})},updated(t,e){Iu.has(t)||Iu.set(t,[]);const n=Iu.get(t),r=n.findIndex(o=>o.bindingFn===e.oldValue),i={documentHandler:Wz(t,e),bindingFn:e.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(t){Iu.delete(t)}},Qz={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:pf,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...gf(["ariaControls"])},Hz={[mi]:t=>vi(t)||Fa(t)||Pu(t),change:t=>vi(t)||Fa(t)||Pu(t)},cp=Symbol("checkboxGroupContextKey"),pCe=({model:t,isChecked:e})=>{const n=h.inject(cp,void 0),r=h.computed(()=>{var o,a;const s=(o=n==null?void 0:n.max)==null?void 0:o.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!u1(s)&&t.value.length>=s&&!e.value||!u1(l)&&t.value.length<=l&&e.value});return{isDisabled:ap(h.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},gCe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:o})=>{const a=h.inject(cp,void 0),{formItem:s}=vf(),{emit:l}=h.getCurrentInstance();function u(g){var v,m,y,b;return[!0,t.trueValue,t.trueLabel].includes(g)?(m=(v=t.trueValue)!=null?v:t.trueLabel)!=null?m:!0:(b=(y=t.falseValue)!=null?y:t.falseLabel)!=null?b:!1}function c(g,v){l("change",u(g),v)}function f(g){if(n.value)return;const v=g.target;l("change",u(v.checked),g)}async function d(g){n.value||!r.value&&!i.value&&o.value&&(g.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseValue,t.falseLabel].includes(e.value)),await h.nextTick(),c(e.value,g)))}const p=h.computed(()=>(a==null?void 0:a.validateEvent)||t.validateEvent);return h.watch(()=>t.modelValue,()=>{p.value&&(s==null||s.validate("change").catch(g=>ti(g)))}),{handleChange:f,onClickRoot:d}},vCe=t=>{const e=h.ref(!1),{emit:n}=h.getCurrentInstance(),r=h.inject(cp,void 0),i=h.computed(()=>u1(r)===!1),o=h.ref(!1),a=h.computed({get(){var s,l;return i.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=t.modelValue)!=null?l:e.value},set(s){var l,u;i.value&&Vh(s)?(o.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>a.value.length,o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(mi,s),e.value=s)}});return{model:a,isGroup:i,isLimitExceeded:o}},mCe=(t,e,{model:n})=>{const r=h.inject(cp,void 0),i=h.ref(!1),o=h.computed(()=>Yh(t.value)?t.label:t.value),a=h.computed(()=>{const c=n.value;return Pu(c)?c:Vh(c)?sf(o.value)?c.map(h.toRaw).some(f=>fm(f,o.value)):c.map(h.toRaw).includes(o.value):c!=null?c===t.trueValue||c===t.trueLabel:!!c}),s=op(h.computed(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),l=op(h.computed(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=h.computed(()=>!!e.default||!Yh(o.value));return{checkboxButtonSize:s,isChecked:a,isFocused:i,checkboxSize:l,hasOwnLabel:u,actualValue:o}},Gz=(t,e)=>{const{formItem:n}=vf(),{model:r,isGroup:i,isLimitExceeded:o}=vCe(t),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=mCe(t,e,{model:r}),{isDisabled:d}=pCe({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:g}=Sm(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:m}=gCe(t,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:g});return(()=>{function b(){var O,w;Vh(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(w=(O=t.trueValue)!=null?O:t.trueLabel)!=null?w:!0}t.checked&&b()})(),Wa({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.controls)),Wa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>i.value&&Yh(t.value))),Wa({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.trueLabel)),Wa({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.falseLabel)),{inputId:p,isLabeledByFormItem:g,isChecked:s,isDisabled:d,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:f,handleChange:v,onClickRoot:m}},yCe=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],bCe=["id","indeterminate","disabled","value","name","tabindex"],_Ce=h.defineComponent({name:"ElCheckbox"}),OCe=h.defineComponent({..._Ce,props:Qz,emits:Hz,setup(t){const e=t,n=h.useSlots(),{inputId:r,isLabeledByFormItem:i,isChecked:o,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:d,onClickRoot:p}=Gz(e,n),g=an("checkbox"),v=h.computed(()=>[g.b(),g.m(l.value),g.is("disabled",a.value),g.is("bordered",e.border),g.is("checked",o.value)]),m=h.computed(()=>[g.e("input"),g.is("disabled",a.value),g.is("checked",o.value),g.is("indeterminate",e.indeterminate),g.is("focus",s.value)]);return(y,b)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(!h.unref(u)&&h.unref(i)?"span":"label"),{class:h.normalizeClass(h.unref(v)),"aria-controls":y.indeterminate?y.controls||y.ariaControls:null,onClick:h.unref(p)},{default:h.withCtx(()=>{var O,w;return[h.createElementVNode("span",{class:h.normalizeClass(h.unref(m))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:0,id:h.unref(r),"onUpdate:modelValue":b[0]||(b[0]=S=>h.isRef(c)?c.value=S:null),class:h.normalizeClass(h.unref(g).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:h.unref(a),"true-value":(O=y.trueValue)!=null?O:y.trueLabel,"false-value":(w=y.falseValue)!=null?w:y.falseLabel,onChange:b[1]||(b[1]=(...S)=>h.unref(d)&&h.unref(d)(...S)),onFocus:b[2]||(b[2]=S=>s.value=!0),onBlur:b[3]||(b[3]=S=>s.value=!1),onClick:b[4]||(b[4]=h.withModifiers(()=>{},["stop"]))},null,42,yCe)),[[h.vModelCheckbox,h.unref(c)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:1,id:h.unref(r),"onUpdate:modelValue":b[5]||(b[5]=S=>h.isRef(c)?c.value=S:null),class:h.normalizeClass(h.unref(g).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:h.unref(a),value:h.unref(f),name:y.name,tabindex:y.tabindex,onChange:b[6]||(b[6]=(...S)=>h.unref(d)&&h.unref(d)(...S)),onFocus:b[7]||(b[7]=S=>s.value=!0),onBlur:b[8]||(b[8]=S=>s.value=!1),onClick:b[9]||(b[9]=h.withModifiers(()=>{},["stop"]))},null,42,bCe)),[[h.vModelCheckbox,h.unref(c)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(g).e("inner"))},null,2)],2),h.unref(u)?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(g).e("label"))},[h.renderSlot(y.$slots,"default"),y.$slots.default?h.createCommentVNode("v-if",!0):(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode(h.toDisplayString(y.label),1)],64))],2)):h.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var wCe=fn(OCe,[["__file","checkbox.vue"]]);const SCe=["name","tabindex","disabled","true-value","false-value"],xCe=["name","tabindex","disabled","value"],CCe=h.defineComponent({name:"ElCheckboxButton"}),TCe=h.defineComponent({...CCe,props:Qz,emits:Hz,setup(t){const e=t,n=h.useSlots(),{isFocused:r,isChecked:i,isDisabled:o,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=Gz(e,n),c=h.inject(cp,void 0),f=an("checkbox"),d=h.computed(()=>{var g,v,m,y;const b=(v=(g=c==null?void 0:c.fill)==null?void 0:g.value)!=null?v:"";return{backgroundColor:b,borderColor:b,color:(y=(m=c==null?void 0:c.textColor)==null?void 0:m.value)!=null?y:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),p=h.computed(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",o.value),f.is("checked",i.value),f.is("focus",r.value)]);return(g,v)=>{var m,y;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass(h.unref(p))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=b=>h.isRef(s)?s.value=b:null),class:h.normalizeClass(h.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:h.unref(o),"true-value":(m=g.trueValue)!=null?m:g.trueLabel,"false-value":(y=g.falseValue)!=null?y:g.falseLabel,onChange:v[1]||(v[1]=(...b)=>h.unref(u)&&h.unref(u)(...b)),onFocus:v[2]||(v[2]=b=>r.value=!0),onBlur:v[3]||(v[3]=b=>r.value=!1),onClick:v[4]||(v[4]=h.withModifiers(()=>{},["stop"]))},null,42,SCe)),[[h.vModelCheckbox,h.unref(s)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=b=>h.isRef(s)?s.value=b:null),class:h.normalizeClass(h.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:h.unref(o),value:h.unref(l),onChange:v[6]||(v[6]=(...b)=>h.unref(u)&&h.unref(u)(...b)),onFocus:v[7]||(v[7]=b=>r.value=!0),onBlur:v[8]||(v[8]=b=>r.value=!1),onClick:v[9]||(v[9]=h.withModifiers(()=>{},["stop"]))},null,42,xCe)),[[h.vModelCheckbox,h.unref(s)]]),g.$slots.default||g.label?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass(h.unref(f).be("button","inner")),style:h.normalizeStyle(h.unref(i)?h.unref(d):void 0)},[h.renderSlot(g.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(g.label),1)])],6)):h.createCommentVNode("v-if",!0)],2)}}});var jz=fn(TCe,[["__file","checkbox-button.vue"]]);const PCe=zn({modelValue:{type:Zt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:pf,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...gf(["ariaLabel"])}),$Ce={[mi]:t=>Vh(t),change:t=>Vh(t)},ACe=h.defineComponent({name:"ElCheckboxGroup"}),ECe=h.defineComponent({...ACe,props:PCe,emits:$Ce,setup(t,{emit:e}){const n=t,r=an("checkbox"),{formItem:i}=vf(),{inputId:o,isLabeledByFormItem:a}=Sm(n,{formItemContext:i}),s=async u=>{e(mi,u),await h.nextTick(),e("change",u)},l=h.computed({get(){return n.modelValue},set(u){s(u)}});return h.provide(cp,{...Xh(h.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!n.label)),h.watch(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(u=>ti(u)))}),(u,c)=>{var f;return h.openBlock(),h.createBlock(h.resolveDynamicComponent(u.tag),{id:h.unref(o),class:h.normalizeClass(h.unref(r).b("group")),role:"group","aria-label":h.unref(a)?void 0:u.label||u.ariaLabel||"checkbox-group","aria-labelledby":h.unref(a)?(f=h.unref(i))==null?void 0:f.labelId:void 0},{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Uz=fn(ECe,[["__file","checkbox-group.vue"]]);const MCe=Sl(wCe,{CheckboxButton:jz,CheckboxGroup:Uz});hm(jz),hm(Uz);const Zz=zn({modelValue:{type:[String,Number,Boolean],default:void 0},size:pf,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ICe=zn({...Zz,border:Boolean}),Xz={[mi]:t=>vi(t)||Fa(t)||Pu(t),[PV]:t=>vi(t)||Fa(t)||Pu(t)},Yz=Symbol("radioGroupKey"),qz=(t,e)=>{const n=h.ref(),r=h.inject(Yz,void 0),i=h.computed(()=>!!r),o=h.computed(()=>Yh(t.value)?t.label:t.value),a=h.computed({get(){return i.value?r.modelValue:t.modelValue},set(f){i.value?r.changeEvent(f):e&&e(mi,f),n.value.checked=t.modelValue===o.value}}),s=op(h.computed(()=>r==null?void 0:r.size)),l=ap(h.computed(()=>r==null?void 0:r.disabled)),u=h.ref(!1),c=h.computed(()=>l.value||i.value&&a.value!==o.value?-1:0);return Wa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},h.computed(()=>i.value&&Yh(t.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:c,modelValue:a,actualValue:o}},DCe=["value","name","disabled"],RCe=h.defineComponent({name:"ElRadio"}),kCe=h.defineComponent({...RCe,props:ICe,emits:Xz,setup(t,{emit:e}){const n=t,r=an("radio"),{radioRef:i,radioGroup:o,focus:a,size:s,disabled:l,modelValue:u,actualValue:c}=qz(n,e);function f(){h.nextTick(()=>e("change",u.value))}return(d,p)=>{var g;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass([h.unref(r).b(),h.unref(r).is("disabled",h.unref(l)),h.unref(r).is("focus",h.unref(a)),h.unref(r).is("bordered",d.border),h.unref(r).is("checked",h.unref(u)===h.unref(c)),h.unref(r).m(h.unref(s))])},[h.createElementVNode("span",{class:h.normalizeClass([h.unref(r).e("input"),h.unref(r).is("disabled",h.unref(l)),h.unref(r).is("checked",h.unref(u)===h.unref(c))])},[h.withDirectives(h.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":p[0]||(p[0]=v=>h.isRef(u)?u.value=v:null),class:h.normalizeClass(h.unref(r).e("original")),value:h.unref(c),name:d.name||((g=h.unref(o))==null?void 0:g.name),disabled:h.unref(l),type:"radio",onFocus:p[1]||(p[1]=v=>a.value=!0),onBlur:p[2]||(p[2]=v=>a.value=!1),onChange:f,onClick:p[3]||(p[3]=h.withModifiers(()=>{},["stop"]))},null,42,DCe),[[h.vModelRadio,h.unref(u)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(r).e("inner"))},null,2)],2),h.createElementVNode("span",{class:h.normalizeClass(h.unref(r).e("label")),onKeydown:p[4]||(p[4]=h.withModifiers(()=>{},["stop"]))},[h.renderSlot(d.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(d.label),1)])],34)],2)}}});var NCe=fn(kCe,[["__file","radio.vue"]]);const LCe=zn({...Zz}),BCe=["value","name","disabled"],VCe=h.defineComponent({name:"ElRadioButton"}),zCe=h.defineComponent({...VCe,props:LCe,setup(t){const e=t,n=an("radio"),{radioRef:r,focus:i,size:o,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=qz(e),c=h.computed(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,d)=>{var p;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass([h.unref(n).b("button"),h.unref(n).is("active",h.unref(s)===h.unref(u)),h.unref(n).is("disabled",h.unref(a)),h.unref(n).is("focus",h.unref(i)),h.unref(n).bm("button",h.unref(o))])},[h.withDirectives(h.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=g=>h.isRef(s)?s.value=g:null),class:h.normalizeClass(h.unref(n).be("button","original-radio")),value:h.unref(u),type:"radio",name:f.name||((p=h.unref(l))==null?void 0:p.name),disabled:h.unref(a),onFocus:d[1]||(d[1]=g=>i.value=!0),onBlur:d[2]||(d[2]=g=>i.value=!1),onClick:d[3]||(d[3]=h.withModifiers(()=>{},["stop"]))},null,42,BCe),[[h.vModelRadio,h.unref(s)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(n).be("button","inner")),style:h.normalizeStyle(h.unref(s)===h.unref(u)?h.unref(c):{}),onKeydown:d[4]||(d[4]=h.withModifiers(()=>{},["stop"]))},[h.renderSlot(f.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(f.label),1)])],38)],2)}}});var Kz=fn(zCe,[["__file","radio-button.vue"]]);const FCe=zn({id:{type:String,default:void 0},size:pf,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...gf(["ariaLabel"])}),WCe=Xz,QCe=["id","aria-label","aria-labelledby"],HCe=h.defineComponent({name:"ElRadioGroup"}),GCe=h.defineComponent({...HCe,props:FCe,emits:WCe,setup(t,{emit:e}){const n=t,r=an("radio"),i=Om(),o=h.ref(),{formItem:a}=vf(),{inputId:s,isLabeledByFormItem:l}=Sm(n,{formItemContext:a}),u=f=>{e(mi,f),h.nextTick(()=>e("change",f))};h.onMounted(()=>{const f=o.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(p=>p.checked)&&d&&(d.tabIndex=0)});const c=h.computed(()=>n.name||i.value);return h.provide(Yz,h.reactive({...h.toRefs(n),changeEvent:u,name:c})),h.watch(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>ti(f)))}),Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},h.computed(()=>!!n.label)),(f,d)=>(h.openBlock(),h.createElementBlock("div",{id:h.unref(s),ref_key:"radioGroupRef",ref:o,class:h.normalizeClass(h.unref(r).b("group")),role:"radiogroup","aria-label":h.unref(l)?void 0:f.label||f.ariaLabel||"radio-group","aria-labelledby":h.unref(l)?h.unref(a).labelId:void 0},[h.renderSlot(f.$slots,"default")],10,QCe))}});var Jz=fn(GCe,[["__file","radio-group.vue"]]);Sl(NCe,{RadioButton:Kz,RadioGroup:Jz});const eF=hm(Jz),$m=hm(Kz),jCe=h.defineComponent({name:"ElCollapseTransition"}),UCe=h.defineComponent({...jCe,setup(t){const e=an("collapse-transition"),n=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){n(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){n(i)},leaveCancelled(i){n(i)}};return(i,o)=>(h.openBlock(),h.createBlock(h.Transition,h.mergeProps({name:h.unref(e).b()},h.toHandlers(r)),{default:h.withCtx(()=>[h.renderSlot(i.$slots,"default")]),_:3},16,["name"]))}});var A1=fn(UCe,[["__file","collapse-transition.vue"]]);A1.install=t=>{t.component(A1.name,A1)};const ZCe=A1,XCe=zn({color:{type:Zt(Object),required:!0},vertical:{type:Boolean,default:!1}});let B$=!1;function Am(t,e){if(!sr)return;const n=function(o){var a;(a=e.drag)==null||a.call(e,o)},r=function(o){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,B$=!1,(a=e.end)==null||a.call(e,o)},i=function(o){var a;B$||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),B$=!0,(a=e.start)==null||a.call(e,o))};t.addEventListener("mousedown",i),t.addEventListener("touchstart",i)}const YCe=t=>{const e=h.getCurrentInstance(),n=h.shallowRef(),r=h.shallowRef();function i(a){a.target!==n.value&&o(a)}function o(a){if(!r.value||!n.value)return;const l=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=C2(a);if(t.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:i}},qCe=(t,{bar:e,thumb:n,handleDrag:r})=>{const i=h.getCurrentInstance(),o=an("color-alpha-slider"),a=h.ref(0),s=h.ref(0),l=h.ref();function u(){if(!n.value||t.vertical)return 0;const b=i.vnode.el,O=t.color.get("alpha");return b?Math.round(O*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=i.vnode.el;if(!t.vertical)return 0;const O=t.color.get("alpha");return b?Math.round(O*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:b,g:O,b:w}=t.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${O}, ${w}, 0) 0%, rgba(${b}, ${O}, ${w}, 1) 100%)`}return""}function d(){a.value=u(),s.value=c(),l.value=f()}h.onMounted(()=>{if(!e.value||!n.value)return;const b={drag:O=>{r(O)},end:O=>{r(O)}};Am(e.value,b),Am(n.value,b),d()}),h.watch(()=>t.color.get("alpha"),()=>d()),h.watch(()=>t.color.value,()=>d());const p=h.computed(()=>[o.b(),o.is("vertical",t.vertical)]),g=h.computed(()=>o.e("bar")),v=h.computed(()=>o.e("thumb")),m=h.computed(()=>({background:l.value})),y=h.computed(()=>({left:qh(a.value),top:qh(s.value)}));return{rootKls:p,barKls:g,barStyle:m,thumbKls:v,thumbStyle:y,update:d}},KCe=h.defineComponent({name:"ElColorAlphaSlider"}),JCe=h.defineComponent({...KCe,props:XCe,setup(t,{expose:e}){const n=t,{bar:r,thumb:i,handleDrag:o,handleClick:a}=YCe(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=qCe(n,{bar:r,thumb:i,handleDrag:o});return e({update:d,bar:r,thumb:i}),(p,g)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(s))},[h.createElementVNode("div",{ref_key:"bar",ref:r,class:h.normalizeClass(h.unref(l)),style:h.normalizeStyle(h.unref(u)),onClick:g[0]||(g[0]=(...v)=>h.unref(a)&&h.unref(a)(...v))},null,6),h.createElementVNode("div",{ref_key:"thumb",ref:i,class:h.normalizeClass(h.unref(c)),style:h.normalizeStyle(h.unref(f))},null,6)],2))}});var eTe=fn(JCe,[["__file","alpha-slider.vue"]]);const tTe=h.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=an("color-hue-slider"),n=h.getCurrentInstance(),r=h.ref(),i=h.ref(),o=h.ref(0),a=h.ref(0),s=h.computed(()=>t.color.get("hue"));h.watch(()=>s.value,()=>{d()});function l(p){p.target!==r.value&&u(p)}function u(p){if(!i.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=C2(p);let b;if(t.vertical){let O=y-v.top;O=Math.min(O,v.height-r.value.offsetHeight/2),O=Math.max(r.value.offsetHeight/2,O),b=Math.round((O-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let O=m-v.left;O=Math.min(O,v.width-r.value.offsetWidth/2),O=Math.max(r.value.offsetWidth/2,O),b=Math.round((O-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",b)}function c(){if(!r.value)return 0;const p=n.vnode.el;if(t.vertical)return 0;const g=t.color.get("hue");return p?Math.round(g*(p.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const p=n.vnode.el;if(!t.vertical)return 0;const g=t.color.get("hue");return p?Math.round(g*(p.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){o.value=c(),a.value=f()}return h.onMounted(()=>{if(!i.value||!r.value)return;const p={drag:g=>{u(g)},end:g=>{u(g)}};Am(i.value,p),Am(r.value,p),d()}),{bar:i,thumb:r,thumbLeft:o,thumbTop:a,hueValue:s,handleClick:l,update:d,ns:e}}});function nTe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[h.createElementVNode("div",{ref:"bar",class:h.normalizeClass(t.ns.e("bar")),onClick:e[0]||(e[0]=(...a)=>t.handleClick&&t.handleClick(...a))},null,2),h.createElementVNode("div",{ref:"thumb",class:h.normalizeClass(t.ns.e("thumb")),style:h.normalizeStyle({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var rTe=fn(tTe,[["render",nTe],["__file","hue-slider.vue"]]);const iTe=zn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:pf,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:A$.teleported,predefine:{type:Zt(Array)},validateEvent:{type:Boolean,default:!0},...gf(["ariaLabel"])}),oTe={[mi]:t=>vi(t)||Tu(t),[PV]:t=>vi(t)||Tu(t),activeChange:t=>vi(t)||Tu(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},tF=Symbol("colorPickerContextKey"),nF=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},aTe=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},sTe=function(t){return typeof t=="string"&&t.includes("%")},fp=function(t,e){aTe(t)&&(t="100%");const n=sTe(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},rF={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},E1=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${rF[e]||e}${rF[n]||n}`},iF=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${E1(t)}${E1(e)}${E1(n)}`},V$={A:10,B:11,C:12,D:13,E:14,F:15},bf=function(t){return t.length===2?(V$[t[0].toUpperCase()]||+t[0])*16+(V$[t[1].toUpperCase()]||+t[1]):V$[t[1].toUpperCase()]||+t[1]},lTe=function(t,e,n){e=e/100,n=n/100;let r=e;const i=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=i<=1?i:2-i;const o=(n+e)/2,a=n===0?2*r/(i+r):2*e/(n+e);return{h:t,s:a*100,v:o*100}},oF=(t,e,n)=>{t=fp(t,255),e=fp(e,255),n=fp(n,255);const r=Math.max(t,e,n),i=Math.min(t,e,n);let o;const a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:{o=(e-n)/s+(e<n?6:0);break}case e:{o=(n-t)/s+2;break}case n:{o=(t-e)/s+4;break}}o/=6}return{h:o*360,s:l*100,v:a*100}},Em=function(t,e,n){t=fp(t,360)*6,e=fp(e,100),n=fp(n,100);const r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],f=[o,o,s,n,n,a][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class Mm{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in e)of(e,n)&&(this[n]=e[n]);e.value?this.fromString(e.value):this.doOnChange()}set(e,n){if(arguments.length===1&&typeof e=="object"){for(const r in e)of(e,r)&&this.set(r,e[r]);return}this[`_${e}`]=n,this.doOnChange()}get(e){return e==="alpha"?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return Em(this._hue,this._saturation,this._value)}fromString(e){if(!e){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,o)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=lTe(r[0],r[1],r[2]);n(i,o,a)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=oF(r[0],r[1],r[2]);n(i,o,a)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,o,a;r.length===3?(i=bf(r[0]+r[0]),o=bf(r[1]+r[1]),a=bf(r[2]+r[2])):(r.length===6||r.length===8)&&(i=bf(r.slice(0,2)),o=bf(r.slice(2,4)),a=bf(r.slice(4,6))),r.length===8?this._alpha=bf(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=oF(i,o,a);n(s,l,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:i,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const a=nF(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${iF(Em(e,n,r))}${E1(i*255/100)}`;break}default:{const{r:a,g:s,b:l}=Em(e,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const a=nF(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:s,b:l}=Em(e,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=iF(Em(e,n,r))}}}const uTe=h.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(t){const e=an("color-predefine"),{currentColor:n}=h.inject(tF),r=h.ref(o(t.colors,t.color));h.watch(()=>n.value,a=>{const s=new Mm;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),h.watchEffect(()=>{r.value=o(t.colors,t.color)});function i(a){t.color.fromString(t.colors[a])}function o(a,s){return a.map(l=>{const u=new Mm;return u.enableAlpha=t.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:i,ns:e}}}),cTe=["onClick"];function fTe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(t.ns.b())},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("colors"))},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.rgbaColors,(a,s)=>(h.openBlock(),h.createElementBlock("div",{key:t.colors[s],class:h.normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>t.handleSelect(s)},[h.createElementVNode("div",{style:h.normalizeStyle({backgroundColor:a.value})},null,4)],10,cTe))),128))],2)],2)}var dTe=fn(uTe,[["render",fTe],["__file","predefine.vue"]]);const hTe=h.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=an("color-svpanel"),n=h.getCurrentInstance(),r=h.ref(0),i=h.ref(0),o=h.ref("hsl(0, 100%, 50%)"),a=h.computed(()=>{const u=t.color.get("hue"),c=t.color.get("value");return{hue:u,value:c}});function s(){const u=t.color.get("saturation"),c=t.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:p}=f;i.value=u*d/100,r.value=(100-c)*p/100,o.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:p}=C2(u);let g=d-f.left,v=p-f.top;g=Math.max(0,g),g=Math.min(g,f.width),v=Math.max(0,v),v=Math.min(v,f.height),i.value=g,r.value=v,t.color.set({saturation:g/f.width*100,value:100-v/f.height*100})}return h.watch(()=>a.value,()=>{s()}),h.onMounted(()=>{Am(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:i,background:o,colorValue:a,handleDrag:l,update:s,ns:e}}}),pTe=[h.createElementVNode("div",null,null,-1)];function gTe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(t.ns.b()),style:h.normalizeStyle({backgroundColor:t.background})},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("white"))},null,2),h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("black"))},null,2),h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("cursor")),style:h.normalizeStyle({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},pTe,6)],6)}var vTe=fn(hTe,[["render",gTe],["__file","sv-panel.vue"]]);const mTe=["onKeydown"],yTe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],bTe=h.defineComponent({name:"ElColorPicker"}),_Te=h.defineComponent({...bTe,props:iTe,emits:oTe,setup(t,{expose:e,emit:n}){const r=t,{t:i}=n$(),o=an("color"),{formItem:a}=vf(),s=op(),l=ap(),{inputId:u,isLabeledByFormItem:c}=Sm(r,{formItemContext:a}),f=h.ref(),d=h.ref(),p=h.ref(),g=h.ref(),v=h.ref(),m=h.ref(),{isFocused:y,handleFocus:b,handleBlur:O}=sz(v,{beforeBlur(X){var Y;return(Y=g.value)==null?void 0:Y.isFocusInsideContent(X)},afterBlur(){B(!1),j()}}),w=X=>{if(l.value)return ee();b(X)};let S=!0;const x=h.reactive(new Mm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),T=h.ref(!1),$=h.ref(!1),A=h.ref(""),P=h.computed(()=>!r.modelValue&&!$.value?"transparent":D(x,r.showAlpha)),M=h.computed(()=>!r.modelValue&&!$.value?"":x.value),I=h.computed(()=>c.value?void 0:r.label||r.ariaLabel||i("el.colorpicker.defaultLabel"));Wa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},h.computed(()=>!!r.label));const R=h.computed(()=>c.value?a==null?void 0:a.labelId:void 0),L=h.computed(()=>[o.b("picker"),o.is("disabled",l.value),o.bm("picker",s.value),o.is("focused",y.value)]);function D(X,Y){if(!(X instanceof Mm))throw new TypeError("color should be instance of _color Class");const{r:le,g:ve,b:ye}=X.toRgb();return Y?`rgba(${le}, ${ve}, ${ye}, ${X.get("alpha")/100})`:`rgb(${le}, ${ve}, ${ye})`}function B(X){T.value=X}const F=X2(B,100,{leading:!0});function z(){l.value||B(!0)}function W(){F(!1),j()}function j(){h.nextTick(()=>{r.modelValue?x.fromString(r.modelValue):(x.value="",h.nextTick(()=>{$.value=!1}))})}function H(){l.value||F(!T.value)}function Z(){x.fromString(A.value)}function J(){const X=x.value;n(mi,X),n("change",X),r.validateEvent&&(a==null||a.validate("change").catch(Y=>ti(Y))),F(!1),h.nextTick(()=>{const Y=new Mm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});x.compare(Y)||j()})}function se(){F(!1),n(mi,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(X=>ti(X))),j()}function oe(X){if(T.value&&(W(),y.value)){const Y=new FocusEvent("focus",X);O(Y)}}function de(X){X.preventDefault(),X.stopPropagation(),B(!1),j()}function ie(X){switch(X.code){case Fi.enter:case Fi.space:X.preventDefault(),X.stopPropagation(),z(),m.value.focus();break;case Fi.esc:de(X);break}}function ue(){v.value.focus()}function ee(){v.value.blur()}return h.onMounted(()=>{r.modelValue&&(A.value=M.value)}),h.watch(()=>r.modelValue,X=>{X?X&&X!==x.value&&(S=!1,x.fromString(X)):$.value=!1}),h.watch(()=>M.value,X=>{A.value=X,S&&n("activeChange",X),S=!0}),h.watch(()=>x.value,()=>{!r.modelValue&&!$.value&&($.value=!0)}),h.watch(()=>T.value,()=>{h.nextTick(()=>{var X,Y,le;(X=f.value)==null||X.update(),(Y=d.value)==null||Y.update(),(le=p.value)==null||le.update()})}),h.provide(tF,{currentColor:M}),e({color:x,show:z,hide:W,focus:ue,blur:ee}),(X,Y)=>(h.openBlock(),h.createBlock(h.unref(jxe),{ref_key:"popper",ref:g,visible:T.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[h.unref(o).be("picker","panel"),h.unref(o).b("dropdown"),X.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:X.teleported,transition:`${h.unref(o).namespace.value}-zoom-in-top`,persistent:"",onHide:Y[2]||(Y[2]=le=>B(!1))},{content:h.withCtx(()=>[h.withDirectives((h.openBlock(),h.createElementBlock("div",{onKeydown:h.withKeys(de,["esc"])},[h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("dropdown","main-wrapper"))},[h.createVNode(rTe,{ref_key:"hue",ref:f,class:"hue-slider",color:h.unref(x),vertical:""},null,8,["color"]),h.createVNode(vTe,{ref_key:"sv",ref:d,color:h.unref(x)},null,8,["color"])],2),X.showAlpha?(h.openBlock(),h.createBlock(eTe,{key:0,ref_key:"alpha",ref:p,color:h.unref(x)},null,8,["color"])):h.createCommentVNode("v-if",!0),X.predefine?(h.openBlock(),h.createBlock(dTe,{key:1,ref:"predefine","enable-alpha":X.showAlpha,color:h.unref(x),colors:X.predefine},null,8,["enable-alpha","color","colors"])):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("dropdown","btns"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(o).be("dropdown","value"))},[h.createVNode(h.unref(O1),{ref_key:"inputRef",ref:m,modelValue:A.value,"onUpdate:modelValue":Y[0]||(Y[0]=le=>A.value=le),"validate-event":!1,size:"small",onKeyup:h.withKeys(Z,["enter"]),onBlur:Z},null,8,["modelValue","onKeyup"])],2),h.createVNode(h.unref(L$),{class:h.normalizeClass(h.unref(o).be("dropdown","link-btn")),text:"",size:"small",onClick:se},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),h.createVNode(h.unref(L$),{plain:"",size:"small",class:h.normalizeClass(h.unref(o).be("dropdown","btn")),onClick:J},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,mTe)),[[h.unref(hCe),oe]])]),default:h.withCtx(()=>[h.createElementVNode("div",h.mergeProps({id:h.unref(u),ref_key:"triggerRef",ref:v},X.$attrs,{class:h.unref(L),role:"button","aria-label":h.unref(I),"aria-labelledby":h.unref(R),"aria-description":h.unref(i)("el.colorpicker.description",{color:X.modelValue||""}),"aria-disabled":h.unref(l),tabindex:h.unref(l)?-1:X.tabindex,onKeydown:ie,onFocus:w,onBlur:Y[1]||(Y[1]=(...le)=>h.unref(O)&&h.unref(O)(...le))}),[h.unref(l)?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(o).be("picker","mask"))},null,2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("picker","trigger")),onClick:H},[h.createElementVNode("span",{class:h.normalizeClass([h.unref(o).be("picker","color"),h.unref(o).is("alpha",X.showAlpha)])},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(o).be("picker","color-inner")),style:h.normalizeStyle({backgroundColor:h.unref(P)})},[h.withDirectives(h.createVNode(h.unref(Ha),{class:h.normalizeClass([h.unref(o).be("picker","icon"),h.unref(o).is("icon-arrow-down")])},{default:h.withCtx(()=>[h.createVNode(h.unref(rOe))]),_:1},8,["class"]),[[h.vShow,X.modelValue||$.value]]),h.withDirectives(h.createVNode(h.unref(Ha),{class:h.normalizeClass([h.unref(o).be("picker","empty"),h.unref(o).is("icon-close")])},{default:h.withCtx(()=>[h.createVNode(h.unref(CV))]),_:1},8,["class"]),[[h.vShow,!X.modelValue&&!$.value]])],6)],2)],2)],16,yTe)]),_:1},8,["visible","popper-class","teleported","transition"]))}});var OTe=fn(_Te,[["__file","color-picker.vue"]]);const dp=Sl(OTe),wTe=zn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Zt([String,Array,Object])},zIndex:{type:Zt([String,Number])}}),STe={click:t=>t instanceof MouseEvent},xTe="overlay";var CTe=h.defineComponent({name:"ElOverlay",props:wTe,emits:STe,setup(t,{slots:e,emit:n}){const r=an(xTe),i=l=>{n("click",l)},{onClick:o,onMousedown:a,onMouseup:s}=YV(t.customMaskEvent?void 0:i);return()=>t.mask?h.createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:o,onMousedown:a,onMouseup:s},[h.renderSlot(e,"default")],h1.STYLE|h1.CLASS|h1.PROPS,["onClick","onMouseup","onMousedown"]):h.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[h.renderSlot(e,"default")])}});const TTe=CTe,aF=Symbol("dialogInjectionKey"),sF=zn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Kh},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),PTe={close:()=>!0},$Te=["aria-level"],ATe=["aria-label"],ETe=["id"],MTe=h.defineComponent({name:"ElDialogContent"}),ITe=h.defineComponent({...MTe,props:sF,emits:PTe,setup(t){const e=t,{t:n}=n$(),{Close:r}=vOe,{dialogRef:i,headerRef:o,bodyId:a,ns:s,style:l}=h.inject(aF),{focusTrapRef:u}=h.inject(Pz),c=h.computed(()=>[s.b(),s.is("fullscreen",e.fullscreen),s.is("draggable",e.draggable),s.is("align-center",e.alignCenter),{[s.m("center")]:e.center}]),f=yOe(u,i),d=h.computed(()=>e.draggable),p=h.computed(()=>e.overflow);return COe(i,o,d,p),(g,v)=>(h.openBlock(),h.createElementBlock("div",{ref:h.unref(f),class:h.normalizeClass(h.unref(c)),style:h.normalizeStyle(h.unref(l)),tabindex:"-1"},[h.createElementVNode("header",{ref_key:"headerRef",ref:o,class:h.normalizeClass([h.unref(s).e("header"),{"show-close":g.showClose}])},[h.renderSlot(g.$slots,"header",{},()=>[h.createElementVNode("span",{role:"heading","aria-level":g.ariaLevel,class:h.normalizeClass(h.unref(s).e("title"))},h.toDisplayString(g.title),11,$Te)]),g.showClose?(h.openBlock(),h.createElementBlock("button",{key:0,"aria-label":h.unref(n)("el.dialog.close"),class:h.normalizeClass(h.unref(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=m=>g.$emit("close"))},[h.createVNode(h.unref(Ha),{class:h.normalizeClass(h.unref(s).e("close"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(g.closeIcon||h.unref(r))))]),_:1},8,["class"])],10,ATe)):h.createCommentVNode("v-if",!0)],2),h.createElementVNode("div",{id:h.unref(a),class:h.normalizeClass(h.unref(s).e("body"))},[h.renderSlot(g.$slots,"default")],10,ETe),g.$slots.footer?(h.openBlock(),h.createElementBlock("footer",{key:0,class:h.normalizeClass(h.unref(s).e("footer"))},[h.renderSlot(g.$slots,"footer")],2)):h.createCommentVNode("v-if",!0)],6))}});var DTe=fn(ITe,[["__file","dialog-content.vue"]]);const RTe=zn({...sF,appendToBody:Boolean,appendTo:{type:Zt(String),default:"body"},beforeClose:{type:Zt(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),kTe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[mi]:t=>Pu(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},NTe=(t,e)=>{var n;const i=h.getCurrentInstance().emit,{nextZIndex:o}=az();let a="";const s=Om(),l=Om(),u=h.ref(!1),c=h.ref(!1),f=h.ref(!1),d=h.ref((n=t.zIndex)!=null?n:o());let p,g;const v=uz("namespace",p1),m=h.computed(()=>{const D={},B=`--${v.value}-dialog`;return t.fullscreen||(t.top&&(D[`${B}-margin-top`]=t.top),t.width&&(D[`${B}-width`]=qh(t.width))),D}),y=h.computed(()=>t.alignCenter?{display:"flex"}:{});function b(){i("opened")}function O(){i("closed"),i(mi,!1),t.destroyOnClose&&(f.value=!1)}function w(){i("close")}function S(){g==null||g(),p==null||p(),t.openDelay&&t.openDelay>0?{stop:p}=YB(()=>A(),t.openDelay):A()}function x(){p==null||p(),g==null||g(),t.closeDelay&&t.closeDelay>0?{stop:g}=YB(()=>P(),t.closeDelay):P()}function T(){function D(B){B||(c.value=!0,u.value=!1)}t.beforeClose?t.beforeClose(D):x()}function $(){t.closeOnClickModal&&T()}function A(){sr&&(u.value=!0)}function P(){u.value=!1}function M(){i("openAutoFocus")}function I(){i("closeAutoFocus")}function R(D){var B;((B=D.detail)==null?void 0:B.focusReason)==="pointer"&&D.preventDefault()}t.lockScroll&&DOe(u);function L(){t.closeOnPressEscape&&T()}return h.watch(()=>t.modelValue,D=>{D?(c.value=!1,S(),f.value=!0,d.value=mV(t.zIndex)?o():d.value++,h.nextTick(()=>{i("open"),e.value&&(e.value.scrollTop=0)})):u.value&&x()}),h.watch(()=>t.fullscreen,D=>{e.value&&(D?(a=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=a)}),h.onMounted(()=>{t.modelValue&&(u.value=!0,f.value=!0,S())}),{afterEnter:b,afterLeave:O,beforeLeave:w,handleClose:T,onModalClick:$,close:x,doClose:P,onOpenAutoFocus:M,onCloseAutoFocus:I,onCloseRequested:L,onFocusoutPrevented:R,titleId:s,bodyId:l,closed:c,style:m,overlayDialogStyle:y,rendered:f,visible:u,zIndex:d}},LTe=["aria-label","aria-labelledby","aria-describedby"],BTe=h.defineComponent({name:"ElDialog",inheritAttrs:!1}),VTe=h.defineComponent({...BTe,props:RTe,emits:kTe,setup(t,{expose:e}){const n=t,r=h.useSlots();Wa({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},h.computed(()=>!!r.title));const i=an("dialog"),o=h.ref(),a=h.ref(),s=h.ref(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:p,zIndex:g,afterEnter:v,afterLeave:m,beforeLeave:y,handleClose:b,onModalClick:O,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:x,onFocusoutPrevented:T}=NTe(n,o);h.provide(aF,{dialogRef:o,headerRef:a,bodyId:c,ns:i,rendered:p,style:f});const $=YV(O),A=h.computed(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(P,M)=>(h.openBlock(),h.createBlock(h.Teleport,{to:P.appendTo,disabled:P.appendTo!=="body"?!1:!P.appendToBody},[h.createVNode(h.Transition,{name:"dialog-fade",onAfterEnter:h.unref(v),onAfterLeave:h.unref(m),onBeforeLeave:h.unref(y),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(h.unref(TTe),{"custom-mask-event":"",mask:P.modal,"overlay-class":P.modalClass,"z-index":h.unref(g)},{default:h.withCtx(()=>[h.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":P.title||void 0,"aria-labelledby":P.title?void 0:h.unref(u),"aria-describedby":h.unref(c),class:h.normalizeClass(`${h.unref(i).namespace.value}-overlay-dialog`),style:h.normalizeStyle(h.unref(d)),onClick:M[0]||(M[0]=(...I)=>h.unref($).onClick&&h.unref($).onClick(...I)),onMousedown:M[1]||(M[1]=(...I)=>h.unref($).onMousedown&&h.unref($).onMousedown(...I)),onMouseup:M[2]||(M[2]=(...I)=>h.unref($).onMouseup&&h.unref($).onMouseup(...I))},[h.createVNode(h.unref(Dz),{loop:"",trapped:h.unref(l),"focus-start-el":"container",onFocusAfterTrapped:h.unref(w),onFocusAfterReleased:h.unref(S),onFocusoutPrevented:h.unref(T),onReleaseRequested:h.unref(x)},{default:h.withCtx(()=>[h.unref(p)?(h.openBlock(),h.createBlock(DTe,h.mergeProps({key:0,ref_key:"dialogContentRef",ref:s},P.$attrs,{center:P.center,"align-center":P.alignCenter,"close-icon":P.closeIcon,draggable:h.unref(A),overflow:P.overflow,fullscreen:P.fullscreen,"show-close":P.showClose,title:P.title,"aria-level":P.headerAriaLevel,onClose:h.unref(b)}),h.createSlots({header:h.withCtx(()=>[P.$slots.title?h.renderSlot(P.$slots,"title",{key:1}):h.renderSlot(P.$slots,"header",{key:0,close:h.unref(b),titleId:h.unref(u),titleClass:h.unref(i).e("title")})]),default:h.withCtx(()=>[h.renderSlot(P.$slots,"default")]),_:2},[P.$slots.footer?{name:"footer",fn:h.withCtx(()=>[h.renderSlot(P.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):h.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,LTe)]),_:3},8,["mask","overlay-class","z-index"]),[[h.vShow,h.unref(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var zTe=fn(VTe,[["__file","dialog.vue"]]);const FTe=Sl(zTe),WTe=Symbol("ElSelect"),hp="$treeNodeId",lF=function(t,e){!e||e[hp]||Object.defineProperty(e,hp,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},z$=function(t,e){return t?e[t]:e[hp]},F$=(t,e,n)=>{const r=t.value.currentNode;n();const i=t.value.currentNode;r!==i&&e("current-change",i?i.data:null,i)},W$=t=>{let e=!0,n=!0,r=!0;for(let i=0,o=t.length;i<o;i++){const a=t[i];(a.checked!==!0||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},Im=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=W$(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const i=t.parent;!i||i.level===0||t.store.checkStrictly||Im(i)},M1=function(t,e){const n=t.store.props,r=t.data||{},i=n[e];if(typeof i=="function")return i(r,t);if(typeof i=="string")return r[i];if(typeof i>"u"){const o=r[e];return o===void 0?"":o}};let QTe=0;class _f{constructor(e){this.id=QTe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)of(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const o=M1(this,"isLeaf");typeof o=="boolean"&&(this.isLeafByUser=o)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||lF(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,i=e.key;i&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),i&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||lF(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=M1(this,"children")||[];for(let r=0,i=n.length;r<i;r++)this.insertChild({data:n[r]})}get label(){return M1(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return M1(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof _f)){if(!r){const i=this.getChildren(!0);i.includes(e.data)||(typeof n>"u"||n<0?i.push(e.data):i.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=h.reactive(new _f(e)),e instanceof _f&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const r=()=>{if(n){let i=this.parent;for(;i.level>0;)i.expanded=!0,i=i.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(i=>{i.canFocus=!0})};this.shouldLoadData()?this.loadData(i=>{Array.isArray(i)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Im(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,i){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=W$(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,e=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,p=u.length;d<p;d++){const g=u[d];i=i||e!==!1;const v=g.disabled?g.checked:i;g.setChecked(v,n,!0,i)}const{half:c,all:f}=W$(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Im(this)},{checked:e!==!1});return}else l()}const o=this.parent;!o||o.level===0||r||Im(o)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let i="children";return r&&(i=r.children||"children"),n[i]===void 0&&(n[i]=null),e&&!n[i]&&(n[i]=[]),n[i]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(o=>o.data),r={},i=[];e.forEach((o,a)=>{const s=o[hp];!!s&&n.findIndex(u=>u[hp]===s)>=0?r[s]={index:a,data:o}:i.push({index:a,data:o})}),this.store.lazy||n.forEach(o=>{r[o[hp]]||this.removeChildByData(o)}),i.forEach(({index:o,data:a})=>{this.insertChild({data:a},o)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,o)},i=()=>{this.loading=!1};this.store.load(this,r,i)}else e&&e.call(this)}eachNode(e){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),e(r)}}reInitChecked(){this.store.checkStrictly||Im(this)}}class HTe{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)of(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new _f({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,i=function(o){const a=o.root?o.root.childNodes:o.childNodes;if(a.forEach(s=>{s.visible=n.call(s,e,s.data,s),i(s)}),!o.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),o.root?o.root.visible=s===!1:o.visible=s===!1}e&&o.visible&&!o.isLeaf&&(!r||o.loaded)&&o.expand()};i(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof _f)return e;const n=sf(e)?z$(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=Yh(n)?this.root:this.getNode(n);r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const i=n[r];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],i=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),i(s)})};return i(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(o=>{o.indeterminate&&e.push(o.data),n(o)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)of(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const i=r.childNodes;for(let o=i.length-1;o>=0;o--){const a=i[o];this.remove(a.data)}for(let o=0,a=n.length;o<a;o++){const s=n[o];this.append(s,r.data)}}_setCheckedKeys(e,n=!1,r){const i=this._getAllNodes().sort((l,u)=>l.level-u.level),o=Object.create(null),a=Object.keys(r);i.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&s(u)})};for(let l=0,u=i.length;l<u;l++){const c=i[l],f=c.data[e].toString();if(!a.includes(f)){c.checked&&!o[f]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&s(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const p=function(g){g.childNodes.forEach(m=>{m.isLeaf||m.setChecked(!1,!1),p(m)})};p(c)}}}setCheckedNodes(e,n=!1){const r=this.key,i={};e.forEach(o=>{i[(o||{})[r]]=!0}),this._setCheckedKeys(r,n,i)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,i={};e.forEach(o=>{i[o]=!0}),this._setCheckedKeys(r,n,i)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const i=this.getNode(e);i&&i.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],i=this.nodesMap[r];this.setCurrentNode(i),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const GTe=h.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=an("tree"),n=h.inject("NodeInstance"),r=h.inject("RootTree");return()=>{const i=t.node,{data:o,store:a}=i;return t.renderContent?t.renderContent(h.h,{_self:n,node:i,data:o,store:a}):h.renderSlot(r.ctx.slots,"default",{node:i,data:o},()=>[h.h("span",{class:e.be("node","label")},[i.label])])}}});var jTe=fn(GTe,[["__file","tree-node-content.vue"]]);function uF(t){const e=h.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),h.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const i of n.children)i.treeNodeExpand(r)}}}const cF=Symbol("dragEvents");function UTe({props:t,ctx:e,el$:n,dropIndicator$:r,store:i}){const o=an("tree"),a=h.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),s=({event:c,treeNode:f})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=f,e.emit("node-drag-start",f.node,c)},l=({event:c,treeNode:f})=>{const d=f,p=a.value.dropNode;p&&p.node.id!==d.node.id&&c1(p.$el,o.is("drop-inner"));const g=a.value.draggingNode;if(!g||!d)return;let v=!0,m=!0,y=!0,b=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(g.node,d.node,"prev"),b=m=t.allowDrop(g.node,d.node,"inner"),y=t.allowDrop(g.node,d.node,"next")),c.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(p==null?void 0:p.node.id)!==d.node.id&&(p&&e.emit("node-drag-leave",g.node,p.node,c),e.emit("node-drag-enter",g.node,d.node,c)),v||m||y?a.value.dropNode=d:a.value.dropNode=null,d.node.nextSibling===g.node&&(y=!1),d.node.previousSibling===g.node&&(v=!1),d.node.contains(g.node,!1)&&(m=!1),(g.node===d.node||g.node.contains(d.node))&&(v=!1,m=!1,y=!1);const O=d.$el.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let S;const x=v?m?.25:y?.45:1:-1,T=y?m?.75:v?.55:0:1;let $=-9999;const A=c.clientY-O.top;A<O.height*x?S="before":A>O.height*T?S="after":m?S="inner":S="none";const P=d.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),M=r.value;S==="before"?$=P.top-w.top:S==="after"&&($=P.bottom-w.top),M.style.top=`${$}px`,M.style.left=`${P.right-w.left}px`,S==="inner"?SV(d.$el,o.is("drop-inner")):c1(d.$el,o.is("drop-inner")),a.value.showDropIndicator=S==="before"||S==="after",a.value.allowDrop=a.value.showDropIndicator||b,a.value.dropType=S,e.emit("node-drag-over",g.node,d.node,c)},u=c=>{const{draggingNode:f,dropType:d,dropNode:p}=a.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&p){const g={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?p.node.parent.insertBefore(g,p.node):d==="after"?p.node.parent.insertAfter(g,p.node):d==="inner"&&p.node.insertChild(g),d!=="none"&&(i.value.registerNode(g),i.value.key&&f.node.eachNode(v=>{var m;(m=i.value.nodesMap[v.data[i.value.key]])==null||m.setChecked(v.checked,!i.value.checkStrictly)})),c1(p.$el,o.is("drop-inner")),e.emit("node-drag-end",f.node,p.node,d,c),d!=="none"&&e.emit("node-drop",f.node,p.node,d,c)}f&&!p&&e.emit("node-drag-end",f.node,null,d,c),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0};return h.provide(cF,{treeNodeDragStart:s,treeNodeDragOver:l,treeNodeDragEnd:u}),{dragState:a}}const ZTe=h.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:ZCe,ElCheckbox:MCe,NodeContent:jTe,ElIcon:Ha,Loading:t$},props:{node:{type:_f,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=an("tree"),{broadcastExpanded:r}=uF(t),i=h.inject("RootTree"),o=h.ref(!1),a=h.ref(!1),s=h.ref(null),l=h.ref(null),u=h.ref(null),c=h.inject(cF),f=h.getCurrentInstance();h.provide("NodeInstance",f),i||ti("Tree","Can not find node's tree."),t.node.expanded&&(o.value=!0,a.value=!0);const d=i.props.props.children||"children";h.watch(()=>{const A=t.node.data[d];return A&&[...A]},()=>{t.node.updateChildren()}),h.watch(()=>t.node.indeterminate,A=>{v(t.node.checked,A)}),h.watch(()=>t.node.checked,A=>{v(A,t.node.indeterminate)}),h.watch(()=>t.node.childNodes.length,()=>t.node.reInitChecked()),h.watch(()=>t.node.expanded,A=>{h.nextTick(()=>o.value=A),A&&(a.value=!0)});const p=A=>z$(i.props.nodeKey,A.data),g=A=>{const P=t.props.class;if(!P)return{};let M;if(af(P)){const{data:I}=A;M=P(I,A)}else M=P;return vi(M)?{[M]:!0}:M},v=(A,P)=>{(s.value!==A||l.value!==P)&&i.ctx.emit("check-change",t.node.data,A,P),s.value=A,l.value=P},m=A=>{F$(i.store,i.ctx.emit,()=>i.store.value.setCurrentNode(t.node)),i.currentNode.value=t.node,i.props.expandOnClickNode&&b(),i.props.checkOnClickNode&&!t.node.disabled&&O(null,{target:{checked:!t.node.checked}}),i.ctx.emit("node-click",t.node.data,t.node,f,A)},y=A=>{i.instance.vnode.props.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),i.ctx.emit("node-contextmenu",A,t.node.data,t.node,f)},b=()=>{t.node.isLeaf||(o.value?(i.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},O=(A,P)=>{t.node.setChecked(P.target.checked,!i.props.checkStrictly),h.nextTick(()=>{const M=i.store.value;i.ctx.emit("check",t.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:i,expanded:o,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:p,getNodeClass:g,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:O,handleChildNodeExpand:(A,P,M)=>{r(P),i.ctx.emit("node-expand",A,P,M)},handleDragStart:A=>{i.props.draggable&&c.treeNodeDragStart({event:A,treeNode:t})},handleDragOver:A=>{A.preventDefault(),i.props.draggable&&c.treeNodeDragOver({event:A,treeNode:{$el:u.value,node:t.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{i.props.draggable&&c.treeNodeDragEnd(A)},CaretRight:oOe}}}),XTe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],YTe=["aria-expanded"];function qTe(t,e,n,r,i,o){const a=h.resolveComponent("el-icon"),s=h.resolveComponent("el-checkbox"),l=h.resolveComponent("loading"),u=h.resolveComponent("node-content"),c=h.resolveComponent("el-tree-node"),f=h.resolveComponent("el-collapse-transition");return h.withDirectives((h.openBlock(),h.createElementBlock("div",{ref:"node$",class:h.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=h.withModifiers((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=h.withModifiers((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=h.withModifiers((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=h.withModifiers((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=h.withModifiers((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.be("node","content")),style:h.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(h.openBlock(),h.createBlock(a,{key:0,class:h.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:h.withModifiers(t.handleExpandIconClick,["stop"])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0),t.showCheckbox?(h.openBlock(),h.createBlock(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=h.withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):h.createCommentVNode("v-if",!0),t.node.loading?(h.openBlock(),h.createBlock(a,{key:2,class:h.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:h.withCtx(()=>[h.createVNode(l)]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.createVNode(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),h.createVNode(f,null,{default:h.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?h.withDirectives((h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.node.childNodes,d=>(h.openBlock(),h.createBlock(c,{key:t.getNodeKey(d),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:d,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,YTe)),[[h.vShow,t.expanded]]):h.createCommentVNode("v-if",!0)]),_:1})],42,XTe)),[[h.vShow,t.node.visible]])}var KTe=fn(ZTe,[["render",qTe],["__file","tree-node.vue"]]);function JTe({el$:t},e){const n=an("tree"),r=h.shallowRef([]),i=h.shallowRef([]);h.onMounted(()=>{a()}),h.onUpdated(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),i.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),h.watch(i,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),nm(t,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([Fi.up,Fi.down].includes(u)){if(s.preventDefault(),u===Fi.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const p=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c<r.value.length-1?c+1:0;const p=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===p){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Fi.left,Fi.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Fi.enter,Fi.space].includes(u)&&d&&(s.preventDefault(),d.click())});const a=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),i.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const l=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const ePe=h.defineComponent({name:"ElTree",components:{ElTreeNode:KTe},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Kh}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=n$(),r=an("tree"),i=h.inject(WTe,null),o=h.ref(new HTe({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));o.value.initialize();const a=h.ref(o.value.root),s=h.ref(null),l=h.ref(null),u=h.ref(null),{broadcastExpanded:c}=uF(t),{dragState:f}=UTe({props:t,ctx:e,el$:l,dropIndicator$:u,store:o});JTe({el$:l},o);const d=h.computed(()=>{const{childNodes:z}=a.value,W=i?i.hasFilteredOptions!==0:!1;return(!z||z.length===0||z.every(({visible:j})=>!j))&&!W});h.watch(()=>t.currentNodeKey,z=>{o.value.setCurrentNodeKey(z)}),h.watch(()=>t.defaultCheckedKeys,z=>{o.value.setDefaultCheckedKey(z)}),h.watch(()=>t.defaultExpandedKeys,z=>{o.value.setDefaultExpandedKeys(z)}),h.watch(()=>t.data,z=>{o.value.setData(z)},{deep:!0}),h.watch(()=>t.checkStrictly,z=>{o.value.checkStrictly=z});const p=z=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(z)},g=z=>z$(t.nodeKey,z.data),v=z=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const W=o.value.getNode(z);if(!W)return[];const j=[W.data];let H=W.parent;for(;H&&H!==a.value;)j.push(H.data),H=H.parent;return j.reverse()},m=(z,W)=>o.value.getCheckedNodes(z,W),y=z=>o.value.getCheckedKeys(z),b=()=>{const z=o.value.getCurrentNode();return z?z.data:null},O=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const z=b();return z?z[t.nodeKey]:null},w=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(z,W)},S=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(z,W)},x=(z,W,j)=>{o.value.setChecked(z,W,j)},T=()=>o.value.getHalfCheckedNodes(),$=()=>o.value.getHalfCheckedKeys(),A=(z,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");F$(o,e.emit,()=>o.value.setUserCurrentNode(z,W))},P=(z,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");F$(o,e.emit,()=>o.value.setCurrentNodeKey(z,W))},M=z=>o.value.getNode(z),I=z=>{o.value.remove(z)},R=(z,W)=>{o.value.append(z,W)},L=(z,W)=>{o.value.insertBefore(z,W)},D=(z,W)=>{o.value.insertAfter(z,W)},B=(z,W,j)=>{c(W),e.emit("node-expand",z,W,j)},F=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(z,W)};return h.provide("RootTree",{ctx:e,props:t,store:o,root:a,currentNode:s,instance:h.getCurrentInstance()}),h.provide(wm,void 0),{ns:r,store:o,root:a,currentNode:s,dragState:f,el$:l,dropIndicator$:u,isEmpty:d,filter:p,getNodeKey:g,getNodePath:v,getCheckedNodes:m,getCheckedKeys:y,getCurrentNode:b,getCurrentKey:O,setCheckedNodes:w,setCheckedKeys:S,setChecked:x,getHalfCheckedNodes:T,getHalfCheckedKeys:$,setCurrentNode:A,setCurrentKey:P,t:n,getNode:M,remove:I,append:R,insertBefore:L,insertAfter:D,handleNodeExpand:B,updateKeyChildren:F}}});function tPe(t,e,n,r,i,o){const a=h.resolveComponent("el-tree-node");return h.openBlock(),h.createElementBlock("div",{ref:"el$",class:h.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.root.childNodes,s=>(h.openBlock(),h.createBlock(a,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(t.ns.e("empty-block"))},[h.renderSlot(t.$slots,"empty",{},()=>{var s;return[h.createElementVNode("span",{class:h.normalizeClass(t.ns.e("empty-text"))},h.toDisplayString((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):h.createCommentVNode("v-if",!0),h.withDirectives(h.createElementVNode("div",{ref:"dropIndicator$",class:h.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[h.vShow,t.dragState.showDropIndicator]])],2)}var I1=fn(ePe,[["render",tPe],["__file","tree.vue"]]);I1.install=t=>{t.component(I1.name,I1)};const fF=I1;function Dm(t){"@babel/helpers - typeof";return Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dm(t)}function nPe(t,e){if(Dm(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Dm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rPe(t){var e=nPe(t,"string");return Dm(e)=="symbol"?e:e+""}function iPe(t,e,n){return(e=rPe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dF(Object(n),!0).forEach(function(r){iPe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function k(){return k=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},k.apply(null,arguments)}const oPe=t=>typeof t=="function",aPe=Array.isArray,sPe=t=>typeof t=="string",lPe=t=>t!==null&&typeof t=="object",uPe=/^on[^a-z]/,cPe=t=>uPe.test(t),hF=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},fPe=/-(\w)/g,Q$=hF(t=>t.replace(fPe,(e,n)=>n?n.toUpperCase():"")),dPe=/\B([A-Z])/g,hPe=hF(t=>t.replace(dPe,"-$1").toLowerCase()),pPe=Object.prototype.hasOwnProperty,pF=(t,e)=>pPe.call(t,e);function gPe(t,e,n,r){const i=t[n];if(i!=null){const o=pF(i,"default");if(o&&r===void 0){const a=i.default;r=i.type!==Function&&oPe(a)?a():a}i.type===Boolean&&(!pF(e,n)&&!o?r=!1:r===""&&(r=!0))}return r}function vPe(t){return Object.keys(t).reduce((e,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(e[n]=t[n]),e),{})}function Rm(t){return typeof t=="number"?`${t}px`:t}function pp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof t=="function"?t(e):t??n}function mPe(t){let e;const n=new Promise(i=>{e=t(()=>{i(!0)})}),r=()=>{e==null||e()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}function Pe(){const t=[];for(let e=0;e<arguments.length;e++){const n=e<0||arguments.length<=e?void 0:arguments[e];if(n){if(sPe(n))t.push(n);else if(aPe(n))for(let r=0;r<n.length;r++){const i=Pe(n[r]);i&&t.push(i)}else if(lPe(n))for(const r in n)n[r]&&t.push(r)}}return t.join(" ")}var gF=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},e}()}(),H$=typeof window<"u"&&typeof document<"u"&&window.document===document,D1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),yPe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(D1):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),bPe=2;function _Pe(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&s()}function a(){yPe(o)}function s(){var l=Date.now();if(n){if(l-i<bPe)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=l}return s}var OPe=20,wPe=["top","right","bottom","left","width","height","size","weight"],SPe=typeof MutationObserver<"u",xPe=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_Pe(this.refresh.bind(this),OPe)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!H$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),SPe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!H$||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=wPe.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),vF=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},gp=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||D1},mF=k1(0,0,0,0);function R1(t){return parseFloat(t)||0}function yF(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var o=t["border-"+i+"-width"];return r+R1(o)},0)}function CPe(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=R1(a)}return n}function TPe(t){var e=t.getBBox();return k1(0,0,e.width,e.height)}function PPe(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return mF;var r=gp(t).getComputedStyle(t),i=CPe(r),o=i.left+i.right,a=i.top+i.bottom,s=R1(r.width),l=R1(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==e&&(s-=yF(r,"left","right")+o),Math.round(l+a)!==n&&(l-=yF(r,"top","bottom")+a)),!APe(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;Math.abs(u)!==1&&(s-=u),Math.abs(c)!==1&&(l-=c)}return k1(i.left,i.top,s,l)}var $Pe=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof gp(t).SVGGraphicsElement}:function(t){return t instanceof gp(t).SVGElement&&typeof t.getBBox=="function"}}();function APe(t){return t===gp(t).document.documentElement}function EPe(t){return H$?$Pe(t)?TPe(t):PPe(t):mF}function MPe(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return vF(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function k1(t,e,n,r){return{x:t,y:e,width:n,height:r}}var IPe=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k1(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=EPe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),DPe=function(){function t(e,n){var r=MPe(n);vF(this,{target:e,contentRect:r})}return t}(),RPe=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new gF,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof gp(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new IPe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof gp(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new DPe(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),bF=typeof WeakMap<"u"?new WeakMap:new gF,_F=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xPe.getInstance(),r=new RPe(e,n,this);bF.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){_F.prototype[t]=function(){var e;return(e=bF.get(this))[t].apply(e,arguments)}});var OF=function(){return typeof D1.ResizeObserver<"u"?D1.ResizeObserver:_F}();const G$=t=>t!=null&&t!=="",Ar=(t,e)=>{const n=k({},t);return Object.keys(e).forEach(r=>{const i=n[r];if(i)i.type||i.default?i.default=e[r]:i.def?i.def(e[r]):n[r]={type:i,default:e[r]};else throw new Error(`not have ${r} prop`)}),n},kPe=t=>{const e=Object.keys(t),n={},r={},i={};for(let o=0,a=e.length;o<a;o++){const s=e[o];cPe(s)?(n[s[2].toLowerCase()+s.slice(3)]=t[s],r[s]=t[s]):i[s]=t[s]}return{onEvents:r,events:n,extraAttrs:i}},NPe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return typeof t=="object"?t:(t.split(r).forEach(function(o){if(o){const a=o.split(i);if(a.length>1){const s=e?Q$(a[0].trim()):a[0].trim();n[s]=a[1].trim()}}}),n)},N1=(t,e)=>t[e]!==void 0,wF=Symbol("skipFlatten"),vr=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(t)?t:[t],r=[];return n.forEach(i=>{Array.isArray(i)?r.push(...vr(i,e)):i&&i.type===h.Fragment?i.key===wF?r.push(i):r.push(...vr(i.children,e)):i&&h.isVNode(i)?e&&!j$(i)?r.push(i):e||r.push(i):G$(i)&&r.push(i)}),r},SF=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(h.isVNode(t))return t.type===h.Fragment?e==="default"?vr(t.children):[]:t.children&&t.children[e]?vr(t.children[e](n)):[];{const r=t.$slots[e]&&t.$slots[e](n);return vr(r)}},Pl=t=>{var e;let n=((e=t==null?void 0:t.vnode)===null||e===void 0?void 0:e.el)||t&&(t.$el||t);for(;n&&!n.tagName;)n=n.nextSibling;return n},LPe=t=>{const e={};if(t.$&&t.$.vnode){const n=t.$.vnode.props||{};Object.keys(t.$props).forEach(r=>{const i=t.$props[r],o=hPe(r);(i!==void 0||o in n)&&(e[r]=i)})}else if(h.isVNode(t)&&typeof t.type=="object"){const n=t.props||{},r={};Object.keys(n).forEach(o=>{r[Q$(o)]=n[o]});const i=t.type.props||{};Object.keys(i).forEach(o=>{const a=gPe(i,r,o,r[o]);(a!==void 0||o in r)&&(e[o]=a)})}return e},BPe=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i;if(t.$){const o=t[e];if(o!==void 0)return typeof o=="function"&&r?o(n):o;i=t.$slots[e],i=r&&i?i(n):i}else if(h.isVNode(t)){const o=t.props&&t.props[e];if(o!==void 0&&t.props!==null)return typeof o=="function"&&r?o(n):o;t.type===h.Fragment?i=t.children:t.children&&t.children[e]&&(i=t.children[e],i=r&&i?i(n):i)}return Array.isArray(i)&&(i=vr(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function xF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return t.$?n=k(k({},n),t.$attrs):n=k(k({},n),t.props),kPe(n)[e?"onEvents":"events"]}function VPe(t,e){let r=((h.isVNode(t)?t.props:t.$attrs)||{}).style||{};return typeof r=="string"&&(r=NPe(r,e)),r}function zPe(t){return t.length===1&&t[0].type===h.Fragment}function j$(t){return t&&(t.type===h.Comment||t.type===h.Fragment&&t.children.length===0||t.type===h.Text&&t.children.trim()==="")}function xs(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...n):(n==null?void 0:n.type)===h.Fragment?e.push(...xs(n.children)):e.push(n)}),e.filter(n=>!j$(n))}function po(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}function L1(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,i;return(r=e[n])!==null&&r!==void 0?r:(i=t[n])===null||i===void 0?void 0:i.call(t)}const vp=h.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:n}=e;const r=h.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,o=null;const a=()=>{o&&(o.disconnect(),o=null)},s=c=>{const{onResize:f}=t,d=c[0].target,{width:p,height:g}=d.getBoundingClientRect(),{offsetWidth:v,offsetHeight:m}=d,y=Math.floor(p),b=Math.floor(g);if(r.width!==y||r.height!==b||r.offsetWidth!==v||r.offsetHeight!==m){const O={width:y,height:b,offsetWidth:v,offsetHeight:m};k(r,O),f&&Promise.resolve().then(()=>{f(k(k({},O),{offsetWidth:v,offsetHeight:m}),d)})}},l=h.getCurrentInstance(),u=()=>{const{disabled:c}=t;if(c){a();return}const f=Pl(l);f!==i&&(a(),i=f),!o&&f&&(o=new OF(s),o.observe(f))};return h.onMounted(()=>{u()}),h.onUpdated(()=>{u()}),h.onUnmounted(()=>{a()}),h.watch(()=>t.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let CF=t=>setTimeout(t,16),TF=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(CF=t=>window.requestAnimationFrame(t),TF=t=>window.cancelAnimationFrame(t));let PF=0;const U$=new Map;function $F(t){U$.delete(t)}function Dt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;PF+=1;const n=PF;function r(i){if(i===0)$F(n),t();else{const o=CF(()=>{r(i-1)});U$.set(n,o)}}return r(e),n}Dt.cancel=t=>{const e=U$.get(t);return $F(e),TF(e)};const Du=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e},mp=t=>{const e=t;return e.install=function(n){n.component(e.displayName||e.name,t)},t};function B1(){return{type:[Function,Array]}}function Vt(t){return{type:Object,default:t}}function lt(t){return{type:Boolean,default:t}}function ut(t){return{type:Function,default:t}}function Go(t,e){return{validator:()=>!0,default:t}}function Of(t){return{type:Array,default:t}}function $n(t){return{type:String,default:t}}function kn(t,e){return t?{type:t,default:e}:Go(e)}let Vr=!1;try{const t=Object.defineProperty({},"passive",{get(){Vr=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch{}function zr(t,e,n,r){if(t&&t.addEventListener){let i=r;i===void 0&&Vr&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(i={passive:!1}),t.addEventListener(e,n,i)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,n)}}}const Z$="anticon",AF=Symbol("GlobalFormContextKey"),FPe=t=>{h.provide(AF,t)},WPe=()=>h.inject(AF,{validateMessages:h.computed(()=>{})}),QPe=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Vt(),input:Vt(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Vt(),pageHeader:Vt(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Vt(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Vt(),pagination:Vt(),theme:Vt(),select:Vt(),wave:Vt()}),X$=Symbol("configProvider"),EF={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:h.computed(()=>Z$),getPopupContainer:h.computed(()=>()=>document.body),direction:h.computed(()=>"ltr")},V1=()=>h.inject(X$,EF),HPe=t=>h.provide(X$,t),MF=Symbol("DisabledContextKey"),Cs=()=>h.inject(MF,h.ref(void 0)),IF=t=>{const e=Cs();return h.provide(MF,h.computed(()=>{var n;return(n=t.value)!==null&&n!==void 0?n:e.value})),t},GPe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},jPe={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},DF={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},RF={lang:k({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},jPe),timePickerLocale:k({},DF)},go="${label} is not a valid ${type}",$l={locale:"en",Pagination:GPe,DatePicker:RF,TimePicker:DF,Calendar:RF,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:go,method:go,array:go,object:go,number:go,date:go,boolean:go,integer:go,float:go,regexp:go,email:go,url:go,hex:go},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},kF=h.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(t,e){let{slots:n}=e;const r=h.inject("localeData",{}),i=h.computed(()=>{const{componentName:a="global",defaultLocale:s}=t,l=s||$l[a||"global"],{antLocale:u}=r,c=a&&u?u[a]:{};return k(k({},typeof l=="function"?l():l),c||{})}),o=h.computed(()=>{const{antLocale:a}=r,s=a&&a.locale;return a&&a.exist&&!s?$l.locale:s});return()=>{const a=t.children||n.default,{antLocale:s}=r;return a==null?void 0:a(i.value,o.value,s)}}});function z1(t,e,n){const r=h.inject("localeData",{});return[h.computed(()=>{const{antLocale:o}=r,a=h.unref(e)||$l[t||"global"],s=t&&o?o[t]:{};return k(k(k({},typeof a=="function"?a():a),s||{}),h.unref(n)||{})})]}function Y$(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const NF="%";class UPe{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(NF):e)||null}update(e,n){const r=Array.isArray(e)?e.join(NF):e,i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}const LF="data-token-hash",wf="data-css-hash",ZPe="data-cache-path",yp="__cssinjs_instance__";function km(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${wf}]`)||[],{firstChild:n}=document.head;Array.from(e).forEach(i=>{i[yp]=i[yp]||t,i[yp]===t&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${wf}]`)).forEach(i=>{var o;const a=i.getAttribute(wf);r[a]?i[yp]===t&&((o=i.parentNode)===null||o===void 0||o.removeChild(i)):r[a]=!0})}return new UPe(t)}const BF=Symbol("StyleContextKey"),XPe=()=>{var t,e,n;const r=h.getCurrentInstance();let i;if(r&&r.appContext){const o=(n=(e=(t=r.appContext)===null||t===void 0?void 0:t.config)===null||e===void 0?void 0:e.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;o?i=o:(i=km(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=i))}else i=km();return i},VF={cache:km(),defaultCache:!0,hashPriority:"low"},F1=()=>{const t=XPe();return h.inject(BF,h.shallowRef(k(k({},VF),{cache:t})))},YPe=t=>{const e=F1(),n=h.shallowRef(k(k({},VF),{cache:km()}));return h.watch([()=>h.unref(t),e],()=>{const r=k({},e.value),i=h.unref(t);Object.keys(i).forEach(a=>{const s=i[a];i[a]!==void 0&&(r[a]=s)});const{cache:o}=i;r.cache=r.cache||km(),r.defaultCache=!o&&e.value.defaultCache,n.value=r},{immediate:!0}),h.provide(BF,n),n},qPe=()=>({autoClear:lt(),mock:$n(),cache:Vt(),defaultCache:lt(),hashPriority:$n(),container:kn(),ssrInline:lt(),transformers:Of(),linters:Of()});mp(h.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:qPe(),setup(t,e){let{slots:n}=e;return YPe(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function KPe(){return!1}let q$=!1;function JPe(){return q$}const e2e=process.env.NODE_ENV==="production"?KPe:JPe;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=function(){return q$=!0,setTimeout(()=>{q$=!1},0),e(...arguments)}}}function zF(t,e,n,r){const i=F1(),o=h.shallowRef(""),a=h.shallowRef();h.watchEffect(()=>{o.value=[t,...e.value].join("%")});const s=e2e(),l=u=>{i.value.cache.update(u,c=>{const[f=0,d]=c||[];return f-1===0?(r==null||r(d,!1),null):[f-1,d]})};return h.watch(o,(u,c)=>{c&&l(c),i.value.cache.update(u,f=>{const[d=0,p]=f||[];let g=p;process.env.NODE_ENV!=="production"&&p&&s&&(r==null||r(g,s),g=null);const v=g||n();return[d+1,v]}),a.value=i.value.cache.get(o.value)[1]},{immediate:!0}),h.onBeforeUnmount(()=>{l(o.value)}),a}function jo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ru(t,e){return t&&t.contains?t.contains(e):!1}const FF="data-vc-order",t2e="vc-util-key",K$=new Map;function WF(){let{mark:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:t2e}function W1(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function n2e(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function QF(t){return Array.from((K$.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function HF(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!jo())return null;const{csp:n,prepend:r}=e,i=document.createElement("style");i.setAttribute(FF,n2e(r)),n!=null&&n.nonce&&(i.nonce=n==null?void 0:n.nonce),i.innerHTML=t;const o=W1(e),{firstChild:a}=o;if(r){if(r==="queue"){const s=QF(o).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(FF)));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function GF(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=W1(e);return QF(n).find(r=>r.getAttribute(WF(e))===t)}function Q1(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=GF(t,e);n&&W1(e).removeChild(n)}function r2e(t,e){const n=K$.get(t);if(!n||!Ru(document,n)){const r=HF("",e),{parentNode:i}=r;K$.set(t,i),t.removeChild(r)}}function Nm(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,i,o;const a=W1(n);r2e(a,n);const s=GF(e,n);if(s)return!((r=n.csp)===null||r===void 0)&&r.nonce&&s.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)&&(s.nonce=(o=n.csp)===null||o===void 0?void 0:o.nonce),s.innerHTML!==t&&(s.innerHTML=t),s;const l=HF(t,n);return l.setAttribute(WF(n),e),l}function i2e(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}class bp{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return e.forEach(i=>{var o;r?r=(o=r==null?void 0:r.map)===null||o===void 0?void 0:o.get(i):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(e){var n;return(n=this.internalGet(e,!0))===null||n===void 0?void 0:n[0]}has(e){return!!this.internalGet(e)}set(e,n){if(!this.has(e)){if(this.size()+1>bp.MAX_CACHE_SIZE+bp.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((o,a)=>{const[,s]=o;return this.internalGet(a)[1]<s?[a,this.internalGet(a)[1]]:o},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(e)}let r=this.cache;e.forEach((i,o)=>{if(o===e.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const a=r.get(i);a?a.map||(a.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(e,n){var r;const i=e.get(n[0]);if(n.length===1)return i.map?e.set(n[0],{map:i.map}):e.delete(n[0]),(r=i.value)===null||r===void 0?void 0:r[0];const o=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&e.delete(n[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(n=>!i2e(n,e)),this.deleteByPath(this.cache,e)}}bp.MAX_CACHE_SIZE=20,bp.MAX_CACHE_OFFSET=5;let J$={};function Sf(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function o2e(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn(`Note: ${e}`)}function a2e(){J$={}}function jF(t,e,n){!e&&!J$[n]&&(t(!1,n),J$[n]=!0)}function Uo(t,e){jF(Sf,t,e)}function UF(t,e){jF(o2e,t,e)}function s2e(){}let yi=s2e;process.env.NODE_ENV!=="production"&&(yi=(t,e,n)=>{Uo(t,`[ant-design-vue: ${e}] ${n}`),process.env.NODE_ENV==="test"&&a2e()});let ZF=0;class XF{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=ZF,e.length===0&&yi(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),ZF+=1}getDerivativeToken(e){return this.derivatives.reduce((n,r)=>r(e,n),void 0)}}const eA=new bp;function YF(t){const e=Array.isArray(t)?t:[t];return eA.has(e)||eA.set(e,new XF(e)),eA.get(e)}const qF=new WeakMap;function H1(t){let e=qF.get(t)||"";return e||(Object.keys(t).forEach(n=>{const r=t[n];e+=n,r instanceof XF?e+=r.id:r&&typeof r=="object"?e+=H1(r):e+=r}),qF.set(t,e)),e}function l2e(t,e){return Y$(`${e}_${H1(t)}`)}const Lm=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),KF="_bAmBoO_";function u2e(t,e,n){var r,i;if(jo()){Nm(t,Lm);const o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",e==null||e(o),document.body.appendChild(o),process.env.NODE_ENV!=="production"&&(o.innerHTML="Test",o.style.zIndex="9999999");const a=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(KF);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),Q1(Lm),a}return!1}let tA;function c2e(){return tA===void 0&&(tA=u2e(`@layer ${Lm} { .${Lm} { content: "${KF}"!important; } }`,t=>{t.className=Lm})),tA}const JF={},f2e=process.env.NODE_ENV==="production",d2e=process.env.NODE_ENV==="prerender",h2e=!f2e&&!d2e?"css-dev-only-do-not-override":"css",xf=new Map;function p2e(t){xf.set(t,(xf.get(t)||0)+1)}function g2e(t,e){typeof document<"u"&&document.querySelectorAll(`style[${LF}="${t}"]`).forEach(r=>{var i;r[yp]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r))})}const v2e=0;function m2e(t,e){xf.set(t,(xf.get(t)||0)-1);const n=Array.from(xf.keys()),r=n.filter(i=>(xf.get(i)||0)<=0);n.length-r.length>v2e&&r.forEach(i=>{g2e(i,e),xf.delete(i)})}const y2e=(t,e,n,r)=>{const i=n.getDerivativeToken(t);let o=k(k({},i),e);return r&&(o=r(o)),o};function b2e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.ref({});const r=F1(),i=h.computed(()=>k({},...e.value)),o=h.computed(()=>H1(i.value)),a=h.computed(()=>H1(n.value.override||JF));return zF("token",h.computed(()=>[n.value.salt||"",t.value.id,o.value,a.value]),()=>{const{salt:l="",override:u=JF,formatToken:c,getComputedToken:f}=n.value,d=f?f(i.value,u,t.value):y2e(i.value,u,t.value,c),p=l2e(d,l);d._tokenKey=p,p2e(p);const g=`${h2e}-${Y$(p)}`;return d._hashId=g,[d,g]},l=>{var u;m2e(l[0]._tokenKey,(u=r.value)===null||u===void 0?void 0:u.cache.instanceId)})}var _2e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eW="comm",tW="rule",nW="decl",O2e="@import",w2e="@keyframes",S2e="@layer",rW=Math.abs,nA=String.fromCharCode;function iW(t){return t.trim()}function G1(t,e,n){return t.replace(e,n)}function x2e(t,e,n){return t.indexOf(e,n)}function Bm(t,e){return t.charCodeAt(e)|0}function Vm(t,e,n){return t.slice(e,n)}function Al(t){return t.length}function C2e(t){return t.length}function j1(t,e){return e.push(t),t}var U1=1,_p=1,oW=0,Zo=0,lr=0,Op="";function rA(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:U1,column:_p,length:a,return:"",siblings:s}}function T2e(){return lr}function P2e(){return lr=Zo>0?Bm(Op,--Zo):0,_p--,lr===10&&(_p=1,U1--),lr}function Ua(){return lr=Zo<oW?Bm(Op,Zo++):0,_p++,lr===10&&(_p=1,U1++),lr}function Cf(){return Bm(Op,Zo)}function Z1(){return Zo}function X1(t,e){return Vm(Op,t,e)}function iA(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $2e(t){return U1=_p=1,oW=Al(Op=t),Zo=0,[]}function A2e(t){return Op="",t}function oA(t){return iW(X1(Zo-1,aA(t===91?t+2:t===40?t+1:t)))}function E2e(t){for(;(lr=Cf())&&lr<33;)Ua();return iA(t)>2||iA(lr)>3?"":" "}function M2e(t,e){for(;--e&&Ua()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return X1(t,Z1()+(e<6&&Cf()==32&&Ua()==32))}function aA(t){for(;Ua();)switch(lr){case t:return Zo;case 34:case 39:t!==34&&t!==39&&aA(lr);break;case 40:t===41&&aA(t);break;case 92:Ua();break}return Zo}function I2e(t,e){for(;Ua()&&t+lr!==57;)if(t+lr===84&&Cf()===47)break;return"/*"+X1(e,Zo-1)+"*"+nA(t===47?t:Ua())}function D2e(t){for(;!iA(Cf());)Ua();return X1(t,Zo)}function R2e(t){return A2e(Y1("",null,null,null,[""],t=$2e(t),0,[0],t))}function Y1(t,e,n,r,i,o,a,s,l){for(var u=0,c=0,f=a,d=0,p=0,g=0,v=1,m=1,y=1,b=0,O="",w=i,S=o,x=r,T=O;m;)switch(g=b,b=Ua()){case 40:if(g!=108&&Bm(T,f-1)==58){x2e(T+=G1(oA(b),"&","&\f"),"&\f",rW(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:T+=oA(b);break;case 9:case 10:case 13:case 32:T+=E2e(g);break;case 92:T+=M2e(Z1()-1,7);continue;case 47:switch(Cf()){case 42:case 47:j1(k2e(I2e(Ua(),Z1()),e,n,l),l);break;default:T+="/"}break;case 123*v:s[u++]=Al(T)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:y==-1&&(T=G1(T,/\f/g,"")),p>0&&Al(T)-f&&j1(p>32?sW(T+";",r,n,f-1,l):sW(G1(T," ","")+";",r,n,f-2,l),l);break;case 59:T+=";";default:if(j1(x=aW(T,e,n,u,c,i,s,O,w=[],S=[],f,o),o),b===123)if(c===0)Y1(T,e,x,x,w,o,f,s,S);else switch(d===99&&Bm(T,3)===110?100:d){case 100:case 108:case 109:case 115:Y1(t,x,x,r&&j1(aW(t,x,x,0,0,i,s,O,i,w=[],f,S),S),i,S,f,s,r?w:S);break;default:Y1(T,x,x,x,[""],S,0,s,S)}}u=c=p=0,v=y=1,O=T="",f=a;break;case 58:f=1+Al(T),p=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&P2e()==125)continue}switch(T+=nA(b),b*v){case 38:y=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(Al(T)-1)*y,y=1;break;case 64:Cf()===45&&(T+=oA(Ua())),d=Cf(),c=f=Al(O=T+=D2e(Z1())),b++;break;case 45:g===45&&Al(T)==2&&(v=0)}}return o}function aW(t,e,n,r,i,o,a,s,l,u,c,f){for(var d=i-1,p=i===0?o:[""],g=C2e(p),v=0,m=0,y=0;v<r;++v)for(var b=0,O=Vm(t,d+1,d=rW(m=a[v])),w=t;b<g;++b)(w=iW(m>0?p[b]+" "+O:G1(O,/&\f/g,p[b])))&&(l[y++]=w);return rA(t,e,n,i===0?tW:s,l,u,c,f)}function k2e(t,e,n,r){return rA(t,e,n,eW,nA(T2e()),Vm(t,2,-2),0,r)}function sW(t,e,n,r,i){return rA(t,e,n,nW,Vm(t,0,r),Vm(t,r+1,-1),r,i)}function sA(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function N2e(t,e,n,r){switch(t.type){case S2e:if(t.children.length)break;case O2e:case nW:return t.return=t.return||t.value;case eW:return"";case w2e:return t.return=t.value+"{"+sA(t.children,r)+"}";case tW:if(!Al(t.value=t.props.join(",")))return""}return Al(n=sA(t.children,r))?t.return=t.value+"{"+n+"}":""}function lW(t,e){const{path:n,parentSelectors:r}=e;Uo(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${t}${r.length?` Selector info: ${r.join(" -> ")}`:""}`)}const L2e=(t,e,n)=>{if(t==="content"){const r=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!r.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&lW(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,n)}},B2e=(t,e,n)=>{t==="animation"&&n.hashId&&e!=="none"&&lW(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,n)},uW="data-ant-cssinjs-cache-path",V2e="_FILE_STYLE__";let Tf,cW=!0;function z2e(){var t;if(!Tf&&(Tf={},jo())){const e=document.createElement("div");e.className=uW,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(i=>{const[o,a]=i.split(":");Tf[o]=a});const r=document.querySelector(`style[${uW}]`);r&&(cW=!1,(t=r.parentNode)===null||t===void 0||t.removeChild(r)),document.body.removeChild(e)}}function F2e(t){return z2e(),!!Tf[t]}function W2e(t){const e=Tf[t];let n=null;if(e&&jo())if(cW)n=V2e;else{const r=document.querySelector(`style[${wf}="${Tf[t]}"]`);r?n=r.innerHTML:delete Tf[t]}return[n,e]}const fW=jo(),dW="_skip_check_",hW="_multi_value_";function pW(t){return sA(R2e(t),N2e).replace(/\{%%%\:[^;];}/g,";")}function Q2e(t){return typeof t=="object"&&t&&(dW in t||hW in t)}function H2e(t,e,n){if(!e)return t;const r=`.${e}`,i=n==="low"?`:where(${r})`:r;return t.split(",").map(a=>{var s;const l=a.trim().split(/\s+/);let u=l[0]||"";const c=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u=`${c}${i}${u.slice(c.length)}`,[u,...l.slice(1)].join(" ")}).join(",")}const lA=new Set;process.env.NODE_ENV;const uA=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:o,layer:a,path:s,hashPriority:l,transformers:u=[],linters:c=[]}=e;let f="",d={};function p(m){const y=m.getName(o);if(!d[y]){const[b]=uA(m.style,e,{root:!1,parentSelectors:i});d[y]=`@keyframes ${m.getName(o)}${b}`}}function g(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(b=>{Array.isArray(b)?g(b,y):b&&y.push(b)}),y}if(g(Array.isArray(t)?t:[t]).forEach(m=>{const y=typeof m=="string"&&!n?{}:m;if(typeof y=="string")f+=`${y}
  32. `;else if(y._keyframe)p(y);else{const b=u.reduce((O,w)=>{var S;return((S=w==null?void 0:w.visit)===null||S===void 0?void 0:S.call(w,O))||O},y);Object.keys(b).forEach(O=>{var w;const S=b[O];if(typeof S=="object"&&S&&(O!=="animationName"||!S._keyframe)&&!Q2e(S)){let x=!1,T=O.trim(),$=!1;(n||r)&&o?T.startsWith("@")?x=!0:T=H2e(O,o,l):n&&!o&&(T==="&"||T==="")&&(T="",$=!0);const[A,P]=uA(S,e,{root:$,injectHash:x,parentSelectors:[...i,T]});d=k(k({},d),P),f+=`${T}${A}`}else{let x=function($,A){process.env.NODE_ENV!=="production"&&(typeof S!="object"||!(S!=null&&S[dW]))&&[L2e,B2e,...c].forEach(I=>I($,A,{path:s,hashId:o,parentSelectors:i}));const P=$.replace(/[A-Z]/g,I=>`-${I.toLowerCase()}`);let M=A;!_2e[$]&&typeof M=="number"&&M!==0&&(M=`${M}px`),$==="animationName"&&(A!=null&&A._keyframe)&&(p(A),M=A.getName(o)),f+=`${P}:${M};`};const T=(w=S==null?void 0:S.value)!==null&&w!==void 0?w:S;typeof S=="object"&&(S!=null&&S[hW])&&Array.isArray(T)?T.forEach($=>{x(O,$)}):x(O,T)}})}}),!n)f=`{${f}}`;else if(a&&c2e()){const m=a.split(",");f=`@layer ${m[m.length-1].trim()} {${f}}`,m.length>1&&(f=`@layer ${a}{%%%:%}${f}`)}return[f,d]};function G2e(t,e){return Y$(`${t.join("%")}${e}`)}function cA(t,e){const n=F1(),r=h.computed(()=>t.value.token._tokenKey),i=h.computed(()=>[r.value,...t.value.path]);let o=fW;return process.env.NODE_ENV!=="production"&&n.value.mock!==void 0&&(o=n.value.mock==="client"),zF("style",i,()=>{const{path:a,hashId:s,layer:l,nonce:u,clientOnly:c,order:f=0}=t.value,d=i.value.join("|");if(F2e(d)){const[T,$]=W2e(d);if(T)return[T,r.value,$,{},c,f]}const p=e(),{hashPriority:g,container:v,transformers:m,linters:y,cache:b}=n.value,[O,w]=uA(p,{hashId:s,hashPriority:g,layer:l,path:a.join("-"),transformers:m,linters:y}),S=pW(O),x=G2e(i.value,S);if(o){const T={mark:wf,prepend:"queue",attachTo:v,priority:f},$=typeof u=="function"?u():u;$&&(T.csp={nonce:$});const A=Nm(S,x,T);A[yp]=b.instanceId,A.setAttribute(LF,r.value),process.env.NODE_ENV!=="production"&&A.setAttribute(ZPe,i.value.join("|")),Object.keys(w).forEach(P=>{lA.has(P)||(lA.add(P),Nm(pW(w[P]),`_effect-${P}`,{mark:wf,prepend:"queue",attachTo:v}))})}return[S,r.value,x,w,c,f]},(a,s)=>{let[,,l]=a;(s||n.value.autoClear)&&fW&&Q1(l,{mark:wf})}),a=>a}class At{constructor(e,n){this._keyframe=!0,this.name=e,this.style=n}getName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}const j2e="4.2.3",q1=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var K1=2,gW=.16,U2e=.05,Z2e=.05,X2e=.15,vW=5,mW=4,Y2e=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function yW(t){var e=t.r,n=t.g,r=t.b,i=I$(e,n,r);return{h:i.h*360,s:i.s,v:i.v}}function J1(t){var e=t.r,n=t.g,r=t.b;return"#".concat(D$(e,n,r,!1))}function q2e(t,e,n){var r=n/100,i={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return i}function bW(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-K1*e:Math.round(t.h)+K1*e:r=n?Math.round(t.h)+K1*e:Math.round(t.h)-K1*e,r<0?r+=360:r>=360&&(r-=360),r}function _W(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-gW*e:e===mW?r=t.s+gW:r=t.s+U2e*e,r>1&&(r=1),n&&e===vW&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function OW(t,e,n){var r;return n?r=t.v+Z2e*e:r=t.v-X2e*e,r>1&&(r=1),Number(r.toFixed(2))}function Pf(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=up(t),i=vW;i>0;i-=1){var o=yW(r),a=J1(up({h:bW(o,i,!0),s:_W(o,i,!0),v:OW(o,i,!0)}));n.push(a)}n.push(J1(r));for(var s=1;s<=mW;s+=1){var l=yW(r),u=J1(up({h:bW(l,s),s:_W(l,s),v:OW(l,s)}));n.push(u)}return e.theme==="dark"?Y2e.map(function(c){var f=c.index,d=c.opacity,p=J1(q2e(up(e.backgroundColor||"#141414"),up(n[f]),d*100));return p}):n}var fA={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},eO={},dA={};Object.keys(fA).forEach(function(t){eO[t]=Pf(fA[t]),eO[t].primary=eO[t][5],dA[t]=Pf(fA[t],{theme:"dark",backgroundColor:"#141414"}),dA[t].primary=dA[t][5]});var K2e=eO.blue;const J2e=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function e$e(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const wW={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},tO=k(k({},wW),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  33. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  34. 'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function t$e(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=t,f=n(l),d=n(i),p=n(o),g=n(a),v=n(s),m=r(u,c);return k(k({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new yn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const n$e=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t>16?16:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function r$e(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return k({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},n$e(r))}const El=(t,e)=>new yn(t).setAlpha(e).toRgbString(),zm=(t,e)=>new yn(t).darken(e).toHexString(),i$e=t=>{const e=Pf(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},o$e=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:El(r,.88),colorTextSecondary:El(r,.65),colorTextTertiary:El(r,.45),colorTextQuaternary:El(r,.25),colorFill:El(r,.15),colorFillSecondary:El(r,.06),colorFillTertiary:El(r,.04),colorFillQuaternary:El(r,.02),colorBgLayout:zm(n,4),colorBgContainer:zm(n,0),colorBgElevated:zm(n,0),colorBgSpotlight:El(r,.85),colorBorder:zm(n,15),colorBorderSecondary:zm(n,6)}};function a$e(t){const e=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=t*Math.pow(2.71828,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return e[1]=t,e.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const s$e=t=>{const e=a$e(t),n=e.map(i=>i.size),r=e.map(i=>i.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function l$e(t){const e=Object.keys(wW).map(n=>{const r=Pf(t[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=k(k({},n),r),n),{});return k(k(k(k(k(k(k({},t),e),t$e(t,{generateColorPalettes:i$e,generateNeutralColorPalettes:o$e})),s$e(t.fontSize)),e$e(t)),J2e(t)),r$e(t))}function hA(t){return t>=0&&t<=255}function nO(t,e){const{r:n,g:r,b:i,a:o}=new yn(t).toRgb();if(o<1)return t;const{r:a,g:s,b:l}=new yn(e).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-a*(1-u))/u),f=Math.round((r-s*(1-u))/u),d=Math.round((i-l*(1-u))/u);if(hA(c)&&hA(f)&&hA(d))return new yn({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new yn({r:n,g:r,b:i,a:1}).toRgbString()}var u$e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function c$e(t){const{override:e}=t,n=u$e(t,["override"]),r=k({},e);Object.keys(tO).forEach(p=>{delete r[p]});const i=k(k({},n),r),o=480,a=576,s=768,l=992,u=1200,c=1600,f=2e3;return k(k(k({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:nO(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:nO(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:nO(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:nO(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
  35. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  36. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  37. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  38. `,boxShadowSecondary:`
  39. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  40. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  41. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  42. `,boxShadowTertiary:`
  43. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  44. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  45. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  46. `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
  47. 0 1px 2px -2px ${new yn("rgba(0, 0, 0, 0.16)").toRgbString()},
  48. 0 3px 6px 0 ${new yn("rgba(0, 0, 0, 0.12)").toRgbString()},
  49. 0 5px 12px 4px ${new yn("rgba(0, 0, 0, 0.09)").toRgbString()}
  50. `,boxShadowDrawerRight:`
  51. -6px 0 16px 0 rgba(0, 0, 0, 0.08),
  52. -3px 0 6px -4px rgba(0, 0, 0, 0.12),
  53. -9px 0 28px 8px rgba(0, 0, 0, 0.05)
  54. `,boxShadowDrawerLeft:`
  55. 6px 0 16px 0 rgba(0, 0, 0, 0.08),
  56. 3px 0 6px -4px rgba(0, 0, 0, 0.12),
  57. 9px 0 28px 8px rgba(0, 0, 0, 0.05)
  58. `,boxShadowDrawerUp:`
  59. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  60. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  61. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  62. `,boxShadowDrawerDown:`
  63. 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
  64. 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
  65. 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
  66. `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const f$e=(t,e,n,r,i)=>{const o=t/2,a=0,s=o,l=n*1/Math.sqrt(2),u=o-n*(1-1/Math.sqrt(2)),c=o-e*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),d=2*o-c,p=f,g=2*o-l,v=u,m=2*o-a,y=s,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${O}px 100%, 50% ${O}px, ${2*o-O}px 100%, ${O}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${f} A ${e} ${e} 0 0 1 ${d} ${p} L ${g} ${v} A ${n} ${n} 0 0 0 ${m} ${y} Z')`]},content:'""'}}};function d$e(t,e){return q1.reduce((n,r)=>{const i=t[`${r}-1`],o=t[`${r}-3`],a=t[`${r}-6`],s=t[`${r}-7`];return k(k({},n),e(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const wp={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},bn=t=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:t.fontFamily}),Sp=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),rO=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),h$e=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active,\n &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),p$e=(t,e)=>{const{fontFamily:n,fontSize:r}=t,i=`[class^="${e}"], [class*=" ${e}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Fm=t=>({outline:`${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),iO=t=>({"&:focus-visible":k({},Fm(t))});function Fn(t,e,n){return r=>{const i=h.computed(()=>r==null?void 0:r.value),[o,a,s]=xp(),{getPrefixCls:l,iconPrefixCls:u}=V1(),c=h.computed(()=>l()),f=h.computed(()=>({theme:o.value,token:a.value,hashId:s.value,path:["Shared",c.value]}));cA(f,()=>[{"&":h$e(a.value)}]);const d=h.computed(()=>({theme:o.value,token:a.value,hashId:s.value,path:[t,i.value,u.value]}));return[cA(d,()=>{const{token:p,flush:g}=v$e(a.value),v=typeof n=="function"?n(p):n,m=k(k({},v),a.value[t]),y=`.${i.value}`,b=Xt(p,{componentCls:y,prefixCls:i.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},m),O=e(b,{hashId:s.value,prefixCls:i.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:a.value[t]});return g(t,m),[p$e(a.value,i.value),O]}),s]}}const SW=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let pA=!0;function Xt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!SW)return k({},...e);pA=!1;const r={};return e.forEach(i=>{Object.keys(i).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),pA=!0,r}function g$e(){}function v$e(t){let e,n=t,r=g$e;return SW&&(e=new Set,n=new Proxy(t,{get(i,o){return pA&&e.add(o),i[o]}}),r=(i,o)=>{Array.from(e)}),{token:n,keys:e,flush:r}}const m$e=YF(l$e),xW={token:tO,hashed:!0},CW=Symbol("DesignTokenContext"),gA=h.shallowRef(),y$e=t=>{h.provide(CW,t),h.watch(t,()=>{gA.value=h.unref(t),h.triggerRef(gA)},{immediate:!0,deep:!0})},b$e=h.defineComponent({props:{value:Vt()},setup(t,e){let{slots:n}=e;return y$e(h.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function xp(){const t=h.inject(CW,h.computed(()=>gA.value||xW)),e=h.computed(()=>`${j2e}-${t.value.hashed||""}`),n=h.computed(()=>t.value.theme||m$e),r=b2e(n,h.computed(()=>[tO,t.value.token]),h.computed(()=>({salt:e.value,override:k({override:t.value.token},t.value.components),formatToken:c$e})));return[n,h.computed(()=>r.value[0]),h.computed(()=>t.value.hashed?r.value[1]:"")]}const TW=h.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=xp(),e=h.computed(()=>new yn(t.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>h.createVNode("svg",{style:e.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[h.createVNode("g",{fill:"none","fill-rule":"evenodd"},[h.createVNode("g",{transform:"translate(24 31.67)"},[h.createVNode("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),h.createVNode("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),h.createVNode("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),h.createVNode("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),h.createVNode("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),h.createVNode("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),h.createVNode("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[h.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),h.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});TW.PRESENTED_IMAGE_DEFAULT=!0;const PW=h.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=xp(),e=h.computed(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=t.value;return{borderColor:new yn(n).onBackground(o).toHexString(),shadowColor:new yn(r).onBackground(o).toHexString(),contentColor:new yn(i).onBackground(o).toHexString()}});return()=>h.createVNode("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[h.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[h.createVNode("ellipse",{fill:e.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),h.createVNode("g",{"fill-rule":"nonzero",stroke:e.value.borderColor},[h.createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),h.createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:e.value.contentColor},null)])])])}});PW.PRESENTED_IMAGE_SIMPLE=!0;const _$e=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}},O$e=Fn("Empty",t=>{const{componentCls:e,controlHeightLG:n}=t,r=Xt(t,{emptyImgCls:`${e}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[_$e(r)]});var w$e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const $W=h.createVNode(TW,null,null),AW=h.createVNode(PW,null,null),S$e=()=>({prefixCls:String,imageStyle:Vt(),image:Go(),description:Go()}),vA=h.defineComponent({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:S$e(),setup(t,e){let{slots:n={},attrs:r}=e;const{direction:i,prefixCls:o}=Qt("empty",t),[a,s]=O$e(o);return()=>{var l,u;const c=o.value,f=k(k({},t),r),{image:d=((l=n.image)===null||l===void 0?void 0:l.call(n))||$W,description:p=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:g,class:v=""}=f,m=w$e(f,["image","description","imageStyle","class"]);return a(h.createVNode(kF,{componentName:"Empty",children:y=>{const b=typeof p<"u"?p:y.description,O=typeof b=="string"?b:"empty";let w=null;return typeof d=="string"?w=h.createVNode("img",{alt:O,src:d},null):w=d,h.createVNode("div",K({class:Pe(c,v,s.value,{[`${c}-normal`]:d===AW,[`${c}-rtl`]:i.value==="rtl"})},m),[h.createVNode("div",{class:`${c}-image`,style:g},[w]),b&&h.createVNode("p",{class:`${c}-description`},[b]),n.default&&h.createVNode("div",{class:`${c}-footer`},[xs(n.default())])])}},null))}}});vA.PRESENTED_IMAGE_DEFAULT=$W,vA.PRESENTED_IMAGE_SIMPLE=AW;const Wm=mp(vA),mA=t=>{const{prefixCls:e}=Qt("empty",t);return(r=>{switch(r){case"Table":case"List":return h.createVNode(Wm,{image:Wm.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return h.createVNode(Wm,{image:Wm.PRESENTED_IMAGE_SIMPLE,class:`${e.value}-small`},null);default:return h.createVNode(Wm,null,null)}})(t.componentName)};function x$e(t){return h.createVNode(mA,{componentName:t},null)}const EW=Symbol("SizeContextKey"),MW=()=>h.inject(EW,h.ref(void 0)),IW=t=>{const e=MW();return h.provide(EW,h.computed(()=>t.value||e.value)),t},Qt=(t,e)=>{const n=MW(),r=Cs(),i=h.inject(X$,k(k({},EF),{renderEmpty:T=>h.h(mA,{componentName:T})})),o=h.computed(()=>i.getPrefixCls(t,e.prefixCls)),a=h.computed(()=>{var T,$;return(T=e.direction)!==null&&T!==void 0?T:($=i.direction)===null||$===void 0?void 0:$.value}),s=h.computed(()=>{var T;return(T=e.iconPrefixCls)!==null&&T!==void 0?T:i.iconPrefixCls.value}),l=h.computed(()=>i.getPrefixCls()),u=h.computed(()=>{var T;return(T=i.autoInsertSpaceInButton)===null||T===void 0?void 0:T.value}),c=i.renderEmpty,f=i.space,d=i.pageHeader,p=i.form,g=h.computed(()=>{var T,$;return(T=e.getTargetContainer)!==null&&T!==void 0?T:($=i.getTargetContainer)===null||$===void 0?void 0:$.value}),v=h.computed(()=>{var T,$,A;return($=(T=e.getContainer)!==null&&T!==void 0?T:e.getPopupContainer)!==null&&$!==void 0?$:(A=i.getPopupContainer)===null||A===void 0?void 0:A.value}),m=h.computed(()=>{var T,$;return(T=e.dropdownMatchSelectWidth)!==null&&T!==void 0?T:($=i.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),y=h.computed(()=>{var T;return(e.virtual===void 0?((T=i.virtual)===null||T===void 0?void 0:T.value)!==!1:e.virtual!==!1)&&m.value!==!1}),b=h.computed(()=>e.size||n.value),O=h.computed(()=>{var T,$,A;return(T=e.autocomplete)!==null&&T!==void 0?T:(A=($=i.input)===null||$===void 0?void 0:$.value)===null||A===void 0?void 0:A.autocomplete}),w=h.computed(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:r.value}),S=h.computed(()=>{var T;return(T=e.csp)!==null&&T!==void 0?T:i.csp}),x=h.computed(()=>{var T,$;return(T=e.wave)!==null&&T!==void 0?T:($=i.wave)===null||$===void 0?void 0:$.value});return{configProvider:i,prefixCls:o,direction:a,size:b,getTargetContainer:g,getPopupContainer:v,space:f,pageHeader:d,form:p,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:m,rootPrefixCls:l,getPrefixCls:i.getPrefixCls,autocomplete:O,csp:S,iconPrefixCls:s,disabled:w,select:i.select,wave:x}};function Er(t,e){const n=k({},t);for(let r=0;r<e.length;r+=1){const i=e[r];delete n[i]}return n}function DW(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function RW(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function yA(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return RW(n.overflowY,e)||RW(n.overflowX,e)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(t)}return!1}function oO(t,e,n,r,i,o,a,s){return o<t&&a>e||o>t&&a<e?0:o<=t&&s<=n||a>=e&&s>=n?o-t-r:a>e&&s<n||o<t&&s>n?a-e+i:0}var kW=function(t,e){var n=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l=typeof a=="function"?a:function(ye){return ye!==a};if(!DW(t))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],p=t;DW(p)&&l(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===f){d.push(p);break}p!=null&&p===document.body&&yA(p)&&!yA(document.documentElement)||p!=null&&yA(p,s)&&d.push(p)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=t.getBoundingClientRect(),O=b.height,w=b.width,S=b.top,x=b.right,T=b.bottom,$=b.left,A=i==="start"||i==="nearest"?S:i==="end"?T:S+O/2,P=o==="center"?$+w/2:o==="end"?x:$,M=[],I=0;I<d.length;I++){var R=d[I],L=R.getBoundingClientRect(),D=L.height,B=L.width,F=L.top,z=L.right,W=L.bottom,j=L.left;if(r==="if-needed"&&S>=0&&$>=0&&T<=v&&x<=g&&S>=F&&T<=W&&$>=j&&x<=z)return M;var H=getComputedStyle(R),Z=parseInt(H.borderLeftWidth,10),J=parseInt(H.borderTopWidth,10),se=parseInt(H.borderRightWidth,10),oe=parseInt(H.borderBottomWidth,10),de=0,ie=0,ue="offsetWidth"in R?R.offsetWidth-R.clientWidth-Z-se:0,ee="offsetHeight"in R?R.offsetHeight-R.clientHeight-J-oe:0,X="offsetWidth"in R?R.offsetWidth===0?0:B/R.offsetWidth:0,Y="offsetHeight"in R?R.offsetHeight===0?0:D/R.offsetHeight:0;if(f===R)de=i==="start"?A:i==="end"?A-v:i==="nearest"?oO(y,y+v,v,J,oe,y+A,y+A+O,O):A-v/2,ie=o==="start"?P:o==="center"?P-g/2:o==="end"?P-g:oO(m,m+g,g,Z,se,m+P,m+P+w,w),de=Math.max(0,de+y),ie=Math.max(0,ie+m);else{de=i==="start"?A-F-J:i==="end"?A-W+oe+ee:i==="nearest"?oO(F,W,D,J,oe+ee,A,A+O,O):A-(F+D/2)+ee/2,ie=o==="start"?P-j-Z:o==="center"?P-(j+B/2)+ue/2:o==="end"?P-z+se+ue:oO(j,z,B,Z,se+ue,P,P+w,w);var le=R.scrollLeft,ve=R.scrollTop;A+=ve-(de=Math.max(0,Math.min(ve+de/Y,R.scrollHeight-D/Y+ee))),P+=le-(ie=Math.max(0,Math.min(le+ie/X,R.scrollWidth-B/X+ue)))}M.push({el:R,top:de,left:ie})}return M};function NW(t){return t===Object(t)&&Object.keys(t).length!==0}function C$e(t,e){e===void 0&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach(function(r){var i=r.el,o=r.top,a=r.left;i.scroll&&n?i.scroll({top:o,left:a,behavior:e}):(i.scrollTop=o,i.scrollLeft=a)})}function T$e(t){return t===!1?{block:"end",inline:"nearest"}:NW(t)?t:{block:"start",inline:"nearest"}}function P$e(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(NW(e)&&typeof e.behavior=="function")return e.behavior(n?kW(t,e):[]);if(n){var r=T$e(e);return C$e(kW(t,r),r.behavior)}}function $$e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function LW(t,e,n){return n&&$$e(t,n),t}function aO(){return(aO=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function BW(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function VW(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}function zW(t){return((e=t)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(t)==="[object Object]";var e}var FW=Object.prototype,WW=FW.toString,A$e=FW.hasOwnProperty,QW=/^\s*function (\w+)/;function HW(t){var e,n=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(n){var r=n.toString().match(QW);return r?r[1]:""}return""}var $f=function(t){var e,n;return zW(t)!==!1&&typeof(e=t.constructor)=="function"&&zW(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},GW=function(t){return t},ni=GW;if(process.env.NODE_ENV!=="production"){var E$e=typeof console<"u";ni=E$e?function(t){console.warn("[VueTypes warn]: "+t)}:GW}var Qm=function(t,e){return A$e.call(t,e)},M$e=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},Cp=Array.isArray||function(t){return WW.call(t)==="[object Array]"},Tp=function(t){return WW.call(t)==="[object Function]"},sO=function(t){return $f(t)&&Qm(t,"_vueTypes_name")},jW=function(t){return $f(t)&&(Qm(t,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return Qm(t,e)}))};function bA(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function Af(t,e,n){var r;n===void 0&&(n=!1);var i=!0,o="";r=$f(t)?t:{type:t};var a=sO(r)?r._vueTypes_name+" - ":"";if(jW(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return i;Cp(r.type)?(i=r.type.some(function(f){return Af(f,e,!0)===!0}),o=r.type.map(function(f){return HW(f)}).join(" or ")):i=(o=HW(r))==="Array"?Cp(e):o==="Object"?$f(e):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(QW);return d?d[1]:""}(e)===o:e instanceof r.type}if(!i){var s=a+'value "'+e+'" should be of type "'+o+'"';return n===!1?(ni(s),!1):s}if(Qm(r,"validator")&&Tp(r.validator)){var l=ni,u=[];if(ni=function(f){u.push(f)},i=r.validator(e),ni=l,!i){var c=(u.length>1?"* ":"")+u.join(`
  67. * `);return u.length=0,n===!1?(ni(c),i):c}}return i}function vo(t,e){var n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?Tp(i)||Af(this,i,!0)===!0?(this.default=Cp(i)?function(){return[].concat(i)}:$f(i)?function(){return Object.assign({},i)}:i,this):(ni(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=n.validator;return Tp(r)&&(n.validator=bA(r,n)),n}function Ts(t,e){var n=vo(t,e);return Object.defineProperty(n,"validate",{value:function(r){return Tp(this.validator)&&ni(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
  68. `+JSON.stringify(this)),this.validator=bA(r,this),this}})}function UW(t,e,n){var r,i,o=(r=e,i={},Object.getOwnPropertyNames(r).forEach(function(f){i[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},i));if(o._vueTypes_name=t,!$f(n))return o;var a,s,l=n.validator,u=VW(n,["validator"]);if(Tp(l)){var c=o.validator;c&&(c=(s=(a=c).__original)!==null&&s!==void 0?s:a),o.validator=bA(c?function(f){return c.call(this,f)&&l.call(this,f)}:l,o)}return Object.assign(o,u)}function lO(t){return t.replace(/^(?!\s*$)/gm," ")}var I$e=function(){return Ts("any",{})},D$e=function(){return Ts("function",{type:Function})},R$e=function(){return Ts("boolean",{type:Boolean})},k$e=function(){return Ts("string",{type:String})},N$e=function(){return Ts("number",{type:Number})},L$e=function(){return Ts("array",{type:Array})},B$e=function(){return Ts("object",{type:Object})},V$e=function(){return vo("integer",{type:Number,validator:function(t){return M$e(t)}})},z$e=function(){return vo("symbol",{validator:function(t){return typeof t=="symbol"}})};function F$e(t,e){if(e===void 0&&(e="custom validation failed"),typeof t!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return vo(t.name||"<<anonymous function>>",{validator:function(n){var r=t(n);return r||ni(this._vueTypes_name+" - "+e),r}})}function W$e(t){if(!Cp(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+t.join('", "')+'".',n=t.reduce(function(r,i){if(i!=null){var o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return vo("oneOf",{type:n.length>0?n:void 0,validator:function(r){var i=t.indexOf(r)!==-1;return i||ni(e),i}})}function Q$e(t){if(!Cp(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,n=[],r=0;r<t.length;r+=1){var i=t[r];if(jW(i)){if(sO(i)&&i._vueTypes_name==="oneOf"){n=n.concat(i.type);continue}if(Tp(i.validator)&&(e=!0),i.type!==!0&&i.type){n=n.concat(i.type);continue}}n.push(i)}return n=n.filter(function(o,a){return n.indexOf(o)===a}),vo("oneOfType",e?{type:n,validator:function(o){var a=[],s=t.some(function(l){var u=Af(sO(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,o,!0);return typeof u=="string"&&a.push(u),u===!0});return s||ni("oneOfType - provided value does not match any of the "+a.length+` passed-in validators:
  69. `+lO(a.join(`
  70. `))),s}}:{type:n})}function H$e(t){return vo("arrayOf",{type:Array,validator:function(e){var n,r=e.every(function(i){return(n=Af(t,i,!0))===!0});return r||ni(`arrayOf - value validation error:
  71. `+lO(n)),r}})}function G$e(t){return vo("instanceOf",{type:t})}function j$e(t){return vo("objectOf",{type:Object,validator:function(e){var n,r=Object.keys(e).every(function(i){return(n=Af(t,e[i],!0))===!0});return r||ni(`objectOf - value validation error:
  72. `+lO(n)),r}})}function U$e(t){var e=Object.keys(t),n=e.filter(function(i){var o;return!!(!((o=t[i])===null||o===void 0)&&o.required)}),r=vo("shape",{type:Object,validator:function(i){var o=this;if(!$f(i))return!1;var a=Object.keys(i);if(n.length>0&&n.some(function(l){return a.indexOf(l)===-1})){var s=n.filter(function(l){return a.indexOf(l)===-1});return ni(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return a.every(function(l){if(e.indexOf(l)===-1)return o._vueTypes_isLoose===!0||(ni('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=Af(t[l],i[l],!0);return typeof u=="string"&&ni('shape - "'+l+`" property validation error:
  73. `+lO(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Ps=function(){function t(){}return t.extend=function(e){var n=this;if(Cp(e))return e.forEach(function(f){return n.extend(f)}),this;var r=e.name,i=e.validate,o=i!==void 0&&i,a=e.getter,s=a!==void 0&&a,l=VW(e,["name","validate","getter"]);if(Qm(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return sO(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return UW(r,c,l)}}:{value:function(){var f,d=UW(r,c,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(u=s?{get:function(){var f=Object.assign({},l);return o?Ts(r,f):vo(r,f)},enumerable:!0}:{value:function(){var f,d,p=Object.assign({},l);return f=o?Ts(r,p):vo(r,p),p.validator&&(f.validator=(d=p.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,u))},LW(t,null,[{key:"any",get:function(){return I$e()}},{key:"func",get:function(){return D$e().def(this.defaults.func)}},{key:"bool",get:function(){return R$e().def(this.defaults.bool)}},{key:"string",get:function(){return k$e().def(this.defaults.string)}},{key:"number",get:function(){return N$e().def(this.defaults.number)}},{key:"array",get:function(){return L$e().def(this.defaults.array)}},{key:"object",get:function(){return B$e().def(this.defaults.object)}},{key:"integer",get:function(){return V$e().def(this.defaults.integer)}},{key:"symbol",get:function(){return z$e()}}]),t}();function ZW(t){var e;return t===void 0&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(n){function r(){return n.apply(this,arguments)||this}return BW(r,n),LW(r,null,[{key:"sensibleDefaults",get:function(){return aO({},this.defaults)},set:function(i){this.defaults=i!==!1?aO({},i!==!0?i:t):{}}}]),r}(Ps)).defaults=aO({},t),e}Ps.defaults={},Ps.custom=F$e,Ps.oneOf=W$e,Ps.instanceOf=G$e,Ps.oneOfType=Q$e,Ps.arrayOf=H$e,Ps.objectOf=j$e,Ps.shape=U$e,Ps.utils={validate:function(t,e){return Af(e,t,!0)===!0},toType:function(t,e,n){return n===void 0&&(n=!1),n?Ts(t,e):vo(t,e)}},function(t){function e(){return t.apply(this,arguments)||this}return BW(e,t),e}(ZW());const ne=ZW({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});ne.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function Z$e(t){return t.default=void 0,t}const mo=(t,e,n)=>{Uo(t,`[ant-design-vue: ${e}] ${n}`)};function XW(t,e){const{key:n}=t;let r;return"value"in t&&({value:r}=t),n??(r!==void 0?r:`rc-index-key-${e}`)}function YW(t,e){const{label:n,value:r,options:i}=t||{};return{label:n||(e?"children":"label"),value:r||"value",options:i||"options"}}function X$e(t){let{fieldNames:e,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:i,value:o,options:a}=YW(e,!1);function s(l,u){l.forEach(c=>{const f=c[i];if(u||!(a in c)){const d=c[o];r.push({key:XW(c,r.length),groupOption:u,data:c,label:f,value:d})}else{let d=f;d===void 0&&n&&(d=c.label),r.push({key:XW(c,r.length),group:!0,data:c,label:d}),s(c[a],!0)}})}return s(t,!1),r}function _A(t){const e=k({},t);return"props"in e||Object.defineProperty(e,"props",{get(){return Sf(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function Y$e(t,e){if(!e||!e.length)return null;let n=!1;function r(o,a){let[s,...l]=a;if(!s)return[o];const u=o.split(s);return n=n||u.length>1,u.reduce((c,f)=>[...c,...r(f,l)],[]).filter(c=>c)}const i=r(t,e);return n?i:null}function q$e(){return""}function K$e(t){return t?t.ownerDocument:window.document}function qW(){}const J$e=()=>({action:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def([]),showAction:ne.any.def([]),hideAction:ne.any.def([]),getPopupClassNameFromAlign:ne.any.def(q$e),onPopupVisibleChange:Function,afterPopupVisibleChange:ne.func.def(qW),popup:ne.any,arrow:ne.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:ne.string.def("rc-trigger-popup"),popupClassName:ne.string.def(""),popupPlacement:String,builtinPlacements:ne.object,popupTransitionName:String,popupAnimation:ne.any,mouseEnterDelay:ne.number.def(0),mouseLeaveDelay:ne.number.def(.1),zIndex:Number,focusDelay:ne.number.def(0),blurDelay:ne.number.def(.15),getPopupContainer:Function,getDocument:ne.func.def(K$e),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ne.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),OA={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},eAe=k(k({},OA),{mobile:{type:Object}}),tAe=k(k({},OA),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function wA(t){let{prefixCls:e,animation:n,transitionName:r}=t;return n?{name:`${e}-${n}`}:r?{name:r}:{}}function KW(t){const{prefixCls:e,visible:n,zIndex:r,mask:i,maskAnimation:o,maskTransitionName:a}=t;if(!i)return null;let s={};return(a||o)&&(s=wA({prefixCls:e,transitionName:a,animation:o})),h.createVNode(h.Transition,K({appear:!0},s),{default:()=>[h.withDirectives(h.createVNode("div",{style:{zIndex:r},class:`${e}-mask`},null),[[h.resolveDirective("if"),n]])]})}KW.displayName="Mask";const nAe=h.defineComponent({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:eAe,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:r}=e;const i=h.ref();return n({forceAlign:()=>{},getElement:()=>i.value}),()=>{var o;const{zIndex:a,visible:s,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:f={},popupRender:d}={}}=t,p=k({zIndex:a},c);let g=vr((o=r.default)===null||o===void 0?void 0:o.call(r));g.length>1&&(g=h.createVNode("div",{class:`${l}-content`},[g])),d&&(g=d(g));const v=Pe(l,u);return h.createVNode(h.Transition,K({ref:i},f),{default:()=>[s?h.createVNode("div",{class:v,style:p},[g]):null]})}}});var rAe=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const JW=["measure","align",null,"motion"],iAe=(t,e)=>{const n=h.shallowRef(null),r=h.shallowRef(),i=h.shallowRef(!1);function o(l){i.value||(n.value=l)}function a(){Dt.cancel(r.value)}function s(l){a(),r.value=Dt(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}o(u),l==null||l()})}return h.watch(t,()=>{o("measure")},{immediate:!0,flush:"post"}),h.onMounted(()=>{h.watch(n,()=>{switch(n.value){case"measure":e();break}n.value&&(r.value=Dt(()=>rAe(void 0,void 0,void 0,function*(){const l=JW.indexOf(n.value),u=JW[l+1];u&&l!==-1&&o(u)})))},{immediate:!0,flush:"post"})}),h.onBeforeUnmount(()=>{i.value=!0,a()}),[n,s]},oAe=t=>{const e=h.shallowRef({width:0,height:0});function n(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}return[h.computed(()=>{const i={};if(t.value){const{width:o,height:a}=e.value;t.value.indexOf("height")!==-1&&a?i.height=`${a}px`:t.value.indexOf("minHeight")!==-1&&a&&(i.minHeight=`${a}px`),t.value.indexOf("width")!==-1&&o?i.width=`${o}px`:t.value.indexOf("minWidth")!==-1&&o&&(i.minWidth=`${o}px`)}return i}),n]};function e7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function t7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?e7(Object(n),!0).forEach(function(r){aAe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function SA(t){"@babel/helpers - typeof";return SA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SA(t)}function aAe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hm,sAe={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function uO(){if(Hm!==void 0)return Hm;Hm="";var t=document.createElement("p").style,e="Transform";for(var n in sAe)n+e in t&&(Hm=n);return Hm}function n7(){return uO()?"".concat(uO(),"TransitionProperty"):"transitionProperty"}function cO(){return uO()?"".concat(uO(),"Transform"):"transform"}function r7(t,e){var n=n7();n&&(t.style[n]=e,n!=="transitionProperty"&&(t.style.transitionProperty=e))}function xA(t,e){var n=cO();n&&(t.style[n]=e,n!=="transform"&&(t.style.transform=e))}function lAe(t){return t.style.transitionProperty||t.style[n7()]}function uAe(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(cO());if(n&&n!=="none"){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var cAe=/matrix\((.*)\)/,fAe=/matrix3d\((.*)\)/;function dAe(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(cO());if(r&&r!=="none"){var i,o=r.match(cAe);if(o)o=o[1],i=o.split(",").map(function(s){return parseFloat(s,10)}),i[4]=e.x,i[5]=e.y,xA(t,"matrix(".concat(i.join(","),")"));else{var a=r.match(fAe)[1];i=a.split(",").map(function(s){return parseFloat(s,10)}),i[12]=e.x,i[13]=e.y,xA(t,"matrix3d(".concat(i.join(","),")"))}}else xA(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var hAe=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,Gm;function i7(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function Pp(t,e,n){var r=n;if(SA(e)==="object"){for(var i in e)e.hasOwnProperty(i)&&Pp(t,i,e[i]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),t.style[e]=r;return}return Gm(t,e)}function pAe(t){var e,n,r,i=t.ownerDocument,o=i.body,a=i&&i.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),n-=a.clientLeft||o.clientLeft||0,r-=a.clientTop||o.clientTop||0,{left:n,top:r}}function o7(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function a7(t){return o7(t)}function s7(t){return o7(t,!0)}function jm(t){var e=pAe(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=a7(r),e.top+=s7(r),e}function CA(t){return t!=null&&t==t.window}function l7(t){return CA(t)?t.document:t.nodeType===9?t:t.ownerDocument}function gAe(t,e,n){var r=n,i="",o=l7(t);return r=r||o.defaultView.getComputedStyle(t,null),r&&(i=r.getPropertyValue(e)||r[e]),i}var vAe=new RegExp("^(".concat(hAe,")(?!px)[a-z%]+$"),"i"),mAe=/^(top|right|bottom|left)$/,TA="currentStyle",PA="runtimeStyle",Ef="left",yAe="px";function bAe(t,e){var n=t[TA]&&t[TA][e];if(vAe.test(n)&&!mAe.test(e)){var r=t.style,i=r[Ef],o=t[PA][Ef];t[PA][Ef]=t[TA][Ef],r[Ef]=e==="fontSize"?"1em":n||0,n=r.pixelLeft+yAe,r[Ef]=i,t[PA][Ef]=o}return n===""?"auto":n}typeof window<"u"&&(Gm=window.getComputedStyle?gAe:bAe);function fO(t,e){return t==="left"?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function u7(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function c7(t,e,n){Pp(t,"position")==="static"&&(t.style.position="relative");var r=-999,i=-999,o=fO("left",n),a=fO("top",n),s=u7(o),l=u7(a);o!=="left"&&(r=999),a!=="top"&&(i=999);var u="",c=jm(t);("left"in e||"top"in e)&&(u=lAe(t)||"",r7(t,"none")),"left"in e&&(t.style[s]="",t.style[o]="".concat(r,"px")),"top"in e&&(t.style[l]="",t.style[a]="".concat(i,"px")),i7(t);var f=jm(t),d={};for(var p in e)if(e.hasOwnProperty(p)){var g=fO(p,n),v=p==="left"?r:i,m=c[p]-f[p];g===p?d[g]=v+m:d[g]=v-m}Pp(t,d),i7(t),("left"in e||"top"in e)&&r7(t,u);var y={};for(var b in e)if(e.hasOwnProperty(b)){var O=fO(b,n),w=e[b]-c[b];b===O?y[O]=d[O]+w:y[O]=d[O]-w}Pp(t,y)}function _Ae(t,e){var n=jm(t),r=uAe(t),i={x:r.x,y:r.y};"left"in e&&(i.x=r.x+e.left-n.left),"top"in e&&(i.y=r.y+e.top-n.top),dAe(t,i)}function OAe(t,e,n){if(n.ignoreShake){var r=jm(t),i=r.left.toFixed(0),o=r.top.toFixed(0),a=e.left.toFixed(0),s=e.top.toFixed(0);if(i===a&&o===s)return}n.useCssRight||n.useCssBottom?c7(t,e,n):n.useCssTransform&&cO()in document.body.style?_Ae(t,e):c7(t,e,n)}function $A(t,e){for(var n=0;n<t.length;n++)e(t[n])}function f7(t){return Gm(t,"boxSizing")==="border-box"}var wAe=["margin","border","padding"],AA=-1,SAe=2,EA=1,xAe=0;function CAe(t,e,n){var r={},i=t.style,o;for(o in e)e.hasOwnProperty(o)&&(r[o]=i[o],i[o]=e[o]);n.call(t);for(o in e)e.hasOwnProperty(o)&&(i[o]=r[o])}function Um(t,e,n){var r=0,i,o,a;for(o=0;o<e.length;o++)if(i=e[o],i)for(a=0;a<n.length;a++){var s=void 0;i==="border"?s="".concat(i).concat(n[a],"Width"):s=i+n[a],r+=parseFloat(Gm(t,s))||0}return r}var $s={getParent:function(e){var n=e;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};$A(["Width","Height"],function(t){$s["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],$s["viewport".concat(t)](n))},$s["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,i=r.body,o=r.documentElement,a=o[n];return r.compatMode==="CSS1Compat"&&a||i&&i[n]||a}});function d7(t,e,n){var r=n;if(CA(t))return e==="width"?$s.viewportWidth(t):$s.viewportHeight(t);if(t.nodeType===9)return e==="width"?$s.docWidth(t):$s.docHeight(t);var i=e==="width"?["Left","Right"]:["Top","Bottom"],o=Math.floor(e==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),a=f7(t),s=0;(o==null||o<=0)&&(o=void 0,s=Gm(t,e),(s==null||Number(s)<0)&&(s=t.style[e]||0),s=Math.floor(parseFloat(s))||0),r===void 0&&(r=a?EA:AA);var l=o!==void 0||a,u=o||s;return r===AA?l?u-Um(t,["border","padding"],i):s:l?r===EA?u:u+(r===SAe?-Um(t,["border"],i):Um(t,["margin"],i)):s+Um(t,wAe.slice(r),i)}var TAe={position:"absolute",visibility:"hidden",display:"block"};function h7(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=e[0];return i.offsetWidth!==0?r=d7.apply(void 0,e):CAe(i,TAe,function(){r=d7.apply(void 0,e)}),r}$A(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);$s["outer".concat(e)]=function(r,i){return r&&h7(r,t,i?xAe:EA)};var n=t==="width"?["Left","Right"]:["Top","Bottom"];$s[t]=function(r,i){var o=i;if(o!==void 0){if(r){var a=f7(r);return a&&(o+=Um(r,["padding","border"],n)),Pp(r,t,o)}return}return r&&h7(r,t,AA)}});function p7(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var _t={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var n=e.ownerDocument||e;return n.defaultView||n.parentWindow},getDocument:l7,offset:function(e,n,r){if(typeof n<"u")OAe(e,n,r||{});else return jm(e)},isWindow:CA,each:$A,css:Pp,clone:function(e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);var i=e.overflow;if(i)for(n in e)e.hasOwnProperty(n)&&(r.overflow[n]=e.overflow[n]);return r},mix:p7,getWindowScrollLeft:function(e){return a7(e)},getWindowScrollTop:function(e){return s7(e)},merge:function(){for(var e={},n=0;n<arguments.length;n++)_t.mix(e,n<0||arguments.length<=n?void 0:arguments[n]);return e},viewportWidth:0,viewportHeight:0};p7(_t,$s);var MA=_t.getParent;function IA(t){if(_t.isWindow(t)||t.nodeType===9)return null;var e=_t.getDocument(t),n=e.body,r,i=_t.css(t,"position"),o=i==="fixed"||i==="absolute";if(!o)return t.nodeName.toLowerCase()==="html"?null:MA(t);for(r=MA(t);r&&r!==n&&r.nodeType!==9;r=MA(r))if(i=_t.css(r,"position"),i!=="static")return r;return null}var g7=_t.getParent;function PAe(t){if(_t.isWindow(t)||t.nodeType===9)return!1;var e=_t.getDocument(t),n=e.body,r=null;for(r=g7(t);r&&r!==n&&r!==e;r=g7(r)){var i=_t.css(r,"position");if(i==="fixed")return!0}return!1}function DA(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=IA(t),i=_t.getDocument(t),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==a&&r!==s&&_t.css(r,"overflow")!=="visible"){var l=_t.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}else if(r===a||r===s)break;r=IA(r)}var u=null;if(!_t.isWindow(t)&&t.nodeType!==9){u=t.style.position;var c=_t.css(t,"position");c==="absolute"&&(t.style.position="fixed")}var f=_t.getWindowScrollLeft(o),d=_t.getWindowScrollTop(o),p=_t.viewportWidth(o),g=_t.viewportHeight(o),v=s.scrollWidth,m=s.scrollHeight,y=window.getComputedStyle(a);if(y.overflowX==="hidden"&&(v=o.innerWidth),y.overflowY==="hidden"&&(m=o.innerHeight),t.style&&(t.style.position=u),e||PAe(t))n.left=Math.max(n.left,f),n.top=Math.max(n.top,d),n.right=Math.min(n.right,f+p),n.bottom=Math.min(n.bottom,d+g);else{var b=Math.max(v,f+p);n.right=Math.min(n.right,b);var O=Math.max(m,d+g);n.bottom=Math.min(n.bottom,O)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function $Ae(t,e,n,r){var i=_t.clone(t),o={width:e.width,height:e.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),_t.mix(i,o)}function RA(t){var e,n,r;if(!_t.isWindow(t)&&t.nodeType!==9)e=_t.offset(t),n=_t.outerWidth(t),r=_t.outerHeight(t);else{var i=_t.getWindow(t);e={left:_t.getWindowScrollLeft(i),top:_t.getWindowScrollTop(i)},n=_t.viewportWidth(i),r=_t.viewportHeight(i)}return e.width=n,e.height=r,e}function v7(t,e){var n=e.charAt(0),r=e.charAt(1),i=t.width,o=t.height,a=t.left,s=t.top;return n==="c"?s+=o/2:n==="b"&&(s+=o),r==="c"?a+=i/2:r==="r"&&(a+=i),{left:a,top:s}}function dO(t,e,n,r,i){var o=v7(e,n[1]),a=v7(t,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(t.left-s[0]+r[0]-i[0]),top:Math.round(t.top-s[1]+r[1]-i[1])}}function m7(t,e,n){return t.left<n.left||t.left+e.width>n.right}function y7(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function AAe(t,e,n){return t.left>n.right||t.left+e.width<n.left}function EAe(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function hO(t,e,n){var r=[];return _t.each(t,function(i){r.push(i.replace(e,function(o){return n[o]}))}),r}function pO(t,e){return t[e]=-t[e],t}function b7(t,e){var n;return/%$/.test(t)?n=parseInt(t.substring(0,t.length-1),10)/100*e:n=parseInt(t,10),n||0}function _7(t,e){t[0]=b7(t[0],e.width),t[1]=b7(t[1],e.height)}function O7(t,e,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||t;o=[].concat(o),a=[].concat(a),s=s||{};var u={},c=0,f=!!(s&&s.alwaysByViewport),d=DA(l,f),p=RA(l);_7(o,p),_7(a,e);var g=dO(p,e,i,o,a),v=_t.merge(p,g);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&m7(g,p,d)){var m=hO(i,/[lr]/gi,{l:"r",r:"l"}),y=pO(o,0),b=pO(a,0),O=dO(p,e,m,y,b);AAe(O,p,d)||(c=1,i=m,o=y,a=b)}if(s.adjustY&&y7(g,p,d)){var w=hO(i,/[tb]/gi,{t:"b",b:"t"}),S=pO(o,1),x=pO(a,1),T=dO(p,e,w,S,x);EAe(T,p,d)||(c=1,i=w,o=S,a=x)}c&&(g=dO(p,e,i,o,a),_t.mix(v,g));var $=m7(g,p,d),A=y7(g,p,d);if($||A){var P=i;$&&(P=hO(i,/[lr]/gi,{l:"r",r:"l"})),A&&(P=hO(i,/[tb]/gi,{t:"b",b:"t"})),i=P,o=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&$,u.adjustY=s.adjustY&&A,(u.adjustX||u.adjustY)&&(v=$Ae(g,p,d,u))}return v.width!==p.width&&_t.css(l,"width",_t.width(l)+v.width-p.width),v.height!==p.height&&_t.css(l,"height",_t.height(l)+v.height-p.height),_t.offset(l,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function MAe(t,e){var n=DA(t,e),r=RA(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function kA(t,e,n){var r=n.target||e,i=RA(r),o=!MAe(r,n.overflow&&n.overflow.alwaysByViewport);return O7(t,i,n,o)}kA.__getOffsetParent=IA,kA.__getVisibleRectForElement=DA;function IAe(t,e,n){var r,i,o=_t.getDocument(t),a=o.defaultView||o.parentWindow,s=_t.getWindowScrollLeft(a),l=_t.getWindowScrollTop(a),u=_t.viewportWidth(a),c=_t.viewportHeight(a);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?i=e.pageY:i=l+e.clientY;var f={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+u&&i>=0&&i<=l+c,p=[n.points[0],"cc"];return O7(t,f,t7(t7({},n),{},{points:p}),d)}function Gn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t;if(Array.isArray(t)&&(i=xs(t)[0]),!i)return null;const o=h.cloneVNode(i,e,r);return o.props=n?k(k({},o.props),e):o.props,yi(typeof o.props.class!="object","class must be string"),o}function DAe(t,e,n){h.render(h.cloneVNode(t,k({},e)),n)}const w7=t=>{if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){const e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){const e=t.getBoundingClientRect();if(e.width||e.height)return!0}return!1};function RAe(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function kAe(t,e){t!==document.activeElement&&Ru(e,t)&&typeof t.focus=="function"&&t.focus()}function S7(t,e){let n=null,r=null;function i(a){let[{target:s}]=a;if(!document.documentElement.contains(s))return;const{width:l,height:u}=s.getBoundingClientRect(),c=Math.floor(l),f=Math.floor(u);(n!==c||r!==f)&&Promise.resolve().then(()=>{e({width:c,height:f})}),n=c,r=f}const o=new OF(i);return t&&o.observe(t),()=>{o.disconnect()}}const NAe=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r)}function o(a){if(!n||a===!0){if(t()===!1)return;n=!0,i(),r=setTimeout(()=>{n=!1},e.value)}else i(),r=setTimeout(()=>{n=!1,o()},e.value)}return[o,()=>{n=!1,i()}]},LAe={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function x7(t){return typeof t!="function"?null:t()}function C7(t){return typeof t!="object"||!t?null:t}const BAe=h.defineComponent({compatConfig:{MODE:3},name:"Align",props:LAe,emits:["align"],setup(t,e){let{expose:n,slots:r}=e;const i=h.ref({}),o=h.ref(),[a,s]=NAe(()=>{const{disabled:d,target:p,align:g,onAlign:v}=t;if(!d&&p&&o.value){const m=o.value;let y;const b=x7(p),O=C7(p);i.value.element=b,i.value.point=O,i.value.align=g;const{activeElement:w}=document;return b&&w7(b)?y=kA(m,b,g):O&&(y=IAe(m,O,g)),kAe(w,m),v&&y&&v(m,y),!0}return!1},h.computed(()=>t.monitorBufferTime)),l=h.ref({cancel:()=>{}}),u=h.ref({cancel:()=>{}}),c=()=>{const d=t.target,p=x7(d),g=C7(d);o.value!==u.value.element&&(u.value.cancel(),u.value.element=o.value,u.value.cancel=S7(o.value,a)),(i.value.element!==p||!RAe(i.value.point,g)||!fm(i.value.align,t.align))&&(a(),l.value.element!==p&&(l.value.cancel(),l.value.element=p,l.value.cancel=S7(p,a)))};h.onMounted(()=>{h.nextTick(()=>{c()})}),h.onUpdated(()=>{h.nextTick(()=>{c()})}),h.watch(()=>t.disabled,d=>{d?s():a()},{immediate:!0,flush:"post"});const f=h.ref(null);return h.watch(()=>t.monitorWindowResize,d=>{d?f.value||(f.value=zr(window,"resize",a)):f.value&&(f.value.remove(),f.value=null)},{flush:"post"}),h.onUnmounted(()=>{l.value.cancel(),u.value.cancel(),f.value&&f.value.remove(),s()}),n({forceAlign:()=>a(!0)}),()=>{const d=r==null?void 0:r.default();return d?Gn(d[0],{ref:o},!0,!0):null}}});Du("bottomLeft","bottomRight","topLeft","topRight");const VAe=t=>t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up",Zm=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k(t?{name:t,appear:!0,enterFromClass:`${t}-enter ${t}-enter-prepare ${t}-enter-start`,enterActiveClass:`${t}-enter ${t}-enter-prepare`,enterToClass:`${t}-enter ${t}-enter-active`,leaveFromClass:` ${t}-leave`,leaveActiveClass:`${t}-leave ${t}-leave-active`,leaveToClass:`${t}-leave ${t}-leave-active`}:{css:!1},e)},NA=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k(t?{name:t,appear:!0,appearActiveClass:`${t}`,appearToClass:`${t}-appear ${t}-appear-active`,enterFromClass:`${t}-appear ${t}-enter ${t}-appear-prepare ${t}-enter-prepare`,enterActiveClass:`${t}`,enterToClass:`${t}-enter ${t}-appear ${t}-appear-active ${t}-enter-active`,leaveActiveClass:`${t} ${t}-leave`,leaveToClass:`${t}-leave-active`}:{css:!1},e)},As=(t,e,n)=>n!==void 0?n:`${t}-${e}`,zAe=h.defineComponent({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:OA,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:r,slots:i}=e;const o=h.shallowRef(),a=h.shallowRef(),s=h.shallowRef(),[l,u]=oAe(h.toRef(t,"stretch")),c=()=>{t.stretch&&u(t.getRootDomNode())},f=h.shallowRef(!1);let d;h.watch(()=>t.visible,x=>{clearTimeout(d),x?d=setTimeout(()=>{f.value=t.visible}):f.value=!1},{immediate:!0});const[p,g]=iAe(f,c),v=h.shallowRef(),m=()=>t.point?t.point:t.getRootDomNode,y=()=>{var x;(x=o.value)===null||x===void 0||x.forceAlign()},b=(x,T)=>{var $;const A=t.getClassNameFromAlign(T),P=s.value;s.value!==A&&(s.value=A),p.value==="align"&&(P!==A?Promise.resolve().then(()=>{y()}):g(()=>{var M;(M=v.value)===null||M===void 0||M.call(v)}),($=t.onAlign)===null||$===void 0||$.call(t,x,T))},O=h.computed(()=>{const x=typeof t.animation=="object"?t.animation:wA(t);return["onAfterEnter","onAfterLeave"].forEach(T=>{const $=x[T];x[T]=A=>{g(),p.value="stable",$==null||$(A)}}),x}),w=()=>new Promise(x=>{v.value=x});h.watch([O,p],()=>{!O.value&&p.value==="motion"&&g()},{immediate:!0}),n({forceAlign:y,getElement:()=>a.value.$el||a.value});const S=h.computed(()=>{var x;return!(!((x=t.align)===null||x===void 0)&&x.points&&(p.value==="align"||p.value==="stable"))});return()=>{var x;const{zIndex:T,align:$,prefixCls:A,destroyPopupOnHide:P,onMouseenter:M,onMouseleave:I,onTouchstart:R=()=>{},onMousedown:L}=t,D=p.value,B=[k(k({},l.value),{zIndex:T,opacity:D==="motion"||D==="stable"||!f.value?null:0,pointerEvents:!f.value&&D!=="stable"?"none":null}),r.style];let F=vr((x=i.default)===null||x===void 0?void 0:x.call(i,{visible:t.visible}));F.length>1&&(F=h.createVNode("div",{class:`${A}-content`},[F]));const z=Pe(A,r.class,s.value,!t.arrow&&`${A}-arrow-hidden`),j=f.value||!t.visible?Zm(O.value.name,O.value):{};return h.createVNode(h.Transition,K(K({ref:a},j),{},{onBeforeEnter:w}),{default:()=>!P||t.visible?h.withDirectives(h.createVNode(BAe,{target:m(),key:"popup",ref:o,monitorWindowResize:!0,disabled:S.value,align:$,onAlign:b},{default:()=>h.createVNode("div",{class:z,onMouseenter:M,onMouseleave:I,onMousedown:h.withModifiers(L,["capture"]),[Vr?"onTouchstartPassive":"onTouchstart"]:h.withModifiers(R,["capture"]),style:B},[F])}),[[h.vShow,f.value]]):null})}}}),FAe=h.defineComponent({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:tAe,setup(t,e){let{attrs:n,slots:r,expose:i}=e;const o=h.shallowRef(!1),a=h.shallowRef(!1),s=h.shallowRef(),l=h.shallowRef();return h.watch([()=>t.visible,()=>t.mobile],()=>{o.value=t.visible,t.visible&&t.mobile&&(a.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var u;(u=s.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=s.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=k(k(k({},t),n),{visible:o.value}),c=a.value?h.createVNode(nAe,K(K({},u),{},{mobile:t.mobile,ref:s}),{default:r.default}):h.createVNode(zAe,K(K({},u),{},{ref:s}),{default:r.default});return h.createVNode("div",{ref:l},[h.createVNode(KW,u,null),c])}}});function WAe(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function T7(t,e,n){const r=t[e]||{};return k(k({},r),n)}function QAe(t,e,n,r){const{points:i}=n,o=Object.keys(t);for(let a=0;a<o.length;a+=1){const s=o[a];if(WAe(t[s].points,i,r))return`${e}-placement-${s}`}return""}const gO={methods:{setState(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const r=this.getDerivedStateFromProps(LPe(this),k(k({},this.$data),n));if(r===null)return;n=k(k({},n),r||{})}k(this.$data,n),this._.isMounted&&this.$forceUpdate(),h.nextTick(()=>{e&&e()})},__emit(){const t=[].slice.call(arguments,0);let e=t[0];e=`on${e[0].toUpperCase()}${e.substring(1)}`;const n=this.$props[e]||this.$attrs[e];if(t.length&&n)if(Array.isArray(n))for(let r=0,i=n.length;r<i;r++)n[r](...t.slice(1));else n(...t.slice(1))}}},P7=Symbol("PortalContextKey"),LA=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};h.provide(P7,{inTriggerContext:e.inTriggerContext,shouldRender:h.computed(()=>{const{sPopupVisible:n,popupRef:r,forceRender:i,autoDestroy:o}=t||{};let a=!1;return(n||r||i)&&(a=!0),!n&&o&&(a=!1),a})})},HAe=()=>{LA({},{inTriggerContext:!1});const t=h.inject(P7,{shouldRender:h.computed(()=>!1),inTriggerContext:!1});return{shouldRender:h.computed(()=>t.shouldRender.value||t.inTriggerContext===!1)}},$7=h.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ne.func.isRequired,didUpdate:Function},setup(t,e){let{slots:n}=e,r=!0,i;const{shouldRender:o}=HAe();function a(){o.value&&(i=t.getContainer())}h.onBeforeMount(()=>{r=!1,a()}),h.onMounted(()=>{i||a()});const s=h.watch(o,()=>{o.value&&!i&&(i=t.getContainer()),i&&s()});return h.onUpdated(()=>{h.nextTick(()=>{var l;o.value&&((l=t.didUpdate)===null||l===void 0||l.call(t,t))})}),()=>{var l;return o.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):i?h.createVNode(h.Teleport,{to:i},n):null:null}}});let BA;function GAe(t){if(typeof document>"u")return 0;if(BA===void 0){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);const i=e.offsetWidth;n.style.overflow="scroll";let o=e.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),BA=i-o}return BA}const jAe=`vc-util-locker-${Date.now()}`;let A7=0;function UAe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ZAe(t){const e=h.computed(()=>!!t&&!!t.value);A7+=1;const n=`${jAe}_${A7}`;h.watchEffect(r=>{if(jo()){if(e.value){const i=GAe(),o=UAe();Nm(`
  74. html body {
  75. overflow-y: hidden;
  76. ${o?`width: calc(100% - ${i}px);`:""}
  77. }`,n)}else Q1(n);r(()=>{Q1(n)})}},{flush:"post"})}let Mf=0;const vO=jo(),E7=t=>{if(!vO)return null;if(t){if(typeof t=="string")return document.querySelectorAll(t)[0];if(typeof t=="function")return t();if(typeof t=="object"&&t instanceof window.HTMLElement)return t}return document.body},M7=h.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ne.any,visible:{type:Boolean,default:void 0},autoLock:lt(),didUpdate:Function},setup(t,e){let{slots:n}=e;const r=h.shallowRef(),i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef(1),s=jo()&&document.createElement("div"),l=()=>{var p,g;r.value===s&&((g=(p=r.value)===null||p===void 0?void 0:p.parentNode)===null||g===void 0||g.removeChild(r.value)),r.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(u=E7(t.getContainer),u?(u.appendChild(r.value),!0):!1):!0},f=()=>vO?(r.value||(r.value=s,c(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:p}=t;r.value&&p&&p!==r.value.className&&(r.value.className=p)};return h.onUpdated(()=>{d(),c()}),ZAe(h.computed(()=>t.autoLock&&t.visible&&jo()&&(r.value===document.body||r.value===s))),h.onMounted(()=>{let p=!1;h.watch([()=>t.visible,()=>t.getContainer],(g,v)=>{let[m,y]=g,[b,O]=v;vO&&(u=E7(t.getContainer),u===document.body&&(m&&!b?Mf+=1:p&&(Mf-=1))),p&&(typeof y=="function"&&typeof O=="function"?y.toString()!==O.toString():y!==O)&&l(),p=!0},{immediate:!0,flush:"post"}),h.nextTick(()=>{c()||(o.value=Dt(()=>{a.value+=1}))})}),h.onBeforeUnmount(()=>{const{visible:p}=t;vO&&u===document.body&&(Mf=p&&Mf?Mf-1:Mf),l(),Dt.cancel(o.value)}),()=>{const{forceRender:p,visible:g}=t;let v=null;const m={getOpenCount:()=>Mf,getContainer:f};return a.value&&(p||g||i.value)&&(v=h.createVNode($7,{getContainer:f,ref:i,didUpdate:t.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,m)}})),v}}}),XAe=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],mO=h.defineComponent({compatConfig:{MODE:3},name:"Trigger",mixins:[gO],inheritAttrs:!1,props:J$e(),setup(t){const e=h.computed(()=>{const{popupPlacement:i,popupAlign:o,builtinPlacements:a}=t;return i&&a?T7(a,i,o):o}),n=h.shallowRef(null),r=i=>{n.value=i};return{vcTriggerContext:h.inject("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:h.shallowRef(null),align:e,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let e;return this.popupVisible!==void 0?e=!!t.popupVisible:e=!!t.defaultPopupVisible,XAe.forEach(n=>{this[`fire${n}`]=r=>{this.fireEvents(n,r)}}),{prevPopupVisible:e,sPopupVisible:e,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){h.provide("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),LA(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Dt.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=zr(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=zr(n,"touchstart",this.onDocumentClick,Vr?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=zr(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=zr(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:e}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,e,e?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var e;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&Ru((e=this.popupRef)===null||e===void 0?void 0:e.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){Ru(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const e=!this.$data.sPopupVisible;(this.isClickToHide()&&!e||e&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const e=t.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(!Ru(n,e)||this.isContextMenuOnly())&&!Ru(r,e)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,e,n,r;const{getTriggerDOMNode:i}=this.$props;if(i){const o=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:Pl(this.triggerRef);return Pl(i(o))}try{const o=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:Pl(this.triggerRef);if(o)return o}catch{}return Pl(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:r,builtinPlacements:i,prefixCls:o,alignPoint:a,getPopupClassNameFromAlign:s}=n;return r&&i&&e.push(QAe(i,o,t,a)),s&&e.push(s(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:r}=t;return e&&r?T7(r,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Vr?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:r}=this,{prefixCls:i,destroyPopupOnHide:o,popupClassName:a,popupAnimation:s,popupTransitionName:l,popupStyle:u,mask:c,maskAnimation:f,maskTransitionName:d,zIndex:p,stretch:g,alignPoint:v,mobile:m,arrow:y,forceRender:b}=this.$props,{sPopupVisible:O,point:w}=this.$data,S=k(k({prefixCls:i,arrow:y,destroyPopupOnHide:o,visible:O,point:v?w:null,align:this.align,animation:s,getClassNameFromAlign:e,stretch:g,getRootDomNode:n,mask:c,zIndex:p,transitionName:l,maskAnimation:f,maskTransitionName:d,class:a,style:u,onAlign:r.onPopupAlign||qW},t),{ref:this.setPopupRef,mobile:m,forceRender:b});return h.createVNode(FAe,S,{default:this.$slots.popup||(()=>BPe(this,"popup"))})},attachParent(t){Dt.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,r=this.getRootDomNode();let i;e?(r||e.length===0)&&(i=e(r)):i=n(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=Dt(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:e}=t,n=e(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(t,e){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:i}=this;this.clearDelayTimer(),r!==t&&(N1(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:r}),i&&i(t)),n&&e&&t&&this.setPoint(e)},setPoint(t){const{alignPoint:e}=this.$props;!e||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,e,n){const r=e*1e3;if(this.clearDelayTimer(),r){const i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},r)}else this.setPopupVisible(t,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let e=()=>{};const n=xF(this);return this.childOriginEvents[t]&&n[t]?this[`fire${t}`]:(e=this.childOriginEvents[t]||n[t]||e,e)},isClickToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("contextmenu")!==-1||e.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,e){this.childOriginEvents[t]&&this.childOriginEvents[t](e);const n=this.$props[t]||this.$attrs[t];n&&n(e)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,e=xs(SF(this)),{alignPoint:n,getPopupContainer:r}=this.$props,i=e[0];this.childOriginEvents=xF(i);const o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[Vr?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[Vr?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,n&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=u=>{u&&(!u.relatedTarget||!Ru(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const a=Pe(i&&i.props&&i.props.class,t.class);a&&(o.class=a);const s=Gn(i,k(k({},o),{ref:"triggerRef"}),!0,!0),l=h.createVNode(M7,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return h.createVNode(h.Fragment,null,[s,l])}});var YAe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const qAe=t=>{const e=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}},KAe=h.defineComponent({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ne.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ne.oneOfType([Number,Boolean]).def(!0),popupElement:ne.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(t,e){let{slots:n,attrs:r,expose:i}=e;const o=h.computed(()=>{const{dropdownMatchSelectWidth:s}=t;return qAe(s)}),a=h.ref();return i({getPopupElement:()=>a.value}),()=>{const s=k(k({},t),r),{empty:l=!1}=s,u=YAe(s,["empty"]),{visible:c,dropdownAlign:f,prefixCls:d,popupElement:p,dropdownClassName:g,dropdownStyle:v,direction:m="ltr",placement:y,dropdownMatchSelectWidth:b,containerWidth:O,dropdownRender:w,animation:S,transitionName:x,getPopupContainer:T,getTriggerDOMNode:$,onPopupVisibleChange:A,onPopupMouseEnter:P,onPopupFocusin:M,onPopupFocusout:I}=u,R=`${d}-dropdown`;let L=p;w&&(L=w({menuNode:p,props:t}));const D=S?`${R}-${S}`:x,B=k({minWidth:`${O}px`},v);return typeof b=="number"?B.width=`${b}px`:b&&(B.width=`${O}px`),h.createVNode(mO,K(K({},t),{},{showAction:A?["click"]:[],hideAction:A?["click"]:[],popupPlacement:y||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:R,popupTransitionName:D,popupAlign:f,popupVisible:c,getPopupContainer:T,popupClassName:Pe(g,{[`${R}-empty`]:l}),popupStyle:B,getTriggerDOMNode:$,onPopupVisibleChange:A}),{default:n.default,popup:()=>h.createVNode("div",{ref:a,onMouseenter:P,onFocusin:M,onFocusout:I},[L])})}}}),Se={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:n}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Se.F1&&n<=Se.F12)return!1;switch(n){case Se.ALT:case Se.CAPS_LOCK:case Se.CONTEXT_MENU:case Se.CTRL:case Se.DOWN:case Se.END:case Se.ESC:case Se.HOME:case Se.INSERT:case Se.LEFT:case Se.MAC_FF_META:case Se.META:case Se.NUMLOCK:case Se.NUM_CENTER:case Se.PAGE_DOWN:case Se.PAGE_UP:case Se.PAUSE:case Se.PRINT_SCREEN:case Se.RIGHT:case Se.SHIFT:case Se.UP:case Se.WIN_KEY:case Se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Se.ZERO&&e<=Se.NINE||e>=Se.NUM_ZERO&&e<=Se.NUM_MULTIPLY||e>=Se.A&&e<=Se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Se.SPACE:case Se.QUESTION_MARK:case Se.NUM_PLUS:case Se.NUM_MINUS:case Se.NUM_PERIOD:case Se.NUM_DIVISION:case Se.SEMICOLON:case Se.DASH:case Se.EQUALS:case Se.COMMA:case Se.PERIOD:case Se.SLASH:case Se.APOSTROPHE:case Se.SINGLE_QUOTE:case Se.OPEN_SQUARE_BRACKET:case Se.BACKSLASH:case Se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},If=(t,e)=>{let{slots:n}=e;var r;const{class:i,customizeIcon:o,customizeIconProps:a,onMousedown:s,onClick:l}=t;let u;return typeof o=="function"?u=o(a):u=h.isVNode(o)?h.cloneVNode(o):o,h.createVNode("span",{class:i,onMousedown:c=>{c.preventDefault(),s&&s(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},[u!==void 0?u:h.createVNode("span",{class:i.split(/\s+/).map(c=>`${c}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};If.inheritAttrs=!1,If.displayName="TransBtn",If.props={class:String,customizeIcon:ne.any,customizeIconProps:ne.any,onMousedown:Function,onClick:Function};var JAe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const eEe=h.defineComponent({compatConfig:{MODE:3},props:{disabled:ne.looseBool,type:ne.string,value:ne.any,tag:{type:String,default:"input"},size:ne.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{expose:n}=e;const r=h.shallowRef(null);return n({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()},input:r,setSelectionRange:(l,u,c)=>{var f;(f=r.value)===null||f===void 0||f.setSelectionRange(l,u,c)},select:()=>{var l;(l=r.value)===null||l===void 0||l.select()},getSelectionStart:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionStart},getSelectionEnd:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionEnd},getScrollTop:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.scrollTop}}),()=>{const{tag:l,value:u}=t,c=JAe(t,["tag","value"]);return h.createVNode(l,K(K({},c),{},{ref:r,value:u}),null)}}});function tEe(){const t=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:e}}function I7(t){const e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function nEe(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return typeof r>"u"||r===null||(e+=`${n}: ${t[n]};`),e},"")}var rEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const VA=h.defineComponent({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:ne.looseBool,type:ne.string,value:ne.any,lazy:ne.bool.def(!0),tag:{type:String,default:"input"},size:ne.string,style:ne.oneOfType([String,Object]),class:ne.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{emit:n,attrs:r,expose:i}=e;const o=h.shallowRef(null),a=h.ref(),s=h.ref(!1);h.watch([()=>t.value,s],()=>{s.value||(a.value=t.value)},{immediate:!0});const l=T=>{n("change",T)},u=T=>{s.value=!0,T.target.composing=!0,n("compositionstart",T)},c=T=>{s.value=!1,T.target.composing=!1,n("compositionend",T);const $=document.createEvent("HTMLEvents");$.initEvent("input",!0,!0),T.target.dispatchEvent($),l(T)},f=T=>{if(s.value&&t.lazy){a.value=T.target.value;return}n("input",T)},d=T=>{n("blur",T)},p=T=>{n("focus",T)},g=()=>{o.value&&o.value.focus()},v=()=>{o.value&&o.value.blur()},m=T=>{n("keydown",T)},y=T=>{n("keyup",T)},b=(T,$,A)=>{var P;(P=o.value)===null||P===void 0||P.setSelectionRange(T,$,A)},O=()=>{var T;(T=o.value)===null||T===void 0||T.select()};i({focus:g,blur:v,input:h.computed(()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.input}),setSelectionRange:b,select:O,getSelectionStart:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getSelectionStart()},getSelectionEnd:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getSelectionEnd()},getScrollTop:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getScrollTop()}});const w=T=>{n("mousedown",T)},S=T=>{n("paste",T)},x=h.computed(()=>t.style&&typeof t.style!="string"?nEe(t.style):t.style);return()=>{const T=rEe(t,["style","lazy"]);return h.createVNode(eEe,K(K(K({},T),r),{},{style:x.value,onInput:f,onChange:l,onBlur:d,onFocus:p,ref:o,value:a.value,onCompositionstart:u,onCompositionend:c,onKeyup:y,onKeydown:m,onPaste:S,onMousedown:w}),null)}}}),iEe={inputRef:ne.any,prefixCls:String,id:String,inputElement:ne.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),attrs:ne.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},D7=h.defineComponent({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:iEe,setup(t){let e=null;const n=h.inject("VCSelectContainerEvent");return()=>{var r;const{prefixCls:i,id:o,inputElement:a,disabled:s,tabindex:l,autofocus:u,autocomplete:c,editable:f,activeDescendantId:d,value:p,onKeydown:g,onMousedown:v,onChange:m,onPaste:y,onCompositionstart:b,onCompositionend:O,onFocus:w,onBlur:S,open:x,inputRef:T,attrs:$}=t;let A=a||h.createVNode(VA,null,null);const P=A.props||{},{onKeydown:M,onInput:I,onFocus:R,onBlur:L,onMousedown:D,onCompositionstart:B,onCompositionend:F,style:z}=P;return A=Gn(A,k(k(k(k(k({type:"search"},P),{id:o,ref:T,disabled:s,tabindex:l,lazy:!1,autocomplete:c||"off",autofocus:u,class:Pe(`${i}-selection-search-input`,(r=A==null?void 0:A.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":`${o}_list`,"aria-autocomplete":"list","aria-controls":`${o}_list`,"aria-activedescendant":d}),$),{value:f?p:"",readonly:!f,unselectable:f?null:"on",style:k(k({},z),{opacity:f?null:0}),onKeydown:W=>{g(W),M&&M(W)},onMousedown:W=>{v(W),D&&D(W)},onInput:W=>{m(W),I&&I(W)},onCompositionstart(W){b(W),B&&B(W)},onCompositionend(W){O(W),F&&F(W)},onPaste:y,onFocus:function(){clearTimeout(e),R&&R(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var W=arguments.length,j=new Array(W),H=0;H<W;H++)j[H]=arguments[H];e=setTimeout(()=>{L&&L(j[0]),S&&S(j[0]),n==null||n.blur(j[0])},100)}}),A.type==="textarea"?{}:{type:"search"}),!0,!0),A}}}),R7=`accept acceptcharset accesskey action allowfullscreen allowtransparency
  78. alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
  79. charset checked classid classname colspan cols content contenteditable contextmenu
  80. controls coords crossorigin data datetime default defer dir disabled download draggable
  81. enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
  82. headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
  83. is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
  84. mediagroup method min minlength multiple muted name novalidate nonce open
  85. optimum pattern placeholder poster preload radiogroup readonly rel required
  86. reversed role rowspan rows sandbox scope scoped scrolling seamless selected
  87. shape size sizes span spellcheck src srcdoc srclang srcset start step style
  88. summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
  89. onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
  90. onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
  91. onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
  92. onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
  93. onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
  94. onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),oEe="aria-",aEe="data-";function k7(t,e){return t.indexOf(e)===0}function yO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=k({},e);const r={};return Object.keys(t).forEach(i=>{(n.aria&&(i==="role"||k7(i,oEe))||n.data&&k7(i,aEe)||n.attr&&(R7.includes(i)||R7.includes(i.toLowerCase())))&&(r[i]=t[i])}),r}const N7=Symbol("OverflowContextProviderKey"),zA=h.defineComponent({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(t,e){let{slots:n}=e;return h.provide(N7,h.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),sEe=()=>h.inject(N7,h.computed(()=>null));var lEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const $p=void 0,bO=h.defineComponent({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:ne.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:ne.any,invalidate:Boolean},setup(t,e){let{slots:n,expose:r}=e;const i=h.computed(()=>t.responsive&&!t.display),o=h.ref();r({itemNodeRef:o});function a(s){t.registerSize(t.itemKey,s)}return h.onUnmounted(()=>{a(null)}),()=>{var s;const{prefixCls:l,invalidate:u,item:c,renderItem:f,responsive:d,registerSize:p,itemKey:g,display:v,order:m,component:y="div"}=t,b=lEe(t,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),O=(s=n.default)===null||s===void 0?void 0:s.call(n),w=f&&c!==$p?f(c):O;let S;u||(S={opacity:i.value?0:1,height:i.value?0:$p,overflowY:i.value?"hidden":$p,order:d?m:$p,pointerEvents:i.value?"none":$p,position:i.value?"absolute":$p});const x={};return i.value&&(x["aria-hidden"]=!0),h.createVNode(vp,{disabled:!d,onResize:T=>{let{offsetWidth:$}=T;a($)}},{default:()=>h.createVNode(y,K(K(K({class:Pe(!u&&l),style:S},x),b),{},{ref:o}),{default:()=>[w]})})}}});var FA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const uEe=h.defineComponent({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:ne.any,title:ne.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(t,e){let{slots:n,attrs:r}=e;const i=sEe();return()=>{var o;if(!i.value){const{component:f="div"}=t,d=FA(t,["component"]);return h.createVNode(f,K(K({},d),r),{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})}const a=i.value,{className:s}=a,l=FA(a,["className"]),{class:u}=r,c=FA(r,["class"]);return h.createVNode(zA,{value:null},{default:()=>[h.createVNode(bO,K(K(K({class:Pe(s,u)},l),c),t),n)]})}}});var cEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const L7="responsive",B7="invalidate";function fEe(t){return`+ ${t.length} ...`}const dEe=()=>({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ne.any,component:String,itemComponent:ne.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),Ml=h.defineComponent({name:"Overflow",inheritAttrs:!1,props:dEe(),emits:["visibleChange"],setup(t,e){let{attrs:n,emit:r,slots:i}=e;const o=h.computed(()=>t.ssr==="full"),a=h.shallowRef(null),s=h.computed(()=>a.value||0),l=h.shallowRef(new Map),u=h.shallowRef(0),c=h.shallowRef(0),f=h.shallowRef(0),d=h.shallowRef(null),p=h.shallowRef(null),g=h.computed(()=>p.value===null&&o.value?Number.MAX_SAFE_INTEGER:p.value||0),v=h.shallowRef(!1),m=h.computed(()=>`${t.prefixCls}-item`),y=h.computed(()=>Math.max(u.value,c.value)),b=h.computed(()=>!!(t.data.length&&t.maxCount===L7)),O=h.computed(()=>t.maxCount===B7),w=h.computed(()=>b.value||typeof t.maxCount=="number"&&t.data.length>t.maxCount),S=h.computed(()=>{let D=t.data;return b.value?a.value===null&&o.value?D=t.data:D=t.data.slice(0,Math.min(t.data.length,s.value/t.itemWidth)):typeof t.maxCount=="number"&&(D=t.data.slice(0,t.maxCount)),D}),x=h.computed(()=>b.value?t.data.slice(g.value+1):t.data.slice(S.value.length)),T=(D,B)=>{var F;return typeof t.itemKey=="function"?t.itemKey(D):(F=t.itemKey&&(D==null?void 0:D[t.itemKey]))!==null&&F!==void 0?F:B},$=h.computed(()=>t.renderItem||(D=>D)),A=(D,B)=>{p.value=D,B||(v.value=D<t.data.length-1,r("visibleChange",D))},P=(D,B)=>{a.value=B.clientWidth},M=(D,B)=>{const F=new Map(l.value);B===null?F.delete(D):F.set(D,B),l.value=F},I=(D,B)=>{u.value=c.value,c.value=B},R=(D,B)=>{f.value=B},L=D=>l.value.get(T(S.value[D],D));return h.watch([s,l,c,f,()=>t.itemKey,S],()=>{if(s.value&&y.value&&S.value){let D=f.value;const B=S.value.length,F=B-1;if(!B){A(0),d.value=null;return}for(let z=0;z<B;z+=1){const W=L(z);if(W===void 0){A(z-1,!0);break}if(D+=W,F===0&&D<=s.value||z===F-1&&D+L(F)<=s.value){A(F),d.value=null;break}else if(D+y.value>s.value){A(z-1),d.value=D-W-f.value+c.value;break}}t.suffix&&L(0)+f.value>s.value&&(d.value=null)}}),()=>{const D=v.value&&!!x.value.length,{itemComponent:B,renderRawItem:F,renderRawRest:z,renderRest:W,prefixCls:j="rc-overflow",suffix:H,component:Z="div",id:J,onMousedown:se}=t,{class:oe,style:de}=n,ie=cEe(n,["class","style"]);let ue={};d.value!==null&&b.value&&(ue={position:"absolute",left:`${d.value}px`,top:0});const ee={prefixCls:m.value,responsive:b.value,component:B,invalidate:O.value},X=F?(ye,Ne)=>{const Be=T(ye,Ne);return h.createVNode(zA,{key:Be,value:k(k({},ee),{order:Ne,item:ye,itemKey:Be,registerSize:M,display:Ne<=g.value})},{default:()=>[F(ye,Ne)]})}:(ye,Ne)=>{const Be=T(ye,Ne);return h.createVNode(bO,K(K({},ee),{},{order:Ne,key:Be,item:ye,renderItem:$.value,itemKey:Be,registerSize:M,display:Ne<=g.value}),null)};let Y=()=>null;const le={order:D?g.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:I,display:D};if(z)z&&(Y=()=>h.createVNode(zA,{value:k(k({},ee),le)},{default:()=>[z(x.value)]}));else{const ye=W||fEe;Y=()=>h.createVNode(bO,K(K({},ee),le),{default:()=>typeof ye=="function"?ye(x.value):ye})}const ve=()=>{var ye;return h.createVNode(Z,K({id:J,class:Pe(!O.value&&j,oe),style:de,onMousedown:se},ie),{default:()=>[S.value.map(X),w.value?Y():null,H&&h.createVNode(bO,K(K({},ee),{},{order:g.value,class:`${m.value}-suffix`,registerSize:R,display:!0,style:ue}),{default:()=>H}),(ye=i.default)===null||ye===void 0?void 0:ye.call(i)]})};return h.createVNode(vp,{disabled:!b.value,onResize:P},{default:ve})}}});Ml.Item=uEe,Ml.RESPONSIVE=L7,Ml.INVALIDATE=B7;const hEe=Symbol("TreeSelectLegacyContextPropsKey");function WA(){return h.inject(hEe,{})}const pEe={id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),compositionStatus:Boolean,removeIcon:ne.any,choiceTransitionName:String,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any.def(()=>t=>`+ ${t.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},V7=t=>{t.preventDefault(),t.stopPropagation()},gEe=h.defineComponent({name:"MultipleSelectSelector",inheritAttrs:!1,props:pEe,setup(t){const e=h.shallowRef(),n=h.shallowRef(0),r=h.shallowRef(!1),i=WA(),o=h.computed(()=>`${t.prefixCls}-selection`),a=h.computed(()=>t.open||t.mode==="tags"?t.searchValue:""),s=h.computed(()=>t.mode==="tags"||t.showSearch&&(t.open||r.value)),l=h.ref("");h.watchEffect(()=>{l.value=a.value}),h.onMounted(()=>{h.watch(l,()=>{n.value=e.value.scrollWidth},{flush:"post",immediate:!0})});function u(g,v,m,y,b){return h.createVNode("span",{class:Pe(`${o.value}-item`,{[`${o.value}-item-disabled`]:m}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[h.createVNode("span",{class:`${o.value}-item-content`},[v]),y&&h.createVNode(If,{class:`${o.value}-item-remove`,onMousedown:V7,onClick:b,customizeIcon:t.removeIcon},{default:()=>[h.createTextVNode("×")]})])}function c(g,v,m,y,b,O){var w;const S=T=>{V7(T),t.onToggleOpen(!open)};let x=O;return i.keyEntities&&(x=((w=i.keyEntities[g])===null||w===void 0?void 0:w.node)||{}),h.createVNode("span",{key:g,onMousedown:S},[t.tagRender({label:v,value:g,disabled:m,closable:y,onClose:b,option:x})])}function f(g){const{disabled:v,label:m,value:y,option:b}=g,O=!t.disabled&&!v;let w=m;if(typeof t.maxTagTextLength=="number"&&(typeof m=="string"||typeof m=="number")){const x=String(w);x.length>t.maxTagTextLength&&(w=`${x.slice(0,t.maxTagTextLength)}...`)}const S=x=>{var T;x&&x.stopPropagation(),(T=t.onRemove)===null||T===void 0||T.call(t,g)};return typeof t.tagRender=="function"?c(y,w,v,O,S,b):u(m,w,v,O,S)}function d(g){const{maxTagPlaceholder:v=y=>`+ ${y.length} ...`}=t,m=typeof v=="function"?v(g):v;return u(m,m,!1)}const p=g=>{const v=g.target.composing;l.value=g.target.value,v||t.onInputChange(g)};return()=>{const{id:g,prefixCls:v,values:m,open:y,inputRef:b,placeholder:O,disabled:w,autofocus:S,autocomplete:x,activeDescendantId:T,tabindex:$,compositionStatus:A,onInputPaste:P,onInputKeyDown:M,onInputMouseDown:I,onInputCompositionStart:R,onInputCompositionEnd:L}=t,D=h.createVNode("div",{class:`${o.value}-search`,style:{width:n.value+"px"},key:"input"},[h.createVNode(D7,{inputRef:b,open:y,prefixCls:v,id:g,inputElement:null,disabled:w,autofocus:S,autocomplete:x,editable:s.value,activeDescendantId:T,value:l.value,onKeydown:M,onMousedown:I,onChange:p,onPaste:P,onCompositionstart:R,onCompositionend:L,tabindex:$,attrs:yO(t,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),h.createVNode("span",{ref:e,class:`${o.value}-search-mirror`,"aria-hidden":!0},[l.value,h.createTextVNode(" ")])]),B=h.createVNode(Ml,{prefixCls:`${o.value}-overflow`,data:m,renderItem:f,renderRest:d,suffix:D,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return h.createVNode(h.Fragment,null,[B,!m.length&&!a.value&&!A&&h.createVNode("span",{class:`${o.value}-placeholder`},[O])])}}}),vEe={inputElement:ne.any,id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},QA=h.defineComponent({name:"SingleSelector",setup(t){const e=h.shallowRef(!1),n=h.computed(()=>t.mode==="combobox"),r=h.computed(()=>n.value||t.showSearch),i=h.computed(()=>{let c=t.searchValue||"";return n.value&&t.activeValue&&!e.value&&(c=t.activeValue),c}),o=WA();h.watch([n,()=>t.activeValue],()=>{n.value&&(e.value=!1)},{immediate:!0});const a=h.computed(()=>t.mode!=="combobox"&&!t.open&&!t.showSearch?!1:!!i.value||t.compositionStatus),s=h.computed(()=>{const c=t.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),l=()=>{if(t.values[0])return null;const c=a.value?{visibility:"hidden"}:void 0;return h.createVNode("span",{class:`${t.prefixCls}-selection-placeholder`,style:c},[t.placeholder])},u=c=>{c.target.composing||(e.value=!0,t.onInputChange(c))};return()=>{var c,f,d,p;const{inputElement:g,prefixCls:v,id:m,values:y,inputRef:b,disabled:O,autofocus:w,autocomplete:S,activeDescendantId:x,open:T,tabindex:$,optionLabelRender:A,onInputKeyDown:P,onInputMouseDown:M,onInputPaste:I,onInputCompositionStart:R,onInputCompositionEnd:L}=t,D=y[0];let B=null;if(D&&o.customSlots){const F=(c=D.key)!==null&&c!==void 0?c:D.value,z=((f=o.keyEntities[F])===null||f===void 0?void 0:f.node)||{};B=o.customSlots[(d=z.slots)===null||d===void 0?void 0:d.title]||o.customSlots.title||D.label,typeof B=="function"&&(B=B(z))}else B=A&&D?A(D.option):D==null?void 0:D.label;return h.createVNode(h.Fragment,null,[h.createVNode("span",{class:`${v}-selection-search`},[h.createVNode(D7,{inputRef:b,prefixCls:v,id:m,open:T,inputElement:g,disabled:O,autofocus:w,autocomplete:S,editable:r.value,activeDescendantId:x,value:i.value,onKeydown:P,onMousedown:M,onChange:u,onPaste:I,onCompositionstart:R,onCompositionend:L,tabindex:$,attrs:yO(t,!0)},null)]),!n.value&&D&&!a.value&&h.createVNode("span",{class:`${v}-selection-item`,title:s.value},[h.createVNode(h.Fragment,{key:(p=D.key)!==null&&p!==void 0?p:D.value},[B])]),l()])}}});QA.props=vEe,QA.inheritAttrs=!1;function mEe(t){return![Se.ESC,Se.SHIFT,Se.BACKSPACE,Se.TAB,Se.WIN_KEY,Se.ALT,Se.META,Se.WIN_KEY_RIGHT,Se.CTRL,Se.SEMICOLON,Se.EQUALS,Se.CAPS_LOCK,Se.CONTEXT_MENU,Se.F1,Se.F2,Se.F3,Se.F4,Se.F5,Se.F6,Se.F7,Se.F8,Se.F9,Se.F10,Se.F11,Se.F12].includes(t)}function z7(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,n;h.onBeforeUnmount(()=>{clearTimeout(n)});function r(i){(i||e===null)&&(e=i),clearTimeout(n),n=setTimeout(()=>{e=null},t)}return[()=>e,r]}function Xm(){const t=e=>{t.current=e};return t}const yEe=h.defineComponent({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ne.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ne.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),disabled:{type:Boolean,default:void 0},placeholder:ne.any,removeIcon:ne.any,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(t,e){let{expose:n}=e;const r=Xm(),i=h.ref(!1),[o,a]=z7(0),s=y=>{const{which:b}=y;(b===Se.UP||b===Se.DOWN)&&y.preventDefault(),t.onInputKeyDown&&t.onInputKeyDown(y),b===Se.ENTER&&t.mode==="tags"&&!i.value&&!t.open&&t.onSearchSubmit(y.target.value),mEe(b)&&t.onToggleOpen(!0)},l=()=>{a(!0)};let u=null;const c=y=>{t.onSearch(y,!0,i.value)!==!1&&t.onToggleOpen(!0)},f=()=>{i.value=!0},d=y=>{i.value=!1,t.mode!=="combobox"&&c(y.target.value)},p=y=>{let{target:{value:b}}=y;if(t.tokenWithEnter&&u&&/[\r\n]/.test(u)){const O=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");b=b.replace(O,u)}u=null,c(b)},g=y=>{const{clipboardData:b}=y;u=b.getData("text")},v=y=>{let{target:b}=y;b!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},m=y=>{const b=o();y.target!==r.current&&!b&&y.preventDefault(),(t.mode!=="combobox"&&(!t.showSearch||!b)||!t.open)&&(t.open&&t.onSearch("",!0,!1),t.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:y,domRef:b,mode:O}=t,w={inputRef:r,onInputKeyDown:s,onInputMouseDown:l,onInputChange:p,onInputPaste:g,compositionStatus:i.value,onInputCompositionStart:f,onInputCompositionEnd:d},S=O==="multiple"||O==="tags"?h.createVNode(gEe,K(K({},t),w),null):h.createVNode(QA,K(K({},t),w),null);return h.createVNode("div",{ref:b,class:`${y}-selector`,onClick:v,onMousedown:m},[S])}}});function bEe(t,e,n){function r(i){var o,a,s;let l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);const u=[(o=t[0])===null||o===void 0?void 0:o.value,(s=(a=t[1])===null||a===void 0?void 0:a.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(c=>c&&!c.contains(l)&&c!==l)&&n(!1)}h.onMounted(()=>{window.addEventListener("mousedown",r)}),h.onBeforeUnmount(()=>{window.removeEventListener("mousedown",r)})}function _Ee(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const e=h.shallowRef(!1);let n;const r=()=>{clearTimeout(n)};return h.onMounted(()=>{r()}),[e,(o,a)=>{r(),n=setTimeout(()=>{e.value=o,a&&a()},t)},r]}const F7=Symbol("BaseSelectContextKey");function OEe(t){return h.provide(F7,t)}function wEe(){return h.inject(F7,{})}const HA=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substring(0,4))};function W7(t){if(!h.isRef(t))return h.reactive(t);const e=new Proxy({},{get(n,r,i){return Reflect.get(t.value,r,i)},set(n,r,i){return t.value[r]=i,!0},deleteProperty(n,r){return Reflect.deleteProperty(t.value,r)},has(n,r){return Reflect.has(t.value,r)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return h.reactive(e)}var SEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const xEe=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],CEe=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ne.any,emptyOptions:Boolean}),Q7=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ne.any,placeholder:ne.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ne.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ne.any,clearIcon:ne.any,removeIcon:ne.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),TEe=()=>k(k({},CEe()),Q7());function GA(t){return t==="tags"||t==="multiple"}const PEe=h.defineComponent({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Ar(TEe(),{showAction:[],notFoundContent:"Not Found"}),setup(t,e){let{attrs:n,expose:r,slots:i}=e;const o=h.computed(()=>GA(t.mode)),a=h.computed(()=>t.showSearch!==void 0?t.showSearch:o.value||t.mode==="combobox"),s=h.shallowRef(!1);h.onMounted(()=>{s.value=HA()});const l=WA(),u=h.shallowRef(null),c=Xm(),f=h.shallowRef(null),d=h.shallowRef(null),p=h.shallowRef(null),g=h.ref(!1),[v,m,y]=_Ee();r({focus:()=>{var X;(X=d.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=d.value)===null||X===void 0||X.blur()},scrollTo:X=>{var Y;return(Y=p.value)===null||Y===void 0?void 0:Y.scrollTo(X)}});const w=h.computed(()=>{var X;if(t.mode!=="combobox")return t.searchValue;const Y=(X=t.displayValues[0])===null||X===void 0?void 0:X.value;return typeof Y=="string"||typeof Y=="number"?String(Y):""}),S=t.open!==void 0?t.open:t.defaultOpen,x=h.shallowRef(S),T=h.shallowRef(S),$=X=>{x.value=t.open!==void 0?t.open:X,T.value=x.value};h.watch(()=>t.open,()=>{$(t.open)});const A=h.computed(()=>!t.notFoundContent&&t.emptyOptions);h.watchEffect(()=>{T.value=x.value,(t.disabled||A.value&&T.value&&t.mode==="combobox")&&(T.value=!1)});const P=h.computed(()=>A.value?!1:T.value),M=X=>{const Y=X!==void 0?X:!T.value;T.value!==Y&&!t.disabled&&($(Y),t.onDropdownVisibleChange&&t.onDropdownVisibleChange(Y))},I=h.computed(()=>(t.tokenSeparators||[]).some(X=>[`
  95. `,`\r
  96. `].includes(X))),R=(X,Y,le)=>{var ve,ye;let Ne=!0,Be=X;(ve=t.onActiveValueChange)===null||ve===void 0||ve.call(t,null);const Me=le?null:Y$e(X,t.tokenSeparators);return t.mode!=="combobox"&&Me&&(Be="",(ye=t.onSearchSplit)===null||ye===void 0||ye.call(t,Me),M(!1),Ne=!1),t.onSearch&&w.value!==Be&&t.onSearch(Be,{source:Y?"typing":"effect"}),Ne},L=X=>{var Y;!X||!X.trim()||(Y=t.onSearch)===null||Y===void 0||Y.call(t,X,{source:"submit"})};h.watch(T,()=>{!T.value&&!o.value&&t.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),h.watch(()=>t.disabled,()=>{x.value&&t.disabled&&$(!1),t.disabled&&!g.value&&m(!1)},{immediate:!0});const[D,B]=z7(),F=function(X){var Y;const le=D(),{which:ve}=X;if(ve===Se.ENTER&&(t.mode!=="combobox"&&X.preventDefault(),T.value||M(!0)),B(!!w.value),ve===Se.BACKSPACE&&!le&&o.value&&!w.value&&t.displayValues.length){const Me=[...t.displayValues];let $e=null;for(let _e=Me.length-1;_e>=0;_e-=1){const De=Me[_e];if(!De.disabled){Me.splice(_e,1),$e=De;break}}$e&&t.onDisplayValuesChange(Me,{type:"remove",values:[$e]})}for(var ye=arguments.length,Ne=new Array(ye>1?ye-1:0),Be=1;Be<ye;Be++)Ne[Be-1]=arguments[Be];T.value&&p.value&&p.value.onKeydown(X,...Ne),(Y=t.onKeydown)===null||Y===void 0||Y.call(t,X,...Ne)},z=function(X){for(var Y=arguments.length,le=new Array(Y>1?Y-1:0),ve=1;ve<Y;ve++)le[ve-1]=arguments[ve];T.value&&p.value&&p.value.onKeyup(X,...le),t.onKeyup&&t.onKeyup(X,...le)},W=X=>{const Y=t.displayValues.filter(le=>le!==X);t.onDisplayValuesChange(Y,{type:"remove",values:[X]})},j=h.shallowRef(!1),H=function(){m(!0),t.disabled||(t.onFocus&&!j.value&&t.onFocus(...arguments),t.showAction&&t.showAction.includes("focus")&&M(!0)),j.value=!0},Z=h.ref(!1),J=function(){if(Z.value||(g.value=!0,m(!1,()=>{j.value=!1,g.value=!1,M(!1)}),t.disabled))return;const X=w.value;X&&(t.mode==="tags"?t.onSearch(X,{source:"submit"}):t.mode==="multiple"&&t.onSearch("",{source:"blur"})),t.onBlur&&t.onBlur(...arguments)},se=()=>{Z.value=!0},oe=()=>{Z.value=!1};h.provide("VCSelectContainerEvent",{focus:H,blur:J});const de=[];h.onMounted(()=>{de.forEach(X=>clearTimeout(X)),de.splice(0,de.length)}),h.onBeforeUnmount(()=>{de.forEach(X=>clearTimeout(X)),de.splice(0,de.length)});const ie=function(X){var Y,le;const{target:ve}=X,ye=(Y=f.value)===null||Y===void 0?void 0:Y.getPopupElement();if(ye&&ye.contains(ve)){const $e=setTimeout(()=>{var _e;const De=de.indexOf($e);De!==-1&&de.splice(De,1),y(),!s.value&&!ye.contains(document.activeElement)&&((_e=d.value)===null||_e===void 0||_e.focus())});de.push($e)}for(var Ne=arguments.length,Be=new Array(Ne>1?Ne-1:0),Me=1;Me<Ne;Me++)Be[Me-1]=arguments[Me];(le=t.onMousedown)===null||le===void 0||le.call(t,X,...Be)},ue=h.shallowRef(null),ee=()=>{};return h.onMounted(()=>{h.watch(P,()=>{var X;if(P.value){const Y=Math.ceil((X=u.value)===null||X===void 0?void 0:X.offsetWidth);ue.value!==Y&&!Number.isNaN(Y)&&(ue.value=Y)}},{immediate:!0,flush:"post"})}),bEe([u,f],P,M),OEe(W7(k(k({},h.toRefs(t)),{open:T,triggerOpen:P,showSearch:a,multiple:o,toggleOpen:M}))),()=>{const X=k(k({},t),n),{prefixCls:Y,id:le,open:ve,defaultOpen:ye,mode:Ne,showSearch:Be,searchValue:Me,onSearch:$e,allowClear:_e,clearIcon:De,showArrow:Fe,inputIcon:ct,disabled:vt,loading:zt,getInputElement:we,getPopupContainer:rt,placement:Mt,animation:mn,transitionName:pn,dropdownStyle:pr,dropdownClassName:Ni,dropdownMatchSelectWidth:du,dropdownRender:hu,dropdownAlign:Uc,showAction:Th,direction:vl,tokenSeparators:Ph,tagRender:$h,optionLabelRender:x_,onPopupScroll:Zc,onDropdownVisibleChange:C_,onFocus:E3,onBlur:Spe,onKeyup:xpe,onKeydown:Cpe,onMousedown:Tpe,onClear:Vv,omitDomProps:T_,getRawInputElement:EP,displayValues:zv,onDisplayValuesChange:P_,emptyOptions:M3,activeDescendantId:$_,activeValue:I3,OptionList:D3}=X,R3=SEe(X,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),MP=Ne==="combobox"&&we&&we()||null,Ah=typeof EP=="function"&&EP(),A_=k({},R3);let IP;Ah&&(IP=Aa=>{M(Aa)}),xEe.forEach(Aa=>{delete A_[Aa]}),T_==null||T_.forEach(Aa=>{delete A_[Aa]});const DP=Fe!==void 0?Fe:zt||!o.value&&Ne!=="combobox";let E_;DP&&(E_=h.createVNode(If,{class:Pe(`${Y}-arrow`,{[`${Y}-arrow-loading`]:zt}),customizeIcon:ct,customizeIconProps:{loading:zt,searchValue:w.value,open:T.value,focused:v.value,showSearch:a.value}},null));let RP;const k3=()=>{Vv==null||Vv(),P_([],{type:"clear",values:zv}),R("",!1,!1)};!vt&&_e&&(zv.length||w.value)&&(RP=h.createVNode(If,{class:`${Y}-clear`,onMousedown:k3,customizeIcon:De},{default:()=>[h.createTextVNode("×")]}));const N3=h.createVNode(D3,{ref:p},k(k({},l.customSlots),{option:i.option})),L3=Pe(Y,n.class,{[`${Y}-focused`]:v.value,[`${Y}-multiple`]:o.value,[`${Y}-single`]:!o.value,[`${Y}-allow-clear`]:_e,[`${Y}-show-arrow`]:DP,[`${Y}-disabled`]:vt,[`${Y}-loading`]:zt,[`${Y}-open`]:T.value,[`${Y}-customize-input`]:MP,[`${Y}-show-search`]:a.value}),kP=h.createVNode(KAe,{ref:f,disabled:vt,prefixCls:Y,visible:P.value,popupElement:N3,containerWidth:ue.value,animation:mn,transitionName:pn,dropdownStyle:pr,dropdownClassName:Ni,direction:vl,dropdownMatchSelectWidth:du,dropdownRender:hu,dropdownAlign:Uc,placement:Mt,getPopupContainer:rt,empty:M3,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:IP,onPopupMouseEnter:ee,onPopupFocusin:se,onPopupFocusout:oe},{default:()=>Ah?po(Ah)&&Gn(Ah,{ref:c},!1,!0):h.createVNode(yEe,K(K({},t),{},{domRef:c,prefixCls:Y,inputElement:MP,ref:d,id:le,showSearch:a.value,mode:Ne,activeDescendantId:$_,tagRender:$h,optionLabelRender:x_,values:zv,open:T.value,onToggleOpen:M,activeValue:I3,searchValue:w.value,onSearch:R,onSearchSubmit:L,onRemove:W,tokenWithEnter:I.value}),null)});let M_;return Ah?M_=kP:M_=h.createVNode("div",K(K({},A_),{},{class:L3,ref:u,onMousedown:ie,onKeydown:F,onKeyup:z}),[v.value&&!T.value&&h.createVNode("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${zv.map(Aa=>{let{label:NP,value:Fv}=Aa;return["number","string"].includes(typeof NP)?NP:Fv}).join(", ")}`]),kP,E_,RP]),M_}}}),_O=(t,e)=>{let{height:n,offset:r,prefixCls:i,onInnerResize:o}=t,{slots:a}=e;var s;let l={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:`${n}px`,position:"relative",overflow:"hidden"},u=k(k({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),h.createVNode("div",{style:l},[h.createVNode(vp,{onResize:c=>{let{offsetHeight:f}=c;f&&o&&o()}},{default:()=>[h.createVNode("div",{style:u,class:Pe({[`${i}-holder-inner`]:i})},[(s=a.default)===null||s===void 0?void 0:s.call(a)])]})])};_O.displayName="Filter",_O.inheritAttrs=!1,_O.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const H7=(t,e)=>{let{setRef:n}=t,{slots:r}=e;var i;const o=vr((i=r.default)===null||i===void 0?void 0:i.call(r));return o&&o.length?h.cloneVNode(o[0],{ref:n}):o};H7.props={setRef:{type:Function,default:()=>{}}};const $Ee=20;function G7(t){return"touches"in t?t.touches[0].pageY:t.pageY}const AEe=h.defineComponent({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Xm(),thumbRef:Xm(),visibleTimeout:null,state:h.reactive({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var t,e;(t=this.scrollbarRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onScrollbarTouchStart,Vr?{passive:!1}:!1),(e=this.thumbRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onMouseDown,Vr?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(t){t.preventDefault()},onContainerMouseDown(t){t.stopPropagation(),t.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,Vr?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,Vr?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Vr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Vr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Dt.cancel(this.moveRaf)},onMouseDown(t){const{onStartMove:e}=this.$props;k(this.state,{dragging:!0,pageY:G7(t),startTop:this.getTop()}),e(),this.patchEvents(),t.stopPropagation(),t.preventDefault()},onMouseMove(t){const{dragging:e,pageY:n,startTop:r}=this.state,{onScroll:i}=this.$props;if(Dt.cancel(this.moveRaf),e){const o=G7(t)-n,a=r+o,s=this.getEnableScrollRange(),l=this.getEnableHeightRange(),u=l?a/l:0,c=Math.ceil(u*s);this.moveRaf=Dt(()=>{i(c)})}},onMouseUp(){const{onStopMove:t}=this.$props;this.state.dragging=!1,t(),this.removeEvents()},getSpinHeight(){const{height:t,scrollHeight:e}=this.$props;let n=t/e*100;return n=Math.max(n,$Ee),n=Math.min(n,t/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:t,height:e}=this.$props;return t-e||0},getEnableHeightRange(){const{height:t}=this.$props,e=this.getSpinHeight();return t-e||0},getTop(){const{scrollTop:t}=this.$props,e=this.getEnableScrollRange(),n=this.getEnableHeightRange();return t===0||e===0?0:t/e*n},showScroll(){const{height:t,scrollHeight:e}=this.$props;return e>t}},render(){const{dragging:t,visible:e}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",i=this.getTop()+"px",o=this.showScroll(),a=o&&e;return h.createVNode("div",{ref:this.scrollbarRef,class:Pe(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:o}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:a?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[h.createVNode("div",{ref:this.thumbRef,class:Pe(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:t}),style:{width:"100%",height:r,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function EEe(t,e,n,r){const i=new Map,o=new Map,a=h.ref(Symbol("update"));h.watch(t,()=>{a.value=Symbol("update")});let s;function l(){Dt.cancel(s)}function u(){l(),s=Dt(()=>{i.forEach((f,d)=>{if(f&&f.offsetParent){const{offsetHeight:p}=f;o.get(d)!==p&&(a.value=Symbol("update"),o.set(d,f.offsetHeight))}})})}function c(f,d){const p=e(f);i.get(p),d?(i.set(p,d.$el||d),u()):i.delete(p)}return h.onUnmounted(()=>{l()}),[c,u,o,a]}function MEe(t,e,n,r,i,o,a,s){let l;return u=>{if(u==null){s();return}Dt.cancel(l);const c=e.value,f=r.itemHeight;if(typeof u=="number")a(u);else if(u&&typeof u=="object"){let d;const{align:p}=u;"index"in u?{index:d}=u:d=c.findIndex(m=>i(m)===u.key);const{offset:g=0}=u,v=(m,y)=>{if(m<0||!t.value)return;const b=t.value.clientHeight;let O=!1,w=y;if(b){const S=y||p;let x=0,T=0,$=0;const A=Math.min(c.length,d);for(let I=0;I<=A;I+=1){const R=i(c[I]);T=x;const L=n.get(R);$=T+(L===void 0?f:L),x=$,I===d&&L===void 0&&(O=!0)}const P=t.value.scrollTop;let M=null;switch(S){case"top":M=T-g;break;case"bottom":M=$-b+g;break;default:{const I=P+b;T<P?w="top":$>I&&(w="bottom")}}M!==null&&M!==P&&a(M)}l=Dt(()=>{O&&o(),v(m-1,w)},2)};v(5)}}}const IEe=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),j7=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=o<0&&t.value||o>0&&e.value;return a&&s?(clearTimeout(r),n=!1):(!s||n)&&i(),!n&&s}};function DEe(t,e,n,r){let i=0,o=null,a=null,s=!1;const l=j7(e,n);function u(f){if(!t.value)return;Dt.cancel(o);const{deltaY:d}=f;i+=d,a=d,!l(d)&&(IEe||f.preventDefault(),o=Dt(()=>{r(i*(s?10:1)),i=0}))}function c(f){t.value&&(s=f.detail===a)}return[u,c]}const REe=14/15;function kEe(t,e,n){let r=!1,i=0,o=null,a=null;const s=()=>{o&&(o.removeEventListener("touchmove",l),o.removeEventListener("touchend",u))},l=d=>{if(r){const p=Math.ceil(d.touches[0].pageY);let g=i-p;i=p,n(g)&&d.preventDefault(),clearInterval(a),a=setInterval(()=>{g*=REe,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a)},16)}},u=()=>{r=!1,s()},c=d=>{s(),d.touches.length===1&&!r&&(r=!0,i=Math.ceil(d.touches[0].pageY),o=d.target,o.addEventListener("touchmove",l,{passive:!1}),o.addEventListener("touchend",u))},f=()=>{};h.onMounted(()=>{document.addEventListener("touchmove",f,{passive:!1}),h.watch(t,d=>{e.value.removeEventListener("touchstart",c),s(),clearInterval(a),d&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),h.onBeforeUnmount(()=>{document.removeEventListener("touchmove",f)})}var NEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const LEe=[],BEe={overflowY:"auto",overflowAnchor:"none"};function VEe(t,e,n,r,i,o){let{getKey:a}=o;return t.slice(e,n+1).map((s,l)=>{const u=e+l,c=i(s,u,{}),f=a(s);return h.createVNode(H7,{key:f,setRef:d=>r(s,d)},{default:()=>[c]})})}const zEe=h.defineComponent({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ne.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(t,e){let{expose:n}=e;const r=h.computed(()=>{const{height:W,itemHeight:j,virtual:H}=t;return!!(H!==!1&&W&&j)}),i=h.computed(()=>{const{height:W,itemHeight:j,data:H}=t;return r.value&&H&&j*H.length>W}),o=h.reactive({scrollTop:0,scrollMoving:!1}),a=h.computed(()=>t.data||LEe),s=h.shallowRef([]);h.watch(a,()=>{s.value=h.toRaw(a.value).slice()},{immediate:!0});const l=h.shallowRef(W=>{});h.watch(()=>t.itemKey,W=>{typeof W=="function"?l.value=W:l.value=j=>j==null?void 0:j[W]},{immediate:!0});const u=h.shallowRef(),c=h.shallowRef(),f=h.shallowRef(),d=W=>l.value(W),p={getKey:d};function g(W){let j;typeof W=="function"?j=W(o.scrollTop):j=W;const H=x(j);u.value&&(u.value.scrollTop=H),o.scrollTop=H}const[v,m,y,b]=EEe(s,d),O=h.reactive({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=h.shallowRef(0);h.onMounted(()=>{h.nextTick(()=>{var W;w.value=((W=c.value)===null||W===void 0?void 0:W.offsetHeight)||0})}),h.onUpdated(()=>{h.nextTick(()=>{var W;w.value=((W=c.value)===null||W===void 0?void 0:W.offsetHeight)||0})}),h.watch([r,s],()=>{r.value||k(O,{scrollHeight:void 0,start:0,end:s.value.length-1,offset:void 0})},{immediate:!0}),h.watch([r,s,w,i],()=>{r.value&&!i.value&&k(O,{scrollHeight:w.value,start:0,end:s.value.length-1,offset:void 0}),u.value&&(o.scrollTop=u.value.scrollTop)},{immediate:!0}),h.watch([i,r,()=>o.scrollTop,s,b,()=>t.height,w],()=>{if(!r.value||!i.value)return;let W=0,j,H,Z;const J=s.value.length,se=s.value,oe=o.scrollTop,{itemHeight:de,height:ie}=t,ue=oe+ie;for(let ee=0;ee<J;ee+=1){const X=se[ee],Y=d(X);let le=y.get(Y);le===void 0&&(le=de);const ve=W+le;j===void 0&&ve>=oe&&(j=ee,H=W),Z===void 0&&ve>ue&&(Z=ee),W=ve}j===void 0&&(j=0,H=0,Z=Math.ceil(ie/de)),Z===void 0&&(Z=J-1),Z=Math.min(Z+1,J),k(O,{scrollHeight:W,start:j,end:Z,offset:H})},{immediate:!0});const S=h.computed(()=>O.scrollHeight-t.height);function x(W){let j=W;return Number.isNaN(S.value)||(j=Math.min(j,S.value)),j=Math.max(j,0),j}const T=h.computed(()=>o.scrollTop<=0),$=h.computed(()=>o.scrollTop>=S.value),A=j7(T,$);function P(W){g(W)}function M(W){var j;const{scrollTop:H}=W.currentTarget;H!==o.scrollTop&&g(H),(j=t.onScroll)===null||j===void 0||j.call(t,W)}const[I,R]=DEe(r,T,$,W=>{g(j=>j+W)});kEe(r,u,(W,j)=>A(W,j)?!1:(I({preventDefault(){},deltaY:W}),!0));function L(W){r.value&&W.preventDefault()}const D=()=>{u.value&&(u.value.removeEventListener("wheel",I,Vr?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",R),u.value.removeEventListener("MozMousePixelScroll",L))};h.watchEffect(()=>{h.nextTick(()=>{u.value&&(D(),u.value.addEventListener("wheel",I,Vr?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",R),u.value.addEventListener("MozMousePixelScroll",L))})}),h.onBeforeUnmount(()=>{D()});const B=MEe(u,s,y,t,d,m,g,()=>{var W;(W=f.value)===null||W===void 0||W.delayHidden()});n({scrollTo:B});const F=h.computed(()=>{let W=null;return t.height&&(W=k({[t.fullHeight?"height":"maxHeight"]:t.height+"px"},BEe),r.value&&(W.overflowY="hidden",o.scrollMoving&&(W.pointerEvents="none"))),W});return h.watch([()=>O.start,()=>O.end,s],()=>{if(t.onVisibleChange){const W=s.value.slice(O.start,O.end+1);t.onVisibleChange(W,s.value)}},{flush:"post"}),{state:o,mergedData:s,componentStyle:F,onFallbackScroll:M,onScrollBar:P,componentRef:u,useVirtual:r,calRes:O,collectHeight:m,setInstance:v,sharedConfig:p,scrollBarRef:f,fillerInnerRef:c,delayHideScrollBar:()=>{var W;(W=f.value)===null||W===void 0||W.delayHidden()}}},render(){const t=k(k({},this.$props),this.$attrs),{prefixCls:e="rc-virtual-list",height:n,itemHeight:r,fullHeight:i,data:o,itemKey:a,virtual:s,component:l="div",onScroll:u,children:c=this.$slots.default,style:f,class:d}=t,p=NEe(t,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),g=Pe(e,d),{scrollTop:v}=this.state,{scrollHeight:m,offset:y,start:b,end:O}=this.calRes,{componentStyle:w,onFallbackScroll:S,onScrollBar:x,useVirtual:T,collectHeight:$,sharedConfig:A,setInstance:P,mergedData:M,delayHideScrollBar:I}=this;return h.createVNode("div",K({style:k(k({},f),{position:"relative"}),class:g},p),[h.createVNode(l,{class:`${e}-holder`,style:w,ref:"componentRef",onScroll:S,onMouseenter:I},{default:()=>[h.createVNode(_O,{prefixCls:e,height:m,offset:y,onInnerResize:$,ref:"fillerInnerRef"},{default:()=>VEe(M,b,O,P,c,A)})]}),T&&h.createVNode(AEe,{ref:"scrollBarRef",prefixCls:e,scrollTop:v,height:n,scrollHeight:m,count:M.length,onScroll:x,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function FEe(t,e,n){const r=h.ref(t());return h.watch(e,(i,o)=>{n?n(i,o)&&(r.value=t()):r.value=t()}),r}function WEe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const U7=Symbol("SelectContextKey");function QEe(t){return h.provide(U7,t)}function HEe(){return h.inject(U7,{})}var GEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function Z7(t){return typeof t=="string"||typeof t=="number"}const jEe=h.defineComponent({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(t,e){let{expose:n,slots:r}=e;const i=wEe(),o=HEe(),a=h.computed(()=>`${i.prefixCls}-item`),s=FEe(()=>o.flattenOptions,[()=>i.open,()=>o.flattenOptions],S=>S[0]),l=Xm(),u=S=>{S.preventDefault()},c=S=>{l.current&&l.current.scrollTo(typeof S=="number"?{index:S}:S)},f=function(S){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const T=s.value.length;for(let $=0;$<T;$+=1){const A=(S+$*x+T)%T,{group:P,data:M}=s.value[A];if(!P&&!M.disabled)return A}return-1},d=h.reactive({activeIndex:f(0)}),p=function(S){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.activeIndex=S;const T={source:x?"keyboard":"mouse"},$=s.value[S];if(!$){o.onActiveValue(null,-1,T);return}o.onActiveValue($.value,S,T)};h.watch([()=>s.value.length,()=>i.searchValue],()=>{p(o.defaultActiveFirstOption!==!1?f(0):-1)},{immediate:!0});const g=S=>o.rawValues.has(S)&&i.mode!=="combobox";h.watch([()=>i.open,()=>i.searchValue],()=>{if(!i.multiple&&i.open&&o.rawValues.size===1){const S=Array.from(o.rawValues)[0],x=h.toRaw(s.value).findIndex(T=>{let{data:$}=T;return $[o.fieldNames.value]===S});x!==-1&&(p(x),h.nextTick(()=>{c(x)}))}i.open&&h.nextTick(()=>{var S;(S=l.current)===null||S===void 0||S.scrollTo(void 0)})},{immediate:!0,flush:"post"});const v=S=>{S!==void 0&&o.onSelect(S,{selected:!o.rawValues.has(S)}),i.multiple||i.toggleOpen(!1)},m=S=>typeof S.label=="function"?S.label():S.label;function y(S){const x=s.value[S];if(!x)return null;const T=x.data||{},{value:$}=T,{group:A}=x,P=yO(T,!0),M=m(x);return x?h.createVNode("div",K(K({"aria-label":typeof M=="string"&&!A?M:null},P),{},{key:S,role:A?"presentation":"option",id:`${i.id}_list_${S}`,"aria-selected":g($)}),[$]):null}return n({onKeydown:S=>{const{which:x,ctrlKey:T}=S;switch(x){case Se.N:case Se.P:case Se.UP:case Se.DOWN:{let $=0;if(x===Se.UP?$=-1:x===Se.DOWN?$=1:WEe()&&T&&(x===Se.N?$=1:x===Se.P&&($=-1)),$!==0){const A=f(d.activeIndex+$,$);c(A),p(A,!0)}break}case Se.ENTER:{const $=s.value[d.activeIndex];$&&!$.data.disabled?v($.value):v(void 0),i.open&&S.preventDefault();break}case Se.ESC:i.toggleOpen(!1),i.open&&S.stopPropagation()}},onKeyup:()=>{},scrollTo:S=>{c(S)}}),()=>{const{id:S,notFoundContent:x,onPopupScroll:T}=i,{menuItemSelectedIcon:$,fieldNames:A,virtual:P,listHeight:M,listItemHeight:I}=o,R=r.option,{activeIndex:L}=d,D=Object.keys(A).map(B=>A[B]);return s.value.length===0?h.createVNode("div",{role:"listbox",id:`${S}_list`,class:`${a.value}-empty`,onMousedown:u},[x]):h.createVNode(h.Fragment,null,[h.createVNode("div",{role:"listbox",id:`${S}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(L-1),y(L),y(L+1)]),h.createVNode(zEe,{itemKey:"key",ref:l,data:s.value,height:M,itemHeight:I,fullHeight:!1,onMousedown:u,onScroll:T,virtual:P},{default:(B,F)=>{var z;const{group:W,groupOption:j,data:H,value:Z}=B,{key:J}=H,se=typeof B.label=="function"?B.label():B.label;if(W){const De=(z=H.title)!==null&&z!==void 0?z:Z7(se)&&se;return h.createVNode("div",{class:Pe(a.value,`${a.value}-group`),title:De},[R?R(H):se!==void 0?se:J])}const{disabled:oe,title:de,children:ie,style:ue,class:ee,className:X}=H,Y=GEe(H,["disabled","title","children","style","class","className"]),le=Er(Y,D),ve=g(Z),ye=`${a.value}-option`,Ne=Pe(a.value,ye,ee,X,{[`${ye}-grouped`]:j,[`${ye}-active`]:L===F&&!oe,[`${ye}-disabled`]:oe,[`${ye}-selected`]:ve}),Be=m(B),Me=!$||typeof $=="function"||ve,$e=typeof Be=="number"?Be:Be||Z;let _e=Z7($e)?$e.toString():void 0;return de!==void 0&&(_e=de),h.createVNode("div",K(K({},le),{},{"aria-selected":ve,class:Ne,title:_e,onMousemove:De=>{Y.onMousemove&&Y.onMousemove(De),!(L===F||oe)&&p(F)},onClick:De=>{oe||v(Z),Y.onClick&&Y.onClick(De)},style:ue}),[h.createVNode("div",{class:`${ye}-content`},[R?R(H):$e]),po($)||ve,Me&&h.createVNode(If,{class:`${a.value}-option-state`,customizeIcon:$,customizeIconProps:{isSelected:ve}},{default:()=>[ve?"✓":null]})])}})])}}});var UEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ZEe(t){const e=t,{key:n,children:r}=e,i=e.props,{value:o,disabled:a}=i,s=UEe(i,["value","disabled"]),l=r==null?void 0:r.default;return k({key:n,value:o!==void 0?o:n,children:l,disabled:a||a===""},s)}function jA(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vr(t).map((r,i)=>{var o;if(!po(r)||!r.type)return null;const{type:{isSelectOptGroup:a},key:s,children:l,props:u}=r;if(e||!a)return ZEe(r);const c=l&&l.default?l.default():void 0,f=(u==null?void 0:u.label)||((o=l.label)===null||o===void 0?void 0:o.call(l))||s;return k(k({key:`__RC_SELECT_GRP__${s===null?i:String(s)}__`},u),{label:f,options:jA(c||[])})}).filter(r=>r)}function XEe(t,e,n){const r=h.shallowRef(),i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef([]);return h.watch([t,e],()=>{t.value?a.value=h.toRaw(t.value).slice():a.value=jA(e.value)},{immediate:!0,deep:!0}),h.watchEffect(()=>{const s=a.value,l=new Map,u=new Map,c=n.value;function f(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let g=0;g<d.length;g+=1){const v=d[g];!v[c.options]||p?(l.set(v[c.value],v),u.set(v[c.label],v)):f(v[c.options],!0)}}f(s),r.value=s,i.value=l,o.value=u}),{options:r,valueOptions:i,labelOptions:o}}let X7=0;const YEe=process.env.NODE_ENV!=="test"&&jo();function qEe(){let t;return YEe?(t=X7,X7+=1):t="TEST_OR_SSR",t}function KEe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.ref("");const e=`rc_select_${qEe()}`;return t.value||e}function UA(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}const JEe=typeof window<"u"&&window.document&&window.document.documentElement;process.env.NODE_ENV;function eMe(t){const{mode:e,options:n,children:r,backfill:i,allowClear:o,placeholder:a,getInputElement:s,showSearch:l,onSearch:u,defaultOpen:c,autofocus:f,labelInValue:d,value:p,inputValue:g,optionLabelProp:v}=t,m=GA(e),y=l!==void 0?l:m||e==="combobox",b=n||jA(r);if(Uo(e!=="tags"||b.every(O=>!O.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Uo(e!=="combobox"||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Uo(e==="combobox"||!i,"`backfill` only works with `combobox` mode."),Uo(e==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),UF(e!=="combobox"||!s||!o||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&e!=="combobox"&&e!=="tags"&&Uo(!1,"`onSearch` should work with `showSearch` instead of use alone."),UF(!c||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."),p!=null){const O=UA(p);Uo(!d||O.every(w=>typeof w=="object"&&("key"in w||"value"in w)),"`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"),Uo(!m||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){let O=null;r.some(w=>{var S;if(!po(w)||!w.type)return!1;const{type:x}=w;return x.isSelectOption?!1:x.isSelectOptGroup?!(((S=w.children)===null||S===void 0?void 0:S.default())||[]).every(A=>!po(A)||!w.type||A.type.isSelectOption?!0:(O=A.type,!1)):(O=x,!0)}),O&&Uo(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${O.displayName||O.name||O}\`.`),Uo(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ZA(t,e){return UA(t).join("").toUpperCase().includes(e)}const tMe=(t,e,n,r,i)=>h.computed(()=>{const o=n.value,a=i==null?void 0:i.value,s=r==null?void 0:r.value;if(!o||s===!1)return t.value;const{options:l,label:u,value:c}=e.value,f=[],d=typeof s=="function",p=o.toUpperCase(),g=d?s:(m,y)=>a?ZA(y[a],p):y[l]?ZA(y[u!=="children"?u:"label"],p):ZA(y[c],p),v=d?m=>_A(m):m=>m;return t.value.forEach(m=>{if(m[l]){if(g(o,v(m)))f.push(m);else{const b=m[l].filter(O=>g(o,v(O)));b.length&&f.push(k(k({},m),{[l]:b}))}return}g(o,v(m))&&f.push(m)}),f}),nMe=(t,e)=>{const n=h.shallowRef({values:new Map,options:new Map});return[h.computed(()=>{const{values:o,options:a}=n.value,s=t.value.map(c=>{var f;return c.label===void 0?k(k({},c),{label:(f=o.get(c.value))===null||f===void 0?void 0:f.label}):c}),l=new Map,u=new Map;return s.forEach(c=>{l.set(c.value,c),u.set(c.value,e.value.get(c.value)||a.get(c.value))}),n.value.values=l,n.value.options=u,s}),o=>e.value.get(o)||n.value.options.get(o)]};function Ap(t,e){const{defaultValue:n,value:r=h.ref()}=e||{};let i=typeof t=="function"?t():t;r.value!==void 0&&(i=h.unref(r)),n!==void 0&&(i=typeof n=="function"?n():n);const o=h.ref(i),a=h.ref(i);h.watchEffect(()=>{let l=r.value!==void 0?r.value:o.value;e.postState&&(l=e.postState(l)),a.value=l});function s(l){const u=a.value;o.value=l,h.toRaw(a.value)!==l&&e.onChange&&e.onChange(l,u)}return h.watch(r,()=>{o.value=r.value}),[a,s]}function An(t){const e=typeof t=="function"?t():t,n=h.ref(e);function r(i){n.value=i}return[n,r]}const rMe=["inputValue"];function Y7(){return k(k({},Q7()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ne.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ne.any,defaultValue:ne.any,onChange:Function,children:Array})}function iMe(t){return!t||typeof t!="object"}const oMe=h.defineComponent({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Ar(Y7(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(t,e){let{expose:n,attrs:r,slots:i}=e;const o=KEe(h.toRef(t,"id")),a=h.computed(()=>GA(t.mode)),s=h.computed(()=>!!(!t.options&&t.children)),l=h.computed(()=>t.filterOption===void 0&&t.mode==="combobox"?!1:t.filterOption),u=h.computed(()=>YW(t.fieldNames,s.value)),[c,f]=Ap("",{value:h.computed(()=>t.searchValue!==void 0?t.searchValue:t.inputValue),postState:ee=>ee||""}),d=XEe(h.toRef(t,"options"),h.toRef(t,"children"),u),{valueOptions:p,labelOptions:g,options:v}=d,m=ee=>UA(ee).map(Y=>{var le,ve;let ye,Ne,Be,Me;iMe(Y)?ye=Y:(Be=Y.key,Ne=Y.label,ye=(le=Y.value)!==null&&le!==void 0?le:Be);const $e=p.value.get(ye);return $e&&(Ne===void 0&&(Ne=$e==null?void 0:$e[t.optionLabelProp||u.value.label]),Be===void 0&&(Be=(ve=$e==null?void 0:$e.key)!==null&&ve!==void 0?ve:ye),Me=$e==null?void 0:$e.disabled),{label:Ne,value:ye,key:Be,disabled:Me,option:$e}}),[y,b]=Ap(t.defaultValue,{value:h.toRef(t,"value")}),O=h.computed(()=>{var ee;const X=m(y.value);return t.mode==="combobox"&&!(!((ee=X[0])===null||ee===void 0)&&ee.value)?[]:X}),[w,S]=nMe(O,p),x=h.computed(()=>{if(!t.mode&&w.value.length===1){const ee=w.value[0];if(ee.value===null&&(ee.label===null||ee.label===void 0))return[]}return w.value.map(ee=>{var X;return k(k({},ee),{label:(X=typeof ee.label=="function"?ee.label():ee.label)!==null&&X!==void 0?X:ee.value})})}),T=h.computed(()=>new Set(w.value.map(ee=>ee.value)));h.watchEffect(()=>{var ee;if(t.mode==="combobox"){const X=(ee=w.value[0])===null||ee===void 0?void 0:ee.value;X!=null&&f(String(X))}},{flush:"post"});const $=(ee,X)=>{const Y=X??ee;return{[u.value.value]:ee,[u.value.label]:Y}},A=h.shallowRef();h.watchEffect(()=>{if(t.mode!=="tags"){A.value=v.value;return}const ee=v.value.slice(),X=Y=>p.value.has(Y);[...w.value].sort((Y,le)=>Y.value<le.value?-1:1).forEach(Y=>{const le=Y.value;X(le)||ee.push($(le,Y.label))}),A.value=ee});const P=tMe(A,u,c,l,h.toRef(t,"optionFilterProp")),M=h.computed(()=>t.mode!=="tags"||!c.value||P.value.some(ee=>ee[t.optionFilterProp||"value"]===c.value)?P.value:[$(c.value),...P.value]),I=h.computed(()=>t.filterSort?[...M.value].sort((ee,X)=>t.filterSort(ee,X)):M.value),R=h.computed(()=>X$e(I.value,{fieldNames:u.value,childrenAsData:s.value})),L=ee=>{const X=m(ee);if(b(X),t.onChange&&(X.length!==w.value.length||X.some((Y,le)=>{var ve;return((ve=w.value[le])===null||ve===void 0?void 0:ve.value)!==(Y==null?void 0:Y.value)}))){const Y=t.labelInValue?X.map(ve=>k(k({},ve),{originLabel:ve.label,label:typeof ve.label=="function"?ve.label():ve.label})):X.map(ve=>ve.value),le=X.map(ve=>_A(S(ve.value)));t.onChange(a.value?Y:Y[0],a.value?le:le[0])}},[D,B]=An(null),[F,z]=An(0),W=h.computed(()=>t.defaultActiveFirstOption!==void 0?t.defaultActiveFirstOption:t.mode!=="combobox"),j=function(ee,X){let{source:Y="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};z(X),t.backfill&&t.mode==="combobox"&&ee!==null&&Y==="keyboard"&&B(String(ee))},H=(ee,X)=>{const Y=()=>{var le;const ve=S(ee),ye=ve==null?void 0:ve[u.value.label];return[t.labelInValue?{label:typeof ye=="function"?ye():ye,originLabel:ye,value:ee,key:(le=ve==null?void 0:ve.key)!==null&&le!==void 0?le:ee}:ee,_A(ve)]};if(X&&t.onSelect){const[le,ve]=Y();t.onSelect(le,ve)}else if(!X&&t.onDeselect){const[le,ve]=Y();t.onDeselect(le,ve)}},Z=(ee,X)=>{let Y;const le=a.value?X.selected:!0;le?Y=a.value?[...w.value,ee]:[ee]:Y=w.value.filter(ve=>ve.value!==ee),L(Y),H(ee,le),t.mode==="combobox"?B(""):(!a.value||t.autoClearSearchValue)&&(f(""),B(""))},J=(ee,X)=>{L(ee),(X.type==="remove"||X.type==="clear")&&X.values.forEach(Y=>{H(Y.value,!1)})},se=(ee,X)=>{var Y;if(f(ee),B(null),X.source==="submit"){const le=(ee||"").trim();if(le){const ve=Array.from(new Set([...T.value,le]));L(ve),H(le,!0),f("")}return}X.source!=="blur"&&(t.mode==="combobox"&&L(ee),(Y=t.onSearch)===null||Y===void 0||Y.call(t,ee))},oe=ee=>{let X=ee;t.mode!=="tags"&&(X=ee.map(le=>{const ve=g.value.get(le);return ve==null?void 0:ve.value}).filter(le=>le!==void 0));const Y=Array.from(new Set([...T.value,...X]));L(Y),Y.forEach(le=>{H(le,!0)})},de=h.computed(()=>t.virtual!==!1&&t.dropdownMatchSelectWidth!==!1);QEe(W7(k(k({},d),{flattenOptions:R,onActiveValue:j,defaultActiveFirstOption:W,onSelect:Z,menuItemSelectedIcon:h.toRef(t,"menuItemSelectedIcon"),rawValues:T,fieldNames:u,virtual:de,listHeight:h.toRef(t,"listHeight"),listItemHeight:h.toRef(t,"listItemHeight"),childrenAsData:s}))),process.env.NODE_ENV!=="production"&&h.watchEffect(()=>{eMe(t)},{flush:"post"});const ie=h.ref();n({focus(){var ee;(ee=ie.value)===null||ee===void 0||ee.focus()},blur(){var ee;(ee=ie.value)===null||ee===void 0||ee.blur()},scrollTo(ee){var X;(X=ie.value)===null||X===void 0||X.scrollTo(ee)}});const ue=h.computed(()=>Er(t,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>h.createVNode(PEe,K(K(K({},ue.value),r),{},{id:o,prefixCls:t.prefixCls,ref:ie,omitDomProps:rMe,mode:t.mode,displayValues:x.value,onDisplayValuesChange:J,searchValue:c.value,onSearch:se,onSearchSplit:oe,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,OptionList:jEe,emptyOptions:!R.value.length,activeValue:D.value,activeDescendantId:`${o}_list_${F.value}`}),i)}}),XA=()=>null;XA.isSelectOption=!0,XA.displayName="ASelectOption";const YA=()=>null;YA.isSelectOptGroup=!0,YA.displayName="ASelectOptGroup";var aMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},sMe=Symbol("iconContext"),q7=function(){return h.inject(sMe,{prefixCls:h.ref("anticon"),rootClassName:h.ref(""),csp:h.ref()})};function qA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function lMe(t,e){return t&&t.contains?t.contains(e):!1}var K7="data-vc-order",uMe="vc-icon-key",KA=new Map;function J7(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):uMe}function JA(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function cMe(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function eQ(t){return Array.from((KA.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function tQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!qA())return null;var n=e.csp,r=e.prepend,i=document.createElement("style");i.setAttribute(K7,cMe(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=t;var o=JA(e),a=o.firstChild;if(r){if(r==="queue"){var s=eQ(o).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(K7))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function fMe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=JA(e);return eQ(n).find(function(r){return r.getAttribute(J7(e))===t})}function dMe(t,e){var n=KA.get(t);if(!n||!lMe(document,n)){var r=tQ("",e),i=r.parentNode;KA.set(t,i),t.removeChild(r)}}function hMe(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=JA(n);dMe(r,n);var i=fMe(e,n);if(i)return n.csp&&n.csp.nonce&&i.nonce!==n.csp.nonce&&(i.nonce=n.csp.nonce),i.innerHTML!==t&&(i.innerHTML=t),i;var o=tQ(t,n);return o.setAttribute(J7(n),e),o}function nQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){pMe(t,i,n[i])})}return t}function pMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gMe(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(e))}function vMe(t,e){gMe(t,"[@ant-design/icons-vue] ".concat(e))}function rQ(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function eE(t,e,n){return n?h.h(t.tag,nQ({key:e},n,t.attrs),(t.children||[]).map(function(r,i){return eE(r,"".concat(e,"-").concat(t.tag,"-").concat(i))})):h.h(t.tag,nQ({key:e},t.attrs),(t.children||[]).map(function(r,i){return eE(r,"".concat(e,"-").concat(t.tag,"-").concat(i))}))}function iQ(t){return Pf(t)[0]}function oQ(t){return t?Array.isArray(t)?t:[t]:[]}var mMe=`
  97. .anticon {
  98. display: inline-block;
  99. color: inherit;
  100. font-style: normal;
  101. line-height: 0;
  102. text-align: center;
  103. text-transform: none;
  104. vertical-align: -0.125em;
  105. text-rendering: optimizeLegibility;
  106. -webkit-font-smoothing: antialiased;
  107. -moz-osx-font-smoothing: grayscale;
  108. }
  109. .anticon > * {
  110. line-height: 1;
  111. }
  112. .anticon svg {
  113. display: inline-block;
  114. }
  115. .anticon::before {
  116. display: none;
  117. }
  118. .anticon .anticon-icon {
  119. display: block;
  120. }
  121. .anticon[tabindex] {
  122. cursor: pointer;
  123. }
  124. .anticon-spin::before,
  125. .anticon-spin {
  126. display: inline-block;
  127. -webkit-animation: loadingCircle 1s infinite linear;
  128. animation: loadingCircle 1s infinite linear;
  129. }
  130. @-webkit-keyframes loadingCircle {
  131. 100% {
  132. -webkit-transform: rotate(360deg);
  133. transform: rotate(360deg);
  134. }
  135. }
  136. @keyframes loadingCircle {
  137. 100% {
  138. -webkit-transform: rotate(360deg);
  139. transform: rotate(360deg);
  140. }
  141. }
  142. `;function aQ(t){return t&&t.getRootNode&&t.getRootNode()}function yMe(t){return qA()?aQ(t)instanceof ShadowRoot:!1}function bMe(t){return yMe(t)?aQ(t):null}var _Me=function(){var e=q7(),n=e.prefixCls,r=e.csp,i=h.getCurrentInstance(),o=mMe;n&&(o=o.replace(/anticon/g,n.value)),h.nextTick(function(){if(qA()){var a=i.vnode.el,s=bMe(a);hMe(o,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},OMe=["icon","primaryColor","secondaryColor"];function wMe(t,e){if(t==null)return{};var n=SMe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function SMe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function OO(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){xMe(t,i,n[i])})}return t}function xMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ym=h.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function CMe(t){var e=t.primaryColor,n=t.secondaryColor;Ym.primaryColor=e,Ym.secondaryColor=n||iQ(e),Ym.calculated=!!n}function TMe(){return OO({},Ym)}var ku=function(e,n){var r=OO({},e,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=wMe(r,OMe),l=Ym;if(o&&(l={primaryColor:o,secondaryColor:a||iQ(o)}),vMe(rQ(i),"icon should be icon definiton, but got ".concat(i)),!rQ(i))return null;var u=i;return u&&typeof u.icon=="function"&&(u=OO({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),eE(u.icon,"svg-".concat(u.name),OO({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};ku.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ku.inheritAttrs=!1,ku.displayName="IconBase",ku.getTwoToneColors=TMe,ku.setTwoToneColors=CMe;function PMe(t,e){return MMe(t)||EMe(t,e)||AMe(t,e)||$Me()}function $Me(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  143. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AMe(t,e){if(t){if(typeof t=="string")return sQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sQ(t,e)}}function sQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function EMe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function MMe(t){if(Array.isArray(t))return t}function lQ(t){var e=oQ(t),n=PMe(e,2),r=n[0],i=n[1];return ku.setTwoToneColors({primaryColor:r,secondaryColor:i})}function IMe(){var t=ku.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var DMe=h.defineComponent({name:"InsertStyles",setup:function(){return _Me(),function(){return null}}}),RMe=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function kMe(t,e){return VMe(t)||BMe(t,e)||LMe(t,e)||NMe()}function NMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  144. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LMe(t,e){if(t){if(typeof t=="string")return uQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uQ(t,e)}}function uQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function BMe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function VMe(t){if(Array.isArray(t))return t}function cQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){qm(t,i,n[i])})}return t}function qm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zMe(t,e){if(t==null)return{};var n=FMe(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FMe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}lQ(K2e.primary);var mt=function(e,n){var r,i=cQ({},e,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,f=i.onClick,d=zMe(i,RMe),p=q7(),g=p.prefixCls,v=p.rootClassName,m=(r={},qm(r,v.value,!!v.value),qm(r,g.value,!0),qm(r,"".concat(g.value,"-").concat(a.name),!!a.name),qm(r,"".concat(g.value,"-spin"),!!s||a.name==="loading"),r),y=u;y===void 0&&f&&(y=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,O=oQ(c),w=kMe(O,2),S=w[0],x=w[1];return h.createVNode("span",cQ({role:"img","aria-label":a.name},d,{onClick:f,class:[m,o],tabindex:y}),[h.createVNode(ku,{icon:a,primaryColor:S,secondaryColor:x,style:b},null),h.createVNode(DMe,null,null)])};mt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},mt.displayName="AntdIcon",mt.inheritAttrs=!1,mt.getTwoToneColor=IMe,mt.setTwoToneColor=lQ;function fQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){WMe(t,i,n[i])})}return t}function WMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wO=function(e,n){var r=fQ({},e,n.attrs);return h.createVNode(mt,fQ({},r,{icon:aMe}),null)};wO.displayName="DownOutlined",wO.inheritAttrs=!1;var QMe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function dQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){HMe(t,i,n[i])})}return t}function HMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Es=function(e,n){var r=dQ({},e,n.attrs);return h.createVNode(mt,dQ({},r,{icon:QMe}),null)};Es.displayName="LoadingOutlined",Es.inheritAttrs=!1;var GMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function hQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){jMe(t,i,n[i])})}return t}function jMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tE=function(e,n){var r=hQ({},e,n.attrs);return h.createVNode(mt,hQ({},r,{icon:GMe}),null)};tE.displayName="CheckOutlined",tE.inheritAttrs=!1;var UMe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function pQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ZMe(t,i,n[i])})}return t}function ZMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Il=function(e,n){var r=pQ({},e,n.attrs);return h.createVNode(mt,pQ({},r,{icon:UMe}),null)};Il.displayName="CloseOutlined",Il.inheritAttrs=!1;var XMe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function gQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){YMe(t,i,n[i])})}return t}function YMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xo=function(e,n){var r=gQ({},e,n.attrs);return h.createVNode(mt,gQ({},r,{icon:XMe}),null)};Xo.displayName="CloseCircleFilled",Xo.inheritAttrs=!1;var qMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function vQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){KMe(t,i,n[i])})}return t}function KMe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var SO=function(e,n){var r=vQ({},e,n.attrs);return h.createVNode(mt,vQ({},r,{icon:qMe}),null)};SO.displayName="SearchOutlined",SO.inheritAttrs=!1;function JMe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:i,hasFeedback:o,feedbackIcon:a,showArrow:s}=t,l=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),u=t.clearIcon||e.clearIcon&&e.clearIcon(),c=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),f=t.removeIcon||e.removeIcon&&e.removeIcon(),d=u??h.createVNode(Xo,null,null),p=y=>h.createVNode(h.Fragment,null,[s!==!1&&y,o&&a]);let g=null;if(l!==void 0)g=p(l);else if(n)g=p(h.createVNode(Es,{spin:!0},null));else{const y=`${i}-suffix`;g=b=>{let{open:O,showSearch:w}=b;return p(O&&w?h.createVNode(SO,{class:y},null):h.createVNode(wO,{class:y},null))}}let v=null;c!==void 0?v=c:r?v=h.createVNode(tE,null,null):v=null;let m=null;return f!==void 0?m=f:m=h.createVNode(Il,null,null),{clearIcon:d,suffixIcon:g,itemIcon:v,removeIcon:m}}function nE(t){const e=Symbol("contextKey");return{useProvide:(i,o)=>{const a=h.reactive({});return h.provide(e,a),h.watchEffect(()=>{k(a,i,o||{})}),a},useInject:()=>h.inject(e,t)||{}}}const xO=Symbol("ContextProps"),CO=Symbol("InternalContextProps"),eIe=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.computed(()=>!0);const n=h.ref(new Map),r=(a,s)=>{n.value.set(a,s),n.value=new Map(n.value)},i=a=>{n.value.delete(a),n.value=new Map(n.value)},o=h.getCurrentInstance();h.watch([e,n],()=>{if(process.env.NODE_ENV!=="production"&&e.value&&n.value.size>1){mo(!1,"Form.Item",`FormItem can only collect one field item, you haved set ${[...n.value.values()].map(s=>`\`${s.name}\``).join(", ")} ${n.value.size} field items.
  145. You can set not need to be collected fields into \`a-form-item-rest\``);let a=o;for(;a.parent;)console.warn("at",a.type),a=a.parent}}),h.provide(xO,t),h.provide(CO,{addFormItemField:r,removeFormItemField:i})},rE={id:h.computed(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},iE={addFormItemField:()=>{},removeFormItemField:()=>{}},Ms=()=>{const t=h.inject(CO,iE),e=Symbol("FormItemFieldKey"),n=h.getCurrentInstance();return t.addFormItemField(e,n.type),h.onBeforeUnmount(()=>{t.removeFormItemField(e)}),h.provide(CO,iE),h.provide(xO,rE),h.inject(xO,rE)},Km=h.defineComponent({compatConfig:{MODE:3},name:"AFormItemRest",setup(t,e){let{slots:n}=e;return h.provide(CO,iE),h.provide(xO,rE),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Za=nE({}),TO=h.defineComponent({name:"NoFormStatus",setup(t,e){let{slots:n}=e;return Za.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Dl(t,e,n){return Pe({[`${t}-status-success`]:e==="success",[`${t}-status-warning`]:e==="warning",[`${t}-status-error`]:e==="error",[`${t}-status-validating`]:e==="validating",[`${t}-has-feedback`]:n})}const Jm=(t,e)=>e||t,tIe=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},nIe=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${e}-item`]:{"&:empty":{display:"none"}}}}},rIe=Fn("Space",t=>[nIe(t),tIe(t)]),iIe=()=>({compactSize:String,compactDirection:ne.oneOf(Du("horizontal","vertical")).def("horizontal"),isFirstItem:lt(),isLastItem:lt()}),PO=nE(null),$O=(t,e)=>{const n=PO.useInject(),r=h.computed(()=>{if(!n||vV(n))return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Pe({[`${t.value}-compact${s}item`]:!0,[`${t.value}-compact${s}first-item`]:o,[`${t.value}-compact${s}last-item`]:a,[`${t.value}-compact${s}item-rtl`]:e.value==="rtl"})});return{compactSize:h.computed(()=>n==null?void 0:n.compactSize),compactDirection:h.computed(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},AO=h.defineComponent({name:"NoCompactStyle",setup(t,e){let{slots:n}=e;return PO.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),oIe=()=>({prefixCls:String,size:{type:String},direction:ne.oneOf(Du("horizontal","vertical")).def("horizontal"),align:ne.oneOf(Du("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),aIe=h.defineComponent({name:"CompactItem",props:iIe(),setup(t,e){let{slots:n}=e;return PO.useProvide(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});h.defineComponent({name:"ASpaceCompact",inheritAttrs:!1,props:oIe(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,direction:o}=Qt("space-compact",t),a=PO.useInject(),[s,l]=rIe(i),u=h.computed(()=>Pe(i.value,l.value,{[`${i.value}-rtl`]:o.value==="rtl",[`${i.value}-block`]:t.block,[`${i.value}-vertical`]:t.direction==="vertical"}));return()=>{var c;const f=vr(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return f.length===0?null:s(h.createVNode("div",K(K({},n),{},{class:[u.value,n.class]}),[f.map((d,p)=>{var g;const v=d&&d.key||`${i.value}-item-${p}`,m=!a||vV(a);return h.createVNode(aIe,{key:v,compactSize:(g=t.size)!==null&&g!==void 0?g:"middle",compactDirection:t.direction,isFirstItem:p===0&&(m||(a==null?void 0:a.isFirstItem)),isLastItem:p===f.length-1&&(m||(a==null?void 0:a.isLastItem))},{default:()=>[d]})})]))}}});const sIe=t=>({animationDuration:t,animationFillMode:"both"}),lIe=t=>({animationDuration:t,animationFillMode:"both"}),EO=function(t,e,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
  146. ${o}${t}-enter,
  147. ${o}${t}-appear
  148. `]:k(k({},sIe(r)),{animationPlayState:"paused"}),[`${o}${t}-leave`]:k(k({},lIe(r)),{animationPlayState:"paused"}),[`
  149. ${o}${t}-enter${t}-enter-active,
  150. ${o}${t}-appear${t}-appear-active
  151. `]:{animationName:e,animationPlayState:"running"},[`${o}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},uIe=new At("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cIe=new At("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mQ=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=t,r=`${n}-fade`,i=e?"&":"";return[EO(r,uIe,cIe,t.motionDurationMid,e),{[`
  152. ${i}${r}-enter,
  153. ${i}${r}-appear
  154. `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},fIe=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dIe=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),hIe=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pIe=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gIe=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vIe=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mIe=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yIe=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),bIe={"move-up":{inKeyframes:mIe,outKeyframes:yIe},"move-down":{inKeyframes:fIe,outKeyframes:dIe},"move-left":{inKeyframes:hIe,outKeyframes:pIe},"move-right":{inKeyframes:gIe,outKeyframes:vIe}},yQ=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=bIe[e];return[EO(r,i,o,t.motionDurationMid),{[`
  155. ${r}-enter,
  156. ${r}-appear
  157. `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},bQ=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_Q=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),OQ=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wQ=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_Ie=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),OIe=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wIe=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SIe=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),xIe={"slide-up":{inKeyframes:bQ,outKeyframes:_Q},"slide-down":{inKeyframes:OQ,outKeyframes:wQ},"slide-left":{inKeyframes:_Ie,outKeyframes:OIe},"slide-right":{inKeyframes:wIe,outKeyframes:SIe}},Ep=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=xIe[e];return[EO(r,i,o,t.motionDurationMid),{[`
  158. ${r}-enter,
  159. ${r}-appear
  160. `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},oE=new At("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CIe=new At("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),SQ=new At("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xQ=new At("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),TIe=new At("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PIe=new At("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),$Ie=new At("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),AIe=new At("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),EIe=new At("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),MIe=new At("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),IIe=new At("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),DIe=new At("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),RIe={zoom:{inKeyframes:oE,outKeyframes:CIe},"zoom-big":{inKeyframes:SQ,outKeyframes:xQ},"zoom-big-fast":{inKeyframes:SQ,outKeyframes:xQ},"zoom-left":{inKeyframes:$Ie,outKeyframes:AIe},"zoom-right":{inKeyframes:EIe,outKeyframes:MIe},"zoom-up":{inKeyframes:TIe,outKeyframes:PIe},"zoom-down":{inKeyframes:IIe,outKeyframes:DIe}},MO=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=RIe[e];return[EO(r,i,o,e==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[`
  161. ${r}-enter,
  162. ${r}-appear
  163. `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},aE=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
  164. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
  165. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}),CQ=t=>{const{controlPaddingHorizontal:e}=t;return{position:"relative",display:"block",minHeight:t.controlHeight,padding:`${(t.controlHeight-t.fontSize*t.lineHeight)/2}px ${e}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,boxSizing:"border-box"}},kIe=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`;return[{[`${n}-dropdown`]:k(k({},bn(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`
  166. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
  167. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
  168. `]:{animationName:bQ},[`
  169. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft,
  170. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft
  171. `]:{animationName:OQ},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:_Q},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:wQ},"&-hidden":{display:"none"},"&-empty":{color:t.colorTextDisabled},[`${r}-empty`]:k(k({},CQ(t)),{color:t.colorTextDisabled}),[`${r}`]:k(k({},CQ(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":k({flex:"auto"},wp),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:t.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:t.colorText,fontWeight:t.fontWeightStrong,backgroundColor:t.controlItemBgActive,[`${r}-option-state`]:{color:t.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:t.colorBgContainerDisabled},color:t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:t.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Ep(t,"slide-up"),Ep(t,"slide-down"),yQ(t,"move-up"),yQ(t,"move-down")]},Mp=2;function TQ(t){let{controlHeightSM:e,controlHeight:n,lineWidth:r}=t;const i=(n-e)/2-r,o=Math.ceil(i/2);return[i,o]}function sE(t,e){const{componentCls:n,iconCls:r}=t,i=`${n}-selection-overflow`,o=t.controlHeightSM,[a]=TQ(t),s=e?`${n}-${e}`:"";return{[`${n}-multiple${s}`]:{fontSize:t.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-Mp}px ${Mp*2}px`,borderRadius:t.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:t.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Mp}px 0`,lineHeight:`${o}px`,content:'"\\a0"'}},[`
  172. &${n}-show-arrow ${n}-selector,
  173. &${n}-allow-clear ${n}-selector
  174. `]:{paddingInlineEnd:t.fontSizeIcon+t.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:Mp,marginBottom:Mp,lineHeight:`${o-t.lineWidth*2}px`,background:t.colorFillSecondary,border:`${t.lineWidth}px solid ${t.colorSplit}`,borderRadius:t.borderRadiusSM,cursor:"default",transition:`font-size ${t.motionDurationSlow}, line-height ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Mp*2,paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS/2,[`${n}-disabled&`]:{color:t.colorTextDisabled,borderColor:t.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":k(k({},Sp()),{display:"inline-block",color:t.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:t.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:t.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:o,fontFamily:t.fontFamily,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:t.inputPaddingHorizontalBase,insetInlineEnd:t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`}}}}function NIe(t){const{componentCls:e}=t,n=Xt(t,{controlHeight:t.controlHeightSM,controlHeightSM:t.controlHeightXS,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),[,r]=TQ(t);return[sE(t),sE(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInlineStart:t.controlPaddingHorizontalSM-t.lineWidth,insetInlineEnd:"auto"},[`${e}-selection-search`]:{marginInlineStart:r}}},sE(Xt(t,{fontSize:t.fontSizeLG,controlHeight:t.controlHeightLG,controlHeightSM:t.controlHeight,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius}),"lg")]}function lE(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=t,o=t.controlHeight-t.lineWidth*2,a=Math.ceil(t.fontSize*1.25),s=e?`${n}-${e}`:"";return{[`${n}-single${s}`]:{fontSize:t.fontSize,[`${n}-selector`]:k(k({},bn(t)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
  175. ${n}-selection-item,
  176. ${n}-selection-placeholder
  177. `]:{padding:0,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${o}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
  178. &${n}-show-arrow ${n}-selection-item,
  179. &${n}-show-arrow ${n}-selection-placeholder
  180. `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:t.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:t.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:`${o}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function LIe(t){const{componentCls:e}=t,n=t.controlPaddingHorizontalSM-t.lineWidth;return[lE(t),lE(Xt(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${e}-selector`]:{padding:`0 ${n}px`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:n+t.fontSize*1.5},[`
  181. &${e}-show-arrow ${e}-selection-item,
  182. &${e}-show-arrow ${e}-selection-placeholder
  183. `]:{paddingInlineEnd:t.fontSize*1.5}}}},lE(Xt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}function BIe(t,e,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":k(k({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function VIe(t,e,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function IO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:k(k({},BIe(t,r,e)),VIe(n,r,e))}}const zIe=t=>{const{componentCls:e}=t;return{position:"relative",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${e}-disabled&`]:{color:t.colorTextDisabled,background:t.colorBgContainerDisabled,cursor:"not-allowed",[`${e}-multiple&`]:{background:t.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},uE=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:i,outlineColor:o,antCls:a}=e,s=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[t]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:k(k({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${o}`,borderInlineEndWidth:`${e.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i,borderInlineEndWidth:`${e.controlLineWidth}px !important`}})}}},FIe=t=>{const{componentCls:e}=t;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},WIe=t=>{const{componentCls:e,inputPaddingHorizontalBase:n,iconCls:r}=t;return{[e]:k(k({},bn(t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${e}-customize-input) ${e}-selector`]:k(k({},zIe(t)),FIe(t)),[`${e}-selection-item`]:k({flex:1,fontWeight:"normal"},wp),[`${e}-selection-placeholder`]:k(k({},wp),{flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}),[`${e}-arrow`]:k(k({},Sp()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${t.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${e}-suffix)`]:{pointerEvents:"auto"}},[`${e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:t.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:t.colorTextTertiary}},"&:hover":{[`${e}-clear`]:{opacity:1}}}),[`${e}-has-feedback`]:{[`${e}-clear`]:{insetInlineEnd:n+t.fontSize+t.paddingXXS}}}},QIe=t=>{const{componentCls:e}=t;return[{[e]:{[`&-borderless ${e}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${e}-in-form-item`]:{width:"100%"}}},WIe(t),LIe(t),NIe(t),kIe(t),{[`${e}-rtl`]:{direction:"rtl"}},uE(e,Xt(t,{borderHoverColor:t.colorPrimaryHover,outlineColor:t.controlOutline})),uE(`${e}-status-error`,Xt(t,{borderHoverColor:t.colorErrorHover,outlineColor:t.colorErrorOutline}),!0),uE(`${e}-status-warning`,Xt(t,{borderHoverColor:t.colorWarningHover,outlineColor:t.colorWarningOutline}),!0),IO(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},HIe=Fn("Select",(t,e)=>{let{rootPrefixCls:n}=e;const r=Xt(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.paddingSM-1});return[QIe(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50})),GIe=()=>k(k({},Er(Y7(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:kn([Array,Object,String,Number]),defaultValue:kn([Array,Object,String,Number]),notFoundContent:ne.any,suffixIcon:ne.any,itemIcon:ne.any,size:$n(),mode:$n(),bordered:lt(!0),transitionName:String,choiceTransitionName:$n(""),popupClassName:String,dropdownClassName:String,placement:$n(),status:$n(),"onUpdate:value":ut()}),PQ="SECRET_COMBOBOX_MODE_DO_NOT_USE",Hi=h.defineComponent({compatConfig:{MODE:3},name:"ASelect",Option:XA,OptGroup:YA,inheritAttrs:!1,props:Ar(GIe(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:PQ,slots:Object,setup(t,e){let{attrs:n,emit:r,slots:i,expose:o}=e;const a=h.ref(),s=Ms(),l=Za.useInject(),u=h.computed(()=>Jm(l.status,t.status)),c=()=>{var Z;(Z=a.value)===null||Z===void 0||Z.focus()},f=()=>{var Z;(Z=a.value)===null||Z===void 0||Z.blur()},d=Z=>{var J;(J=a.value)===null||J===void 0||J.scrollTo(Z)},p=h.computed(()=>{const{mode:Z}=t;if(Z!=="combobox")return Z===PQ?"combobox":Z});process.env.NODE_ENV!=="production"&&mo(!t.dropdownClassName,"Select","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const{prefixCls:g,direction:v,configProvider:m,renderEmpty:y,size:b,getPrefixCls:O,getPopupContainer:w,disabled:S,select:x}=Qt("select",t),{compactSize:T,compactItemClassnames:$}=$O(g,v),A=h.computed(()=>T.value||b.value),P=Cs(),M=h.computed(()=>{var Z;return(Z=S.value)!==null&&Z!==void 0?Z:P.value}),[I,R]=HIe(g),L=h.computed(()=>O()),D=h.computed(()=>t.placement!==void 0?t.placement:v.value==="rtl"?"bottomRight":"bottomLeft"),B=h.computed(()=>As(L.value,VAe(D.value),t.transitionName)),F=h.computed(()=>Pe({[`${g.value}-lg`]:A.value==="large",[`${g.value}-sm`]:A.value==="small",[`${g.value}-rtl`]:v.value==="rtl",[`${g.value}-borderless`]:!t.bordered,[`${g.value}-in-form-item`]:l.isFormItemInput},Dl(g.value,u.value,l.hasFeedback),$.value,R.value)),z=function(){for(var Z=arguments.length,J=new Array(Z),se=0;se<Z;se++)J[se]=arguments[se];r("update:value",J[0]),r("change",...J),s.onFieldChange()},W=Z=>{r("blur",Z),s.onFieldBlur()};o({blur:f,focus:c,scrollTo:d});const j=h.computed(()=>p.value==="multiple"||p.value==="tags"),H=h.computed(()=>t.showArrow!==void 0?t.showArrow:t.loading||!(j.value||p.value==="combobox"));return()=>{var Z,J,se,oe;const{notFoundContent:de,listHeight:ie=256,listItemHeight:ue=24,popupClassName:ee,dropdownClassName:X,virtual:Y,dropdownMatchSelectWidth:le,id:ve=s.id.value,placeholder:ye=(Z=i.placeholder)===null||Z===void 0?void 0:Z.call(i),showArrow:Ne}=t,{hasFeedback:Be,feedbackIcon:Me}=l;let $e;de!==void 0?$e=de:i.notFoundContent?$e=i.notFoundContent():p.value==="combobox"?$e=null:$e=(y==null?void 0:y("Select"))||h.createVNode(mA,{componentName:"Select"},null);const{suffixIcon:_e,itemIcon:De,removeIcon:Fe,clearIcon:ct}=JMe(k(k({},t),{multiple:j.value,prefixCls:g.value,hasFeedback:Be,feedbackIcon:Me,showArrow:H.value}),i),vt=Er(t,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),zt=Pe(ee||X,{[`${g.value}-dropdown-${v.value}`]:v.value==="rtl"},R.value);return I(h.createVNode(oMe,K(K(K({ref:a,virtual:Y,dropdownMatchSelectWidth:le},vt),n),{},{showSearch:(J=t.showSearch)!==null&&J!==void 0?J:(se=x==null?void 0:x.value)===null||se===void 0?void 0:se.showSearch,placeholder:ye,listHeight:ie,listItemHeight:ue,mode:p.value,prefixCls:g.value,direction:v.value,inputIcon:_e,menuItemSelectedIcon:De,removeIcon:Fe,clearIcon:ct,notFoundContent:$e,class:[F.value,n.class],getPopupContainer:w==null?void 0:w.value,dropdownClassName:zt,onChange:z,onBlur:W,id:ve,dropdownRender:vt.dropdownRender||i.dropdownRender,transitionName:B.value,children:(oe=i.default)===null||oe===void 0?void 0:oe.call(i),tagRender:t.tagRender||i.tagRender,optionLabelRender:i.optionLabel,maxTagPlaceholder:t.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:Be||Ne,disabled:M.value}),{option:i.option}))}}});Hi.install=function(t){return t.component(Hi.name,Hi),t.component(Hi.Option.displayName,Hi.Option),t.component(Hi.OptGroup.displayName,Hi.OptGroup),t};const Ip=Hi.Option;Hi.OptGroup;var jIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function $Q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){UIe(t,i,n[i])})}return t}function UIe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cE=function(e,n){var r=$Q({},e,n.attrs);return h.createVNode(mt,$Q({},r,{icon:jIe}),null)};cE.displayName="CheckCircleOutlined",cE.inheritAttrs=!1;var ZIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function AQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){XIe(t,i,n[i])})}return t}function XIe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fE=function(e,n){var r=AQ({},e,n.attrs);return h.createVNode(mt,AQ({},r,{icon:ZIe}),null)};fE.displayName="ExclamationCircleOutlined",fE.inheritAttrs=!1;var YIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function EQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){qIe(t,i,n[i])})}return t}function qIe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var DO=function(e,n){var r=EQ({},e,n.attrs);return h.createVNode(mt,EQ({},r,{icon:YIe}),null)};DO.displayName="InfoCircleOutlined",DO.inheritAttrs=!1;var KIe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function MQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){JIe(t,i,n[i])})}return t}function JIe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dE=function(e,n){var r=MQ({},e,n.attrs);return h.createVNode(mt,MQ({},r,{icon:KIe}),null)};dE.displayName="CloseCircleOutlined",dE.inheritAttrs=!1;var eDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function IQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){tDe(t,i,n[i])})}return t}function tDe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nu=function(e,n){var r=IQ({},e,n.attrs);return h.createVNode(mt,IQ({},r,{icon:eDe}),null)};Nu.displayName="CheckCircleFilled",Nu.inheritAttrs=!1;var nDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function DQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rDe(t,i,n[i])})}return t}function rDe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Lu=function(e,n){var r=DQ({},e,n.attrs);return h.createVNode(mt,DQ({},r,{icon:nDe}),null)};Lu.displayName="ExclamationCircleFilled",Lu.inheritAttrs=!1;var iDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function RQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){oDe(t,i,n[i])})}return t}function oDe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Df=function(e,n){var r=RQ({},e,n.attrs);return h.createVNode(mt,RQ({},r,{icon:iDe}),null)};Df.displayName="InfoCircleFilled",Df.inheritAttrs=!1;const RO=["xxxl","xxl","xl","lg","md","sm","xs"],aDe=t=>({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`,xxxl:`{min-width: ${t.screenXXXL}px}`});function sDe(){const[,t]=xp();return h.computed(()=>{const e=aDe(t.value),n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(e).forEach(o=>{const a=e[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(e).forEach(o=>{const a=e[o],s=u=>{let{matches:c}=u;this.dispatch(k(k({},i),{[o]:c}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:e}})}const Yo={adjustX:1,adjustY:1},qo=[0,0],kQ={left:{points:["cr","cl"],overflow:Yo,offset:[-4,0],targetOffset:qo},right:{points:["cl","cr"],overflow:Yo,offset:[4,0],targetOffset:qo},top:{points:["bc","tc"],overflow:Yo,offset:[0,-4],targetOffset:qo},bottom:{points:["tc","bc"],overflow:Yo,offset:[0,4],targetOffset:qo},topLeft:{points:["bl","tl"],overflow:Yo,offset:[0,-4],targetOffset:qo},leftTop:{points:["tr","tl"],overflow:Yo,offset:[-4,0],targetOffset:qo},topRight:{points:["br","tr"],overflow:Yo,offset:[0,-4],targetOffset:qo},rightTop:{points:["tl","tr"],overflow:Yo,offset:[4,0],targetOffset:qo},bottomRight:{points:["tr","br"],overflow:Yo,offset:[0,4],targetOffset:qo},rightBottom:{points:["bl","br"],overflow:Yo,offset:[4,0],targetOffset:qo},bottomLeft:{points:["tl","bl"],overflow:Yo,offset:[0,4],targetOffset:qo},leftBottom:{points:["br","bl"],overflow:Yo,offset:[-4,0],targetOffset:qo}},lDe={prefixCls:String,id:String,overlayInnerStyle:ne.any},uDe=h.defineComponent({compatConfig:{MODE:3},name:"TooltipContent",props:lDe,setup(t,e){let{slots:n}=e;return()=>{var r;return h.createVNode("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(r=n.overlay)===null||r===void 0?void 0:r.call(n)])}}});var cDe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function NQ(){}const fDe=h.defineComponent({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ne.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ne.string.def("right"),transitionName:String,animation:ne.any,afterVisibleChange:ne.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ne.string.def("rc-tooltip"),mouseEnterDelay:ne.number.def(.1),mouseLeaveDelay:ne.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ne.object.def(()=>({})),arrowContent:ne.any.def(null),tipId:String,builtinPlacements:ne.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,e){let{slots:n,attrs:r,expose:i}=e;const o=h.shallowRef(),a=()=>{const{prefixCls:c,tipId:f,overlayInnerStyle:d}=t;return[t.arrow?h.createVNode("div",{class:`${c}-arrow`,key:"arrow"},[L1(n,t,"arrowContent")]):null,h.createVNode(uDe,{key:"content",prefixCls:c,id:f,overlayInnerStyle:d},{overlay:n.overlay})]};i({getPopupDomNode:()=>o.value.getPopupDomNode(),triggerDOM:o,forcePopupAlign:()=>{var c;return(c=o.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const l=h.shallowRef(!1),u=h.shallowRef(!1);return h.watchEffect(()=>{const{destroyTooltipOnHide:c}=t;if(typeof c=="boolean")l.value=c;else if(c&&typeof c=="object"){const{keepParent:f}=c;l.value=f===!0,u.value=f===!1}}),()=>{const{overlayClassName:c,trigger:f,mouseEnterDelay:d,mouseLeaveDelay:p,overlayStyle:g,prefixCls:v,afterVisibleChange:m,transitionName:y,animation:b,placement:O,align:w,destroyTooltipOnHide:S,defaultVisible:x}=t,T=cDe(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),$=k({},T);t.visible!==void 0&&($.popupVisible=t.visible);const A=k(k(k({popupClassName:c,prefixCls:v,action:f,builtinPlacements:kQ,popupPlacement:O,popupAlign:w,afterPopupVisibleChange:m,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:x,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:p,popupStyle:g,mouseEnterDelay:d},$),r),{onPopupVisibleChange:t.onVisibleChange||NQ,onPopupAlign:t.onPopupAlign||NQ,ref:o,arrow:!!t.arrow,popup:a()});return h.createVNode(mO,A,{default:n.default})}}}),dDe=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:Vt(),overlayInnerStyle:Vt(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:Vt(),builtinPlacements:Vt(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),hDe={adjustX:1,adjustY:1},LQ={adjustX:0,adjustY:0},pDe=[0,0];function BQ(t){return typeof t=="boolean"?t?hDe:LQ:k(k({},LQ),t)}function gDe(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:i,arrowPointAtCenter:o}=t,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+e),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(r+e)]},topRight:{points:["br","tc"],offset:[n+e,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+e)]},bottomRight:{points:["tr","bc"],offset:[n+e,4]},rightBottom:{points:["bl","cr"],offset:[4,r+e]},bottomLeft:{points:["tl","bc"],offset:[-(n+e),4]},leftBottom:{points:["br","cl"],offset:[-4,r+e]}};return Object.keys(a).forEach(s=>{a[s]=o?k(k({},a[s]),{overflow:BQ(i),targetOffset:pDe}):k(k({},kQ[s]),{overflow:BQ(i)}),a[s].ignoreShake=!0}),a}function VQ(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e<n;e++)if(t[e]!==void 0)return t[e]}const vDe=q1.map(t=>`${t}-inverse`);function mDe(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...vDe,...q1].includes(t):q1.includes(t)}function yDe(t,e){const n=mDe(e),r=Pe({[`${t}-${e}`]:e&&n}),i={},o={};return e&&!n&&(i.background=e,o["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:o}}function kO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const zQ=8;function bDe(t){const e=zQ,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:o}=t,a=n/2-Math.ceil(i*(Math.sqrt(2)-1)),s=(r>12?r+2:12)-a,l=o?e-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function _De(t,e){const{componentCls:n,sizePopupArrow:r,marginXXS:i,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:s}=t,{colorBg:l,showArrowCls:u,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:f}=e,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:p}=bDe({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:a,limitVerticalRadius:f}),g=r/2+i;return{[n]:{[`${n}-arrow`]:[k(k({position:"absolute",zIndex:1,display:"block"},f$e(r,o,a,l,s)),{"&:before":{background:l}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:d},[`&-placement-leftBottom ${n}-arrow`]:{bottom:d},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:d},[`&-placement-rightBottom ${n}-arrow`]:{bottom:d},[kO(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingBottom:g},[kO(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingTop:g},[kO(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingRight:{_skip_check_:!0,value:g}},[kO(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const ODe=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c,tooltipRadiusOuter:f}=t;return[{[e]:k(k(k(k({},bn(t)),{position:"absolute",zIndex:a,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${e}-inner`]:{minWidth:s,minHeight:s,padding:`${u/2}px ${c}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(o,zQ)}},[`${e}-content`]:{position:"relative"}}),d$e(t,(d,p)=>{let{darkColor:g}=p;return{[`&${e}-${d}`]:{[`${e}-inner`]:{backgroundColor:g},[`${e}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},_De(Xt(t,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:o,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},wDe=(t,e)=>Fn("Tooltip",r=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=r,l=Xt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return[ODe(l),MO(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=r;return{zIndexPopup:i+70,colorBgDefault:o}})(t),SDe=(t,e)=>{const n={},r=k({},t);return e.forEach(i=>{t&&i in t&&(n[i]=t[i],delete r[i])}),{picked:n,omitted:r}},FQ=()=>k(k({},dDe()),{title:ne.any}),xDe=h.defineComponent({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Ar(FQ(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i,expose:o}=e;process.env.NODE_ENV!=="production"&&[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(P=>{let[M,I]=P;yi(t[M]===void 0,"Tooltip",`\`${M}\` is deprecated, please use \`${I}\` instead.`)});const{prefixCls:a,getPopupContainer:s,direction:l,rootPrefixCls:u}=Qt("tooltip",t),c=h.computed(()=>{var P;return(P=t.open)!==null&&P!==void 0?P:t.visible}),f=h.ref(VQ([t.open,t.visible])),d=h.ref();let p;h.watch(c,P=>{Dt.cancel(p),p=Dt(()=>{f.value=!!P})});const g=()=>{var P;const M=(P=t.title)!==null&&P!==void 0?P:n.title;return!M&&M!==0},v=P=>{const M=g();c.value===void 0&&(f.value=M?!1:P),M||(r("update:visible",P),r("visibleChange",P),r("update:open",P),r("openChange",P))};o({getPopupDomNode:()=>d.value.getPopupDomNode(),open:f,forcePopupAlign:()=>{var P;return(P=d.value)===null||P===void 0?void 0:P.forcePopupAlign()}});const y=h.computed(()=>{var P;const{builtinPlacements:M,autoAdjustOverflow:I,arrow:R,arrowPointAtCenter:L}=t;let D=L;return typeof R=="object"&&(D=(P=R.pointAtCenter)!==null&&P!==void 0?P:L),M||gDe({arrowPointAtCenter:D,autoAdjustOverflow:I})}),b=P=>P||P==="",O=P=>{const M=P.type;if(typeof M=="object"&&P.props&&((M.__ANT_BUTTON===!0||M==="button")&&b(P.props.disabled)||M.__ANT_SWITCH===!0&&(b(P.props.disabled)||b(P.props.loading))||M.__ANT_RADIO===!0&&b(P.props.disabled))){const{picked:I,omitted:R}=SDe(VPe(P),["position","left","right","top","bottom","float","display","zIndex"]),L=k(k({display:"inline-block"},I),{cursor:"not-allowed",lineHeight:1,width:P.props&&P.props.block?"100%":void 0}),D=k(k({},R),{pointerEvents:"none"}),B=Gn(P,{style:D},!0);return h.createVNode("span",{style:L,class:`${a.value}-disabled-compatible-wrapper`},[B])}return P},w=()=>{var P,M;return(P=t.title)!==null&&P!==void 0?P:(M=n.title)===null||M===void 0?void 0:M.call(n)},S=(P,M)=>{const I=y.value,R=Object.keys(I).find(L=>{var D,B;return I[L].points[0]===((D=M.points)===null||D===void 0?void 0:D[0])&&I[L].points[1]===((B=M.points)===null||B===void 0?void 0:B[1])});if(R){const L=P.getBoundingClientRect(),D={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?D.top=`${L.height-M.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(D.top=`${-M.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?D.left=`${L.width-M.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(D.left=`${-M.offset[0]}px`),P.style.transformOrigin=`${D.left} ${D.top}`}},x=h.computed(()=>yDe(a.value,t.color)),T=h.computed(()=>i["data-popover-inject"]),[$,A]=wDe(a,h.computed(()=>!T.value));return()=>{var P,M;const{openClassName:I,overlayClassName:R,overlayStyle:L,overlayInnerStyle:D}=t;let B=(M=xs((P=n.default)===null||P===void 0?void 0:P.call(n)))!==null&&M!==void 0?M:null;B=B.length===1?B[0]:B;let F=f.value;if(c.value===void 0&&g()&&(F=!1),!B)return null;const z=O(po(B)&&!zPe(B)?B:h.createVNode("span",null,[B])),W=Pe({[I||`${a.value}-open`]:!0,[z.props&&z.props.class]:z.props&&z.props.class}),j=Pe(R,{[`${a.value}-rtl`]:l.value==="rtl"},x.value.className,A.value),H=k(k({},x.value.overlayStyle),D),Z=x.value.arrowStyle,J=k(k(k({},i),t),{prefixCls:a.value,arrow:!!t.arrow,getPopupContainer:s==null?void 0:s.value,builtinPlacements:y.value,visible:F,ref:d,overlayClassName:j,overlayStyle:k(k({},Z),L),overlayInnerStyle:H,onVisibleChange:v,onPopupAlign:S,transitionName:As(u.value,"zoom-big-fast",t.transitionName)});return $(h.createVNode(fDe,J,{default:()=>[f.value?Gn(z,{class:W}):z],arrowContent:()=>h.createVNode("span",{class:`${a.value}-arrow-content`},null),overlay:w}))}}}),NO=mp(xDe),Dp={adjustX:1,adjustY:1},Rp=[0,0],CDe={topLeft:{points:["bl","tl"],overflow:Dp,offset:[0,-4],targetOffset:Rp},topCenter:{points:["bc","tc"],overflow:Dp,offset:[0,-4],targetOffset:Rp},topRight:{points:["br","tr"],overflow:Dp,offset:[0,-4],targetOffset:Rp},bottomLeft:{points:["tl","bl"],overflow:Dp,offset:[0,4],targetOffset:Rp},bottomCenter:{points:["tc","bc"],overflow:Dp,offset:[0,4],targetOffset:Rp},bottomRight:{points:["tr","br"],overflow:Dp,offset:[0,4],targetOffset:Rp}};var TDe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const PDe=h.defineComponent({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ne.string.def("rc-dropdown"),transitionName:String,overlayClassName:ne.string.def(""),openClassName:String,animation:ne.any,align:ne.object,overlayStyle:{type:Object,default:void 0},placement:ne.string.def("bottomLeft"),overlay:ne.any,trigger:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ne.array,hideAction:ne.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ne.number.def(.15),mouseLeaveDelay:ne.number.def(.1)},emits:["visibleChange","overlayClick"],setup(t,e){let{slots:n,emit:r,expose:i}=e;const o=h.ref(!!t.visible);h.watch(()=>t.visible,p=>{p!==void 0&&(o.value=p)});const a=h.ref();i({triggerRef:a});const s=p=>{t.visible===void 0&&(o.value=!1),r("overlayClick",p)},l=p=>{t.visible===void 0&&(o.value=p),r("visibleChange",p)},u=()=>{var p;const g=(p=n.overlay)===null||p===void 0?void 0:p.call(n),v={prefixCls:`${t.prefixCls}-menu`,onClick:s};return h.createVNode(h.Fragment,{key:wF},[t.arrow&&h.createVNode("div",{class:`${t.prefixCls}-arrow`},null),Gn(g,v,!1)])},c=h.computed(()=>{const{minOverlayWidthMatchTrigger:p=!t.alignPoint}=t;return p}),f=()=>{var p;const g=(p=n.default)===null||p===void 0?void 0:p.call(n);return o.value&&g?Gn(g[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):g},d=h.computed(()=>!t.hideAction&&t.trigger.indexOf("contextmenu")!==-1?["click"]:t.hideAction);return()=>{const{prefixCls:p,arrow:g,showAction:v,overlayStyle:m,trigger:y,placement:b,align:O,getPopupContainer:w,transitionName:S,animation:x,overlayClassName:T}=t,$=TDe(t,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return h.createVNode(mO,K(K({},$),{},{prefixCls:p,ref:a,popupClassName:Pe(T,{[`${p}-show-arrow`]:g}),popupStyle:m,builtinPlacements:CDe,action:y,showAction:v,hideAction:d.value||[],popupPlacement:b,popupAlign:O,popupTransitionName:S,popupAnimation:x,popupVisible:o.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:l,getPopupContainer:w}),{popup:u,default:f})}}}),$De=t=>{const{componentCls:e,colorPrimary:n}=t;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},ADe=Fn("Wave",t=>[$De(t)]);function EDe(t){const e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}function hE(t){return t&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&EDe(t)&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&t!=="transparent"}function MDe(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return hE(e)?e:hE(n)?n:hE(r)?r:null}function pE(t){return Number.isNaN(t)?0:t}const IDe=h.defineComponent({props:{target:Vt(),className:String},setup(t){const e=h.shallowRef(null),[n,r]=An(null),[i,o]=An([]),[a,s]=An(0),[l,u]=An(0),[c,f]=An(0),[d,p]=An(0),[g,v]=An(!1);function m(){const{target:T}=t,$=getComputedStyle(T);r(MDe(T));const A=$.position==="static",{borderLeftWidth:P,borderTopWidth:M}=$;s(A?T.offsetLeft:pE(-parseFloat(P))),u(A?T.offsetTop:pE(-parseFloat(M))),f(T.offsetWidth),p(T.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:R,borderBottomLeftRadius:L,borderBottomRightRadius:D}=$;o([I,R,D,L].map(B=>pE(parseFloat(B))))}let y,b,O;const w=()=>{clearTimeout(O),Dt.cancel(b),y==null||y.disconnect()},S=()=>{var T;const $=(T=e.value)===null||T===void 0?void 0:T.parentElement;$&&(h.render(null,$),$.parentElement&&$.parentElement.removeChild($))};h.onMounted(()=>{w(),O=setTimeout(()=>{S()},5e3);const{target:T}=t;T&&(b=Dt(()=>{m(),v(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(m),y.observe(T)))}),h.onBeforeUnmount(()=>{w()});const x=T=>{T.propertyName==="opacity"&&S()};return()=>{if(!g.value)return null;const T={left:`${a.value}px`,top:`${l.value}px`,width:`${c.value}px`,height:`${d.value}px`,borderRadius:i.value.map($=>`${$}px`).join(" ")};return n&&(T["--wave-color"]=n.value),h.createVNode(h.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[h.createVNode("div",{ref:e,class:t.className,style:T,onTransitionend:x},null)]})}}});function DDe(t,e){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",t==null||t.insertBefore(n,t==null?void 0:t.firstChild),h.render(h.createVNode(IDe,{target:t,className:e},null),n)}function RDe(t,e,n){function r(){var i;const o=Pl(t);!((i=n==null?void 0:n.value)===null||i===void 0)&&i.disabled||!o||DDe(o,e.value)}return r}const kDe=h.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(t,e){let{slots:n}=e;const r=h.getCurrentInstance(),{prefixCls:i,wave:o}=Qt("wave",t),[,a]=ADe(i),s=RDe(r,h.computed(()=>Pe(i.value,a.value)),o);let l;const u=()=>{Pl(r).removeEventListener("click",l,!0)};return h.onMounted(()=>{h.watch(()=>t.disabled,()=>{u(),h.nextTick(()=>{const c=Pl(r);c==null||c.removeEventListener("click",l,!0),!(!c||c.nodeType!==1||t.disabled)&&(l=f=>{f.target.tagName==="INPUT"||!w7(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s()},c.addEventListener("click",l,!0))})},{immediate:!0,flush:"post"})}),h.onBeforeUnmount(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function WQ(t){return t==="danger"?{danger:!0}:{type:t}}const NDe=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ne.any,href:String,target:String,title:String,onClick:B1(),onMousedown:B1()}),QQ=t=>{t&&(t.style.width="0px",t.style.opacity="0",t.style.transform="scale(0)")},HQ=t=>{h.nextTick(()=>{t&&(t.style.width=`${t.scrollWidth}px`,t.style.opacity="1",t.style.transform="scale(1)")})},GQ=t=>{t&&t.style&&(t.style.width=null,t.style.opacity=null,t.style.transform=null)},LDe=h.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(t){return()=>{const{existIcon:e,prefixCls:n,loading:r}=t;if(e)return h.createVNode("span",{class:`${n}-loading-icon`},[h.createVNode(Es,null,null)]);const i=!!r;return h.createVNode(h.Transition,{name:`${n}-loading-icon-motion`,onBeforeEnter:QQ,onEnter:HQ,onAfterEnter:GQ,onBeforeLeave:HQ,onLeave:o=>{setTimeout(()=>{QQ(o)})},onAfterLeave:GQ},{default:()=>[i?h.createVNode("span",{class:`${n}-loading-icon`},[h.createVNode(Es,null,null)]):null]})}}}),jQ=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),BDe=t=>{const{componentCls:e,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:o}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},jQ(`${e}-primary`,i),jQ(`${e}-danger`,o)]}};function VDe(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:-t.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function zDe(t,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function FDe(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:k(k({},VDe(t,e)),zDe(t.componentCls,e))}}const WDe=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${t.lineWidth}px ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:t.lineHeight,color:t.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:t.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":k({},iO(t)),[`&-icon-only${e}-compact-item`]:{flex:"none"},[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:t.lineWidth,height:`calc(100% + ${t.lineWidth*2}px)`,backgroundColor:t.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:`calc(100% + ${t.lineWidth*2}px)`,height:t.lineWidth,backgroundColor:t.colorPrimaryHover,content:'""'}}}}}}},Rl=(t,e)=>({"&:not(:disabled)":{"&:hover":t,"&:active":e}}),QDe=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),HDe=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.controlHeight/2,paddingInlineEnd:t.controlHeight/2}),gE=t=>({cursor:"not-allowed",borderColor:t.colorBorder,color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,boxShadow:"none"}),LO=(t,e,n,r,i,o,a)=>({[`&${t}-background-ghost`]:k(k({color:e||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Rl(k({backgroundColor:"transparent"},o),k({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),vE=t=>({"&:disabled":k({},gE(t))}),UQ=t=>k({},vE(t)),BO=t=>({"&:disabled":{cursor:"not-allowed",color:t.colorTextDisabled}}),ZQ=t=>k(k(k(k(k({},UQ(t)),{backgroundColor:t.colorBgContainer,borderColor:t.colorBorder,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`}),Rl({color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),LO(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)),{[`&${t.componentCls}-dangerous`]:k(k(k({color:t.colorError,borderColor:t.colorError},Rl({color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),LO(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder)),vE(t))}),GDe=t=>k(k(k(k(k({},UQ(t)),{color:t.colorTextLightSolid,backgroundColor:t.colorPrimary,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`}),Rl({color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryHover},{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryActive})),LO(t.componentCls,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),{[`&${t.componentCls}-dangerous`]:k(k(k({backgroundColor:t.colorError,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`},Rl({backgroundColor:t.colorErrorHover},{backgroundColor:t.colorErrorActive})),LO(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),vE(t))}),jDe=t=>k(k({},ZQ(t)),{borderStyle:"dashed"}),UDe=t=>k(k(k({color:t.colorLink},Rl({color:t.colorLinkHover},{color:t.colorLinkActive})),BO(t)),{[`&${t.componentCls}-dangerous`]:k(k({color:t.colorError},Rl({color:t.colorErrorHover},{color:t.colorErrorActive})),BO(t))}),ZDe=t=>k(k(k({},Rl({color:t.colorText,backgroundColor:t.colorBgTextHover},{color:t.colorText,backgroundColor:t.colorBgTextActive})),BO(t)),{[`&${t.componentCls}-dangerous`]:k(k({color:t.colorError},BO(t)),Rl({color:t.colorErrorHover,backgroundColor:t.colorErrorBg},{color:t.colorErrorHover,backgroundColor:t.colorErrorBg}))}),XDe=t=>k(k({},gE(t)),{[`&${t.componentCls}:hover`]:k({},gE(t))}),YDe=t=>{const{componentCls:e}=t;return{[`${e}-default`]:ZQ(t),[`${e}-primary`]:GDe(t),[`${e}-dashed`]:jDe(t),[`${e}-link`]:UDe(t),[`${e}-text`]:ZDe(t),[`${e}-disabled`]:XDe(t)}},mE=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=t,c=Math.max(0,(i-o*a)/2-s),f=u-s,d=`${n}-icon-only`;return[{[`${n}${e}`]:{fontSize:o,height:i,padding:`${c}px ${f}px`,borderRadius:l,[`&${d}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:t.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`&:not(${d}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:t.marginXS}}},{[`${n}${n}-circle${e}`]:QDe(t)},{[`${n}${n}-round${e}`]:HDe(t)}]},qDe=t=>mE(t),KDe=t=>{const e=Xt(t,{controlHeight:t.controlHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:8,borderRadius:t.borderRadiusSM});return mE(e,`${t.componentCls}-sm`)},JDe=t=>{const e=Xt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG});return mE(e,`${t.componentCls}-lg`)},eRe=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},tRe=Fn("Button",t=>{const{controlTmpOutline:e,paddingContentHorizontal:n}=t,r=Xt(t,{colorOutlineDefault:e,buttonPaddingHorizontal:n});return[WDe(r),KDe(r),qDe(r),JDe(r),eRe(r),YDe(r),BDe(r),IO(t,{focus:!1}),FDe(t)]}),nRe=()=>({prefixCls:String,size:{type:String}}),XQ=nE(),yE=h.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:nRe(),setup(t,e){let{slots:n}=e;const{prefixCls:r,direction:i}=Qt("btn-group",t),[,,o]=xp();XQ.useProvide(h.reactive({size:h.computed(()=>t.size)}));const a=h.computed(()=>{const{size:s}=t;let l="";switch(s){case"large":l="lg";break;case"small":l="sm";break;case"middle":case void 0:break;default:mo(!s,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${l}`]:l,[`${r.value}-rtl`]:i.value==="rtl",[o.value]:!0}});return()=>{var s;return h.createVNode("div",{class:a.value},[vr((s=n.default)===null||s===void 0?void 0:s.call(n))])}}}),YQ=/^[\u4e00-\u9fa5]{2}$/,qQ=YQ.test.bind(YQ);function VO(t){return t==="text"||t==="link"}const ri=h.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ar(NDe(),{type:"default"}),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i,expose:o}=e;const{prefixCls:a,autoInsertSpaceInButton:s,direction:l,size:u}=Qt("btn",t),[c,f]=tRe(a),d=XQ.useInject(),p=Cs(),g=h.computed(()=>{var D;return(D=t.disabled)!==null&&D!==void 0?D:p.value}),v=h.shallowRef(null),m=h.shallowRef(void 0);let y=!1;const b=h.shallowRef(!1),O=h.shallowRef(!1),w=h.computed(()=>s.value!==!1),{compactSize:S,compactItemClassnames:x}=$O(a,l),T=h.computed(()=>typeof t.loading=="object"&&t.loading.delay?t.loading.delay||!0:!!t.loading);h.watch(T,D=>{clearTimeout(m.value),typeof T.value=="number"?m.value=setTimeout(()=>{b.value=D},T.value):b.value=D},{immediate:!0});const $=h.computed(()=>{const{type:D,shape:B="default",ghost:F,block:z,danger:W}=t,j=a.value,H={large:"lg",small:"sm",middle:void 0},Z=S.value||(d==null?void 0:d.size)||u.value,J=Z&&H[Z]||"";return[x.value,{[f.value]:!0,[`${j}`]:!0,[`${j}-${B}`]:B!=="default"&&B,[`${j}-${D}`]:D,[`${j}-${J}`]:J,[`${j}-loading`]:b.value,[`${j}-background-ghost`]:F&&!VO(D),[`${j}-two-chinese-chars`]:O.value&&w.value,[`${j}-block`]:z,[`${j}-dangerous`]:!!W,[`${j}-rtl`]:l.value==="rtl"}]}),A=()=>{const D=v.value;if(!D||s.value===!1)return;const B=D.textContent;y&&qQ(B)?O.value||(O.value=!0):O.value&&(O.value=!1)},P=D=>{if(b.value||g.value){D.preventDefault();return}i("click",D)},M=D=>{i("mousedown",D)},I=(D,B)=>{const F=B?" ":"";if(D.type===h.Text){let z=D.children.trim();return qQ(z)&&(z=z.split("").join(F)),h.createVNode("span",null,[z])}return D};return h.watchEffect(()=>{mo(!(t.ghost&&VO(t.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),h.onMounted(A),h.onUpdated(A),h.onBeforeUnmount(()=>{m.value&&clearTimeout(m.value)}),o({focus:()=>{var D;(D=v.value)===null||D===void 0||D.focus()},blur:()=>{var D;(D=v.value)===null||D===void 0||D.blur()}}),()=>{var D,B;const{icon:F=(D=n.icon)===null||D===void 0?void 0:D.call(n)}=t,z=vr((B=n.default)===null||B===void 0?void 0:B.call(n));y=z.length===1&&!F&&!VO(t.type);const{type:W,htmlType:j,href:H,title:Z,target:J}=t,se=b.value?"loading":F,oe=k(k({},r),{title:Z,disabled:g.value,class:[$.value,r.class,{[`${a.value}-icon-only`]:z.length===0&&!!se}],onClick:P,onMousedown:M});g.value||delete oe.disabled;const de=F&&!b.value?F:h.createVNode(LDe,{existIcon:!!F,prefixCls:a.value,loading:!!b.value},null),ie=z.map(ee=>I(ee,y&&w.value));if(H!==void 0)return c(h.createVNode("a",K(K({},oe),{},{href:H,target:J,ref:v}),[de,ie]));let ue=h.createVNode("button",K(K({},oe),{},{ref:v,type:j}),[de,ie]);if(!VO(W)){const ee=function(){return ue}();ue=h.createVNode(kDe,{ref:"wave",disabled:!!b.value},{default:()=>[ee]})}return c(ue)}}});ri.Group=yE,ri.install=function(t){return t.component(ri.name,ri),t.component(yE.name,yE),t};var rRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function KQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){iRe(t,i,n[i])})}return t}function iRe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zO=function(e,n){var r=KQ({},e,n.attrs);return h.createVNode(mt,KQ({},r,{icon:rRe}),null)};zO.displayName="EllipsisOutlined",zO.inheritAttrs=!1;var oRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function JQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){aRe(t,i,n[i])})}return t}function aRe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var FO=function(e,n){var r=JQ({},e,n.attrs);return h.createVNode(mt,JQ({},r,{icon:oRe}),null)};FO.displayName="RightOutlined",FO.inheritAttrs=!1;const e9=Symbol("OverrideContextKey"),t9=()=>h.inject(e9,void 0),sRe=t=>{var e,n,r;const{prefixCls:i,mode:o,selectable:a,validator:s,onClick:l,expandIcon:u}=t9()||{};h.provide(e9,{prefixCls:h.computed(()=>{var c,f;return(f=(c=t.prefixCls)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:i==null?void 0:i.value}),mode:h.computed(()=>{var c,f;return(f=(c=t.mode)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:o==null?void 0:o.value}),selectable:h.computed(()=>{var c,f;return(f=(c=t.selectable)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:a==null?void 0:a.value}),validator:(e=t.validator)!==null&&e!==void 0?e:s,onClick:(n=t.onClick)!==null&&n!==void 0?n:l,expandIcon:(r=t.expandIcon)!==null&&r!==void 0?r:u==null?void 0:u.value})};function lRe(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l<o.length;l++){const u=o[l];if(!s(u))return!1;const c=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&c!==f)return!1}return!0}function e0(t,e){return lRe(h.toRaw(t),h.toRaw(e))}const n9=Symbol("menuContextKey"),r9=t=>{h.provide(n9,t)},kl=()=>h.inject(n9),i9=Symbol("ForceRenderKey"),uRe=t=>{h.provide(i9,t)},o9=()=>h.inject(i9,!1),a9=Symbol("menuFirstLevelContextKey"),s9=t=>{h.provide(a9,t)},cRe=()=>h.inject(a9,!0),WO=h.defineComponent({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,e){let{slots:n}=e;const r=kl(),i=k({},r);return t.mode!==void 0&&(i.mode=h.toRef(t,"mode")),t.overflowDisabled!==void 0&&(i.overflowDisabled=h.toRef(t,"overflowDisabled")),r9(i),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),fRe=r9,dRe=Symbol("siderCollapsed"),QO="$$__vc-menu-more__key",l9=Symbol("KeyPathContext"),bE=()=>h.inject(l9,{parentEventKeys:h.computed(()=>[]),parentKeys:h.computed(()=>[]),parentInfo:{}}),hRe=(t,e,n)=>{const{parentEventKeys:r,parentKeys:i}=bE(),o=h.computed(()=>[...r.value,t]),a=h.computed(()=>[...i.value,e]);return h.provide(l9,{parentEventKeys:o,parentKeys:a,parentInfo:n}),a},u9=Symbol("measure"),c9=h.defineComponent({compatConfig:{MODE:3},setup(t,e){let{slots:n}=e;return h.provide(u9,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),_E=()=>h.inject(u9,!1),pRe=hRe;function f9(t){const{mode:e,rtl:n,inlineIndent:r}=kl();return h.computed(()=>e.value!=="inline"?null:n.value?{paddingRight:`${t.value*r.value}px`}:{paddingLeft:`${t.value*r.value}px`})}let gRe=0;const vRe=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:ne.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Vt()}),kp=h.defineComponent({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:vRe(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const o=h.getCurrentInstance(),a=_E(),s=typeof o.vnode.key=="symbol"?String(o.vnode.key):o.vnode.key;mo(typeof o.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(s)}"\` not support Symbol type`);const l=`menu_item_${++gRe}_$$_${s}`,{parentEventKeys:u,parentKeys:c}=bE(),{prefixCls:f,activeKeys:d,disabled:p,changeActiveKeys:g,rtl:v,inlineCollapsed:m,siderCollapsed:y,onItemClick:b,selectedKeys:O,registerMenuInfo:w,unRegisterMenuInfo:S}=kl(),x=cRe(),T=h.shallowRef(!1),$=h.computed(()=>[...c.value,s]);w(l,{eventKey:l,key:s,parentEventKeys:u,parentKeys:c,isLeaf:!0}),h.onBeforeUnmount(()=>{S(l)}),h.watch(d,()=>{T.value=!!d.value.find(H=>H===s)},{immediate:!0});const P=h.computed(()=>p.value||t.disabled),M=h.computed(()=>O.value.includes(s)),I=h.computed(()=>{const H=`${f.value}-item`;return{[`${H}`]:!0,[`${H}-danger`]:t.danger,[`${H}-active`]:T.value,[`${H}-selected`]:M.value,[`${H}-disabled`]:P.value}}),R=H=>({key:s,eventKey:l,keyPath:$.value,eventKeyPath:[...u.value,l],domEvent:H,item:k(k({},t),i)}),L=H=>{if(P.value)return;const Z=R(H);r("click",H),b(Z)},D=H=>{P.value||(g($.value),r("mouseenter",H))},B=H=>{P.value||(g([]),r("mouseleave",H))},F=H=>{if(r("keydown",H),H.which===Se.ENTER){const Z=R(H);r("click",H),b(Z)}},z=H=>{g($.value),r("focus",H)},W=(H,Z)=>{const J=h.createVNode("span",{class:`${f.value}-title-content`},[Z]);return(!H||po(Z)&&Z.type==="span")&&Z&&m.value&&x&&typeof Z=="string"?h.createVNode("div",{class:`${f.value}-inline-collapsed-noicon`},[Z.charAt(0)]):J},j=f9(h.computed(()=>$.value.length));return()=>{var H,Z,J,se,oe;if(a)return null;const de=(H=t.title)!==null&&H!==void 0?H:(Z=n.title)===null||Z===void 0?void 0:Z.call(n),ie=vr((J=n.default)===null||J===void 0?void 0:J.call(n)),ue=ie.length;let ee=de;typeof de>"u"?ee=x&&ue?ie:"":de===!1&&(ee="");const X={title:ee};!y.value&&!m.value&&(X.title=null,X.open=!1);const Y={};t.role==="option"&&(Y["aria-selected"]=M.value);const le=(se=t.icon)!==null&&se!==void 0?se:(oe=n.icon)===null||oe===void 0?void 0:oe.call(n,t);return h.createVNode(NO,K(K({},X),{},{placement:v.value?"left":"right",overlayClassName:`${f.value}-inline-collapsed-tooltip`}),{default:()=>[h.createVNode(Ml.Item,K(K(K({component:"li"},i),{},{id:t.id,style:k(k({},i.style||{}),j.value),class:[I.value,{[`${i.class}`]:!!i.class,[`${f.value}-item-only-child`]:(le?ue+1:ue)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":s,"aria-disabled":t.disabled},Y),{},{onMouseenter:D,onMouseleave:B,onClick:L,onKeydown:F,onFocus:z,title:typeof de=="string"?de:void 0}),{default:()=>[Gn(typeof le=="function"?le(t.originItemValue):le,{class:`${f.value}-item-icon`},!1),W(le,ie)]})]})}}}),Bu={adjustX:1,adjustY:1},mRe={topLeft:{points:["bl","tl"],overflow:Bu,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bu,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Bu,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Bu,offset:[4,0]}},yRe={topLeft:{points:["bl","tl"],overflow:Bu,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bu,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Bu,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Bu,offset:[4,0]}},bRe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},d9=h.defineComponent({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,e){let{slots:n,emit:r}=e;const i=h.shallowRef(!1),{getPopupContainer:o,rtl:a,subMenuOpenDelay:s,subMenuCloseDelay:l,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:f,motion:d,defaultMotions:p,rootClassName:g}=kl(),v=o9(),m=h.computed(()=>a.value?k(k({},yRe),u.value):k(k({},mRe),u.value)),y=h.computed(()=>bRe[t.mode]),b=h.shallowRef();h.watch(()=>t.visible,S=>{Dt.cancel(b.value),b.value=Dt(()=>{i.value=S})},{immediate:!0}),h.onBeforeUnmount(()=>{Dt.cancel(b.value)});const O=S=>{r("visibleChange",S)},w=h.computed(()=>{var S,x;const T=d.value||((S=p.value)===null||S===void 0?void 0:S[t.mode])||((x=p.value)===null||x===void 0?void 0:x.other),$=typeof T=="function"?T():T;return $?Zm($.name,{css:!0}):void 0});return()=>{const{prefixCls:S,popupClassName:x,mode:T,popupOffset:$,disabled:A}=t;return h.createVNode(mO,{prefixCls:S,popupClassName:Pe(`${S}-popup`,{[`${S}-rtl`]:a.value},x,g.value),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:o.value,builtinPlacements:m.value,popupPlacement:y.value,popupVisible:i.value,popupAlign:$&&{offset:$},action:A?[]:[c.value],mouseEnterDelay:s.value,mouseLeaveDelay:l.value,onPopupVisibleChange:O,forceRender:v||f.value,popupAnimation:w.value},{popup:n.popup,default:n.default})}}}),OE=(t,e)=>{let{slots:n,attrs:r}=e;var i;const{prefixCls:o,mode:a}=kl();return h.createVNode("ul",K(K({},r),{},{class:Pe(o.value,`${o.value}-sub`,`${o.value}-${a.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(i=n.default)===null||i===void 0?void 0:i.call(n)])};OE.displayName="SubMenuList";const _Re=h.defineComponent({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,e){let{slots:n}=e;const r=h.computed(()=>"inline"),{motion:i,mode:o,defaultMotions:a}=kl(),s=h.computed(()=>o.value===r.value),l=h.ref(!s.value),u=h.computed(()=>s.value?t.open:!1);h.watch(o,()=>{s.value&&(l.value=!1)},{flush:"post"});const c=h.computed(()=>{var f,d;const p=i.value||((f=a.value)===null||f===void 0?void 0:f[r.value])||((d=a.value)===null||d===void 0?void 0:d.other),g=typeof p=="function"?p():p;return k(k({},g),{appear:t.keyPath.length<=1})});return()=>{var f;return l.value?null:h.createVNode(WO,{mode:r.value},{default:()=>[h.createVNode(h.Transition,c.value,{default:()=>[h.withDirectives(h.createVNode(OE,{id:t.id},{default:()=>[(f=n.default)===null||f===void 0?void 0:f.call(n)]}),[[h.vShow,u.value]])]})]})}}});let h9=0;const ORe=()=>({icon:ne.any,title:ne.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Vt()}),Np=h.defineComponent({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:ORe(),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i}=e;var o,a;s9(!1);const s=_E(),l=h.getCurrentInstance(),u=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;mo(typeof l.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=G$(u)?u:`sub_menu_${++h9}_$$_not_set_key`,f=(o=t.eventKey)!==null&&o!==void 0?o:G$(u)?`sub_menu_${++h9}_$$_${u}`:c,{parentEventKeys:d,parentInfo:p,parentKeys:g}=bE(),v=h.computed(()=>[...g.value,c]),m=h.shallowRef([]),y={eventKey:f,key:c,parentEventKeys:d,childrenEventKeys:m,parentKeys:g};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(f),h.onBeforeUnmount(()=>{var _e;p.childrenEventKeys&&(p.childrenEventKeys.value=(_e=p.childrenEventKeys)===null||_e===void 0?void 0:_e.value.filter(De=>De!=f))}),pRe(f,c,y);const{prefixCls:b,activeKeys:O,disabled:w,changeActiveKeys:S,mode:x,inlineCollapsed:T,openKeys:$,overflowDisabled:A,onOpenChange:P,registerMenuInfo:M,unRegisterMenuInfo:I,selectedSubMenuKeys:R,expandIcon:L,theme:D}=kl(),B=u!=null,F=!s&&(o9()||!B);uRe(F),(s&&B||!s&&!B||F)&&(M(f,y),h.onBeforeUnmount(()=>{I(f)}));const z=h.computed(()=>`${b.value}-submenu`),W=h.computed(()=>w.value||t.disabled),j=h.shallowRef(),H=h.shallowRef(),Z=h.computed(()=>$.value.includes(c)),J=h.computed(()=>!A.value&&Z.value),se=h.computed(()=>R.value.includes(c)),oe=h.shallowRef(!1);h.watch(O,()=>{oe.value=!!O.value.find(_e=>_e===c)},{immediate:!0});const de=_e=>{W.value||(i("titleClick",_e,c),x.value==="inline"&&P(c,!Z.value))},ie=_e=>{W.value||(S(v.value),i("mouseenter",_e))},ue=_e=>{W.value||(S([]),i("mouseleave",_e))},ee=f9(h.computed(()=>v.value.length)),X=_e=>{x.value!=="inline"&&P(c,_e)},Y=()=>{S(v.value)},le=f&&`${f}-popup`,ve=h.computed(()=>Pe(b.value,`${b.value}-${t.theme||D.value}`,t.popupClassName)),ye=(_e,De)=>{if(!De)return T.value&&!g.value.length&&_e&&typeof _e=="string"?h.createVNode("div",{class:`${b.value}-inline-collapsed-noicon`},[_e.charAt(0)]):h.createVNode("span",{class:`${b.value}-title-content`},[_e]);const Fe=po(_e)&&_e.type==="span";return h.createVNode(h.Fragment,null,[Gn(typeof De=="function"?De(t.originItemValue):De,{class:`${b.value}-item-icon`},!1),Fe?_e:h.createVNode("span",{class:`${b.value}-title-content`},[_e])])},Ne=h.computed(()=>x.value!=="inline"&&v.value.length>1?"vertical":x.value),Be=h.computed(()=>x.value==="horizontal"?"vertical":x.value),Me=h.computed(()=>Ne.value==="horizontal"?"vertical":Ne.value),$e=()=>{var _e,De;const Fe=z.value,ct=(_e=t.icon)!==null&&_e!==void 0?_e:(De=n.icon)===null||De===void 0?void 0:De.call(n,t),vt=t.expandIcon||n.expandIcon||L.value,zt=ye(L1(n,t,"title"),ct);return h.createVNode("div",{style:ee.value,class:`${Fe}-title`,tabindex:W.value?null:-1,ref:j,title:typeof zt=="string"?zt:null,"data-menu-id":c,"aria-expanded":J.value,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":W.value,onClick:de,onFocus:Y},[zt,x.value!=="horizontal"&&vt?vt(k(k({},t),{isOpen:J.value})):h.createVNode("i",{class:`${Fe}-arrow`},null)])};return()=>{var _e;if(s)return B?(_e=n.default)===null||_e===void 0?void 0:_e.call(n):null;const De=z.value;let Fe=()=>null;if(!A.value&&x.value!=="inline"){const ct=x.value==="horizontal"?[0,8]:[10,0];Fe=()=>h.createVNode(d9,{mode:Ne.value,prefixCls:De,visible:!t.internalPopupClose&&J.value,popupClassName:ve.value,popupOffset:t.popupOffset||ct,disabled:W.value,onVisibleChange:X},{default:()=>[$e()],popup:()=>h.createVNode(WO,{mode:Me.value},{default:()=>[h.createVNode(OE,{id:le,ref:H},{default:n.default})]})})}else Fe=()=>h.createVNode(d9,null,{default:$e});return h.createVNode(WO,{mode:Be.value},{default:()=>[h.createVNode(Ml.Item,K(K({component:"li"},r),{},{role:"none",class:Pe(De,`${De}-${x.value}`,r.class,{[`${De}-open`]:J.value,[`${De}-active`]:oe.value,[`${De}-selected`]:se.value,[`${De}-disabled`]:W.value}),onMouseenter:ie,onMouseleave:ue,"data-submenu-id":c}),{default:()=>h.createVNode(h.Fragment,null,[Fe(),!A.value&&h.createVNode(_Re,{id:le,open:J.value,keyPath:v.value},{default:n.default})])})]})}}});function p9(t,e){return t.classList?t.classList.contains(e):` ${t.className} `.indexOf(` ${e} `)>-1}function g9(t,e){t.classList?t.classList.add(e):p9(t,e)||(t.className=`${t.className} ${e}`)}function v9(t,e){if(t.classList)t.classList.remove(e);else if(p9(t,e)){const n=t.className;t.className=` ${n} `.replace(` ${e} `," ")}}const wE=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:e,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",g9(n,t)},onEnter:n=>{h.nextTick(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(v9(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{g9(n,t),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(v9(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}},wRe=()=>({title:ne.any,originItemValue:Vt()}),HO=h.defineComponent({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:wRe(),slots:Object,setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=kl(),o=h.computed(()=>`${i.value}-item-group`),a=_E();return()=>{var s,l;return a?(s=n.default)===null||s===void 0?void 0:s.call(n):h.createVNode("li",K(K({},r),{},{onClick:u=>u.stopPropagation(),class:o.value}),[h.createVNode("div",{title:typeof t.title=="string"?t.title:void 0,class:`${o.value}-title`},[L1(n,t,"title")]),h.createVNode("ul",{class:`${o.value}-list`},[(l=n.default)===null||l===void 0?void 0:l.call(n)])])}}}),SRe=()=>({prefixCls:String,dashed:Boolean}),GO=h.defineComponent({compatConfig:{MODE:3},name:"AMenuDivider",props:SRe(),setup(t){const{prefixCls:e}=kl(),n=h.computed(()=>({[`${e.value}-item-divider`]:!0,[`${e.value}-item-divider-dashed`]:!!t.dashed}));return()=>h.createVNode("li",{class:n.value},null)}});var xRe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function SE(t,e,n){return(t||[]).map((r,i)=>{if(r&&typeof r=="object"){const o=r,{label:a,children:s,key:l,type:u}=o,c=xRe(o,["label","children","key","type"]),f=l??`tmp-${i}`,d=n?n.parentKeys.slice():[],p=[],g={eventKey:f,key:f,parentEventKeys:h.ref(d),parentKeys:h.ref(d),childrenEventKeys:h.ref(p),isLeaf:!1};if(s||u==="group"){if(u==="group"){const m=SE(s,e,n);return h.createVNode(HO,K(K({key:f},c),{},{title:a,originItemValue:r}),{default:()=>[m]})}e.set(f,g),n&&n.childrenEventKeys.push(f);const v=SE(s,e,{childrenEventKeys:p,parentKeys:[].concat(d,f)});return h.createVNode(Np,K(K({key:f},c),{},{title:a,originItemValue:r}),{default:()=>[v]})}return u==="divider"?h.createVNode(GO,K({key:f},c),null):(g.isLeaf=!0,e.set(f,g),h.createVNode(kp,K(K({key:f},c),{},{originItemValue:r}),{default:()=>[a]}))}return null}).filter(r=>r)}function CRe(t){const e=h.shallowRef([]),n=h.shallowRef(!1),r=h.shallowRef(new Map);return h.watch(()=>t.items,()=>{const i=new Map;n.value=!1,t.items?(n.value=!0,e.value=SE(t.items,i)):e.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:e,store:r,hasItmes:n}}const TRe=t=>{const{componentCls:e,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:o,lineType:a,menuItemPaddingInline:s}=t;return{[`${e}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${o}px ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${e}-item:hover,
  184. > ${e}-item-active,
  185. > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}},PRe=t=>{let{componentCls:e,menuArrowOffset:n}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
  186. ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},m9=t=>k({},Fm(t)),y9=(t,e)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:o,colorItemBg:a,colorSubItemBg:s,colorItemBgSelected:l,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:f,motionDurationSlow:d,motionEaseInOut:p,motionEaseOut:g,menuItemPaddingInline:v,motionDurationMid:m,colorItemTextHover:y,lineType:b,colorSplit:O,colorItemTextDisabled:w,colorDangerItemText:S,colorDangerItemTextHover:x,colorDangerItemTextSelected:T,colorDangerItemBgActive:$,colorDangerItemBgSelected:A,colorItemBgHover:P,menuSubMenuBg:M,colorItemTextSelectedHorizontal:I,colorItemBgSelectedHorizontal:R}=t;return{[`${n}-${e}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:k({},m9(t)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:A}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:k({},m9(t))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:k(k({},e==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${d} ${p}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:f&&c?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${g}`,`opacity ${m} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},b9=t=>{const{componentCls:e,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,marginXXS:s}=t,l=i+o+a;return{[`${e}-item`]:{position:"relative"},[`${e}-item, ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${e}-submenu`]:{paddingBottom:.02},[`> ${e}-item,
  187. > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title,
  188. ${e}-submenu-title`]:{paddingInlineEnd:l}}},$Re=t=>{const{componentCls:e,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:u,fontSizeSM:c,fontSizeLG:f,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:g}=t,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":k({[`&${e}-root`]:{boxShadow:"none"}},b9(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:k(k({},b9(t)),{boxShadow:g})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${s} ${l}`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:v,[`& ${e}-item-group-title`]:{paddingInlineStart:u}},[`${e}-item`]:v}},{[`${e}-inline-collapsed`]:{width:r*2,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${e}-item,
  189. > ${e}-item-group > ${e}-item-group-list > ${e}-item,
  190. > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,
  191. > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[`
  192. ${e}-submenu-arrow,
  193. ${e}-submenu-expand-icon
  194. `]:{opacity:0},[`${e}-item-icon, ${n}`]:{margin:0,fontSize:f,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${e}-item-group-title`]:k(k({},wp),{paddingInline:p})}}]},_9=t=>{const{componentCls:e,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:o,motionEaseOut:a,iconCls:s,controlHeightSM:l}=t;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${o}`].join(","),[`${e}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${e}-item-icon`]:k({},Sp()),[`&${e}-item-only-child`]:{[`> ${s}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},O9=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=t;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:o*.6,height:o*.15,backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},ARe=t=>{const{antCls:e,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:u,colorSplit:c,lineWidth:f,zIndexPopup:d,borderRadiusLG:p,radiusSubMenuItem:g,menuArrowSize:v,menuArrowOffset:m,lineType:y,menuPanelMaskInset:b}=t;return[{"":{[`${n}`]:k(k({},rO()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:k(k(k(k(k(k(k({},bn(t)),rO()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:t.radiusItem},[`${n}-item-group-title`]:{padding:`${l}px ${u}px`,fontSize:r,lineHeight:s,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_9(t)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:k(k(k({borderRadius:p},_9(t)),O9(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})}}),O9(t)),{[`&-inline-collapsed ${n}-submenu-arrow,
  195. &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ERe=(t,e)=>Fn("Menu",(r,i)=>{let{overrideComponentToken:o}=i;if((e==null?void 0:e.value)===!1)return[];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:u,colorTextLightSolid:c}=r,{controlHeightLG:f,fontSize:d}=r,p=d/7*5,g=Xt(r,{menuItemHeight:f,menuItemPaddingInline:r.margin,menuArrowSize:p,menuHorizontalHeight:f*1.15,menuArrowOffset:`${p*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),v=new yn(c).setAlpha(.65).toRgbString(),m=Xt(g,{colorItemText:v,colorItemTextHover:c,colorGroupTitle:v,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:s,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new yn(c).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:s},k({},o));return[ARe(g),TRe(g),$Re(g),y9(g,"light"),y9(m,"dark"),PRe(g),aE(g),Ep(g,"slide-up"),Ep(g,"slide-down"),MO(g,"zoom-big")]},r=>{const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:c,colorFillAlter:f,colorFillContent:d,lineWidth:p,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:m}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:i,colorGroupTitle:u,colorItemTextSelected:i,colorItemTextSelectedHorizontal:i,colorItemBg:c,colorItemBgHover:m,colorItemBgActive:d,colorSubItemBg:f,colorItemBgSelected:v,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:p,colorItemTextDisabled:a,colorDangerItemText:o,colorDangerItemTextHover:o,colorDangerItemTextSelected:o,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,itemMarginInline:r.marginXXS}})(t),MRe=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),w9=[],Vu=h.defineComponent({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:MRe(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const{direction:o,getPrefixCls:a}=Qt("menu",t),s=t9(),l=h.computed(()=>{var ie;return a("menu",t.prefixCls||((ie=s==null?void 0:s.prefixCls)===null||ie===void 0?void 0:ie.value))}),[u,c]=ERe(l,h.computed(()=>!s)),f=h.shallowRef(new Map),d=h.inject(dRe,h.ref(void 0)),p=h.computed(()=>d.value!==void 0?d.value:t.inlineCollapsed),{itemsNodes:g}=CRe(t),v=h.shallowRef(!1);h.onMounted(()=>{v.value=!0}),h.watchEffect(()=>{mo(!(t.inlineCollapsed===!0&&t.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),mo(!(d.value!==void 0&&t.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const m=h.ref([]),y=h.ref([]),b=h.ref({});h.watch(f,()=>{const ie={};for(const ue of f.value.values())ie[ue.key]=ue;b.value=ie},{flush:"post"}),h.watchEffect(()=>{if(t.activeKey!==void 0){let ie=[];const ue=t.activeKey?b.value[t.activeKey]:void 0;ue&&t.activeKey!==void 0?ie=e$([].concat(h.unref(ue.parentKeys),t.activeKey)):ie=[],e0(m.value,ie)||(m.value=ie)}}),h.watch(()=>t.selectedKeys,ie=>{ie&&(y.value=ie.slice())},{immediate:!0,deep:!0});const O=h.ref([]);h.watch([b,y],()=>{let ie=[];y.value.forEach(ue=>{const ee=b.value[ue];ee&&(ie=ie.concat(h.unref(ee.parentKeys)))}),ie=e$(ie),e0(O.value,ie)||(O.value=ie)},{immediate:!0});const w=ie=>{if(t.selectable){const{key:ue}=ie,ee=y.value.includes(ue);let X;t.multiple?ee?X=y.value.filter(le=>le!==ue):X=[...y.value,ue]:X=[ue];const Y=k(k({},ie),{selectedKeys:X});e0(X,y.value)||(t.selectedKeys===void 0&&(y.value=X),r("update:selectedKeys",X),ee&&t.multiple?r("deselect",Y):r("select",Y))}P.value!=="inline"&&!t.multiple&&S.value.length&&R(w9)},S=h.ref([]);h.watch(()=>t.openKeys,function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.value;e0(S.value,ie)||(S.value=ie.slice())},{immediate:!0,deep:!0});let x;const T=ie=>{clearTimeout(x),x=setTimeout(()=>{t.activeKey===void 0&&(m.value=ie),r("update:activeKey",ie[ie.length-1])})},$=h.computed(()=>!!t.disabled),A=h.computed(()=>o.value==="rtl"),P=h.ref("vertical"),M=h.shallowRef(!1);h.watchEffect(()=>{var ie;(t.mode==="inline"||t.mode==="vertical")&&p.value?(P.value="vertical",M.value=p.value):(P.value=t.mode,M.value=!1),!((ie=s==null?void 0:s.mode)===null||ie===void 0)&&ie.value&&(P.value=s.mode.value)});const I=h.computed(()=>P.value==="inline"),R=ie=>{S.value=ie,r("update:openKeys",ie),r("openChange",ie)},L=h.ref(S.value),D=h.shallowRef(!1);h.watch(S,()=>{I.value&&(L.value=S.value)},{immediate:!0}),h.watch(I,()=>{if(!D.value){D.value=!0;return}I.value?S.value=L.value:R(w9)},{immediate:!0});const B=h.computed(()=>({[`${l.value}`]:!0,[`${l.value}-root`]:!0,[`${l.value}-${P.value}`]:!0,[`${l.value}-inline-collapsed`]:M.value,[`${l.value}-rtl`]:A.value,[`${l.value}-${t.theme}`]:!0})),F=h.computed(()=>a()),z=h.computed(()=>({horizontal:{name:`${F.value}-slide-up`},inline:wE(`${F.value}-motion-collapse`),other:{name:`${F.value}-zoom-big`}}));s9(!0);const W=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const ue=[],ee=f.value;return ie.forEach(X=>{const{key:Y,childrenEventKeys:le}=ee.get(X);ue.push(Y,...W(h.unref(le)))}),ue},j=ie=>{var ue;r("click",ie),w(ie),(ue=s==null?void 0:s.onClick)===null||ue===void 0||ue.call(s)},H=(ie,ue)=>{var ee;const X=((ee=b.value[ie])===null||ee===void 0?void 0:ee.childrenEventKeys)||[];let Y=S.value.filter(le=>le!==ie);if(ue)Y.push(ie);else if(P.value!=="inline"){const le=W(h.unref(X));Y=e$(Y.filter(ve=>!le.includes(ve)))}e0(S,Y)||R(Y)},Z=(ie,ue)=>{f.value.set(ie,ue),f.value=new Map(f.value)},J=ie=>{f.value.delete(ie),f.value=new Map(f.value)},se=h.ref(0),oe=h.computed(()=>{var ie;return t.expandIcon||n.expandIcon||!((ie=s==null?void 0:s.expandIcon)===null||ie===void 0)&&ie.value?ue=>{let ee=t.expandIcon||n.expandIcon;return ee=typeof ee=="function"?ee(ue):ee,Gn(ee,{class:`${l.value}-submenu-expand-icon`},!1)}:null});fRe({prefixCls:l,activeKeys:m,openKeys:S,selectedKeys:y,changeActiveKeys:T,disabled:$,rtl:A,mode:P,inlineIndent:h.computed(()=>t.inlineIndent),subMenuCloseDelay:h.computed(()=>t.subMenuCloseDelay),subMenuOpenDelay:h.computed(()=>t.subMenuOpenDelay),builtinPlacements:h.computed(()=>t.builtinPlacements),triggerSubMenuAction:h.computed(()=>t.triggerSubMenuAction),getPopupContainer:h.computed(()=>t.getPopupContainer),inlineCollapsed:M,theme:h.computed(()=>t.theme),siderCollapsed:d,defaultMotions:h.computed(()=>v.value?z.value:null),motion:h.computed(()=>v.value?t.motion:null),overflowDisabled:h.shallowRef(void 0),onOpenChange:H,onItemClick:j,registerMenuInfo:Z,unRegisterMenuInfo:J,selectedSubMenuKeys:O,expandIcon:oe,forceSubMenuRender:h.computed(()=>t.forceSubMenuRender),rootClassName:c});const de=()=>{var ie;return g.value||vr((ie=n.default)===null||ie===void 0?void 0:ie.call(n))};return()=>{var ie;const ue=de(),ee=se.value>=ue.length-1||P.value!=="horizontal"||t.disabledOverflow,X=le=>P.value!=="horizontal"||t.disabledOverflow?le:le.map((ve,ye)=>h.createVNode(WO,{key:ve.key,overflowDisabled:ye>se.value},{default:()=>ve})),Y=((ie=n.overflowedIndicator)===null||ie===void 0?void 0:ie.call(n))||h.createVNode(zO,null,null);return u(h.createVNode(Ml,K(K({},i),{},{onMousedown:t.onMousedown,prefixCls:`${l.value}-overflow`,component:"ul",itemComponent:kp,class:[B.value,i.class,c.value],role:"menu",id:t.id,data:X(ue),renderRawItem:le=>le,renderRawRest:le=>{const ve=le.length,ye=ve?ue.slice(-ve):null;return h.createVNode(h.Fragment,null,[h.createVNode(Np,{eventKey:QO,key:QO,title:Y,disabled:ee,internalPopupClose:ve===0},{default:()=>ye}),h.createVNode(c9,null,{default:()=>[h.createVNode(Np,{eventKey:QO,key:QO,title:Y,disabled:ee,internalPopupClose:ve===0},{default:()=>ye})]})])},maxCount:P.value!=="horizontal"||t.disabledOverflow?Ml.INVALIDATE:Ml.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:le=>{se.value=le}}),{default:()=>[h.createVNode(h.Teleport,{to:"body"},{default:()=>[h.createVNode("div",{style:{display:"none"},"aria-hidden":!0},[h.createVNode(c9,null,{default:()=>[X(de())]})])]})]}))}}});Vu.install=function(t){return t.component(Vu.name,Vu),t.component(kp.name,kp),t.component(Np.name,Np),t.component(GO.name,GO),t.component(HO.name,HO),t},Vu.Item=kp,Vu.Divider=GO,Vu.SubMenu=Np,Vu.ItemGroup=HO;var IRe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const DRe={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:ne.any,required:Boolean},S9=h.defineComponent({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Ar(DRe,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(t,e){let{attrs:n,emit:r,expose:i}=e;const o=h.ref(t.checked===void 0?t.defaultChecked:t.checked),a=h.ref();h.watch(()=>t.checked,()=>{o.value=t.checked}),i({focus(){var c;(c=a.value)===null||c===void 0||c.focus()},blur(){var c;(c=a.value)===null||c===void 0||c.blur()}});const s=h.ref(),l=c=>{if(t.disabled)return;t.checked===void 0&&(o.value=c.target.checked),c.shiftKey=s.value;const f={target:k(k({},t),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};t.checked!==void 0&&(a.value.checked=!!t.checked),r("change",f),s.value=!1},u=c=>{r("click",c),s.value=c.shiftKey};return()=>{const{prefixCls:c,name:f,id:d,type:p,disabled:g,readonly:v,tabindex:m,autofocus:y,value:b,required:O}=t,w=IRe(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:S,onFocus:x,onBlur:T,onKeydown:$,onKeypress:A,onKeyup:P}=n,M=k(k({},w),n),I=Object.keys(M).reduce((D,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(D[B]=M[B]),D),{}),R=Pe(c,S,{[`${c}-checked`]:o.value,[`${c}-disabled`]:g}),L=k(k({name:f,id:d,type:p,readonly:v,disabled:g,tabindex:m,class:`${c}-input`,checked:!!o.value,autofocus:y,value:b},I),{onChange:l,onClick:u,onFocus:x,onBlur:T,onKeydown:$,onKeypress:A,onKeyup:P,required:O});return h.createVNode("span",{class:R},[h.createVNode("input",K({ref:a},L),null),h.createVNode("span",{class:`${c}-inner`},null)])}}}),x9=Symbol("radioGroupContextKey"),RRe=t=>{h.provide(x9,t)},kRe=()=>h.inject(x9,void 0),C9=Symbol("radioOptionTypeContextKey"),NRe=t=>{h.provide(C9,t)},LRe=()=>h.inject(C9,void 0),BRe=new At("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),VRe=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-group`;return{[r]:k(k({},bn(t)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},zRe=t=>{const{componentCls:e,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:u,colorBorder:c,lineWidth:f,radioDotSize:d,colorBgContainerDisabled:p,colorTextDisabled:g,paddingXS:v,radioDotDisabledColor:m,lineType:y,radioDotDisabledSize:b,wireframe:O,colorWhite:w}=t,S=`${e}-inner`;return{[`${e}-wrapper`]:k(k({},bn(t)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${e}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${e}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:BRe,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[e]:k(k({},bn(t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${e}-wrapper:hover &,
  196. &:hover ${S}`]:{borderColor:r},[`${e}-input:focus-visible + ${S}`]:k({},Fm(t)),[`${e}:hover::after, ${e}-wrapper:hover &::after`]:{visibility:"visible"},[`${e}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:O?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${e}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${e}-checked`]:{[S]:{borderColor:r,backgroundColor:O?u:r,"&::after":{transform:`scale(${d/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${e}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:p,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${e}-input`]:{cursor:"not-allowed"},[`${e}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${e}-checked`]:{[S]:{"&::after":{transform:`scale(${b/i})`}}}},[`span${e} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},FRe=t=>{const{radioButtonColor:e,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:f,fontSizeLG:d,controlHeightLG:p,controlHeightSM:g,paddingXS:v,borderRadius:m,borderRadiusSM:y,borderRadiusLG:b,radioCheckedColor:O,radioButtonCheckedBg:w,radioButtonHoverColor:S,radioButtonActiveColor:x,radioSolidCheckedColor:T,colorTextDisabled:$,colorBgContainerDisabled:A,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:M}=t;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:e,fontSize:c,lineHeight:`${n-i*2}px`,background:f,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:e},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:p,fontSize:d,lineHeight:`${p-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:v-i,paddingBlock:0,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":k({},Fm(t)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:w,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:x,borderColor:x,"&::before":{backgroundColor:x}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:T,background:O,borderColor:O,"&:hover":{color:T,background:S,borderColor:S},"&:active":{color:T,background:x,borderColor:x}},"&-disabled":{color:$,backgroundColor:A,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:A,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:M,borderColor:a,boxShadow:"none"}}}},T9=Fn("Radio",t=>{const{padding:e,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:u,colorText:c,colorPrimary:f,marginXS:d,controlOutlineWidth:p,colorTextLightSolid:g,wireframe:v}=t,m=`0 0 0 ${p}px ${s}`,y=m,b=a,O=4,w=b-O*2,S=v?w:b-(O+n)*2,x=f,T=c,$=l,A=u,P=e-n,R=Xt(t,{radioFocusShadow:m,radioButtonFocusShadow:y,radioSize:b,radioDotSize:S,radioDotDisabledSize:w,radioCheckedColor:x,radioDotDisabledColor:i,radioSolidCheckedColor:g,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:T,radioButtonHoverColor:$,radioButtonActiveColor:A,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:d});return[VRe(R),zRe(R),FRe(R)]});var WRe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const P9=()=>({prefixCls:String,checked:lt(),disabled:lt(),isGroup:lt(),value:ne.any,name:String,id:String,autofocus:lt(),onChange:ut(),onFocus:ut(),onBlur:ut(),onClick:ut(),"onUpdate:checked":ut(),"onUpdate:value":ut()}),Gi=h.defineComponent({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:P9(),setup(t,e){let{emit:n,expose:r,slots:i,attrs:o}=e;const a=Ms(),s=Za.useInject(),l=LRe(),u=kRe(),c=Cs(),f=h.computed(()=>{var $;return($=v.value)!==null&&$!==void 0?$:c.value}),d=h.ref(),{prefixCls:p,direction:g,disabled:v}=Qt("radio",t),m=h.computed(()=>(u==null?void 0:u.optionType.value)==="button"||l==="button"?`${p.value}-button`:p.value),y=Cs(),[b,O]=T9(p);r({focus:()=>{d.value.focus()},blur:()=>{d.value.blur()}});const x=$=>{const A=$.target.checked;n("update:checked",A),n("update:value",A),n("change",$),a.onFieldChange()},T=$=>{n("change",$),u&&u.onChange&&u.onChange($)};return()=>{var $;const A=u,{prefixCls:P,id:M=a.id.value}=t,I=WRe(t,["prefixCls","id"]),R=k(k({prefixCls:m.value,id:M},Er(I,["onUpdate:checked","onUpdate:value"])),{disabled:($=v.value)!==null&&$!==void 0?$:y.value});A?(R.name=A.name.value,R.onChange=T,R.checked=t.value===A.value.value,R.disabled=f.value||A.disabled.value):R.onChange=x;const L=Pe({[`${m.value}-wrapper`]:!0,[`${m.value}-wrapper-checked`]:R.checked,[`${m.value}-wrapper-disabled`]:R.disabled,[`${m.value}-wrapper-rtl`]:g.value==="rtl",[`${m.value}-wrapper-in-form-item`]:s.isFormItemInput},o.class,O.value);return b(h.createVNode("label",K(K({},o),{},{class:L}),[h.createVNode(S9,K(K({},R),{},{type:"radio",ref:d}),null),i.default&&h.createVNode("span",null,[i.default()])]))}}}),QRe=()=>({prefixCls:String,value:ne.any,size:$n(),options:Of(),disabled:lt(),name:String,buttonStyle:$n("outline"),id:String,optionType:$n("default"),onChange:ut(),"onUpdate:value":ut()}),Rf=h.defineComponent({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:QRe(),setup(t,e){let{slots:n,emit:r,attrs:i}=e;const o=Ms(),{prefixCls:a,direction:s,size:l}=Qt("radio",t),[u,c]=T9(a),f=h.ref(t.value),d=h.ref(!1);return h.watch(()=>t.value,g=>{f.value=g,d.value=!1}),RRe({onChange:g=>{const v=f.value,{value:m}=g.target;"value"in t||(f.value=m),!d.value&&m!==v&&(d.value=!0,r("update:value",m),r("change",g),o.onFieldChange()),h.nextTick(()=>{d.value=!1})},value:f,disabled:h.computed(()=>t.disabled),name:h.computed(()=>t.name),optionType:h.computed(()=>t.optionType)}),()=>{var g;const{options:v,buttonStyle:m,id:y=o.id.value}=t,b=`${a.value}-group`,O=Pe(b,`${b}-${m}`,{[`${b}-${l.value}`]:l.value,[`${b}-rtl`]:s.value==="rtl"},i.class,c.value);let w=null;return v&&v.length>0?w=v.map(S=>{if(typeof S=="string"||typeof S=="number")return h.createVNode(Gi,{key:S,prefixCls:a.value,disabled:t.disabled,value:S,checked:f.value===S},{default:()=>[S]});const{value:x,disabled:T,label:$}=S;return h.createVNode(Gi,{key:`radio-group-value-options-${x}`,prefixCls:a.value,disabled:T||t.disabled,value:x,checked:f.value===x},{default:()=>[$]})}):w=(g=n.default)===null||g===void 0?void 0:g.call(n),u(h.createVNode("div",K(K({},i),{},{class:O,id:y}),[w]))}}}),Is=h.defineComponent({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:P9(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=Qt("radio",t);return NRe("button"),()=>{var o;return h.createVNode(Gi,K(K(K({},r),t),{},{prefixCls:i.value}),{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})}}});Gi.Group=Rf,Gi.Button=Is,Gi.install=function(t){return t.component(Gi.name,Gi),t.component(Gi.Group.name,Gi.Group),t.component(Gi.Button.name,Gi.Button),t};const $9=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),t0=t=>({borderColor:t.inputBorderHoverColor,borderInlineEndWidth:t.lineWidth}),jO=t=>({borderColor:t.inputBorderHoverColor,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,borderInlineEndWidth:t.lineWidth,outline:0}),A9=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":k({},t0(Xt(t,{inputBorderHoverColor:t.colorBorder})))}),E9=t=>{const{inputPaddingVerticalLG:e,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:o}=t;return{padding:`${e}px ${o}px`,fontSize:n,lineHeight:r,borderRadius:i}},M9=t=>({padding:`${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM-1}px`,borderRadius:t.borderRadiusSM}),UO=(t,e)=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorOutline:o,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=t;return{[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":k({},jO(Xt(t,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":k({},jO(Xt(t,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${n}-prefix`]:{color:i}}}},ZO=t=>k(k({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${t.inputPaddingVertical}px ${t.inputPaddingHorizontal}px`,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,backgroundColor:t.colorBgContainer,backgroundImage:"none",borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:t.colorBorder,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},$9(t.colorTextPlaceholder)),{"&:hover":k({},t0(t)),"&:focus, &-focused":k({},jO(t)),"&-disabled, &[disabled]":k({},A9(t)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":k({},E9(t)),"&-sm":k({},M9(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),I9=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:k({},E9(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:k({},M9(t)),[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${t.inputPaddingHorizontal}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,textAlign:"center",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${t.inputPaddingVertical+1}px -${t.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${t.lineWidth}px ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:t.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${t.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${e}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:k(k({display:"block"},rO()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${e}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-t.lineWidth,borderInlineEndWidth:t.lineWidth},[`${e}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
  197. & > ${n}-select-auto-complete ${e},
  198. & > ${n}-cascader-picker ${e},
  199. & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
  200. & > ${n}-select:first-child > ${n}-select-selector,
  201. & > ${n}-select-auto-complete:first-child ${e},
  202. & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,
  203. & > ${n}-select:last-child > ${n}-select-selector,
  204. & > ${n}-cascader-picker:last-child ${e},
  205. & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:-t.lineWidth,[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:t.fontSizeSM,height:t.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:t.fontSizeLG,height:t.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${t.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${t.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightSM}px`}}}},HRe=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r}=t,o=(n-r*2-16)/2;return{[e]:k(k(k(k({},bn(t)),ZO(t)),UO(t,e)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:o,paddingBottom:o}}})}},GRe=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${e}-clear-icon`]:{position:"absolute",insetBlockStart:t.paddingXS,insetInlineEnd:t.paddingXS,zIndex:1}}}},jRe=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=t;return{[`${e}-affix-wrapper`]:k(k(k(k(k({},ZO(t)),{display:"inline-flex",[`&:not(${e}-affix-wrapper-disabled):hover`]:k(k({},t0(t)),{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> input${e}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),GRe(t)),{[`${s}${e}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),UO(t,`${e}-affix-wrapper`))}},URe=t=>{const{componentCls:e,colorError:n,colorSuccess:r,borderRadiusLG:i,borderRadiusSM:o}=t;return{[`${e}-group`]:k(k(k({},bn(t)),I9(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:i}},"&-sm":{[`${e}-group-addon`]:{borderRadius:o}},"&-status-error":{[`${e}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${e}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},ZRe=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-search`;return{[r]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:t.controlHeightLG},[`&-small ${r}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,
  206. > ${e},
  207. ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}};function D9(t){return Xt(t,{inputAffixPadding:t.paddingXXS,inputPaddingVertical:Math.max(Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,3),inputPaddingVerticalLG:Math.ceil((t.controlHeightLG-t.fontSizeLG*t.lineHeightLG)/2*10)/10-t.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((t.controlHeightSM-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,0),inputPaddingHorizontal:t.paddingSM-t.lineWidth,inputPaddingHorizontalSM:t.paddingXS-t.lineWidth,inputPaddingHorizontalLG:t.controlPaddingHorizontal-t.lineWidth,inputBorderHoverColor:t.colorPrimaryHover,inputBorderActiveColor:t.colorPrimaryHover})}const XRe=t=>{const{componentCls:e,inputPaddingHorizontal:n,paddingLG:r}=t,i=`${e}-textarea`;return{[i]:{position:"relative",[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${i}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${e}`]:{height:"100%"},"&::after":{color:t.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},xE=Fn("Input",t=>{const e=D9(t);return[HRe(e),XRe(e),jRe(e),URe(e),ZRe(e),IO(e)]});function YRe(t){const e=h.shallowRef(),n=h.shallowRef(!1);function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.value||(Dt.cancel(e.value),e.value=Dt(()=>{t(...o)}))}return h.onBeforeUnmount(()=>{n.value=!0,Dt.cancel(e.value)}),r}function qRe(t){const e=h.shallowRef([]),n=h.shallowRef(typeof t=="function"?t():t),r=YRe(()=>{let o=n.value;e.value.forEach(a=>{o=a(o)}),e.value=[],n.value=o});function i(o){e.value.push(o),r()}return[n,i]}const KRe=h.defineComponent({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(t,e){let{expose:n,attrs:r}=e;const i=h.ref();function o(l){var u;!((u=t.tab)===null||u===void 0)&&u.disabled||t.onClick(l)}n({domRef:i});function a(l){var u;l.preventDefault(),l.stopPropagation(),t.editable.onEdit("remove",{key:(u=t.tab)===null||u===void 0?void 0:u.key,event:l})}const s=h.computed(()=>{var l;return t.editable&&t.closable!==!1&&!(!((l=t.tab)===null||l===void 0)&&l.disabled)});return()=>{var l;const{prefixCls:u,id:c,active:f,tab:{key:d,tab:p,disabled:g,closeIcon:v},renderWrapper:m,removeAriaLabel:y,editable:b,onFocus:O}=t,w=`${u}-tab`,S=h.createVNode("div",{key:d,ref:i,class:Pe(w,{[`${w}-with-remove`]:s.value,[`${w}-active`]:f,[`${w}-disabled`]:g}),style:r.style,onClick:o},[h.createVNode("div",{role:"tab","aria-selected":f,id:c&&`${c}-tab-${d}`,class:`${w}-btn`,"aria-controls":c&&`${c}-panel-${d}`,"aria-disabled":g,tabindex:g?null:0,onClick:x=>{x.stopPropagation(),o(x)},onKeydown:x=>{[Se.SPACE,Se.ENTER].includes(x.which)&&(x.preventDefault(),o(x))},onFocus:O},[typeof p=="function"?p():p]),s.value&&h.createVNode("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${w}-remove`,onClick:x=>{x.stopPropagation(),a(x)}},[(v==null?void 0:v())||((l=b.removeIcon)===null||l===void 0?void 0:l.call(b))||"×"])]);return m?m(S):S}}}),R9={width:0,height:0,left:0,top:0};function JRe(t,e){const n=h.ref(new Map);return h.watchEffect(()=>{var r,i;const o=new Map,a=t.value,s=e.value.get((r=a[0])===null||r===void 0?void 0:r.key)||R9,l=s.left+s.width;for(let u=0;u<a.length;u+=1){const{key:c}=a[u];let f=e.value.get(c);f||(f=e.value.get((i=a[u-1])===null||i===void 0?void 0:i.key)||R9);const d=o.get(c)||k({},f);d.right=l-d.left-d.width,o.set(c,d)}n.value=new Map(o)}),n}const k9=h.defineComponent({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(t,e){let{expose:n,attrs:r}=e;const i=h.ref();return n({domRef:i}),()=>{const{prefixCls:o,editable:a,locale:s}=t;return!a||a.showAdd===!1?null:h.createVNode("button",{ref:i,type:"button",class:`${o}-nav-add`,style:r.style,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:l=>{a.onEdit("add",{event:l})}},[a.addIcon?a.addIcon():"+"])}}}),eke={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:ne.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ut()},tke=h.defineComponent({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:eke,emits:["tabClick"],slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const[i,o]=An(!1),[a,s]=An(null),l=p=>{const g=t.tabs.filter(y=>!y.disabled);let v=g.findIndex(y=>y.key===a.value)||0;const m=g.length;for(let y=0;y<m;y+=1){v=(v+p+m)%m;const b=g[v];if(!b.disabled){s(b.key);return}}},u=p=>{const{which:g}=p;if(!i.value){[Se.DOWN,Se.SPACE,Se.ENTER].includes(g)&&(o(!0),p.preventDefault());return}switch(g){case Se.UP:l(-1),p.preventDefault();break;case Se.DOWN:l(1),p.preventDefault();break;case Se.ESC:o(!1);break;case Se.SPACE:case Se.ENTER:a.value!==null&&t.onTabClick(a.value,p);break}},c=h.computed(()=>`${t.id}-more-popup`),f=h.computed(()=>a.value!==null?`${c.value}-${a.value}`:null),d=(p,g)=>{p.preventDefault(),p.stopPropagation(),t.editable.onEdit("remove",{key:g,event:p})};return h.onMounted(()=>{h.watch(a,()=>{const p=document.getElementById(f.value);p&&p.scrollIntoView&&p.scrollIntoView(!1)},{flush:"post",immediate:!0})}),h.watch(i,()=>{i.value||s(null)}),sRe({}),()=>{var p;const{prefixCls:g,id:v,tabs:m,locale:y,mobile:b,moreIcon:O=((p=r.moreIcon)===null||p===void 0?void 0:p.call(r))||h.createVNode(zO,null,null),moreTransitionName:w,editable:S,tabBarGutter:x,rtl:T,onTabClick:$,popupClassName:A}=t;if(!m.length)return null;const P=`${g}-dropdown`,M=y==null?void 0:y.dropdownAriaLabel,I={[T?"marginRight":"marginLeft"]:x};m.length||(I.visibility="hidden",I.order=1);const R=Pe({[`${P}-rtl`]:T,[`${A}`]:!0}),L=b?null:h.createVNode(PDe,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:w,onVisibleChange:o,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:t.getPopupContainer},{overlay:()=>h.createVNode(Vu,{onClick:D=>{let{key:B,domEvent:F}=D;$(B,F),o(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":f.value,selectedKeys:[a.value],"aria-label":M!==void 0?M:"expanded dropdown"},{default:()=>[m.map(D=>{var B,F;const z=S&&D.closable!==!1&&!D.disabled;return h.createVNode(kp,{key:D.key,id:`${c.value}-${D.key}`,role:"option","aria-controls":v&&`${v}-panel-${D.key}`,disabled:D.disabled},{default:()=>[h.createVNode("span",null,[typeof D.tab=="function"?D.tab():D.tab]),z&&h.createVNode("button",{type:"button","aria-label":t.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:W=>{W.stopPropagation(),d(W,D.key)}},[((B=D.closeIcon)===null||B===void 0?void 0:B.call(D))||((F=S.removeIcon)===null||F===void 0?void 0:F.call(S))||"×"])]})})]}),default:()=>h.createVNode("button",{type:"button",class:`${g}-nav-more`,style:I,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${v}-more`,"aria-expanded":i.value,onKeydown:u},[O])});return h.createVNode("div",{class:Pe(`${g}-nav-operations`,n.class),style:n.style},[L,h.createVNode(k9,{prefixCls:g,locale:y,editable:S},null)])}}}),N9=Symbol("tabsContextKey"),L9=t=>{h.provide(N9,t)},B9=()=>h.inject(N9,{tabs:h.ref([]),prefixCls:h.ref()});h.defineComponent({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(t,e){let{slots:n}=e;return L9(h.toRefs(t)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const nke=.1,V9=.01,XO=20,z9=Math.pow(.995,XO);function rke(t,e){const[n,r]=An(),[i,o]=An(0),[a,s]=An(0),[l,u]=An(),c=h.ref();function f(S){const{screenX:x,screenY:T}=S.touches[0];r({x,y:T}),clearInterval(c.value)}function d(S){if(!n.value)return;S.preventDefault();const{screenX:x,screenY:T}=S.touches[0],$=x-n.value.x,A=T-n.value.y;e($,A),r({x,y:T});const P=Date.now();s(P-i.value),o(P),u({x:$,y:A})}function p(){if(!n.value)return;const S=l.value;if(r(null),u(null),S){const x=S.x/a.value,T=S.y/a.value,$=Math.abs(x),A=Math.abs(T);if(Math.max($,A)<nke)return;let P=x,M=T;c.value=setInterval(()=>{if(Math.abs(P)<V9&&Math.abs(M)<V9){clearInterval(c.value);return}P*=z9,M*=z9,e(P*XO,M*XO)},XO)}}const g=h.ref();function v(S){const{deltaX:x,deltaY:T}=S;let $=0;const A=Math.abs(x),P=Math.abs(T);A===P?$=g.value==="x"?x:T:A>P?($=x,g.value="x"):($=T,g.value="y"),e(-$,-$)&&S.preventDefault()}const m=h.ref({onTouchStart:f,onTouchMove:d,onTouchEnd:p,onWheel:v});function y(S){m.value.onTouchStart(S)}function b(S){m.value.onTouchMove(S)}function O(S){m.value.onTouchEnd(S)}function w(S){m.value.onWheel(S)}h.onMounted(()=>{var S,x;document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),(S=t.value)===null||S===void 0||S.addEventListener("touchstart",y,{passive:!1}),(x=t.value)===null||x===void 0||x.addEventListener("wheel",w,{passive:!1})}),h.onBeforeUnmount(()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",O)})}function F9(t,e){const n=h.ref(t);function r(i){const o=typeof i=="function"?i(n.value):i;o!==n.value&&e(o,n.value),n.value=o}return[n,r]}const ike=()=>{const t=h.ref(new Map),e=n=>r=>{t.value.set(n,r)};return h.onBeforeUpdate(()=>{t.value=new Map}),[e,t]},W9={width:0,height:0,left:0,top:0,right:0},oke=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Vt(),editable:Vt(),moreIcon:ne.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Vt(),popupClassName:String,getPopupContainer:ut(),onTabClick:{type:Function},onTabScroll:{type:Function}}),ake=(t,e)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:o}=t,{width:a,height:s,x:l,y:u}=t.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-e.x,u-e.y]:[n,r,o,i]},Q9=h.defineComponent({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:oke(),slots:Object,emits:["tabClick","tabScroll"],setup(t,e){let{attrs:n,slots:r}=e;const{tabs:i,prefixCls:o}=B9(),a=h.shallowRef(),s=h.shallowRef(),l=h.shallowRef(),u=h.shallowRef(),[c,f]=ike(),d=h.computed(()=>t.tabPosition==="top"||t.tabPosition==="bottom"),[p,g]=F9(0,($e,_e)=>{d.value&&t.onTabScroll&&t.onTabScroll({direction:$e>_e?"left":"right"})}),[v,m]=F9(0,($e,_e)=>{!d.value&&t.onTabScroll&&t.onTabScroll({direction:$e>_e?"top":"bottom"})}),[y,b]=An(0),[O,w]=An(0),[S,x]=An(null),[T,$]=An(null),[A,P]=An(0),[M,I]=An(0),[R,L]=qRe(new Map),D=JRe(i,R),B=h.computed(()=>`${o.value}-nav-operations-hidden`),F=h.shallowRef(0),z=h.shallowRef(0);h.watchEffect(()=>{d.value?t.rtl?(F.value=0,z.value=Math.max(0,y.value-S.value)):(F.value=Math.min(0,S.value-y.value),z.value=0):(F.value=Math.min(0,T.value-O.value),z.value=0)});const W=$e=>$e<F.value?F.value:$e>z.value?z.value:$e,j=h.shallowRef(),[H,Z]=An(),J=()=>{Z(Date.now())},se=()=>{clearTimeout(j.value)},oe=($e,_e)=>{$e(De=>W(De+_e))};rke(a,($e,_e)=>{if(d.value){if(S.value>=y.value)return!1;oe(g,$e)}else{if(T.value>=O.value)return!1;oe(m,_e)}return se(),J(),!0}),h.watch(H,()=>{se(),H.value&&(j.value=setTimeout(()=>{Z(0)},100))});const de=function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activeKey;const _e=D.value.get($e)||{width:0,height:0,left:0,right:0,top:0};if(d.value){let De=p.value;t.rtl?_e.right<p.value?De=_e.right:_e.right+_e.width>p.value+S.value&&(De=_e.right+_e.width-S.value):_e.left<-p.value?De=-_e.left:_e.left+_e.width>-p.value+S.value&&(De=-(_e.left+_e.width-S.value)),m(0),g(W(De))}else{let De=v.value;_e.top<-v.value?De=-_e.top:_e.top+_e.height>-v.value+T.value&&(De=-(_e.top+_e.height-T.value)),g(0),m(W(De))}},ie=h.shallowRef(0),ue=h.shallowRef(0);h.watchEffect(()=>{let $e,_e,De,Fe,ct,vt;const zt=D.value;["top","bottom"].includes(t.tabPosition)?($e="width",Fe=S.value,ct=y.value,vt=A.value,_e=t.rtl?"right":"left",De=Math.abs(p.value)):($e="height",Fe=T.value,ct=y.value,vt=M.value,_e="top",De=-v.value);let we=Fe;ct+vt>Fe&&ct<Fe&&(we=Fe-vt);const rt=i.value;if(!rt.length)return[ie.value,ue.value]=[0,0];const Mt=rt.length;let mn=Mt;for(let pr=0;pr<Mt;pr+=1){const Ni=zt.get(rt[pr].key)||W9;if(Ni[_e]+Ni[$e]>De+we){mn=pr-1;break}}let pn=0;for(let pr=Mt-1;pr>=0;pr-=1)if((zt.get(rt[pr].key)||W9)[_e]<De){pn=pr+1;break}return[ie.value,ue.value]=[pn,mn]});const ee=()=>{L(()=>{var $e;const _e=new Map,De=($e=s.value)===null||$e===void 0?void 0:$e.getBoundingClientRect();return i.value.forEach(Fe=>{let{key:ct}=Fe;const vt=f.value.get(ct),zt=(vt==null?void 0:vt.$el)||vt;if(zt){const[we,rt,Mt,mn]=ake(zt,De);_e.set(ct,{width:we,height:rt,left:Mt,top:mn})}}),_e})};h.watch(()=>i.value.map($e=>$e.key).join("%%"),()=>{ee()},{flush:"post"});const X=()=>{var $e,_e,De,Fe,ct;const vt=(($e=a.value)===null||$e===void 0?void 0:$e.offsetWidth)||0,zt=((_e=a.value)===null||_e===void 0?void 0:_e.offsetHeight)||0,we=((De=u.value)===null||De===void 0?void 0:De.$el)||{},rt=we.offsetWidth||0,Mt=we.offsetHeight||0;x(vt),$(zt),P(rt),I(Mt);const mn=(((Fe=s.value)===null||Fe===void 0?void 0:Fe.offsetWidth)||0)-rt,pn=(((ct=s.value)===null||ct===void 0?void 0:ct.offsetHeight)||0)-Mt;b(mn),w(pn),ee()},Y=h.computed(()=>[...i.value.slice(0,ie.value),...i.value.slice(ue.value+1)]),[le,ve]=An(),ye=h.computed(()=>D.value.get(t.activeKey)),Ne=h.shallowRef(),Be=()=>{Dt.cancel(Ne.value)};h.watch([ye,d,()=>t.rtl],()=>{const $e={};ye.value&&(d.value?(t.rtl?$e.right=Rm(ye.value.right):$e.left=Rm(ye.value.left),$e.width=Rm(ye.value.width)):($e.top=Rm(ye.value.top),$e.height=Rm(ye.value.height))),Be(),Ne.value=Dt(()=>{ve($e)})}),h.watch([()=>t.activeKey,ye,D,d],()=>{de()},{flush:"post"}),h.watch([()=>t.rtl,()=>t.tabBarGutter,()=>t.activeKey,()=>i.value],()=>{X()},{flush:"post"});const Me=$e=>{let{position:_e,prefixCls:De,extra:Fe}=$e;if(!Fe)return null;const ct=Fe==null?void 0:Fe({position:_e});return ct?h.createVNode("div",{class:`${De}-extra-content`},[ct]):null};return h.onBeforeUnmount(()=>{se(),Be()}),()=>{const{id:$e,animated:_e,activeKey:De,rtl:Fe,editable:ct,locale:vt,tabPosition:zt,tabBarGutter:we,onTabClick:rt}=t,{class:Mt,style:mn}=n,pn=o.value,pr=!!Y.value.length,Ni=`${pn}-nav-wrap`;let du,hu,Uc,Th;d.value?Fe?(hu=p.value>0,du=p.value+S.value<y.value):(du=p.value<0,hu=-p.value+S.value<y.value):(Uc=v.value<0,Th=-v.value+T.value<O.value);const vl={};zt==="top"||zt==="bottom"?vl[Fe?"marginRight":"marginLeft"]=typeof we=="number"?`${we}px`:we:vl.marginTop=typeof we=="number"?`${we}px`:we;const Ph=i.value.map(($h,x_)=>{const{key:Zc}=$h;return h.createVNode(KRe,{id:$e,prefixCls:pn,key:Zc,tab:$h,style:x_===0?void 0:vl,closable:$h.closable,editable:ct,active:Zc===De,removeAriaLabel:vt==null?void 0:vt.removeAriaLabel,ref:c(Zc),onClick:C_=>{rt(Zc,C_)},onFocus:()=>{de(Zc),J(),a.value&&(Fe||(a.value.scrollLeft=0),a.value.scrollTop=0)}},r)});return h.createVNode("div",{role:"tablist",class:Pe(`${pn}-nav`,Mt),style:mn,onKeydown:()=>{J()}},[h.createVNode(Me,{position:"left",prefixCls:pn,extra:r.leftExtra},null),h.createVNode(vp,{onResize:X},{default:()=>[h.createVNode("div",{class:Pe(Ni,{[`${Ni}-ping-left`]:du,[`${Ni}-ping-right`]:hu,[`${Ni}-ping-top`]:Uc,[`${Ni}-ping-bottom`]:Th}),ref:a},[h.createVNode(vp,{onResize:X},{default:()=>[h.createVNode("div",{ref:s,class:`${pn}-nav-list`,style:{transform:`translate(${p.value}px, ${v.value}px)`,transition:H.value?"none":void 0}},[Ph,h.createVNode(k9,{ref:u,prefixCls:pn,locale:vt,editable:ct,style:k(k({},Ph.length===0?void 0:vl),{visibility:pr?"hidden":null})},null),h.createVNode("div",{class:Pe(`${pn}-ink-bar`,{[`${pn}-ink-bar-animated`]:_e.inkBar}),style:le.value},null)])]})])]}),h.createVNode(tke,K(K({},t),{},{removeAriaLabel:vt==null?void 0:vt.removeAriaLabel,ref:l,prefixCls:pn,tabs:Y.value,class:!pr&&B.value}),Xh(r,["moreIcon"])),h.createVNode(Me,{position:"right",prefixCls:pn,extra:r.rightExtra},null),h.createVNode(Me,{position:"right",prefixCls:pn,extra:r.tabBarExtraContent},null)])}}}),ske=h.defineComponent({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(t){const{tabs:e,prefixCls:n}=B9();return()=>{const{id:r,activeKey:i,animated:o,tabPosition:a,rtl:s,destroyInactiveTabPane:l}=t,u=o.tabPane,c=n.value,f=e.value.findIndex(d=>d.key===i);return h.createVNode("div",{class:`${c}-content-holder`},[h.createVNode("div",{class:[`${c}-content`,`${c}-content-${a}`,{[`${c}-content-animated`]:u}],style:f&&u?{[s?"marginRight":"marginLeft"]:`-${f}00%`}:null},[e.value.map(d=>Gn(d.node,{key:d.key,prefixCls:c,tabKey:d.key,id:r,animated:u,active:d.key===i,destroyInactiveTabPane:l}))])])}}});var lke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function H9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){uke(t,i,n[i])})}return t}function uke(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var YO=function(e,n){var r=H9({},e,n.attrs);return h.createVNode(mt,H9({},r,{icon:lke}),null)};YO.displayName="PlusOutlined",YO.inheritAttrs=!1;const cke=t=>{const{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{[`${e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ep(t,"slide-up"),Ep(t,"slide-down")]]},fke=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:o}=t;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:n,background:r,border:`${t.lineWidth}px ${t.lineType} ${o}`,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`${e}-tab-active`]:{color:t.colorPrimary,background:t.colorBgContainer},[`${e}-ink-bar`]:{visibility:"hidden"}},[`&${e}-top, &${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`},[`${e}-tab-active`]:{borderBottomColor:t.colorBgContainer}}},[`&${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`},[`${e}-tab-active`]:{borderTopColor:t.colorBgContainer}}},[`&${e}-left, &${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginTop:`${i}px`}}},[`&${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadiusLG}px 0 0 ${t.borderRadiusLG}px`}},[`${e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:t.colorBgContainer}}}},[`&${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px 0`}},[`${e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}},dke=t=>{const{componentCls:e,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=t;return{[`${e}-dropdown`]:k(k({},bn(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":k(k({},wp),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:`${t.paddingXXS}px ${t.paddingSM}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},hke=t=>{const{componentCls:e,margin:n,colorSplit:r}=t;return{[`${e}-top, ${e}-bottom`]:{flexDirection:"column",[`> ${e}-nav, > div > ${e}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${t.lineWidth}px ${t.lineType} ${r}`,content:"''"},[`${e}-ink-bar`]:{height:t.lineWidthBold,"&-animated":{transition:`width ${t.motionDurationSlow}, left ${t.motionDurationSlow},
  208. right ${t.motionDurationSlow}`}},[`${e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},[`&${e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${e}-top`]:{[`> ${e}-nav,
  209. > div > ${e}-nav`]:{"&::before":{bottom:0},[`${e}-ink-bar`]:{bottom:0}}},[`${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${e}-ink-bar`]:{top:0}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0}},[`${e}-left, ${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{flexDirection:"column",minWidth:t.controlHeight*1.25,[`${e}-tab`]:{padding:`${t.paddingXS}px ${t.paddingLG}px`,textAlign:"center"},[`${e}-tab + ${e}-tab`]:{margin:`${t.margin}px 0 0 0`},[`${e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight},"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},[`&${e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${e}-ink-bar`]:{width:t.lineWidthBold,"&-animated":{transition:`height ${t.motionDurationSlow}, top ${t.motionDurationSlow}`}},[`${e}-nav-list, ${e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${t.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},[`${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,[`${e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-t.lineWidth},borderRight:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}},pke=t=>{const{componentCls:e,padding:n}=t;return{[e]:{"&-small":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px 0`,fontSize:t.fontSize}}},"&-large":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${n}px 0`,fontSize:t.fontSizeLG}}}},[`${e}-card`]:{[`&${e}-small`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXXS*1.5}px ${n}px`}},[`&${e}-bottom`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`0 0 ${t.borderRadius}px ${t.borderRadius}px`}},[`&${e}-top`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`${t.borderRadius}px ${t.borderRadius}px 0 0`}},[`&${e}-right`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadius}px ${t.borderRadius}px 0`}}},[`&${e}-left`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadius}px 0 0 ${t.borderRadius}px`}}}},[`&${e}-large`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px ${n}px ${t.paddingXXS*1.5}px`}}}}}},gke=t=>{const{componentCls:e,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:o}=t,a=`${e}-tab`;return{[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${t.paddingSM}px 0`,fontSize:`${t.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":k({"&:focus:not(:focus-visible), &:active":{color:n}},iO(t)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-t.marginXXS},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextHeading}},"&:hover":{color:r},[`&${a}-active ${a}-btn`]:{color:t.colorPrimary,textShadow:t.tabsActiveTextShadow},[`&${a}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${e}-remove`]:{"&:focus, &:active":{color:t.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},vke=t=>{const{componentCls:e,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=t;return{[`${e}-rtl`]:{direction:"rtl",[`${e}-nav`]:{[`${e}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${t.marginSM}px`}},[`${e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${t.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${t.marginXXS}px`},[r]:{margin:0}}}},[`&${e}-left`]:{[`> ${e}-nav`]:{order:1},[`> ${e}-content-holder`]:{order:0}},[`&${e}-right`]:{[`> ${e}-nav`]:{order:0},[`> ${e}-content-holder`]:{order:1}},[`&${e}-card${e}-top, &${e}-card${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${e}-dropdown-rtl`]:{direction:"rtl"},[`${e}-menu-item`]:{[`${e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},mke=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorSplit:s}=t;return{[e]:k(k(k(k({},bn(t)),{display:"flex",[`> ${e}-nav, > div > ${e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${t.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${t.motionDurationSlow}`},[`${e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${e}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:t.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${e}-nav-add`]:k({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${t.paddingXS}px`,background:"transparent",border:`${t.lineWidth}px ${t.lineType} ${s}`,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:t.colorText,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},iO(t))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:t.colorPrimary,pointerEvents:"none"}}),gke(t)),{[`${e}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${e}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${e}-centered`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-nav-wrap`]:{[`&:not([class*='${e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},yke=Fn("Tabs",t=>{const e=t.controlHeightLG,n=Xt(t,{tabsHoverColor:t.colorPrimaryHover,tabsActiveColor:t.colorPrimaryActive,tabsCardHorizontalPadding:`${(e-Math.round(t.fontSize*t.lineHeight))/2-t.lineWidth}px ${t.padding}px`,tabsCardHeight:e,tabsCardGutter:t.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:t.colorFillAlter,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[pke(n),vke(n),hke(n),dke(n),fke(n),mke(n),cke(n)]},t=>({zIndexPopup:t.zIndexPopupBase+50}));let G9=0;const j9=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ut(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:$n(),animated:kn([Boolean,Object]),renderTabBar:ut(),tabBarGutter:{type:Number},tabBarStyle:Vt(),tabPosition:$n(),destroyInactiveTabPane:lt(),hideAdd:Boolean,type:$n(),size:$n(),centered:Boolean,onEdit:ut(),onChange:ut(),onTabClick:ut(),onTabScroll:ut(),"onUpdate:activeKey":ut(),locale:Vt(),onPrevClick:ut(),onNextClick:ut(),tabBarExtraContent:ne.any});function bke(t){return t.map(e=>{if(po(e)){const n=k({},e.props||{});for(const[d,p]of Object.entries(n))delete n[d],n[Q$(d)]=p;const r=e.children||{},i=e.key!==void 0?e.key:void 0,{tab:o=r.tab,disabled:a,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:f}=n;return k(k({key:i},n),{node:e,closeIcon:r.closeIcon,tab:o,disabled:a===""||a,forceRender:s===""||s,closable:l===""||l,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:f===""||f})}return null}).filter(e=>e)}const _ke=h.defineComponent({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:k(k({},Ar(j9(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Of()}),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;mo(t.onPrevClick===void 0&&t.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),mo(t.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),mo(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:o,size:a,rootPrefixCls:s,getPopupContainer:l}=Qt("tabs",t),[u,c]=yke(i),f=h.computed(()=>o.value==="rtl"),d=h.computed(()=>{const{animated:T,tabPosition:$}=t;return T===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:T===!0?{inkBar:!0,tabPane:!0}:k({inkBar:!0,tabPane:!1},typeof T=="object"?T:{})}),[p,g]=An(!1);h.onMounted(()=>{g(HA())});const[v,m]=Ap(()=>{var T;return(T=t.tabs[0])===null||T===void 0?void 0:T.key},{value:h.computed(()=>t.activeKey),defaultValue:t.defaultActiveKey}),[y,b]=An(()=>t.tabs.findIndex(T=>T.key===v.value));h.watchEffect(()=>{var T;let $=t.tabs.findIndex(A=>A.key===v.value);$===-1&&($=Math.max(0,Math.min(y.value,t.tabs.length-1)),m((T=t.tabs[$])===null||T===void 0?void 0:T.key)),b($)});const[O,w]=Ap(null,{value:h.computed(()=>t.id)}),S=h.computed(()=>p.value&&!["left","right"].includes(t.tabPosition)?"top":t.tabPosition);h.onMounted(()=>{t.id||(w(`rc-tabs-${process.env.NODE_ENV==="test"?"test":G9}`),G9+=1)});const x=(T,$)=>{var A,P;(A=t.onTabClick)===null||A===void 0||A.call(t,T,$);const M=T!==v.value;m(T),M&&((P=t.onChange)===null||P===void 0||P.call(t,T))};return L9({tabs:h.computed(()=>t.tabs),prefixCls:i}),()=>{const{id:T,type:$,tabBarGutter:A,tabBarStyle:P,locale:M,destroyInactiveTabPane:I,renderTabBar:R=r.renderTabBar,onTabScroll:L,hideAdd:D,centered:B}=t,F={id:O.value,activeKey:v.value,animated:d.value,tabPosition:S.value,rtl:f.value,mobile:p.value};let z;$==="editable-card"&&(z={onEdit:(Z,J)=>{let{key:se,event:oe}=J;var de;(de=t.onEdit)===null||de===void 0||de.call(t,Z==="add"?oe:se,Z)},removeIcon:()=>h.createVNode(Il,null,null),addIcon:r.addIcon?r.addIcon:()=>h.createVNode(YO,null,null),showAdd:D!==!0});let W;const j=k(k({},F),{moreTransitionName:`${s.value}-slide-up`,editable:z,locale:M,tabBarGutter:A,onTabClick:x,onTabScroll:L,style:P,getPopupContainer:l.value,popupClassName:Pe(t.popupClassName,c.value)});R?W=R(k(k({},j),{DefaultTabBar:Q9})):W=h.createVNode(Q9,j,Xh(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const H=i.value;return u(h.createVNode("div",K(K({},n),{},{id:T,class:Pe(H,`${H}-${S.value}`,{[c.value]:!0,[`${H}-${a.value}`]:a.value,[`${H}-card`]:["card","editable-card"].includes($),[`${H}-editable-card`]:$==="editable-card",[`${H}-centered`]:B,[`${H}-mobile`]:p.value,[`${H}-editable`]:$==="editable-card",[`${H}-rtl`]:f.value},n.class)}),[W,h.createVNode(ske,K(K({destroyInactiveTabPane:I},F),{},{animated:d.value}),null)]))}}}),kf=h.defineComponent({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Ar(j9(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=a=>{i("update:activeKey",a),i("change",a)};return()=>{var a;const s=bke(vr((a=r.default)===null||a===void 0?void 0:a.call(r)));return h.createVNode(_ke,K(K(K({},Er(t,["onUpdate:activeKey"])),n),{},{onChange:o,tabs:s}),r)}}}),Oke=()=>({tab:ne.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),Nl=h.defineComponent({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Oke(),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(t.forceRender);h.watch([()=>t.active,()=>t.destroyInactiveTabPane],()=>{t.active?i.value=!0:t.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const o=h.computed(()=>t.active?{}:t.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var a;const{prefixCls:s,forceRender:l,id:u,active:c,tabKey:f}=t;return h.createVNode("div",{id:u&&`${u}-panel-${f}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${f}`,"aria-hidden":!c,style:[o.value,n.style],class:[`${s}-tabpane`,c&&`${s}-tabpane-active`,n.class]},[(c||i.value||l)&&((a=r.default)===null||a===void 0?void 0:a.call(r))])}}});kf.TabPane=Nl,kf.install=function(t){return t.component(kf.name,kf),t.component(Nl.name,Nl),t};const wke=()=>({prefixCls:String,activeKey:kn([Array,Number,String]),defaultActiveKey:kn([Array,Number,String]),accordion:lt(),destroyInactivePanel:lt(),bordered:lt(),expandIcon:ut(),openAnimation:ne.object,expandIconPosition:$n(),collapsible:$n(),ghost:lt(),onChange:ut(),"onUpdate:activeKey":ut()}),U9=()=>({openAnimation:ne.object,prefixCls:String,header:ne.any,headerClass:String,showArrow:lt(),isActive:lt(),destroyInactivePanel:lt(),disabled:lt(),accordion:lt(),forceRender:lt(),expandIcon:ut(),extra:ne.any,panelKey:kn(),collapsible:$n(),role:String,onItemClick:ut()}),Ske=t=>{const{componentCls:e,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:u,colorBorder:c,colorText:f,colorTextHeading:d,colorTextDisabled:p,fontSize:g,lineHeight:v,marginSM:m,paddingSM:y,motionDurationSlow:b,fontSizeIcon:O}=t,w=`${l}px ${u} ${c}`;return{[e]:k(k({},bn(t)),{backgroundColor:o,border:w,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:w,"&:last-child":{[`
  210. &,
  211. & > ${e}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:d,lineHeight:v,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:g*v,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${e}-arrow`]:k(k({},Sp()),{fontSize:O,svg:{transition:`transform ${b}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:y}}},[`${e}-content`]:{color:f,backgroundColor:n,borderTop:w,[`& > ${e}-content-box`]:{padding:`${r}px ${i}px`},"&-hidden":{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},xke=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Cke=t=>{const{componentCls:e,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[`
  212. > ${e}-item:last-child,
  213. > ${e}-item:last-child ${e}-header
  214. `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:r}}}},Tke=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}},Pke=Fn("Collapse",t=>{const e=Xt(t,{collapseContentBg:t.colorBgContainer,collapseHeaderBg:t.colorFillAlter,collapseHeaderPadding:`${t.paddingSM}px ${t.padding}px`,collapsePanelBorderRadius:t.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Ske(e),Cke(e),Tke(e),xke(e),aE(e)]});function Z9(t){let e=t;if(!Array.isArray(e)){const n=typeof e;e=n==="number"||n==="string"?[e]:[]}return e.map(n=>String(n))}const n0=h.defineComponent({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ar(wke(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=h.ref(Z9(VQ([t.activeKey,t.defaultActiveKey])));h.watch(()=>t.activeKey,()=>{o.value=Z9(t.activeKey)},{deep:!0});const{prefixCls:a,direction:s,rootPrefixCls:l}=Qt("collapse",t),[u,c]=Pke(a),f=h.computed(()=>{const{expandIconPosition:y}=t;return y!==void 0?y:s.value==="rtl"?"end":"start"}),d=y=>{const{expandIcon:b=r.expandIcon}=t,O=b?b(y):h.createVNode(FO,{rotate:y.isActive?90:void 0},null);return h.createVNode("div",{class:[`${a.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(t.collapsible)&&g(y.panelKey)},[po(Array.isArray(b)?O[0]:O)?Gn(O,{class:`${a.value}-arrow`},!1):O])},p=y=>{t.activeKey===void 0&&(o.value=y);const b=t.accordion?y[0]:y;i("update:activeKey",b),i("change",b)},g=y=>{let b=o.value;if(t.accordion)b=b[0]===y?[]:[y];else{b=[...b];const O=b.indexOf(y);O>-1?b.splice(O,1):b.push(y)}p(b)},v=(y,b)=>{var O,w,S;if(j$(y))return;const x=o.value,{accordion:T,destroyInactivePanel:$,collapsible:A,openAnimation:P}=t,M=P||wE(`${l.value}-motion-collapse`),I=String((O=y.key)!==null&&O!==void 0?O:b),{header:R=(S=(w=y.children)===null||w===void 0?void 0:w.header)===null||S===void 0?void 0:S.call(w),headerClass:L,collapsible:D,disabled:B}=y.props||{};let F=!1;T?F=x[0]===I:F=x.indexOf(I)>-1;let z=D??A;(B||B==="")&&(z="disabled");const W={key:I,panelKey:I,header:R,headerClass:L,isActive:F,prefixCls:a.value,destroyInactivePanel:$,openAnimation:M,accordion:T,onItemClick:z==="disabled"?null:g,expandIcon:d,collapsible:z};return Gn(y,W)},m=()=>{var y;return vr((y=r.default)===null||y===void 0?void 0:y.call(r)).map(v)};return()=>{const{accordion:y,bordered:b,ghost:O}=t,w=Pe(a.value,{[`${a.value}-borderless`]:!b,[`${a.value}-icon-position-${f.value}`]:!0,[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-ghost`]:!!O,[n.class]:!!n.class},c.value);return u(h.createVNode("div",K(K({class:w},vPe(n)),{},{style:n.style,role:y?"tablist":null}),[m()]))}}}),$ke=h.defineComponent({compatConfig:{MODE:3},name:"PanelContent",props:U9(),setup(t,e){let{slots:n}=e;const r=h.shallowRef(!1);return h.watchEffect(()=>{(t.isActive||t.forceRender)&&(r.value=!0)}),()=>{var i;if(!r.value)return null;const{prefixCls:o,isActive:a,role:s}=t;return h.createVNode("div",{class:Pe(`${o}-content`,{[`${o}-content-active`]:a,[`${o}-content-inactive`]:!a}),role:s},[h.createVNode("div",{class:`${o}-content-box`},[(i=n.default)===null||i===void 0?void 0:i.call(n)])])}}}),qO=h.defineComponent({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ar(U9(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;mo(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:o}=Qt("collapse",t),a=()=>{r("itemClick",t.panelKey)},s=l=>{(l.key==="Enter"||l.keyCode===13||l.which===13)&&a()};return()=>{var l,u;const{header:c=(l=n.header)===null||l===void 0?void 0:l.call(n),headerClass:f,isActive:d,showArrow:p,destroyInactivePanel:g,accordion:v,forceRender:m,openAnimation:y,expandIcon:b=n.expandIcon,extra:O=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:w}=t,S=w==="disabled",x=o.value,T=Pe(`${x}-header`,{[f]:f,[`${x}-header-collapsible-only`]:w==="header",[`${x}-icon-collapsible-only`]:w==="icon"}),$=Pe({[`${x}-item`]:!0,[`${x}-item-active`]:d,[`${x}-item-disabled`]:S,[`${x}-no-arrow`]:!p,[`${i.class}`]:!!i.class});let A=h.createVNode("i",{class:"arrow"},null);p&&typeof b=="function"&&(A=b(t));const P=h.withDirectives(h.createVNode($ke,{prefixCls:x,isActive:d,forceRender:m,role:v?"tabpanel":null},{default:n.default}),[[h.vShow,d]]),M=k({appear:!1,css:!1},y);return h.createVNode("div",K(K({},i),{},{class:$}),[h.createVNode("div",{class:T,onClick:()=>!["header","icon"].includes(w)&&a(),role:v?"tab":"button",tabindex:S?-1:0,"aria-expanded":d,onKeypress:s},[p&&A,h.createVNode("span",{onClick:()=>w==="header"&&a(),class:`${x}-header-text`},[c]),O&&h.createVNode("div",{class:`${x}-extra`},[O])]),h.createVNode(h.Transition,M,{default:()=>[!g||d?P:null]})])}}});n0.Panel=qO,n0.install=function(t){return t.component(n0.name,n0),t.component(qO.name,qO),t};var Ake={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function X9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Eke(t,i,n[i])})}return t}function Eke(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var CE=function(e,n){var r=X9({},e,n.attrs);return h.createVNode(mt,X9({},r,{icon:Ake}),null)};CE.displayName="LeftOutlined",CE.inheritAttrs=!1;const Y9=()=>jo()&&window.document.documentElement;let KO;const Mke=()=>{if(!Y9())return!1;if(KO!==void 0)return KO;const t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),KO=t.scrollHeight===1,document.body.removeChild(t),KO},Ike=()=>{const t=h.shallowRef(!1);return h.onMounted(()=>{t.value=Mke()}),t},q9=Symbol("rowContextKey"),Dke=t=>{h.provide(q9,t)},Rke=()=>h.inject(q9,{gutter:h.computed(()=>{}),wrap:h.computed(()=>{}),supportFlexGap:h.computed(()=>{})}),kke=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Nke=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},Lke=(t,e)=>{const{componentCls:n,gridColumns:r}=t,i={};for(let o=r;o>=0;o--)o===0?(i[`${n}${e}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${e}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-offset-${o}`]={marginInlineEnd:0},i[`${n}${e}-order-${o}`]={order:0}):(i[`${n}${e}-${o}`]={display:"block",flex:`0 0 ${o/r*100}%`,maxWidth:`${o/r*100}%`},i[`${n}${e}-push-${o}`]={insetInlineStart:`${o/r*100}%`},i[`${n}${e}-pull-${o}`]={insetInlineEnd:`${o/r*100}%`},i[`${n}${e}-offset-${o}`]={marginInlineStart:`${o/r*100}%`},i[`${n}${e}-order-${o}`]={order:o});return i},TE=(t,e)=>Lke(t,e),Bke=(t,e,n)=>({[`@media (min-width: ${e}px)`]:k({},TE(t,n))}),Vke=Fn("Grid",t=>[kke(t)]),zke=Fn("Grid",t=>{const e=Xt(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[Nke(e),TE(e,""),TE(e,"-xs"),Object.keys(n).map(r=>Bke(e,n[r],r)).reduce((r,i)=>k(k({},r),i),{})]}),Fke=()=>({align:kn([String,Object]),justify:kn([String,Object]),prefixCls:String,gutter:kn([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),Wke=h.defineComponent({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:Fke(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o}=Qt("row",t),[a,s]=Vke(i);let l;const u=sDe(),c=h.ref({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),f=h.ref({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),d=O=>h.computed(()=>{if(typeof t[O]=="string")return t[O];if(typeof t[O]!="object")return"";for(let w=0;w<RO.length;w++){const S=RO[w];if(!f.value[S])continue;const x=t[O][S];if(x!==void 0)return x}return""}),p=d("align"),g=d("justify"),v=Ike();h.onMounted(()=>{l=u.value.subscribe(O=>{f.value=O;const w=t.gutter||0;(!Array.isArray(w)&&typeof w=="object"||Array.isArray(w)&&(typeof w[0]=="object"||typeof w[1]=="object"))&&(c.value=O)})}),h.onBeforeUnmount(()=>{u.value.unsubscribe(l)});const m=h.computed(()=>{const O=[void 0,void 0],{gutter:w=0}=t;return(Array.isArray(w)?w:[w,void 0]).forEach((x,T)=>{if(typeof x=="object")for(let $=0;$<RO.length;$++){const A=RO[$];if(c.value[A]&&x[A]!==void 0){O[T]=x[A];break}}else O[T]=x}),O});Dke({gutter:m,supportFlexGap:v,wrap:h.computed(()=>t.wrap)});const y=h.computed(()=>Pe(i.value,{[`${i.value}-no-wrap`]:t.wrap===!1,[`${i.value}-${g.value}`]:g.value,[`${i.value}-${p.value}`]:p.value,[`${i.value}-rtl`]:o.value==="rtl"},r.class,s.value)),b=h.computed(()=>{const O=m.value,w={},S=O[0]!=null&&O[0]>0?`${O[0]/-2}px`:void 0,x=O[1]!=null&&O[1]>0?`${O[1]/-2}px`:void 0;return S&&(w.marginLeft=S,w.marginRight=S),v.value?w.rowGap=`${O[1]}px`:x&&(w.marginTop=x,w.marginBottom=x),w});return()=>{var O;return a(h.createVNode("div",K(K({},r),{},{class:y.value,style:k(k({},b.value),r.style)}),[(O=n.default)===null||O===void 0?void 0:O.call(n)]))}}});function zu(t){return t==null?[]:Array.isArray(t)?t:[t]}function K9(t,e){let n=t;for(let r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function J9(t,e,n,r){if(!e.length)return n;const[i,...o]=e;let a;return!t&&typeof i=="number"?a=[]:Array.isArray(t)?a=[...t]:a=k({},t),r&&n===void 0&&o.length===1?delete a[i][o[0]]:a[i]=J9(a[i],o,n,r),a}function Qke(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!K9(t,e.slice(0,-1))?t:J9(t,e,n,r)}function PE(t){return zu(t)}function Hke(t,e){return K9(t,e)}function Gke(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Qke(t,e,n,r)}function jke(t,e){return t&&t.some(n=>Zke(n,e))}function eH(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function tH(t,e){const n=Array.isArray(t)?[...t]:k({},t);return e&&Object.keys(e).forEach(r=>{const i=n[r],o=e[r],a=eH(i)&&eH(o);n[r]=a?tH(i,o||{}):o}),n}function Uke(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((i,o)=>tH(i,o),t)}function nH(t,e){let n={};return e.forEach(r=>{const i=Hke(t,r);n=Gke(n,r,i)}),n}function Zke(t,e){return!t||!e||t.length!==e.length?!1:t.every((n,r)=>e[r]===n)}const yo="'${name}' is not a valid ${type}",JO={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,url:yo,hex:yo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var ew=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const Xke=Pm;function Yke(t,e){return t.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return e[r]})}function $E(t,e,n,r,i){return ew(this,void 0,void 0,function*(){const o=k({},n);delete o.ruleIndex,delete o.trigger;let a=null;o&&o.type==="array"&&o.defaultField&&(a=o.defaultField,delete o.defaultField);const s=new Xke({[t]:[o]}),l=Uke({},JO,r.validateMessages);s.messages(l);let u=[];try{yield Promise.resolve(s.validate({[t]:e},k({},r)))}catch(d){d.errors?u=d.errors.map((p,g)=>{let{message:v}=p;return po(v)?h.cloneVNode(v,{key:`error_${g}`}):v}):(console.error(d),u=[l.default()])}if(!u.length&&a)return(yield Promise.all(e.map((p,g)=>$E(`${t}.${g}`,p,a,r,i)))).reduce((p,g)=>[...p,...g],[]);const c=k(k(k({},n),{name:t,enum:(n.enum||[]).join(", ")}),i);return u.map(d=>typeof d=="string"?Yke(d,c):d)})}function rH(t,e,n,r,i,o){const a=t.join("."),s=n.map((u,c)=>{const f=u.validator,d=k(k({},u),{ruleIndex:c});return f&&(d.validator=(p,g,v)=>{let m=!1;const b=f(p,g,function(){for(var O=arguments.length,w=new Array(O),S=0;S<O;S++)w[S]=arguments[S];Promise.resolve().then(()=>{Sf(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||v(...w)})});m=b&&typeof b.then=="function"&&typeof b.catch=="function",Sf(m,"`callback` is deprecated. Please return a promise instead."),m&&b.then(()=>{v()}).catch(O=>{v(O||" ")})}),d}).sort((u,c)=>{let{warningOnly:f,ruleIndex:d}=u,{warningOnly:p,ruleIndex:g}=c;return!!f==!!p?d-g:f?1:-1});let l;if(i===!0)l=new Promise((u,c)=>ew(this,void 0,void 0,function*(){for(let f=0;f<s.length;f+=1){const d=s[f],p=yield $E(a,e,d,r,o);if(p.length){c([{errors:p,rule:d}]);return}}u([])}));else{const u=s.map(c=>$E(a,e,c,r,o).then(f=>({errors:f,rule:c})));l=(i?Kke(u):qke(u)).then(c=>Promise.reject(c))}return l.catch(u=>u),l}function qke(t){return ew(this,void 0,void 0,function*(){return Promise.all(t).then(e=>[].concat(...e))})}function Kke(t){return ew(this,void 0,void 0,function*(){let e=0;return new Promise(n=>{t.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),e+=1,e===t.length&&n([])})})})})}const iH=Symbol("formContextKey"),oH=t=>{h.provide(iH,t)},AE=()=>h.inject(iH,{name:h.computed(()=>{}),labelAlign:h.computed(()=>"right"),vertical:h.computed(()=>!1),addField:(t,e)=>{},removeField:t=>{},model:h.computed(()=>{}),rules:h.computed(()=>{}),colon:h.computed(()=>{}),labelWrap:h.computed(()=>{}),labelCol:h.computed(()=>{}),requiredMark:h.computed(()=>!1),validateTrigger:h.computed(()=>{}),onValidate:()=>{},validateMessages:h.computed(()=>JO)}),aH=Symbol("formItemPrefixContextKey"),Jke=t=>{h.provide(aH,t)},eNe=()=>h.inject(aH,{prefixCls:h.computed(()=>"")});function tNe(t){return typeof t=="number"?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}const nNe=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),rNe=["xs","sm","md","lg","xl","xxl"],sH=h.defineComponent({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:nNe(),setup(t,e){let{slots:n,attrs:r}=e;const{gutter:i,supportFlexGap:o,wrap:a}=Rke(),{prefixCls:s,direction:l}=Qt("col",t),[u,c]=zke(s),f=h.computed(()=>{const{span:p,order:g,offset:v,push:m,pull:y}=t,b=s.value;let O={};return rNe.forEach(w=>{let S={};const x=t[w];typeof x=="number"?S.span=x:typeof x=="object"&&(S=x||{}),O=k(k({},O),{[`${b}-${w}-${S.span}`]:S.span!==void 0,[`${b}-${w}-order-${S.order}`]:S.order||S.order===0,[`${b}-${w}-offset-${S.offset}`]:S.offset||S.offset===0,[`${b}-${w}-push-${S.push}`]:S.push||S.push===0,[`${b}-${w}-pull-${S.pull}`]:S.pull||S.pull===0,[`${b}-rtl`]:l.value==="rtl"})}),Pe(b,{[`${b}-${p}`]:p!==void 0,[`${b}-order-${g}`]:g,[`${b}-offset-${v}`]:v,[`${b}-push-${m}`]:m,[`${b}-pull-${y}`]:y},O,r.class,c.value)}),d=h.computed(()=>{const{flex:p}=t,g=i.value,v={};if(g&&g[0]>0){const m=`${g[0]/2}px`;v.paddingLeft=m,v.paddingRight=m}if(g&&g[1]>0&&!o.value){const m=`${g[1]/2}px`;v.paddingTop=m,v.paddingBottom=m}return p&&(v.flex=tNe(p),a.value===!1&&!v.minWidth&&(v.minWidth=0)),v});return()=>{var p;return u(h.createVNode("div",K(K({},r),{},{class:f.value,style:[d.value,r.style]}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}});var iNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function lH(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){oNe(t,i,n[i])})}return t}function oNe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var EE=function(e,n){var r=lH({},e,n.attrs);return h.createVNode(mt,lH({},r,{icon:iNe}),null)};EE.displayName="QuestionCircleOutlined",EE.inheritAttrs=!1;const ME=(t,e)=>{let{slots:n,emit:r,attrs:i}=e;var o,a,s,l,u;const{prefixCls:c,htmlFor:f,labelCol:d,labelAlign:p,colon:g,required:v,requiredMark:m}=k(k({},t),i),[y]=z1("Form"),b=(o=t.label)!==null&&o!==void 0?o:(a=n.label)===null||a===void 0?void 0:a.call(n);if(!b)return null;const{vertical:O,labelAlign:w,labelCol:S,labelWrap:x,colon:T}=AE(),$=d||(S==null?void 0:S.value)||{},A=p||(w==null?void 0:w.value),P=`${c}-item-label`,M=Pe(P,A==="left"&&`${P}-left`,$.class,{[`${P}-wrap`]:!!x.value});let I=b;const R=g===!0||(T==null?void 0:T.value)!==!1&&g!==!1;if(R&&!O.value&&typeof b=="string"&&b.trim()!==""&&(I=b.replace(/[:|:]\s*$/,"")),t.tooltip||n.tooltip){const B=h.createVNode("span",{class:`${c}-item-tooltip`},[h.createVNode(NO,{title:t.tooltip},{default:()=>[h.createVNode(EE,null,null)]})]);I=h.createVNode(h.Fragment,null,[I,n.tooltip?(s=n.tooltip)===null||s===void 0?void 0:s.call(n,{class:`${c}-item-tooltip`}):B])}m==="optional"&&!v&&(I=h.createVNode(h.Fragment,null,[I,h.createVNode("span",{class:`${c}-item-optional`},[((l=y.value)===null||l===void 0?void 0:l.optional)||((u=$l.Form)===null||u===void 0?void 0:u.optional)])]));const D=Pe({[`${c}-item-required`]:v,[`${c}-item-required-mark-optional`]:m==="optional",[`${c}-item-no-colon`]:!R});return h.createVNode(sH,K(K({},$),{},{class:M}),{default:()=>[h.createVNode("label",{for:f,class:D,title:typeof b=="string"?b:"",onClick:B=>r("click",B)},[I])]})};ME.displayName="FormItemLabel",ME.inheritAttrs=!1;const aNe=t=>{const{componentCls:e}=t,n=`${e}-show-help`,r=`${e}-show-help-item`;return{[n]:{transition:`opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${t.motionDurationSlow} ${t.motionEaseInOut},
  215. opacity ${t.motionDurationSlow} ${t.motionEaseInOut},
  216. transform ${t.motionDurationSlow} ${t.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},sNe=t=>({legend:{display:"block",width:"100%",marginBottom:t.marginLG,padding:0,color:t.colorTextDescription,fontSize:t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},label:{fontSize:t.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`},output:{display:"block",paddingTop:15,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight}}),uH=(t,e)=>{const{formItemCls:n}=t;return{[n]:{[`${n}-label > label`]:{height:e},[`${n}-control-input`]:{minHeight:e}}}},lNe=t=>{const{componentCls:e}=t;return{[t.componentCls]:k(k(k({},bn(t)),sNe(t)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:t.paddingSM},"&-small":k({},uH(t,t.controlHeightSM)),"&-large":k({},uH(t,t.controlHeightLG))})}},uNe=t=>{const{formItemCls:e,iconCls:n,componentCls:r,rootPrefixCls:i}=t;return{[e]:k(k({},bn(t)),{marginBottom:t.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
  217. &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${e}-split`]:{color:t.colorError}},"&-has-error":{[`${e}-split`]:{color:t.colorWarning}},[`${e}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:t.controlHeight,color:t.colorTextHeading,fontSize:t.fontSize,[`> ${n}`]:{fontSize:t.fontSize,verticalAlign:"top"},[`&${e}-required:not(${e}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:t.marginXXS,color:t.colorError,fontSize:t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${e}-optional`]:{display:"inline-block",marginInlineStart:t.marginXXS,color:t.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${e}-tooltip`]:{color:t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:t.marginXXS/2,marginInlineEnd:t.marginXS},[`&${e}-no-colon::after`]:{content:'" "'}}},[`${e}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[e]:{"&-explain, &-extra":{clear:"both",color:t.colorTextDescription,fontSize:t.fontSize,lineHeight:t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:t.controlHeightSM,transition:`color ${t.motionDurationMid} ${t.motionEaseOut}`},"&-explain":{"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning}}},[`&-with-help ${e}-explain`]:{height:"auto",opacity:1},[`${e}-feedback-icon`]:{fontSize:t.fontSize,textAlign:"center",visibility:"visible",animationName:oE,animationDuration:t.motionDurationMid,animationTimingFunction:t.motionEaseOutBack,pointerEvents:"none","&-success":{color:t.colorSuccess},"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning},"&-validating":{color:t.colorPrimary}}})}},cNe=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},fNe=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${e}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:t.margin,marginBottom:0,"&-with-help":{marginBottom:t.marginLG},[`> ${n}-label,
  218. > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Lp=t=>({margin:0,padding:`0 0 ${t.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),dNe=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${n} ${n}-label`]:Lp(t),[e]:{[n]:{flexWrap:"wrap",[`${n}-label,
  219. ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},hNe=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${e}-item-control`]:{width:"100%"}}},[`${e}-vertical ${n}-label,
  220. .${r}-col-24${n}-label,
  221. .${r}-col-xl-24${n}-label`]:Lp(t),[`@media (max-width: ${t.screenXSMax}px)`]:[dNe(t),{[e]:{[`.${r}-col-xs-24${n}-label`]:Lp(t)}}],[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{[`.${r}-col-sm-24${n}-label`]:Lp(t)}},[`@media (max-width: ${t.screenMDMax}px)`]:{[e]:{[`.${r}-col-md-24${n}-label`]:Lp(t)}},[`@media (max-width: ${t.screenLGMax}px)`]:{[e]:{[`.${r}-col-lg-24${n}-label`]:Lp(t)}}}},IE=Fn("Form",(t,e)=>{let{rootPrefixCls:n}=e;const r=Xt(t,{formItemCls:`${t.componentCls}-item`,rootPrefixCls:n});return[lNe(r),uNe(r),aNe(r),cNe(r),fNe(r),hNe(r),aE(r),oE]}),pNe=h.defineComponent({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(t,e){let{attrs:n}=e;const{prefixCls:r,status:i}=eNe(),o=h.computed(()=>`${r.value}-item-explain`),a=h.computed(()=>!!(t.errors&&t.errors.length)),s=h.ref(i.value),[,l]=IE(r);return h.watch([a,i],()=>{a.value&&(s.value=i.value)}),()=>{var u,c;const f=wE(`${r.value}-show-help-item`),d=NA(`${r.value}-show-help-item`,f);return d.role="alert",d.class=[l.value,o.value,n.class,`${r.value}-show-help`],h.createVNode(h.Transition,K(K({},Zm(`${r.value}-show-help`)),{},{onAfterEnter:()=>t.onErrorVisibleChanged(!0),onAfterLeave:()=>t.onErrorVisibleChanged(!1)}),{default:()=>[h.withDirectives(h.createVNode(h.TransitionGroup,K(K({},d),{},{tag:"div"}),{default:()=>[(c=t.errors)===null||c===void 0?void 0:c.map((p,g)=>h.createVNode("div",{key:g,class:s.value?`${o.value}-${s.value}`:""},[p]))]}),[[h.vShow,!!(!((u=t.errors)===null||u===void 0)&&u.length)]])]})}}}),gNe=h.defineComponent({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(t,e){let{slots:n}=e;const r=AE(),{wrapperCol:i}=r,o=k({},r);return delete o.labelCol,delete o.wrapperCol,oH(o),Jke({prefixCls:h.computed(()=>t.prefixCls),status:h.computed(()=>t.status)}),()=>{var a,s,l;const{prefixCls:u,wrapperCol:c,marginBottom:f,onErrorVisibleChanged:d,help:p=(a=n.help)===null||a===void 0?void 0:a.call(n),errors:g=xs((s=n.errors)===null||s===void 0?void 0:s.call(n)),extra:v=(l=n.extra)===null||l===void 0?void 0:l.call(n)}=t,m=`${u}-item`,y=c||(i==null?void 0:i.value)||{},b=Pe(`${m}-control`,y.class);return h.createVNode(sH,K(K({},y),{},{class:b}),{default:()=>{var O;return h.createVNode(h.Fragment,null,[h.createVNode("div",{class:`${m}-control-input`},[h.createVNode("div",{class:`${m}-control-input-content`},[(O=n.default)===null||O===void 0?void 0:O.call(n)])]),f!==null||g.length?h.createVNode("div",{style:{display:"flex",flexWrap:"nowrap"}},[h.createVNode(pNe,{errors:g,help:p,class:`${m}-explain-connected`,onErrorVisibleChanged:d},null),!!f&&h.createVNode("div",{style:{width:0,height:`${f}px`}},null)]):null,v?h.createVNode("div",{class:`${m}-extra`},[v]):null])}})}}});function vNe(t){const e=h.shallowRef(t.value.slice());let n=null;return h.watchEffect(()=>{clearTimeout(n),n=setTimeout(()=>{e.value=t.value},t.value.length?0:10)}),e}Du("success","warning","error","validating","");const mNe={success:Nu,warning:Lu,error:Xo,validating:Es};function DE(t,e,n){let r=t;const i=e;let o=0;try{for(let a=i.length;o<a-1&&!(!r&&!n);++o){const s=i[o];if(s in r)r=r[s];else{if(n)throw Error("please transfer a valid name path to form item!");break}}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:r,k:i[o],v:r?r[i[o]]:void 0}}const yNe=()=>({htmlFor:String,prefixCls:String,label:ne.any,help:ne.any,extra:ne.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:ne.oneOf(Du("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let bNe=0;const _Ne="form_item",cH=h.defineComponent({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:yNe(),slots:Object,setup(t,e){let{slots:n,attrs:r,expose:i}=e;Sf(t.prop===void 0,"`prop` is deprecated. Please use `name` instead.");const o=`form-item-${++bNe}`,{prefixCls:a}=Qt("form",t),[s,l]=IE(a),u=h.shallowRef(),c=AE(),f=h.computed(()=>t.name||t.prop),d=h.shallowRef([]),p=h.shallowRef(!1),g=h.shallowRef(),v=h.computed(()=>{const oe=f.value;return PE(oe)}),m=h.computed(()=>{if(v.value.length){const oe=c.name.value,de=v.value.join("_");return oe?`${oe}_${de}`:`${_Ne}_${de}`}else return}),y=()=>{const oe=c.model.value;if(!(!oe||!f.value))return DE(oe,v.value,!0).v},b=h.computed(()=>y()),O=h.shallowRef(ff(b.value)),w=h.computed(()=>{let oe=t.validateTrigger!==void 0?t.validateTrigger:c.validateTrigger.value;return oe=oe===void 0?"change":oe,zu(oe)}),S=h.computed(()=>{let oe=c.rules.value;const de=t.rules,ie=t.required!==void 0?{required:!!t.required,trigger:w.value}:[],ue=DE(oe,v.value);oe=oe?ue.o[ue.k]||ue.v:[];const ee=[].concat(de||oe||[]);return T1e(ee,X=>X.required)?ee:ee.concat(ie)}),x=h.computed(()=>{const oe=S.value;let de=!1;return oe&&oe.length&&oe.every(ie=>ie.required?(de=!0,!1):!0),de||t.required}),T=h.shallowRef();h.watchEffect(()=>{T.value=t.validateStatus});const $=h.computed(()=>{let oe={};return typeof t.label=="string"?oe.label=t.label:t.name&&(oe.label=String(t.name)),t.messageVariables&&(oe=k(k({},oe),t.messageVariables)),oe}),A=oe=>{if(v.value.length===0)return;const{validateFirst:de=!1}=t,{triggerName:ie}=oe||{};let ue=S.value;if(ie&&(ue=ue.filter(X=>{const{trigger:Y}=X;return!Y&&!w.value.length?!0:zu(Y||w.value).includes(ie)})),!ue.length)return Promise.resolve();const ee=rH(v.value,b.value,ue,k({validateMessages:c.validateMessages.value},oe),de,$.value);return T.value="validating",d.value=[],ee.catch(X=>X).then(function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(T.value==="validating"){const Y=X.filter(le=>le&&le.errors.length);T.value=Y.length?"error":"success",d.value=Y.map(le=>le.errors),c.onValidate(f.value,!d.value.length,d.value.length?h.toRaw(d.value[0]):null)}}),ee},P=()=>{A({triggerName:"blur"})},M=()=>{if(p.value){p.value=!1;return}A({triggerName:"change"})},I=()=>{T.value=t.validateStatus,p.value=!1,d.value=[]},R=()=>{var oe;T.value=t.validateStatus,p.value=!0,d.value=[];const de=c.model.value||{},ie=b.value,ue=DE(de,v.value,!0);Array.isArray(ie)?ue.o[ue.k]=[].concat((oe=O.value)!==null&&oe!==void 0?oe:[]):ue.o[ue.k]=O.value,h.nextTick(()=>{p.value=!1})},L=h.computed(()=>t.htmlFor===void 0?m.value:t.htmlFor),D=()=>{const oe=L.value;if(!oe||!g.value)return;const de=g.value.$el.querySelector(`[id="${oe}"]`);de&&de.focus&&de.focus()};i({onFieldBlur:P,onFieldChange:M,clearValidate:I,resetField:R}),eIe({id:m,onFieldBlur:()=>{t.autoLink&&P()},onFieldChange:()=>{t.autoLink&&M()},clearValidate:I},h.computed(()=>!!(t.autoLink&&c.model.value&&f.value)));let B=!1;h.watch(f,oe=>{oe?B||(B=!0,c.addField(o,{fieldValue:b,fieldId:m,fieldName:f,resetField:R,clearValidate:I,namePath:v,validateRules:A,rules:S})):(B=!1,c.removeField(o))},{immediate:!0}),h.onBeforeUnmount(()=>{c.removeField(o)});const F=vNe(d),z=h.computed(()=>t.validateStatus!==void 0?t.validateStatus:F.value.length?"error":T.value),W=h.computed(()=>({[`${a.value}-item`]:!0,[l.value]:!0,[`${a.value}-item-has-feedback`]:z.value&&t.hasFeedback,[`${a.value}-item-has-success`]:z.value==="success",[`${a.value}-item-has-warning`]:z.value==="warning",[`${a.value}-item-has-error`]:z.value==="error",[`${a.value}-item-is-validating`]:z.value==="validating",[`${a.value}-item-hidden`]:t.hidden})),j=h.reactive({});Za.useProvide(j),h.watchEffect(()=>{let oe;if(t.hasFeedback){const de=z.value&&mNe[z.value];oe=de?h.createVNode("span",{class:Pe(`${a.value}-item-feedback-icon`,`${a.value}-item-feedback-icon-${z.value}`)},[h.createVNode(de,null,null)]):null}k(j,{status:z.value,hasFeedback:t.hasFeedback,feedbackIcon:oe,isFormItemInput:!0})});const H=h.shallowRef(null),Z=h.shallowRef(!1),J=()=>{if(u.value){const oe=getComputedStyle(u.value);H.value=parseInt(oe.marginBottom,10)}};h.onMounted(()=>{h.watch(Z,()=>{Z.value&&J()},{flush:"post",immediate:!0})});const se=oe=>{oe||(H.value=null)};return()=>{var oe,de;if(t.noStyle)return(oe=n.default)===null||oe===void 0?void 0:oe.call(n);const ie=(de=t.help)!==null&&de!==void 0?de:n.help?xs(n.help()):null,ue=!!(ie!=null&&Array.isArray(ie)&&ie.length||F.value.length);return Z.value=ue,s(h.createVNode("div",{class:[W.value,ue?`${a.value}-item-with-help`:"",r.class],ref:u},[h.createVNode(Wke,K(K({},r),{},{class:`${a.value}-item-row`,key:"row"}),{default:()=>{var ee,X;return h.createVNode(h.Fragment,null,[h.createVNode(ME,K(K({},t),{},{htmlFor:L.value,required:x.value,requiredMark:c.requiredMark.value,prefixCls:a.value,onClick:D,label:t.label}),{label:n.label,tooltip:n.tooltip}),h.createVNode(gNe,K(K({},t),{},{errors:ie!=null?zu(ie):F.value,marginBottom:H.value,prefixCls:a.value,status:z.value,ref:g,help:ie,extra:(ee=t.extra)!==null&&ee!==void 0?ee:(X=n.extra)===null||X===void 0?void 0:X.call(n),onErrorVisibleChanged:se}),{default:n.default})])}}),!!H.value&&h.createVNode("div",{class:`${a.value}-margin-offset`,style:{marginBottom:`-${H.value}px`}},null)]))}}});function fH(t){let e=!1,n=t.length;const r=[];return t.length?new Promise((i,o)=>{t.forEach((a,s)=>{a.catch(l=>(e=!0,l)).then(l=>{n-=1,r[s]=l,!(n>0)&&(e&&o(r),i(r))})})}):Promise.resolve([])}function dH(t){let e=!1;return t&&t.length&&t.every(n=>n.required?(e=!0,!1):!0),e}function hH(t){return t==null?[]:Array.isArray(t)?t:[t]}function RE(t,e,n){let r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");const i=e.split(".");let o=0;for(let a=i.length;o<a-1&&!(!r&&!n);++o){const s=i[o];if(s in r)r=r[s];else{if(n)throw new Error("please transfer a valid name path to validate!");break}}return{o:r,k:i[o],v:r?r[i[o]]:null,isValid:r&&i[o]in r}}function ONe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.ref({}),n=arguments.length>2?arguments[2]:void 0;const r=ff(h.unref(t)),i=h.reactive({}),o=h.shallowRef([]),a=O=>{k(h.unref(t),k(k({},ff(r)),O)),h.nextTick(()=>{Object.keys(i).forEach(w=>{i[w]={autoLink:!1,required:dH(h.unref(e)[w])}})})},s=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?O.filter(S=>{const x=hH(S.trigger||"change");return E1e(x,w).length}):O};let l=null;const u=function(O){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=arguments.length>2?arguments[2]:void 0;const x=[],T={};for(let P=0;P<O.length;P++){const M=O[P],I=RE(h.unref(t),M,S);if(!I.isValid)continue;T[M]=I.v;const R=s(h.unref(e)[M],hH(w&&w.trigger));R.length&&x.push(c(M,I.v,R,w||{}).then(()=>({name:M,errors:[],warnings:[]})).catch(L=>{const D=[],B=[];return L.forEach(F=>{let{rule:{warningOnly:z},errors:W}=F;z?B.push(...W):D.push(...W)}),D.length?Promise.reject({name:M,errors:D,warnings:B}):{name:M,errors:D,warnings:B}}))}const $=fH(x);l=$;const A=$.then(()=>l===$?Promise.resolve(T):Promise.reject([])).catch(P=>{const M=P.filter(I=>I&&I.errors.length);return M.length?Promise.reject({values:T,errorFields:M,outOfDate:l!==$}):Promise.resolve(T)});return A.catch(P=>P),A},c=function(O,w,S){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const T=rH([O],w,S,k({validateMessages:JO},x),!!x.validateFirst);return i[O]?(i[O].validateStatus="validating",T.catch($=>$).then(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var A;if(i[O].validateStatus==="validating"){const P=$.filter(M=>M&&M.errors.length);i[O].validateStatus=P.length?"error":"success",i[O].help=P.length?P.map(M=>M.errors):null,(A=n==null?void 0:n.onValidate)===null||A===void 0||A.call(n,O,!P.length,P.length?h.toRaw(i[O].help[0]):null)}}),T):T.catch($=>$)},f=(O,w)=>{let S=[],x=!0;O?Array.isArray(O)?S=O:S=[O]:(x=!1,S=o.value);const T=u(S,w||{},x);return T.catch($=>$),T},d=O=>{let w=[];O?Array.isArray(O)?w=O:w=[O]:w=o.value,w.forEach(S=>{i[S]&&k(i[S],{validateStatus:"",help:null})})},p=O=>{const w={autoLink:!1},S=[],x=Array.isArray(O)?O:[O];for(let T=0;T<x.length;T++){const $=x[T];($==null?void 0:$.validateStatus)==="error"&&(w.validateStatus="error",$.help&&S.push($.help)),w.required=w.required||($==null?void 0:$.required)}return w.help=S,w};let g=r,v=!0;const m=O=>{const w=[];o.value.forEach(S=>{const x=RE(O,S,!1),T=RE(g,S,!1);(v&&(n==null?void 0:n.immediate)&&x.isValid||!fm(x.v,T.v))&&w.push(S)}),f(w,{trigger:"change"}),v=!1,g=ff(h.toRaw(O))},y=n==null?void 0:n.debounce;let b=!0;return h.watch(e,()=>{o.value=e?Object.keys(h.unref(e)):[],!b&&n&&n.validateOnRuleChange&&f(),b=!1},{deep:!0,immediate:!0}),h.watch(o,()=>{const O={};o.value.forEach(w=>{O[w]=k({},i[w],{autoLink:!1,required:dH(h.unref(e)[w])}),delete i[w]});for(const w in i)Object.prototype.hasOwnProperty.call(i,w)&&delete i[w];k(i,O)},{immediate:!0}),h.watch(t,y&&y.wait?X2(m,y.wait,yV(y,["wait"])):m,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:t,rulesRef:e,initialModel:r,validateInfos:i,resetFields:a,validate:f,validateField:c,mergeValidateInfo:p,clearValidate:d}}const wNe=()=>({layout:ne.oneOf(Du("horizontal","inline","vertical")),labelCol:Vt(),wrapperCol:Vt(),colon:lt(),labelAlign:$n(),labelWrap:lt(),prefixCls:String,requiredMark:kn([String,Boolean]),hideRequiredMark:lt(),model:ne.object,rules:Vt(),validateMessages:Vt(),validateOnRuleChange:lt(),scrollToFirstError:Go(),onSubmit:ut(),name:String,validateTrigger:kn([String,Array]),size:$n(),disabled:lt(),onValuesChange:ut(),onFieldsChange:ut(),onFinish:ut(),onFinishFailed:ut(),onValidate:ut()});function SNe(t,e){return fm(zu(t),zu(e))}const mr=h.defineComponent({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Ar(wNe(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:cH,useForm:ONe,setup(t,e){let{emit:n,slots:r,expose:i,attrs:o}=e;const{prefixCls:a,direction:s,form:l,size:u,disabled:c}=Qt("form",t),f=h.computed(()=>t.requiredMark===""||t.requiredMark),d=h.computed(()=>{var F;return f.value!==void 0?f.value:l&&((F=l.value)===null||F===void 0?void 0:F.requiredMark)!==void 0?l.value.requiredMark:!t.hideRequiredMark});IW(u),IF(c);const p=h.computed(()=>{var F,z;return(F=t.colon)!==null&&F!==void 0?F:(z=l.value)===null||z===void 0?void 0:z.colon}),{validateMessages:g}=WPe(),v=h.computed(()=>k(k(k({},JO),g.value),t.validateMessages)),[m,y]=IE(a),b=h.computed(()=>Pe(a.value,{[`${a.value}-${t.layout}`]:!0,[`${a.value}-hide-required-mark`]:d.value===!1,[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-${u.value}`]:u.value},y.value)),O=h.ref(),w={},S=(F,z)=>{w[F]=z},x=F=>{delete w[F]},T=F=>{const z=!!F,W=z?zu(F).map(PE):[];return z?Object.values(w).filter(j=>W.findIndex(H=>SNe(H,j.fieldName.value))>-1):Object.values(w)},$=F=>{if(!t.model){yi(!1,"Form","model is required for resetFields to work.");return}T(F).forEach(z=>{z.resetField()})},A=F=>{T(F).forEach(z=>{z.clearValidate()})},P=F=>{const{scrollToFirstError:z}=t;if(n("finishFailed",F),z&&F.errorFields.length){let W={};typeof z=="object"&&(W=z),I(F.errorFields[0].name,W)}},M=function(){return D(...arguments)},I=function(F){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const W=T(F?[F]:void 0);if(W.length){const j=W[0].fieldId.value,H=j?document.getElementById(j):null;H&&P$e(H,k({scrollMode:"if-needed",block:"nearest"},z))}},R=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(F===!0){const z=[];return Object.values(w).forEach(W=>{let{namePath:j}=W;z.push(j.value)}),nH(t.model,z)}else return nH(t.model,F)},L=(F,z)=>{if(yi(!(F instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!t.model)return yi(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const W=!!F,j=W?zu(F).map(PE):[],H=[];Object.values(w).forEach(se=>{var oe;if(W||j.push(se.namePath.value),!(!((oe=se.rules)===null||oe===void 0)&&oe.value.length))return;const de=se.namePath.value;if(!W||jke(j,de)){const ie=se.validateRules(k({validateMessages:v.value},z));H.push(ie.then(()=>({name:de,errors:[],warnings:[]})).catch(ue=>{const ee=[],X=[];return ue.forEach(Y=>{let{rule:{warningOnly:le},errors:ve}=Y;le?X.push(...ve):ee.push(...ve)}),ee.length?Promise.reject({name:de,errors:ee,warnings:X}):{name:de,errors:ee,warnings:X}}))}});const Z=fH(H);O.value=Z;const J=Z.then(()=>O.value===Z?Promise.resolve(R(j)):Promise.reject([])).catch(se=>{const oe=se.filter(de=>de&&de.errors.length);return Promise.reject({values:R(j),errorFields:oe,outOfDate:O.value!==Z})});return J.catch(se=>se),J},D=function(){return L(...arguments)},B=F=>{F.preventDefault(),F.stopPropagation(),n("submit",F),t.model&&L().then(W=>{n("finish",W)}).catch(W=>{P(W)})};return i({resetFields:$,clearValidate:A,validateFields:L,getFieldsValue:R,validate:M,scrollToField:I}),oH({model:h.computed(()=>t.model),name:h.computed(()=>t.name),labelAlign:h.computed(()=>t.labelAlign),labelCol:h.computed(()=>t.labelCol),labelWrap:h.computed(()=>t.labelWrap),wrapperCol:h.computed(()=>t.wrapperCol),vertical:h.computed(()=>t.layout==="vertical"),colon:p,requiredMark:d,validateTrigger:h.computed(()=>t.validateTrigger),rules:h.computed(()=>t.rules),addField:S,removeField:x,onValidate:(F,z,W)=>{n("validate",F,z,W)},validateMessages:v}),h.watch(()=>t.rules,()=>{t.validateOnRuleChange&&L()}),()=>{var F;return m(h.createVNode("form",K(K({},o),{},{onSubmit:B,class:[b.value,o.class]}),[(F=r.default)===null||F===void 0?void 0:F.call(r)]))}}});mr.useInjectFormItemContext=Ms,mr.ItemRest=Km,mr.install=function(t){return t.component(mr.name,mr),t.component(mr.Item.name,mr.Item),t.component(Km.name,Km),t};const xNe=new At("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),CNe=t=>{const{checkboxCls:e}=t,n=`${e}-wrapper`;return[{[`${e}-group`]:k(k({},bn(t)),{display:"inline-flex",flexWrap:"wrap",columnGap:t.marginXS,[`> ${t.antCls}-row`]:{flex:1}}),[n]:k(k({},bn(t)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[e]:k(k({},bn(t)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${e}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${e}-inner`]:k({},Fm(t))},[`${e}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:t.checkboxSize,height:t.checkboxSize,direction:"ltr",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,borderCollapse:"separate",transition:`all ${t.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.checkboxSize/14*5,height:t.checkboxSize/14*8,border:`${t.lineWidthBold}px solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`}},"& + span":{paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS}})},{[e]:{"&-indeterminate":{[`${e}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:t.fontSizeLG/2,height:t.fontSizeLG/2,backgroundColor:t.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${e}:after`]:{visibility:"visible"},[`
  222. ${n}:not(${n}-disabled),
  223. ${e}:not(${e}-disabled)
  224. `]:{[`&:hover ${e}-inner`]:{borderColor:t.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${e}-checked:not(${e}-disabled) ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}-checked:not(${e}-disabled):after`]:{borderColor:t.colorPrimaryHover}}},{[`${e}-checked`]:{[`${e}-inner`]:{backgroundColor:t.colorPrimary,borderColor:t.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:t.borderRadiusSM,visibility:"hidden",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,animationName:xNe,animationDuration:t.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${t.motionDurationSlow}`}},[`
  225. ${n}-checked:not(${n}-disabled),
  226. ${e}-checked:not(${e}-disabled)
  227. `]:{[`&:hover ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}:after`]:{borderColor:t.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${e}-disabled`]:{[`&, ${e}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${e}-inner`]:{background:t.colorBgContainerDisabled,borderColor:t.colorBorder,"&:after":{borderColor:t.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:t.colorTextDisabled},[`&${e}-indeterminate ${e}-inner::after`]:{background:t.colorTextDisabled}}}]};function TNe(t,e){const n=Xt(e,{checkboxCls:`.${t}`,checkboxSize:e.controlInteractiveSize});return[CNe(n)]}const pH=Fn("Checkbox",(t,e)=>{let{prefixCls:n}=e;return[TNe(n,t)]}),PNe=()=>({name:String,prefixCls:String,options:Of([]),disabled:Boolean,id:String}),$Ne=()=>k(k({},PNe()),{defaultValue:Of(),value:Of(),onChange:ut(),"onUpdate:value":ut()}),ANe=()=>({prefixCls:String,defaultChecked:lt(),checked:lt(),disabled:lt(),isGroup:lt(),value:ne.any,name:String,id:String,indeterminate:lt(),type:$n("checkbox"),autofocus:lt(),onChange:ut(),"onUpdate:checked":ut(),onClick:ut(),skipGroup:lt(!1)}),ENe=()=>k(k({},ANe()),{indeterminate:lt(!1)}),gH=Symbol("CheckboxGroupContext");var vH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const r0=h.defineComponent({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:ENe(),setup(t,e){let{emit:n,attrs:r,slots:i,expose:o}=e;const a=Ms(),s=Za.useInject(),{prefixCls:l,direction:u,disabled:c}=Qt("checkbox",t),f=Cs(),[d,p]=pH(l),g=h.inject(gH,void 0),v=Symbol("checkboxUniId"),m=h.computed(()=>(g==null?void 0:g.disabled.value)||c.value);h.watchEffect(()=>{!t.skipGroup&&g&&g.registerValue(v,t.value)}),h.onBeforeUnmount(()=>{g&&g.cancelValue(v)}),h.onMounted(()=>{yi(!!(t.checked!==void 0||g||t.value===void 0),"Checkbox","`value` is not validate prop, do you mean `checked`?")});const y=S=>{const x=S.target.checked;n("update:checked",x),n("change",S),a.onFieldChange()},b=h.ref();return o({focus:()=>{var S;(S=b.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=b.value)===null||S===void 0||S.blur()}}),()=>{var S;const x=vr((S=i.default)===null||S===void 0?void 0:S.call(i)),{indeterminate:T,skipGroup:$,id:A=a.id.value}=t,P=vH(t,["indeterminate","skipGroup","id"]),{onMouseenter:M,onMouseleave:I,onInput:R,class:L,style:D}=r,B=vH(r,["onMouseenter","onMouseleave","onInput","class","style"]),F=k(k(k(k({},P),{id:A,prefixCls:l.value}),B),{disabled:m.value});g&&!$?(F.onChange=function(){for(var H=arguments.length,Z=new Array(H),J=0;J<H;J++)Z[J]=arguments[J];n("change",...Z),g.toggleOption({label:x,value:t.value})},F.name=g.name.value,F.checked=g.mergedValue.value.includes(t.value),F.disabled=m.value||f.value,F.indeterminate=T):F.onChange=y;const z=Pe({[`${l.value}-wrapper`]:!0,[`${l.value}-rtl`]:u.value==="rtl",[`${l.value}-wrapper-checked`]:F.checked,[`${l.value}-wrapper-disabled`]:F.disabled,[`${l.value}-wrapper-in-form-item`]:s.isFormItemInput},L,p.value),W=Pe({[`${l.value}-indeterminate`]:T},p.value),j=T?"mixed":void 0;return d(h.createVNode("label",{class:z,style:D,onMouseenter:M,onMouseleave:I},[h.createVNode(S9,K(K({"aria-checked":j},F),{},{class:W,ref:b}),null),x.length?h.createVNode("span",null,[x]):null]))}}}),tw=h.defineComponent({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:$Ne(),setup(t,e){let{slots:n,attrs:r,emit:i,expose:o}=e;const a=Ms(),{prefixCls:s,direction:l}=Qt("checkbox",t),u=h.computed(()=>`${s.value}-group`),[c,f]=pH(u),d=h.ref((t.value===void 0?t.defaultValue:t.value)||[]);h.watch(()=>t.value,()=>{d.value=t.value||[]});const p=h.computed(()=>t.options.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w)),g=h.ref(Symbol()),v=h.ref(new Map),m=w=>{v.value.delete(w),g.value=Symbol()},y=(w,S)=>{v.value.set(w,S),g.value=Symbol()},b=h.ref(new Map);h.watch(g,()=>{const w=new Map;for(const S of v.value.values())w.set(S,!0);b.value=w});const O=w=>{const S=d.value.indexOf(w.value),x=[...d.value];S===-1?x.push(w.value):x.splice(S,1),t.value===void 0&&(d.value=x);const T=x.filter($=>b.value.has($)).sort(($,A)=>{const P=p.value.findIndex(I=>I.value===$),M=p.value.findIndex(I=>I.value===A);return P-M});i("update:value",T),i("change",T),a.onFieldChange()};return h.provide(gH,{cancelValue:m,registerValue:y,toggleOption:O,mergedValue:d,name:h.computed(()=>t.name),disabled:h.computed(()=>t.disabled)}),o({mergedValue:d}),()=>{var w;const{id:S=a.id.value}=t;let x=null;return p.value&&p.value.length>0&&(x=p.value.map(T=>{var $;return h.createVNode(r0,{prefixCls:s.value,key:T.value.toString(),disabled:"disabled"in T?T.disabled:t.disabled,indeterminate:T.indeterminate,value:T.value,checked:d.value.indexOf(T.value)!==-1,onChange:T.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?($=n.label)===null||$===void 0?void 0:$.call(n,T):T.label]})})),c(h.createVNode("div",K(K({},r),{},{class:[u.value,{[`${u.value}-rtl`]:l.value==="rtl"},r.class,f.value],id:S}),[x||((w=n.default)===null||w===void 0?void 0:w.call(n))]))}}});r0.Group=tw,r0.install=function(t){return t.component(r0.name,r0),t.component(tw.name,tw),t};let nw=k({},$l.Modal);function MNe(t){t?nw=k(k({},nw),t):nw=k({},$l.Modal)}function INe(){return nw}const kE="internalMark",rw=h.defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(t,e){let{slots:n}=e;yi(t.ANT_MARK__===kE,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const r=h.reactive({antLocale:k(k({},t.locale),{exist:!0}),ANT_MARK__:kE});return h.provide("localeData",r),h.watch(()=>t.locale,i=>{MNe(i&&i.Modal),r.antLocale=k(k({},i),{exist:!0})},{immediate:!0}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}});rw.install=function(t){return t.component(rw.name,rw),t};const DNe=mp(rw),iw=h.defineComponent({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(t,e){let{attrs:n,slots:r}=e,i,o=!1;const a=h.computed(()=>t.duration===void 0?4.5:t.duration),s=()=>{a.value&&!o&&(i=setTimeout(()=>{u()},a.value*1e3))},l=()=>{i&&(clearTimeout(i),i=null)},u=f=>{f&&f.stopPropagation(),l();const{onClose:d,noticeKey:p}=t;d&&d(p)},c=()=>{l(),s()};return h.onMounted(()=>{s()}),h.onUnmounted(()=>{o=!0,l()}),h.watch([a,()=>t.updateMark,()=>t.visible],(f,d)=>{let[p,g,v]=f,[m,y,b]=d;(p!==m||g!==y||v!==b&&b)&&c()},{flush:"post"}),()=>{var f,d;const{prefixCls:p,closable:g,closeIcon:v=(f=r.closeIcon)===null||f===void 0?void 0:f.call(r),onClick:m,holder:y}=t,{class:b,style:O}=n,w=`${p}-notice`,S=Object.keys(n).reduce((T,$)=>(($.startsWith("data-")||$.startsWith("aria-")||$==="role")&&(T[$]=n[$]),T),{}),x=h.createVNode("div",K({class:Pe(w,b,{[`${w}-closable`]:g}),style:O,onMouseenter:l,onMouseleave:s,onClick:m},S),[h.createVNode("div",{class:`${w}-content`},[(d=r.default)===null||d===void 0?void 0:d.call(r)]),g?h.createVNode("a",{tabindex:0,onClick:u,class:`${w}-close`},[v||h.createVNode("span",{class:`${w}-close-x`},null)]):null]);return y?h.createVNode(h.Teleport,{to:y},{default:()=>x}):x}}});var RNe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let mH=0;const kNe=Date.now();function yH(){const t=mH;return mH+=1,`rcNotification_${kNe}_${t}`}const ow=h.defineComponent({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(t,e){let{attrs:n,expose:r,slots:i}=e;const o=new Map,a=h.ref([]),s=h.computed(()=>{const{prefixCls:c,animation:f="fade"}=t;let d=t.transitionName;return!d&&f&&(d=`${c}-${f}`),NA(d)}),l=(c,f)=>{const d=c.key||yH(),p=k(k({},c),{key:d}),{maxCount:g}=t,v=a.value.map(y=>y.notice.key).indexOf(d),m=a.value.concat();v!==-1?m.splice(v,1,{notice:p,holderCallback:f}):(g&&a.value.length>=g&&(p.key=m[0].notice.key,p.updateMark=yH(),p.userPassKey=d,m.shift()),m.push({notice:p,holderCallback:f})),a.value=m},u=c=>{a.value=a.value.filter(f=>{let{notice:{key:d,userPassKey:p}}=f;return(p||d)!==c})};return r({add:l,remove:u,notices:a}),()=>{var c;const{prefixCls:f,closeIcon:d=(c=i.closeIcon)===null||c===void 0?void 0:c.call(i,{prefixCls:f})}=t,p=a.value.map((v,m)=>{let{notice:y,holderCallback:b}=v;const O=m===a.value.length-1?y.updateMark:void 0,{key:w,userPassKey:S}=y,{content:x}=y,T=k(k(k({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},y),y.props),{key:w,noticeKey:S||w,updateMark:O,onClose:$=>{var A;u($),(A=y.onClose)===null||A===void 0||A.call(y)},onClick:y.onClick});return b?h.createVNode("div",{key:w,class:`${f}-hook-holder`,ref:$=>{typeof w>"u"||($?(o.set(w,$),b($,T)):o.delete(w))}},null):h.createVNode(iw,K(K({},T),{},{class:Pe(T.class,t.hashId)}),{default:()=>[typeof x=="function"?x({prefixCls:f}):x]})}),g={[f]:1,[n.class]:!!n.class,[t.hashId]:!0};return h.createVNode("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[h.createVNode(h.TransitionGroup,K({tag:"div"},s.value),{default:()=>[p]})])}}});ow.newInstance=function(e,n){const r=e||{},{name:i="notification",getContainer:o,appContext:a,prefixCls:s,rootPrefixCls:l,transitionName:u,hasTransitionName:c,useStyle:f}=r,d=RNe(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");o?o().appendChild(p):document.body.appendChild(p);const g=h.defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup(m,y){let{attrs:b}=y;const O=h.shallowRef(),w=h.computed(()=>Fr.getPrefixCls(i,s)),[,S]=f(w);return h.onMounted(()=>{n({notice(x){var T;(T=O.value)===null||T===void 0||T.add(x)},removeNotice(x){var T;(T=O.value)===null||T===void 0||T.remove(x)},destroy(){h.render(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:O})}),()=>{const x=Fr,T=x.getRootPrefixCls(l,w.value),$=c?u:`${w.value}-${u}`;return h.createVNode(zp,K(K({},x),{},{prefixCls:T}),{default:()=>[h.createVNode(ow,K(K({ref:O},b),{},{prefixCls:w.value,transitionName:$,hashId:S.value}),null)]})}}}),v=h.createVNode(g,d);v.appContext=a||v.appContext,h.render(v,p)};let bH=0;const NNe=Date.now();function _H(){const t=bH;return bH+=1,`rcNotification_${NNe}_${t}`}const LNe=h.defineComponent({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(t,e){let{attrs:n,slots:r}=e;const i=new Map,o=h.computed(()=>t.notices),a=h.computed(()=>{let c=t.transitionName;if(!c&&t.animation)switch(typeof t.animation){case"string":c=t.animation;break;case"function":c=t.animation().name;break;case"object":c=t.animation.name;break;default:c=`${t.prefixCls}-fade`;break}return NA(c)}),s=c=>t.remove(c),l=h.ref({});h.watch(o,()=>{const c={};Object.keys(l.value).forEach(f=>{c[f]=[]}),t.notices.forEach(f=>{const{placement:d="topRight"}=f.notice;d&&(c[d]=c[d]||[],c[d].push(f))}),l.value=c});const u=h.computed(()=>Object.keys(l.value));return()=>{var c;const{prefixCls:f,closeIcon:d=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:f})}=t,p=u.value.map(g=>{var v,m;const y=l.value[g],b=(v=t.getClassName)===null||v===void 0?void 0:v.call(t,g),O=(m=t.getStyles)===null||m===void 0?void 0:m.call(t,g),w=y.map((T,$)=>{let{notice:A,holderCallback:P}=T;const M=$===o.value.length-1?A.updateMark:void 0,{key:I,userPassKey:R}=A,{content:L}=A,D=k(k(k({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},A),A.props),{key:I,noticeKey:R||I,updateMark:M,onClose:B=>{var F;s(B),(F=A.onClose)===null||F===void 0||F.call(A)},onClick:A.onClick});return P?h.createVNode("div",{key:I,class:`${f}-hook-holder`,ref:B=>{typeof I>"u"||(B?(i.set(I,B),P(B,D)):i.delete(I))}},null):h.createVNode(iw,K(K({},D),{},{class:Pe(D.class,t.hashId)}),{default:()=>[typeof L=="function"?L({prefixCls:f}):L]})}),S={[f]:1,[`${f}-${g}`]:1,[n.class]:!!n.class,[t.hashId]:!0,[b]:!!b};function x(){var T;y.length>0||(Reflect.deleteProperty(l.value,g),(T=t.onAllRemoved)===null||T===void 0||T.call(t))}return h.createVNode("div",{key:g,class:S,style:n.style||O||{top:"65px",left:"50%"}},[h.createVNode(h.TransitionGroup,K(K({tag:"div"},a.value),{},{onAfterLeave:x}),{default:()=>[w]})])});return h.createVNode($7,{getContainer:t.getContainer},{default:()=>[p]})}}});var BNe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const VNe=()=>document.body;let OH=0;function zNe(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{const a=i[o];a!==void 0&&(t[o]=a)})}),t}function wH(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:e=VNe,motion:n,prefixCls:r,maxCount:i,getClassName:o,getStyles:a,onAllRemoved:s}=t,l=BNe(t,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=h.shallowRef([]),c=h.shallowRef(),f=(y,b)=>{const O=y.key||_H(),w=k(k({},y),{key:O}),S=u.value.map(T=>T.notice.key).indexOf(O),x=u.value.concat();S!==-1?x.splice(S,1,{notice:w,holderCallback:b}):(i&&u.value.length>=i&&(w.key=x[0].notice.key,w.updateMark=_H(),w.userPassKey=O,x.shift()),x.push({notice:w,holderCallback:b})),u.value=x},d=y=>{u.value=u.value.filter(b=>{let{notice:{key:O,userPassKey:w}}=b;return(w||O)!==y})},p=()=>{u.value=[]},g=()=>h.createVNode(LNe,{ref:c,prefixCls:r,maxCount:i,notices:u.value,remove:d,getClassName:o,getStyles:a,animation:n,hashId:t.hashId,onAllRemoved:s,getContainer:e},null),v=h.shallowRef([]),m={open:y=>{const b=zNe(l,y);(b.key===null||b.key===void 0)&&(b.key=`vc-notification-${OH}`,OH+=1),v.value=[...v.value,{type:"open",config:b}]},close:y=>{v.value=[...v.value,{type:"close",key:y}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return h.watch(v,()=>{v.value.length&&(v.value.forEach(y=>{switch(y.type){case"open":f(y.config);break;case"close":d(y.key);break;case"destroy":p();break}}),v.value=[])}),[m,g]}const FNe=t=>{const{componentCls:e,iconCls:n,boxShadowSecondary:r,colorBgElevated:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:g,zIndexPopup:v,messageNoticeContentPadding:m}=t,y=new At("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),b=new At("MessageMoveOut",{"0%":{maxHeight:t.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:k(k({},bn(t)),{position:"fixed",top:d,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:v,[`${e}-move-up`]:{animationFillMode:"forwards"},[`
  228. ${e}-move-up-appear,
  229. ${e}-move-up-enter
  230. `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`
  231. ${e}-move-up-appear${e}-move-up-appear-active,
  232. ${e}-move-up-enter${e}-move-up-enter-active
  233. `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${e}-notice`]:{padding:p,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${e}-notice-content`]:{display:"inline-block",padding:m,background:i,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${e}-success ${n}`]:{color:o},[`${e}-error ${n}`]:{color:a},[`${e}-warning ${n}`]:{color:s},[`
  234. ${e}-info ${n},
  235. ${e}-loading ${n}`]:{color:l}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},NE=Fn("Message",t=>{const e=Xt(t,{messageNoticeContentPadding:`${(t.controlHeightLG-t.fontSize*t.lineHeight)/2}px ${t.paddingSM}px`});return[FNe(e)]},t=>({height:150,zIndexPopup:t.zIndexPopupBase+10})),WNe={info:h.createVNode(Df,null,null),success:h.createVNode(Nu,null,null),error:h.createVNode(Xo,null,null),warning:h.createVNode(Lu,null,null),loading:h.createVNode(Es,null,null)},SH=h.defineComponent({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(t,e){let{slots:n}=e;return()=>{var r;return h.createVNode("div",{class:Pe(`${t.prefixCls}-custom-content`,`${t.prefixCls}-${t.type}`)},[t.icon||WNe[t.type],h.createVNode("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});h.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(t,e){let{slots:n,attrs:r}=e;var i;const{getPrefixCls:o}=V1(),a=h.computed(()=>t.prefixCls||o("message")),[,s]=NE(a);return h.createVNode(iw,K(K({},r),{},{prefixCls:a.value,class:Pe(s.value,`${a.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[h.createVNode(SH,{prefixCls:a.value,type:t.type,icon:t.icon},{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})]})}});var QNe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const HNe=8,GNe=3,jNe=h.defineComponent({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(t,e){let{expose:n}=e;var r,i;const{getPrefixCls:o,getPopupContainer:a}=Qt("message",t),s=h.computed(()=>o("message",t.prefixCls)),[,l]=NE(s),u=()=>{var v;const m=(v=t.top)!==null&&v!==void 0?v:HNe;return{left:"50%",transform:"translateX(-50%)",top:typeof m=="number"?`${m}px`:m}},c=()=>Pe(l.value,t.rtl?`${s.value}-rtl`:""),f=()=>{var v;return wA({prefixCls:s.value,animation:(v=t.animation)!==null&&v!==void 0?v:"move-up",transitionName:t.transitionName})},d=h.createVNode("span",{class:`${s.value}-close-x`},[h.createVNode(Il,{class:`${s.value}-close-icon`},null)]),[p,g]=wH({getStyles:u,prefixCls:s.value,getClassName:c,motion:f,closable:!1,closeIcon:d,duration:(r=t.duration)!==null&&r!==void 0?r:GNe,getContainer:(i=t.staticGetContainer)!==null&&i!==void 0?i:a.value,maxCount:t.maxCount,onAllRemoved:t.onAllRemoved});return n(k(k({},p),{prefixCls:s,hashId:l})),g}});let xH=0;function UNe(t){const e=h.shallowRef(null),n=Symbol("messageHolderKey"),r=l=>{var u;(u=e.value)===null||u===void 0||u.close(l)},i=l=>{if(!e.value){const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:c,hashId:f}=e.value,d=`${c}-notice`,{content:p,icon:g,type:v,key:m,class:y,onClose:b}=l,O=QNe(l,["content","icon","type","key","class","onClose"]);let w=m;return w==null&&(xH+=1,w=`antd-message-${xH}`),mPe(S=>(u(k(k({},O),{key:w,content:()=>h.createVNode(SH,{prefixCls:c,type:v,icon:typeof g=="function"?g():g},{default:()=>[typeof p=="function"?p():p]}),placement:"top",class:Pe(v&&`${d}-${v}`,f,y),onClose:()=>{b==null||b(),S()}})),()=>{r(w)}))},a={open:i,destroy:l=>{var u;l!==void 0?r(l):(u=e.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(c,f,d)=>{let p;c&&typeof c=="object"&&"content"in c?p=c:p={content:c};let g,v;typeof f=="function"?v=f:(g=f,v=d);const m=k(k({onClose:v,duration:g},p),{type:l});return i(m)};a[l]=u}),[a,()=>h.createVNode(jNe,K(K({key:n},t),{},{ref:e}),null)]}function ZNe(t){return UNe(t)}let CH=3,TH,bi,XNe=1,PH="",$H="move-up",AH=!1,EH=()=>document.body,MH,IH=!1;function YNe(){return XNe++}function qNe(t){t.top!==void 0&&(TH=t.top,bi=null),t.duration!==void 0&&(CH=t.duration),t.prefixCls!==void 0&&(PH=t.prefixCls),t.getContainer!==void 0&&(EH=t.getContainer,bi=null),t.transitionName!==void 0&&($H=t.transitionName,bi=null,AH=!0),t.maxCount!==void 0&&(MH=t.maxCount,bi=null),t.rtl!==void 0&&(IH=t.rtl)}function KNe(t,e){if(bi){e(bi);return}ow.newInstance({appContext:t.appContext,prefixCls:t.prefixCls||PH,rootPrefixCls:t.rootPrefixCls,transitionName:$H,hasTransitionName:AH,style:{top:TH},getContainer:EH||t.getPopupContainer,maxCount:MH,name:"message",useStyle:NE},n=>{if(bi){e(bi);return}bi=n,e(n)})}const DH={info:Df,success:Nu,error:Xo,warning:Lu,loading:Es},JNe=Object.keys(DH);function eLe(t){const e=t.duration!==void 0?t.duration:CH,n=t.key||YNe(),r=new Promise(o=>{const a=()=>(typeof t.onClose=="function"&&t.onClose(),o(!0));KNe(t,s=>{s.notice({key:n,duration:e,style:t.style||{},class:t.class,content:l=>{let{prefixCls:u}=l;const c=DH[t.type],f=c?h.createVNode(c,null,null):"",d=Pe(`${u}-custom-content`,{[`${u}-${t.type}`]:t.type,[`${u}-rtl`]:IH===!0});return h.createVNode("div",{class:d},[typeof t.icon=="function"?t.icon():t.icon||f,h.createVNode("span",null,[typeof t.content=="function"?t.content():t.content])])},onClose:a,onClick:t.onClick})})}),i=()=>{bi&&bi.removeNotice(n)};return i.then=(o,a)=>r.then(o,a),i.promise=r,i}function tLe(t){return Object.prototype.toString.call(t)==="[object Object]"&&!!t.content}const Nf={open:eLe,config:qNe,destroy(t){if(bi)if(t){const{removeNotice:e}=bi;e(t)}else{const{destroy:e}=bi;e(),bi=null}}};function nLe(t,e){t[e]=(n,r,i)=>tLe(n)?t.open(k(k({},n),{type:e})):(typeof r=="function"&&(i=r,r=void 0),t.open({content:n,duration:r,type:e,onClose:i}))}JNe.forEach(t=>nLe(Nf,t)),Nf.warn=Nf.warning,Nf.useMessage=ZNe;const rLe=t=>{const{componentCls:e,width:n,notificationMarginEdge:r}=t,i=new At("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),o=new At("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new At("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${e}-top, &${e}-bottom`]:{marginInline:0},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:i}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:o}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}}}},iLe=t=>{const{iconCls:e,componentCls:n,boxShadowSecondary:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:g,motionDurationMid:v,motionEaseInOut:m,fontSize:y,lineHeight:b,width:O,notificationIconSize:w}=t,S=`${n}-notice`,x=new At("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:O},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),T=new At("antNotificationFadeOut",{"0%":{maxHeight:t.animationMaxHeight,marginBottom:o,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:k(k(k(k({},bn(t)),{position:"fixed",zIndex:t.zIndexPopup,marginInlineEnd:g,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:t.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:v,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:x,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:T,animationPlayState:"running"}}),rLe(t)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[S]:{position:"relative",width:O,maxWidth:`calc(100vw - ${g*2}px)`,marginBottom:o,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${S}-message`]:{marginBottom:t.marginXS,color:f,fontSize:i,lineHeight:t.lineHeightLG},[`${S}-description`]:{fontSize:y},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:t.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.marginSM+w,fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:t.marginSM+w,fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${e}`]:{color:s},[`&-info${e}`]:{color:l},[`&-warning${e}`]:{color:u},[`&-error${e}`]:{color:c}},[`${S}-close`]:{position:"absolute",top:t.notificationPaddingVertical,insetInlineEnd:t.notificationPaddingHorizontal,color:t.colorIcon,outline:"none",width:t.notificationCloseButtonSize,height:t.notificationCloseButtonSize,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:t.colorIconHover,backgroundColor:t.wireframe?"transparent":t.colorFillContent}},[`${S}-btn`]:{float:"right",marginTop:t.marginSM}}},{[`${S}-pure-panel`]:{margin:0}}]},LE=Fn("Notification",t=>{const e=t.paddingMD,n=t.paddingLG,r=Xt(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationPadding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`,notificationMarginBottom:t.margin,notificationMarginEdge:t.marginLG,animationMaxHeight:150,notificationIconSize:t.fontSizeLG*t.lineHeightLG,notificationCloseButtonSize:t.controlHeightLG*.55});return[iLe(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50,width:384}));function RH(t,e){return e||h.createVNode("span",{class:`${t}-close-x`},[h.createVNode(Il,{class:`${t}-close-icon`},null)])}h.createVNode(Df,null,null),h.createVNode(Nu,null,null),h.createVNode(Xo,null,null),h.createVNode(Lu,null,null),h.createVNode(Es,null,null);const oLe={success:Nu,info:Df,error:Xo,warning:Lu};function kH(t){let{prefixCls:e,icon:n,type:r,message:i,description:o,btn:a}=t,s=null;if(n)s=h.createVNode("span",{class:`${e}-icon`},[pp(n)]);else if(r){const l=oLe[r];s=h.createVNode(l,{class:`${e}-icon ${e}-icon-${r}`},null)}return h.createVNode("div",{class:Pe({[`${e}-with-icon`]:s}),role:"alert"},[s,h.createVNode("div",{class:`${e}-message`},[i]),h.createVNode("div",{class:`${e}-description`},[o]),a&&h.createVNode("div",{class:`${e}-btn`},[a])])}h.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(t){const{getPrefixCls:e}=Qt("notification",t),n=h.computed(()=>t.prefixCls||e("notification")),r=h.computed(()=>`${n.value}-notice`),[,i]=LE(n);return()=>h.createVNode(iw,K(K({},t),{},{prefixCls:n.value,class:Pe(i.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:t.closable,closeIcon:RH(n.value,t.closeIcon)}),{default:()=>[h.createVNode(kH,{prefixCls:r.value,icon:t.icon,type:t.type,message:t.message,description:t.description,btn:t.btn},null)]})}});function NH(t,e,n){let r;switch(e=typeof e=="number"?`${e}px`:e,n=typeof n=="number"?`${n}px`:n,t){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":r={left:0,top:e,bottom:"auto"};break;case"topRight":r={right:0,top:e,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function aLe(t){return{name:`${t}-fade`}}var sLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const LH=24,lLe=4.5,uLe=h.defineComponent({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(t,e){let{expose:n}=e;const{getPrefixCls:r,getPopupContainer:i}=Qt("notification",t),o=h.computed(()=>t.prefixCls||r("notification")),a=d=>{var p,g;return NH(d,(p=t.top)!==null&&p!==void 0?p:LH,(g=t.bottom)!==null&&g!==void 0?g:LH)},[,s]=LE(o),l=()=>Pe(s.value,{[`${o.value}-rtl`]:t.rtl}),u=()=>aLe(o.value),[c,f]=wH({prefixCls:o.value,getStyles:a,getClassName:l,motion:u,closable:!0,closeIcon:RH(o.value),duration:lLe,getContainer:()=>{var d,p;return((d=t.getPopupContainer)===null||d===void 0?void 0:d.call(t))||((p=i.value)===null||p===void 0?void 0:p.call(i))||document.body},maxCount:t.maxCount,hashId:s.value,onAllRemoved:t.onAllRemoved});return n(k(k({},c),{prefixCls:o.value,hashId:s})),f}});function cLe(t){const e=h.shallowRef(null),n=Symbol("notificationHolderKey"),r=s=>{if(!e.value)return;const{open:l,prefixCls:u,hashId:c}=e.value,f=`${u}-notice`,{message:d,description:p,icon:g,type:v,btn:m,class:y}=s,b=sLe(s,["message","description","icon","type","btn","class"]);return l(k(k({placement:"topRight"},b),{content:()=>h.createVNode(kH,{prefixCls:f,icon:typeof g=="function"?g():g,type:v,message:typeof d=="function"?d():d,description:typeof p=="function"?p():p,btn:typeof m=="function"?m():m},null),class:Pe(v&&`${f}-${v}`,c,y)}))},o={open:r,destroy:s=>{var l,u;s!==void 0?(l=e.value)===null||l===void 0||l.close(s):(u=e.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=l=>r(k(k({},l),{type:s}))}),[o,()=>h.createVNode(uLe,K(K({key:n},t),{},{ref:e}),null)]}function fLe(t){return cLe(t)}const Lf={};let BH=4.5,VH="24px",zH="24px",BE="",FH="topRight",WH=()=>document.body,QH=null,VE=!1,HH;function dLe(t){const{duration:e,placement:n,bottom:r,top:i,getContainer:o,closeIcon:a,prefixCls:s}=t;s!==void 0&&(BE=s),e!==void 0&&(BH=e),n!==void 0&&(FH=n),r!==void 0&&(zH=typeof r=="number"?`${r}px`:r),i!==void 0&&(VH=typeof i=="number"?`${i}px`:i),o!==void 0&&(WH=o),a!==void 0&&(QH=a),t.rtl!==void 0&&(VE=t.rtl),t.maxCount!==void 0&&(HH=t.maxCount)}function hLe(t,e){let{prefixCls:n,placement:r=FH,getContainer:i=WH,top:o,bottom:a,closeIcon:s=QH,appContext:l}=t;const{getPrefixCls:u}=xLe(),c=u("notification",n||BE),f=`${c}-${r}-${VE}`,d=Lf[f];if(d){Promise.resolve(d).then(g=>{e(g)});return}const p=Pe(`${c}-${r}`,{[`${c}-rtl`]:VE===!0});ow.newInstance({name:"notification",prefixCls:n||BE,useStyle:LE,class:p,style:NH(r,o??VH,a??zH),appContext:l,getContainer:i,closeIcon:g=>{let{prefixCls:v}=g;return h.createVNode("span",{class:`${v}-close-x`},[pp(s,{},h.createVNode(Il,{class:`${v}-close-icon`},null))])},maxCount:HH,hasTransitionName:!0},g=>{Lf[f]=g,e(g)})}const pLe={success:cE,info:DO,error:dE,warning:fE};function gLe(t){const{icon:e,type:n,description:r,message:i,btn:o}=t,a=t.duration===void 0?BH:t.duration;hLe(t,s=>{s.notice({content:l=>{let{prefixCls:u}=l;const c=`${u}-notice`;let f=null;if(e)f=()=>h.createVNode("span",{class:`${c}-icon`},[pp(e)]);else if(n){const d=pLe[n];f=()=>h.createVNode(d,{class:`${c}-icon ${c}-icon-${n}`},null)}return h.createVNode("div",{class:f?`${c}-with-icon`:""},[f&&f(),h.createVNode("div",{class:`${c}-message`},[!r&&f?h.createVNode("span",{class:`${c}-message-single-line-auto-margin`},null):null,pp(i)]),h.createVNode("div",{class:`${c}-description`},[pp(r)]),o?h.createVNode("span",{class:`${c}-btn`},[pp(o)]):null])},duration:a,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})})}const Bp={open:gLe,close(t){Object.keys(Lf).forEach(e=>Promise.resolve(Lf[e]).then(n=>{n.removeNotice(t)}))},config:dLe,destroy(){Object.keys(Lf).forEach(t=>{Promise.resolve(Lf[t]).then(e=>{e.destroy()}),delete Lf[t]})}};["success","info","warning","error"].forEach(t=>{Bp[t]=e=>Bp.open(k(k({},e),{type:t}))}),Bp.warn=Bp.warning,Bp.useNotification=fLe;const vLe=`-ant-${Date.now()}-${Math.random()}`;function mLe(t,e){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new yn(a),u=Pf(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(e.primaryColor){i(e.primaryColor,"primary");const a=new yn(e.primaryColor),s=Pf(a.toRgbString());s.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const l=new yn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`
  236. :root {
  237. ${Object.keys(n).map(a=>`--${t}-${a}: ${n[a]};`).join(`
  238. `)}
  239. }
  240. `.trim()}function yLe(t,e){const n=mLe(t,e);jo()?Nm(n,`${vLe}-dynamic-theme`):yi(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const bLe=t=>{const[e,n]=xp();return cA(h.computed(()=>({theme:e.value,token:n.value,hashId:"",path:["ant-design-icons",t.value]})),()=>[{[`.${t.value}`]:k(k({},Sp()),{[`.${t.value} .${t.value}-icon`]:{display:"block"}})}])};function _Le(t,e){const n=h.computed(()=>(t==null?void 0:t.value)||{}),r=h.computed(()=>n.value.inherit===!1||!(e!=null&&e.value)?xW:e.value);return h.computed(()=>{if(!(t!=null&&t.value))return e==null?void 0:e.value;const o=k({},r.value.components);return Object.keys(t.value.components||{}).forEach(a=>{o[a]=k(k({},o[a]),t.value.components[a])}),k(k(k({},r.value),n.value),{token:k(k({},r.value.token),n.value.token),components:o})})}var OLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const wLe="ant";function Vp(){return Fr.prefixCls||wLe}function GH(){return Fr.iconPrefixCls||Z$}const zE=h.reactive({}),Fr=h.reactive({});h.watchEffect(()=>{k(Fr,zE),Fr.prefixCls=Vp(),Fr.iconPrefixCls=GH(),Fr.getPrefixCls=(t,e)=>e||(t?`${Fr.prefixCls}-${t}`:Fr.prefixCls),Fr.getRootPrefixCls=()=>Fr.prefixCls?Fr.prefixCls:Vp()});let FE;const SLe=t=>{FE&&FE(),FE=h.watchEffect(()=>{k(zE,h.reactive(t)),k(Fr,h.reactive(t))}),t.theme&&yLe(Vp(),t.theme)},xLe=()=>({getPrefixCls:(t,e)=>e||(t?`${Vp()}-${t}`:Vp()),getIconPrefixCls:GH,getRootPrefixCls:()=>Fr.prefixCls?Fr.prefixCls:Vp()}),zp=h.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:QPe(),setup(t,e){let{slots:n}=e;const r=V1(),i=(D,B)=>{const{prefixCls:F="ant"}=t;if(B)return B;const z=F||r.getPrefixCls("");return D?`${z}-${D}`:z},o=h.computed(()=>t.iconPrefixCls||r.iconPrefixCls.value||Z$),a=h.computed(()=>o.value!==r.iconPrefixCls.value),s=h.computed(()=>{var D;return t.csp||((D=r.csp)===null||D===void 0?void 0:D.value)}),l=bLe(o),u=_Le(h.computed(()=>t.theme),h.computed(()=>{var D;return(D=r.theme)===null||D===void 0?void 0:D.value})),c=D=>(t.renderEmpty||n.renderEmpty||r.renderEmpty||x$e)(D),f=h.computed(()=>{var D,B;return(D=t.autoInsertSpaceInButton)!==null&&D!==void 0?D:(B=r.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),d=h.computed(()=>{var D;return t.locale||((D=r.locale)===null||D===void 0?void 0:D.value)});h.watch(d,()=>{zE.locale=d.value},{immediate:!0});const p=h.computed(()=>{var D;return t.direction||((D=r.direction)===null||D===void 0?void 0:D.value)}),g=h.computed(()=>{var D,B;return(D=t.space)!==null&&D!==void 0?D:(B=r.space)===null||B===void 0?void 0:B.value}),v=h.computed(()=>{var D,B;return(D=t.virtual)!==null&&D!==void 0?D:(B=r.virtual)===null||B===void 0?void 0:B.value}),m=h.computed(()=>{var D,B;return(D=t.dropdownMatchSelectWidth)!==null&&D!==void 0?D:(B=r.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),y=h.computed(()=>{var D;return t.getTargetContainer!==void 0?t.getTargetContainer:(D=r.getTargetContainer)===null||D===void 0?void 0:D.value}),b=h.computed(()=>{var D;return t.getPopupContainer!==void 0?t.getPopupContainer:(D=r.getPopupContainer)===null||D===void 0?void 0:D.value}),O=h.computed(()=>{var D;return t.pageHeader!==void 0?t.pageHeader:(D=r.pageHeader)===null||D===void 0?void 0:D.value}),w=h.computed(()=>{var D;return t.input!==void 0?t.input:(D=r.input)===null||D===void 0?void 0:D.value}),S=h.computed(()=>{var D;return t.pagination!==void 0?t.pagination:(D=r.pagination)===null||D===void 0?void 0:D.value}),x=h.computed(()=>{var D;return t.form!==void 0?t.form:(D=r.form)===null||D===void 0?void 0:D.value}),T=h.computed(()=>{var D;return t.select!==void 0?t.select:(D=r.select)===null||D===void 0?void 0:D.value}),$=h.computed(()=>t.componentSize),A=h.computed(()=>t.componentDisabled),P=h.computed(()=>{var D,B;return(D=t.wave)!==null&&D!==void 0?D:(B=r.wave)===null||B===void 0?void 0:B.value}),M={csp:s,autoInsertSpaceInButton:f,locale:d,direction:p,space:g,virtual:v,dropdownMatchSelectWidth:m,getPrefixCls:i,iconPrefixCls:o,theme:h.computed(()=>{var D,B;return(D=u.value)!==null&&D!==void 0?D:(B=r.theme)===null||B===void 0?void 0:B.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:b,pageHeader:O,input:w,pagination:S,form:x,select:T,componentSize:$,componentDisabled:A,transformCellText:h.computed(()=>t.transformCellText),wave:P},I=h.computed(()=>{const D=u.value||{},{algorithm:B,token:F}=D,z=OLe(D,["algorithm","token"]),W=B&&(!Array.isArray(B)||B.length>0)?YF(B):void 0;return k(k({},z),{theme:W,token:k(k({},tO),F)})}),R=h.computed(()=>{var D,B;let F={};return d.value&&(F=((D=d.value.Form)===null||D===void 0?void 0:D.defaultValidateMessages)||((B=$l.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),t.form&&t.form.validateMessages&&(F=k(k({},F),t.form.validateMessages)),F});HPe(M),FPe({validateMessages:R}),IW($),IF(A);const L=D=>{var B,F;let z=a.value?l((B=n.default)===null||B===void 0?void 0:B.call(n)):(F=n.default)===null||F===void 0?void 0:F.call(n);if(t.theme){const W=function(){return z}();z=h.createVNode(b$e,{value:I.value},{default:()=>[W]})}return h.createVNode(DNe,{locale:d.value||D,ANT_MARK__:kE},{default:()=>[z]})};return h.watchEffect(()=>{p.value&&(Nf.config({rtl:p.value==="rtl"}),Bp.config({rtl:p.value==="rtl"}))}),()=>h.createVNode(kF,{children:(D,B,F)=>L(F)},null)}});zp.config=SLe,zp.install=function(t){t.component(zp.name,zp)};const CLe=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=t;return{[e]:k(k({},bn(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}},TLe=Fn("Divider",t=>{const e=Xt(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[CLe(e)]},{sizePaddingEdgeHorizontal:0}),PLe=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),$Le=h.defineComponent({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:PLe(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o}=Qt("divider",t),[a,s]=TLe(i),l=h.computed(()=>t.orientation==="left"&&t.orientationMargin!=null),u=h.computed(()=>t.orientation==="right"&&t.orientationMargin!=null),c=h.computed(()=>{const{type:p,dashed:g,plain:v}=t,m=i.value;return{[m]:!0,[s.value]:!!s.value,[`${m}-${p}`]:!0,[`${m}-dashed`]:!!g,[`${m}-plain`]:!!v,[`${m}-rtl`]:o.value==="rtl",[`${m}-no-default-orientation-margin-left`]:l.value,[`${m}-no-default-orientation-margin-right`]:u.value}}),f=h.computed(()=>{const p=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return k(k({},l.value&&{marginLeft:p}),u.value&&{marginRight:p})}),d=h.computed(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var p;const g=vr((p=n.default)===null||p===void 0?void 0:p.call(n));return a(h.createVNode("div",K(K({},r),{},{class:[c.value,g.length?`${i.value}-with-text ${i.value}-with-text${d.value}`:"",r.class],role:"separator"}),[g.length?h.createVNode("span",{class:`${i.value}-inner-text`,style:f.value},[g]):null]))}}}),ALe=mp($Le),i0=t=>t!=null&&(Array.isArray(t)?xs(t).length:!0);function WE(t){return i0(t.prefix)||i0(t.suffix)||i0(t.allowClear)}function aw(t){return i0(t.addonBefore)||i0(t.addonAfter)}function QE(t){return typeof t>"u"||t===null?"":String(t)}function o0(t,e,n,r){if(!n)return;const i=e;if(e.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});const o=t.cloneNode(!0);i.target=o,i.currentTarget=o,o.value="",n(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=t,i.currentTarget=t,t.value=r,n(i);return}n(i)}function jH(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n){const r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}const ELe=()=>({addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,suffix:ne.any,clearIcon:ne.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),UH=()=>k(k({},ELe()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:ne.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),ZH=()=>k(k({},UH()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:$n("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),MLe=h.defineComponent({name:"BaseInput",inheritAttrs:!1,props:UH(),setup(t,e){let{slots:n,attrs:r}=e;const i=h.ref(),o=s=>{var l;if(!((l=i.value)===null||l===void 0)&&l.contains(s.target)){const{triggerFocus:u}=t;u==null||u()}},a=()=>{var s;const{allowClear:l,value:u,disabled:c,readonly:f,handleReset:d,suffix:p=n.suffix,prefixCls:g}=t;if(!l)return null;const v=!c&&!f&&u,m=`${g}-clear-icon`,y=((s=n.clearIcon)===null||s===void 0?void 0:s.call(n))||"*";return h.createVNode("span",{onClick:d,onMousedown:b=>b.preventDefault(),class:Pe({[`${m}-hidden`]:!v,[`${m}-has-suffix`]:!!p},m),role:"button",tabindex:-1},[y])};return()=>{var s,l;const{focused:u,value:c,disabled:f,allowClear:d,readonly:p,hidden:g,prefixCls:v,prefix:m=(s=n.prefix)===null||s===void 0?void 0:s.call(n),suffix:y=(l=n.suffix)===null||l===void 0?void 0:l.call(n),addonAfter:b=n.addonAfter,addonBefore:O=n.addonBefore,inputElement:w,affixWrapperClassName:S,wrapperClassName:x,groupClassName:T}=t;let $=Gn(w,{value:c,hidden:g});if(WE({prefix:m,suffix:y,allowClear:d})){const A=`${v}-affix-wrapper`,P=Pe(A,{[`${A}-disabled`]:f,[`${A}-focused`]:u,[`${A}-readonly`]:p,[`${A}-input-with-clear-btn`]:y&&d&&c},!aw({addonAfter:b,addonBefore:O})&&r.class,S),M=(y||d)&&h.createVNode("span",{class:`${v}-suffix`},[a(),y]);$=h.createVNode("span",{class:P,style:r.style,hidden:!aw({addonAfter:b,addonBefore:O})&&g,onMousedown:o,ref:i},[m&&h.createVNode("span",{class:`${v}-prefix`},[m]),Gn(w,{style:null,value:c,hidden:null}),M])}if(aw({addonAfter:b,addonBefore:O})){const A=`${v}-group`,P=`${A}-addon`,M=Pe(`${v}-wrapper`,A,x),I=Pe(`${v}-group-wrapper`,r.class,T);return h.createVNode("span",{class:I,style:r.style,hidden:g},[h.createVNode("span",{class:M},[O&&h.createVNode("span",{class:P},[O]),Gn($,{style:null,hidden:null}),b&&h.createVNode("span",{class:P},[b])])])}return $}}});var ILe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const DLe=h.defineComponent({name:"VCInput",inheritAttrs:!1,props:ZH(),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(t.value===void 0?t.defaultValue:t.value),s=h.shallowRef(!1),l=h.shallowRef(),u=h.shallowRef();h.watch(()=>t.value,()=>{a.value=t.value}),h.watch(()=>t.disabled,()=>{t.disabled&&(s.value=!1)});const c=T=>{l.value&&jH(l.value.input,T)},f=()=>{var T;(T=l.value.input)===null||T===void 0||T.blur()},d=(T,$,A)=>{var P;(P=l.value.input)===null||P===void 0||P.setSelectionRange(T,$,A)},p=()=>{var T;(T=l.value.input)===null||T===void 0||T.select()};i({focus:c,blur:f,input:h.computed(()=>{var T;return(T=l.value.input)===null||T===void 0?void 0:T.input}),stateValue:a,setSelectionRange:d,select:p});const g=T=>{o("change",T)},v=(T,$)=>{a.value!==T&&(t.value===void 0?a.value=T:h.nextTick(()=>{var A;l.value.input.value!==a.value&&((A=u.value)===null||A===void 0||A.$forceUpdate())}),h.nextTick(()=>{$&&$()}))},m=T=>{const{value:$}=T.target;if(a.value===$)return;const A=T.target.value;o0(l.value.input,T,g),v(A)},y=T=>{T.keyCode===13&&o("pressEnter",T),o("keydown",T)},b=T=>{s.value=!0,o("focus",T)},O=T=>{s.value=!1,o("blur",T)},w=T=>{o0(l.value.input,T,g),v("",()=>{c()})},S=()=>{var T,$;const{addonBefore:A=n.addonBefore,addonAfter:P=n.addonAfter,disabled:M,valueModifiers:I={},htmlSize:R,autocomplete:L,prefixCls:D,inputClassName:B,prefix:F=(T=n.prefix)===null||T===void 0?void 0:T.call(n),suffix:z=($=n.suffix)===null||$===void 0?void 0:$.call(n),allowClear:W,type:j="text"}=t,H=Er(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),Z=k(k(k({},H),r),{autocomplete:L,onChange:m,onInput:m,onFocus:b,onBlur:O,onKeydown:y,class:Pe(D,{[`${D}-disabled`]:M},B,!aw({addonAfter:P,addonBefore:A})&&!WE({prefix:F,suffix:z,allowClear:W})&&r.class),ref:l,key:"ant-input",size:R,type:j,lazy:t.lazy});return I.lazy&&delete Z.onInput,Z.autofocus||delete Z.autofocus,h.createVNode(VA,Er(Z,["size"]),null)},x=()=>{var T;const{maxlength:$,suffix:A=(T=n.suffix)===null||T===void 0?void 0:T.call(n),showCount:P,prefixCls:M}=t,I=Number($)>0;if(A||P){const R=[...QE(a.value)].length,L=typeof P=="object"?P.formatter({count:R,maxlength:$}):`${R}${I?` / ${$}`:""}`;return h.createVNode(h.Fragment,null,[!!P&&h.createVNode("span",{class:Pe(`${M}-show-count-suffix`,{[`${M}-show-count-has-suffix`]:!!A})},[L]),A])}return null};return h.onMounted(()=>{process.env.NODE_ENV==="test"&&t.autofocus&&c()}),()=>{const{prefixCls:T,disabled:$}=t,A=ILe(t,["prefixCls","disabled"]);return h.createVNode(MLe,K(K(K({},A),r),{},{ref:u,prefixCls:T,inputElement:S(),handleReset:w,value:QE(a.value),focused:s.value,triggerFocus:c,suffix:x(),disabled:$}),n)}}}),sw=()=>Er(ZH(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),XH=()=>k(k({},Er(sw(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:B1(),onCompositionend:B1(),valueModifiers:Object});var RLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const jn=h.defineComponent({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:sw(),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.ref(),s=Ms(),l=Za.useInject(),u=h.computed(()=>Jm(l.status,t.status)),{direction:c,prefixCls:f,size:d,autocomplete:p}=Qt("input",t),{compactSize:g,compactItemClassnames:v}=$O(f,c),m=h.computed(()=>g.value||d.value),[y,b]=xE(f),O=Cs();i({focus:R=>{var L;(L=a.value)===null||L===void 0||L.focus(R)},blur:()=>{var R;(R=a.value)===null||R===void 0||R.blur()},input:a,setSelectionRange:(R,L,D)=>{var B;(B=a.value)===null||B===void 0||B.setSelectionRange(R,L,D)},select:()=>{var R;(R=a.value)===null||R===void 0||R.select()}});const $=h.ref([]),A=()=>{$.value.push(setTimeout(()=>{var R,L,D,B;!((R=a.value)===null||R===void 0)&&R.input&&((L=a.value)===null||L===void 0?void 0:L.input.getAttribute("type"))==="password"&&(!((D=a.value)===null||D===void 0)&&D.input.hasAttribute("value"))&&((B=a.value)===null||B===void 0||B.input.removeAttribute("value"))}))};h.onMounted(()=>{A()}),h.onBeforeUpdate(()=>{$.value.forEach(R=>clearTimeout(R))}),h.onBeforeUnmount(()=>{$.value.forEach(R=>clearTimeout(R))});const P=R=>{A(),o("blur",R),s.onFieldBlur()},M=R=>{A(),o("focus",R)},I=R=>{o("update:value",R.target.value),o("change",R),o("input",R),s.onFieldChange()};return()=>{var R,L,D,B,F,z;const{hasFeedback:W,feedbackIcon:j}=l,{allowClear:H,bordered:Z=!0,prefix:J=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:se=(L=n.suffix)===null||L===void 0?void 0:L.call(n),addonAfter:oe=(D=n.addonAfter)===null||D===void 0?void 0:D.call(n),addonBefore:de=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:ie=(F=s.id)===null||F===void 0?void 0:F.value}=t,ue=RLe(t,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),ee=(W||se)&&h.createVNode(h.Fragment,null,[se,W&&j]),X=f.value,Y=WE({prefix:J,suffix:se})||!!W,le=n.clearIcon||(()=>h.createVNode(Xo,null,null));return y(h.createVNode(DLe,K(K(K({},r),Er(ue,["onUpdate:value","onChange","onInput"])),{},{onChange:I,id:ie,disabled:(z=t.disabled)!==null&&z!==void 0?z:O.value,ref:a,prefixCls:X,autocomplete:p.value,onBlur:P,onFocus:M,prefix:J,suffix:ee,allowClear:H,addonAfter:oe&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[oe]})]}),addonBefore:de&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[de]})]}),class:[r.class,v.value],inputClassName:Pe({[`${X}-sm`]:m.value==="small",[`${X}-lg`]:m.value==="large",[`${X}-rtl`]:c.value==="rtl",[`${X}-borderless`]:!Z},!Y&&Dl(X,u.value),b.value),affixWrapperClassName:Pe({[`${X}-affix-wrapper-sm`]:m.value==="small",[`${X}-affix-wrapper-lg`]:m.value==="large",[`${X}-affix-wrapper-rtl`]:c.value==="rtl",[`${X}-affix-wrapper-borderless`]:!Z},Dl(`${X}-affix-wrapper`,u.value,W),b.value),wrapperClassName:Pe({[`${X}-group-rtl`]:c.value==="rtl"},b.value),groupClassName:Pe({[`${X}-group-wrapper-sm`]:m.value==="small",[`${X}-group-wrapper-lg`]:m.value==="large",[`${X}-group-wrapper-rtl`]:c.value==="rtl"},Dl(`${X}-group-wrapper`,u.value,W),b.value)}),k(k({},n),{clearIcon:le})))}}}),kLe=h.defineComponent({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o,getPrefixCls:a}=Qt("input-group",t),s=Za.useInject();Za.useProvide(s,{isFormItemInput:!1});const l=h.computed(()=>a("input")),[u,c]=xE(l),f=h.computed(()=>{const d=i.value;return{[`${d}`]:!0,[c.value]:!0,[`${d}-lg`]:t.size==="large",[`${d}-sm`]:t.size==="small",[`${d}-compact`]:t.compact,[`${d}-rtl`]:o.value==="rtl"}});return()=>{var d;return u(h.createVNode("span",K(K({},r),{},{class:Pe(f.value,r.class)}),[(d=n.default)===null||d===void 0?void 0:d.call(n)]))}}});var NLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const LLe=h.defineComponent({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:k(k({},sw()),{inputPrefixCls:String,enterButton:ne.any,onSearch:{type:Function}}),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(),s=h.shallowRef(!1);i({focus:()=>{var S;(S=a.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=a.value)===null||S===void 0||S.blur()}});const c=S=>{o("update:value",S.target.value),S&&S.target&&S.type==="click"&&o("search",S.target.value,S),o("change",S)},f=S=>{var x;document.activeElement===((x=a.value)===null||x===void 0?void 0:x.input)&&S.preventDefault()},d=S=>{var x,T;o("search",(T=(x=a.value)===null||x===void 0?void 0:x.input)===null||T===void 0?void 0:T.stateValue,S)},p=S=>{s.value||t.loading||d(S)},g=S=>{s.value=!0,o("compositionstart",S)},v=S=>{s.value=!1,o("compositionend",S)},{prefixCls:m,getPrefixCls:y,direction:b,size:O}=Qt("input-search",t),w=h.computed(()=>y("input",t.inputPrefixCls));return()=>{var S,x,T,$;const{disabled:A,loading:P,addonAfter:M=(S=n.addonAfter)===null||S===void 0?void 0:S.call(n),suffix:I=(x=n.suffix)===null||x===void 0?void 0:x.call(n)}=t,R=NLe(t,["disabled","loading","addonAfter","suffix"]);let{enterButton:L=($=(T=n.enterButton)===null||T===void 0?void 0:T.call(n))!==null&&$!==void 0?$:!1}=t;L=L||L==="";const D=typeof L=="boolean"?h.createVNode(SO,null,null):null,B=`${m.value}-button`,F=Array.isArray(L)?L[0]:L;let z;const W=F.type&&z2(F.type)&&F.type.__ANT_BUTTON;if(W||F.tagName==="button")z=Gn(F,k({onMousedown:f,onClick:d,key:"enterButton"},W?{class:B,size:O.value}:{}),!1);else{const H=D&&!L;z=h.createVNode(ri,{class:B,type:L?"primary":void 0,size:O.value,disabled:A,key:"enterButton",onMousedown:f,onClick:d,loading:P,icon:H?D:null},{default:()=>[H?null:D||L]})}M&&(z=[z,M]);const j=Pe(m.value,{[`${m.value}-rtl`]:b.value==="rtl",[`${m.value}-${O.value}`]:!!O.value,[`${m.value}-with-button`]:!!L},r.class);return h.createVNode(jn,K(K(K({ref:a},Er(R,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:p,onCompositionstart:g,onCompositionend:v,size:O.value,prefixCls:w.value,addonAfter:z,suffix:I,onChange:c,class:j,disabled:A}),n)}}}),YH=t=>t!=null&&(Array.isArray(t)?xs(t).length:!0);function BLe(t){return YH(t.addonBefore)||YH(t.addonAfter)}const VLe=["text","input"],zLe=h.defineComponent({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ne.oneOf(Du("text","input")),value:Go(),defaultValue:Go(),allowClear:{type:Boolean,default:void 0},element:Go(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Go(),prefix:Go(),addonBefore:Go(),addonAfter:Go(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(t,e){let{slots:n,attrs:r}=e;const i=Za.useInject(),o=s=>{const{value:l,disabled:u,readonly:c,handleReset:f,suffix:d=n.suffix}=t,p=!u&&!c&&l,g=`${s}-clear-icon`;return h.createVNode(Xo,{onClick:f,onMousedown:v=>v.preventDefault(),class:Pe({[`${g}-hidden`]:!p,[`${g}-has-suffix`]:!!d},g),role:"button"},null)},a=(s,l)=>{const{value:u,allowClear:c,direction:f,bordered:d,hidden:p,status:g,addonAfter:v=n.addonAfter,addonBefore:m=n.addonBefore,hashId:y}=t,{status:b,hasFeedback:O}=i;if(!c)return Gn(l,{value:u,disabled:t.disabled});const w=Pe(`${s}-affix-wrapper`,`${s}-affix-wrapper-textarea-with-clear-btn`,Dl(`${s}-affix-wrapper`,Jm(b,g),O),{[`${s}-affix-wrapper-rtl`]:f==="rtl",[`${s}-affix-wrapper-borderless`]:!d,[`${r.class}`]:!BLe({addonAfter:v,addonBefore:m})&&r.class},y);return h.createVNode("span",{class:w,style:r.style,hidden:p},[Gn(l,{style:null,value:u,disabled:t.disabled}),o(s)])};return()=>{var s;const{prefixCls:l,inputType:u,element:c=(s=n.element)===null||s===void 0?void 0:s.call(n)}=t;return u===VLe[0]?a(l,c):null}}}),FLe=`
  241. min-height:0 !important;
  242. max-height:none !important;
  243. height:0 !important;
  244. visibility:hidden !important;
  245. overflow:hidden !important;
  246. position:absolute !important;
  247. z-index:-1000 !important;
  248. top:0 !important;
  249. right:0 !important;
  250. pointer-events: none !important;
  251. `,WLe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],HE={};let Ko;function QLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&HE[n])return HE[n];const r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:WLe.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return e&&n&&(HE[n]=l),l}function HLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ko||(Ko=document.createElement("textarea"),Ko.setAttribute("tab-index","-1"),Ko.setAttribute("aria-hidden","true"),document.body.appendChild(Ko)),t.getAttribute("wrap")?Ko.setAttribute("wrap",t.getAttribute("wrap")):Ko.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:a,sizingStyle:s}=QLe(t,e);Ko.setAttribute("style",`${s};${FLe}`),Ko.value=t.value||t.placeholder||"";let l,u,c,f=Ko.scrollHeight;if(a==="border-box"?f+=o:a==="content-box"&&(f-=i),n!==null||r!==null){Ko.value=" ";const p=Ko.scrollHeight-i;n!==null&&(l=p*n,a==="border-box"&&(l=l+i+o),f=Math.max(l,f)),r!==null&&(u=p*r,a==="border-box"&&(u=u+i+o),c=f>u?"":"hidden",f=Math.min(u,f))}const d={height:`${f}px`,overflowY:c,resize:"none"};return l&&(d.minHeight=`${l}px`),u&&(d.maxHeight=`${u}px`),d}const GE=0,jE=1,UE=2,GLe=h.defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:XH(),setup(t,e){let{attrs:n,emit:r,expose:i}=e,o,a;const s=h.ref(),l=h.ref({}),u=h.ref(UE);h.onBeforeUnmount(()=>{Dt.cancel(o),Dt.cancel(a)});const c=()=>{try{if(s.value&&document.activeElement===s.value.input){const x=s.value.getSelectionStart(),T=s.value.getSelectionEnd(),$=s.value.getScrollTop();s.value.setSelectionRange(x,T),s.value.setScrollTop($)}}catch{}},f=h.ref(),d=h.ref();h.watchEffect(()=>{const x=t.autoSize||t.autosize;x?(f.value=x.minRows,d.value=x.maxRows):(f.value=void 0,d.value=void 0)});const p=h.computed(()=>!!(t.autoSize||t.autosize)),g=()=>{u.value=GE};h.watch([()=>t.value,f,d,p],()=>{p.value&&g()},{immediate:!0});const v=h.ref();h.watch([u,s],()=>{if(s.value)if(u.value===GE)u.value=jE;else if(u.value===jE){const x=HLe(s.value.input,!1,f.value,d.value);u.value=UE,v.value=x}else c()},{immediate:!0,flush:"post"});const m=h.getCurrentInstance(),y=h.ref(),b=()=>{Dt.cancel(y.value)},O=x=>{u.value===UE&&(r("resize",x),p.value&&(b(),y.value=Dt(()=>{g()})))};h.onBeforeUnmount(()=>{b()}),i({resizeTextarea:()=>{g()},textArea:h.computed(()=>{var x;return(x=s.value)===null||x===void 0?void 0:x.input}),instance:m}),yi(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const S=()=>{const{prefixCls:x,disabled:T}=t,$=Er(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),A=Pe(x,n.class,{[`${x}-disabled`]:T}),P=p.value?v.value:null,M=[n.style,l.value,P],I=k(k(k({},$),n),{style:M,class:A});return(u.value===GE||u.value===jE)&&M.push({overflowX:"hidden",overflowY:"hidden"}),I.autofocus||delete I.autofocus,I.rows===0&&delete I.rows,h.createVNode(vp,{onResize:O,disabled:!p.value},{default:()=>[h.createVNode(VA,K(K({},I),{},{ref:s,tag:"textarea"}),null)]})};return()=>S()}});function qH(t,e){return[...t||""].slice(0,e).join("")}function KH(t,e,n,r){let i=n;return t?i=qH(n,r):[...e||""].length<n.length&&[...n||""].length>r&&(i=e),i}const jLe=h.defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:XH(),setup(t,e){let{attrs:n,expose:r,emit:i}=e;var o;const a=Ms(),s=Za.useInject(),l=h.computed(()=>Jm(s.status,t.status)),u=h.shallowRef((o=t.value)!==null&&o!==void 0?o:t.defaultValue),c=h.shallowRef(),f=h.shallowRef(""),{prefixCls:d,size:p,direction:g}=Qt("input",t),[v,m]=xE(d),y=Cs(),b=h.computed(()=>t.showCount===""||t.showCount||!1),O=h.computed(()=>Number(t.maxlength)>0),w=h.shallowRef(!1),S=h.shallowRef(),x=h.shallowRef(0),T=W=>{w.value=!0,S.value=f.value,x.value=W.currentTarget.selectionStart,i("compositionstart",W)},$=W=>{var j;w.value=!1;let H=W.currentTarget.value;if(O.value){const Z=x.value>=t.maxlength+1||x.value===((j=S.value)===null||j===void 0?void 0:j.length);H=KH(Z,S.value,H,t.maxlength)}H!==f.value&&(I(H),o0(W.currentTarget,W,D,H)),i("compositionend",W)},A=h.getCurrentInstance();h.watch(()=>t.value,()=>{var W;"value"in A.vnode.props,u.value=(W=t.value)!==null&&W!==void 0?W:""});const P=W=>{var j;jH((j=c.value)===null||j===void 0?void 0:j.textArea,W)},M=()=>{var W,j;(j=(W=c.value)===null||W===void 0?void 0:W.textArea)===null||j===void 0||j.blur()},I=(W,j)=>{u.value!==W&&(t.value===void 0?u.value=W:h.nextTick(()=>{var H,Z,J;c.value.textArea.value!==f.value&&((J=(H=c.value)===null||H===void 0?void 0:(Z=H.instance).update)===null||J===void 0||J.call(Z))}),h.nextTick(()=>{j&&j()}))},R=W=>{W.keyCode===13&&i("pressEnter",W),i("keydown",W)},L=W=>{const{onBlur:j}=t;j==null||j(W),a.onFieldBlur()},D=W=>{i("update:value",W.target.value),i("change",W),i("input",W),a.onFieldChange()},B=W=>{o0(c.value.textArea,W,D),I("",()=>{P()})},F=W=>{let j=W.target.value;if(u.value!==j){if(O.value){const H=W.target,Z=H.selectionStart>=t.maxlength+1||H.selectionStart===j.length||!H.selectionStart;j=KH(Z,f.value,j,t.maxlength)}o0(W.currentTarget,W,D,j),I(j)}},z=()=>{var W,j;const{class:H}=n,{bordered:Z=!0}=t,J=k(k(k({},Er(t,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!Z,[`${H}`]:H&&!b.value,[`${d.value}-sm`]:p.value==="small",[`${d.value}-lg`]:p.value==="large"},Dl(d.value,l.value),m.value],disabled:y.value,showCount:null,prefixCls:d.value,onInput:F,onChange:F,onBlur:L,onKeydown:R,onCompositionstart:T,onCompositionend:$});return!((W=t.valueModifiers)===null||W===void 0)&&W.lazy&&delete J.onInput,h.createVNode(GLe,K(K({},J),{},{id:(j=J==null?void 0:J.id)!==null&&j!==void 0?j:a.id.value,ref:c,maxlength:t.maxlength,lazy:t.lazy}),null)};return r({focus:P,blur:M,resizableTextArea:c}),h.watchEffect(()=>{let W=QE(u.value);!w.value&&O.value&&(t.value===null||t.value===void 0)&&(W=qH(W,t.maxlength)),f.value=W}),()=>{var W;const{maxlength:j,bordered:H=!0,hidden:Z}=t,{style:J,class:se}=n,oe=k(k(k({},t),n),{prefixCls:d.value,inputType:"text",handleReset:B,direction:g.value,bordered:H,style:b.value?void 0:J,hashId:m.value,disabled:(W=t.disabled)!==null&&W!==void 0?W:y.value});let de=h.createVNode(zLe,K(K({},oe),{},{value:f.value,status:t.status}),{element:z});if(b.value||s.hasFeedback){const ie=[...f.value].length;let ue="";typeof b.value=="object"?ue=b.value.formatter({value:f.value,count:ie,maxlength:j}):ue=`${ie}${O.value?` / ${j}`:""}`,de=h.createVNode("div",{hidden:Z,class:Pe(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:g.value==="rtl",[`${d.value}-textarea-show-count`]:b.value,[`${d.value}-textarea-in-form-item`]:s.isFormItemInput},`${d.value}-textarea-show-count`,se,m.value),style:J,"data-count":typeof ue!="object"?ue:void 0},[de,s.hasFeedback&&h.createVNode("span",{class:`${d.value}-textarea-suffix`},[s.feedbackIcon])])}return v(de)}}});var ULe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function JH(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ZLe(t,i,n[i])})}return t}function ZLe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lw=function(e,n){var r=JH({},e,n.attrs);return h.createVNode(mt,JH({},r,{icon:ULe}),null)};lw.displayName="EyeOutlined",lw.inheritAttrs=!1;var XLe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function eG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){YLe(t,i,n[i])})}return t}function YLe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ZE=function(e,n){var r=eG({},e,n.attrs);return h.createVNode(mt,eG({},r,{icon:XLe}),null)};ZE.displayName="EyeInvisibleOutlined",ZE.inheritAttrs=!1;var qLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const KLe={click:"onClick",hover:"onMouseover"},JLe=t=>t?h.createVNode(lw,null,null):h.createVNode(ZE,null,null),e4e=h.defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:k(k({},sw()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(!1),s=()=>{const{disabled:m}=t;m||(a.value=!a.value,o("update:visible",a.value))};h.watchEffect(()=>{t.visible!==void 0&&(a.value=!!t.visible)});const l=h.shallowRef();i({focus:()=>{var m;(m=l.value)===null||m===void 0||m.focus()},blur:()=>{var m;(m=l.value)===null||m===void 0||m.blur()}});const f=m=>{const{action:y,iconRender:b=n.iconRender||JLe}=t,O=KLe[y]||"",w=b(a.value),S={[O]:s,class:`${m}-icon`,key:"passwordIcon",onMousedown:x=>{x.preventDefault()},onMouseup:x=>{x.preventDefault()}};return Gn(po(w)?w:h.createVNode("span",null,[w]),S)},{prefixCls:d,getPrefixCls:p}=Qt("input-password",t),g=h.computed(()=>p("input",t.inputPrefixCls)),v=()=>{const{size:m,visibilityToggle:y}=t,b=qLe(t,["size","visibilityToggle"]),O=y&&f(d.value),w=Pe(d.value,r.class,{[`${d.value}-${m}`]:!!m}),S=k(k(k({},Er(b,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:w,prefixCls:g.value,suffix:O});return m&&(S.size=m),h.createVNode(jn,K({ref:l},S),n)};return()=>v()}});jn.Group=kLe,jn.Search=LLe,jn.TextArea=jLe,jn.Password=e4e,jn.install=function(t){return t.component(jn.name,jn),t.component(jn.Group.name,jn.Group),t.component(jn.Search.name,jn.Search),t.component(jn.TextArea.name,jn.TextArea),t.component(jn.Password.name,jn.Password),t};function uw(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:ne.shape({x:Number,y:Number}).loose,title:ne.any,footer:ne.any,transitionName:String,maskTransitionName:String,animation:ne.any,maskAnimation:ne.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:ne.any,maskProps:ne.any,wrapProps:ne.any,getContainer:ne.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:ne.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function tG(t,e,n){let r=e;return!r&&n&&(r=`${t}-${n}`),r}let nG=-1;function t4e(){return nG+=1,nG}function rG(t,e){let n=t[`page${e?"Y":"X"}Offset`];const r=`scroll${e?"Top":"Left"}`;if(typeof n!="number"){const i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function n4e(t){const e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=rG(i),n.top+=rG(i,!0),n}const iG={width:0,height:0,overflow:"hidden",outline:"none"},r4e=h.defineComponent({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:k(k({},uw()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(t,e){let{expose:n,slots:r,attrs:i}=e;const o=h.ref(),a=h.ref(),s=h.ref();n({focus:()=>{var d;(d=o.value)===null||d===void 0||d.focus()},changeActive:d=>{const{activeElement:p}=document;d&&p===a.value?o.value.focus():!d&&p===o.value&&a.value.focus()}});const l=h.ref(),u=h.computed(()=>{const{width:d,height:p}=t,g={};return d!==void 0&&(g.width=typeof d=="number"?`${d}px`:d),p!==void 0&&(g.height=typeof p=="number"?`${p}px`:p),l.value&&(g.transformOrigin=l.value),g}),c=()=>{h.nextTick(()=>{if(s.value){const d=n4e(s.value);l.value=t.mousePosition?`${t.mousePosition.x-d.left}px ${t.mousePosition.y-d.top}px`:""}})},f=d=>{t.onVisibleChanged(d)};return()=>{var d,p,g,v;const{prefixCls:m,footer:y=(d=r.footer)===null||d===void 0?void 0:d.call(r),title:b=(p=r.title)===null||p===void 0?void 0:p.call(r),ariaId:O,closable:w,closeIcon:S=(g=r.closeIcon)===null||g===void 0?void 0:g.call(r),onClose:x,bodyStyle:T,bodyProps:$,onMousedown:A,onMouseup:P,visible:M,modalRender:I=r.modalRender,destroyOnClose:R,motionName:L}=t;let D;y&&(D=h.createVNode("div",{class:`${m}-footer`},[y]));let B;b&&(B=h.createVNode("div",{class:`${m}-header`},[h.createVNode("div",{class:`${m}-title`,id:O},[b])]));let F;w&&(F=h.createVNode("button",{type:"button",onClick:x,"aria-label":"Close",class:`${m}-close`},[S||h.createVNode("span",{class:`${m}-close-x`},null)]));const z=h.createVNode("div",{class:`${m}-content`},[F,B,h.createVNode("div",K({class:`${m}-body`,style:T},$),[(v=r.default)===null||v===void 0?void 0:v.call(r)]),D]),W=Zm(L);return h.createVNode(h.Transition,K(K({},W),{},{onBeforeEnter:c,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[M||!R?h.withDirectives(h.createVNode("div",K(K({},i),{},{ref:s,key:"dialog-element",role:"document",style:[u.value,i.style],class:[m,i.class],onMousedown:A,onMouseup:P}),[h.createVNode("div",{tabindex:0,ref:o,style:iG,"aria-hidden":"true"},null),I?I({originVNode:z}):z,h.createVNode("div",{tabindex:0,ref:a,style:iG,"aria-hidden":"true"},null)]),[[h.vShow,M]]):null]})}}}),i4e=h.defineComponent({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(t,e){return()=>{const{prefixCls:n,visible:r,maskProps:i,motionName:o}=t,a=Zm(o);return h.createVNode(h.Transition,a,{default:()=>[h.withDirectives(h.createVNode("div",K({class:`${n}-mask`},i),null),[[h.vShow,r]])]})}}}),oG=h.defineComponent({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Ar(k(k({},uw()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(t,e){let{attrs:n,slots:r}=e;const i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef(),s=h.shallowRef(t.visible),l=h.shallowRef(`vcDialogTitle${t4e()}`),u=y=>{var b,O;if(y)Ru(o.value,document.activeElement)||(i.value=document.activeElement,(b=a.value)===null||b===void 0||b.focus());else{const w=s.value;if(s.value=!1,t.mask&&i.value&&t.focusTriggerAfterClose){try{i.value.focus({preventScroll:!0})}catch{}i.value=null}w&&((O=t.afterClose)===null||O===void 0||O.call(t))}},c=y=>{var b;(b=t.onClose)===null||b===void 0||b.call(t,y)},f=h.shallowRef(!1),d=h.shallowRef(),p=()=>{clearTimeout(d.value),f.value=!0},g=()=>{d.value=setTimeout(()=>{f.value=!1})},v=y=>{if(!t.maskClosable)return null;f.value?f.value=!1:o.value===y.target&&c(y)},m=y=>{if(t.keyboard&&y.keyCode===Se.ESC){y.stopPropagation(),c(y);return}t.visible&&y.keyCode===Se.TAB&&a.value.changeActive(!y.shiftKey)};return h.watch(()=>t.visible,()=>{t.visible&&(s.value=!0)},{flush:"post"}),h.onBeforeUnmount(()=>{var y;clearTimeout(d.value),(y=t.scrollLocker)===null||y===void 0||y.unLock()}),h.watchEffect(()=>{var y,b;(y=t.scrollLocker)===null||y===void 0||y.unLock(),s.value&&((b=t.scrollLocker)===null||b===void 0||b.lock())}),()=>{const{prefixCls:y,mask:b,visible:O,maskTransitionName:w,maskAnimation:S,zIndex:x,wrapClassName:T,rootClassName:$,wrapStyle:A,closable:P,maskProps:M,maskStyle:I,transitionName:R,animation:L,wrapProps:D,title:B=r.title}=t,{style:F,class:z}=n;return h.createVNode("div",K({class:[`${y}-root`,$]},yO(t,{data:!0})),[h.createVNode(i4e,{prefixCls:y,visible:b&&O,motionName:tG(y,w,S),style:k({zIndex:x},I),maskProps:M},null),h.createVNode("div",K({tabIndex:-1,onKeydown:m,class:Pe(`${y}-wrap`,T),ref:o,onClick:v,role:"dialog","aria-labelledby":B?l.value:null,style:k(k({zIndex:x},A),{display:s.value?null:"none"})},D),[h.createVNode(r4e,K(K({},Er(t,["scrollLocker"])),{},{style:F,class:z,onMousedown:p,onMouseup:g,ref:a,closable:P,ariaId:l.value,prefixCls:y,visible:O,onClose:c,onVisibleChanged:u,motionName:tG(y,R,L)}),r)])])}}}),o4e=uw(),aG=h.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Ar(o4e,{visible:!1}),setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(t.visible);return LA({},{inTriggerContext:!1}),h.watch(()=>t.visible,()=>{t.visible&&(i.value=!0)},{flush:"post"}),()=>{const{visible:o,getContainer:a,forceRender:s,destroyOnClose:l=!1,afterClose:u}=t;let c=k(k(k({},t),n),{ref:"_component",key:"dialog"});return a===!1?h.createVNode(oG,K(K({},c),{},{getOpenCount:()=>2}),r):!s&&l&&!i.value?null:h.createVNode(M7,{autoLock:!0,visible:o,forceRender:s,getContainer:a},{default:f=>(c=k(k(k({},c),f),{afterClose:()=>{u==null||u(),i.value=!1}}),h.createVNode(oG,c,r))})}}});function a4e(t){const e=h.ref(null),n=h.reactive(k({},t)),r=h.ref([]),i=o=>{e.value===null&&(r.value=[],e.value=Dt(()=>{let a;r.value.forEach(s=>{a=k(k({},a),s)}),k(n,a),e.value=null})),r.value.push(o)};return h.onMounted(()=>{e.value&&Dt.cancel(e.value)}),[n,i]}function sG(t,e,n,r){const i=e+n,o=(n-r)/2;if(n>r){if(e>0)return{[t]:o};if(e<0&&i<r)return{[t]:-o}}else if(e<0||i>r)return{[t]:e<0?o:-o};return{}}function s4e(t,e,n,r){const{width:i,height:o}=tEe();let a=null;return t<=i&&e<=o?a={x:0,y:0}:(t>i||e>o)&&(a=k(k({},sG("x",n,t,i)),sG("y",r,e,o))),a}var l4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const lG=Symbol("previewGroupContext"),XE={provide:t=>{h.provide(lG,t)},inject:()=>h.inject(lG,{isPreviewGroup:h.shallowRef(!1),previewUrls:h.computed(()=>new Map),setPreviewUrls:()=>{},current:h.ref(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},u4e=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),uG=h.defineComponent({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:u4e(),setup(t,e){let{slots:n}=e;const r=h.computed(()=>{const S={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof t.preview=="object"?dG(t.preview,S):S}),i=h.reactive(new Map),o=h.ref(),a=h.computed(()=>r.value.visible),s=h.computed(()=>r.value.getContainer),l=(S,x)=>{var T,$;($=(T=r.value).onVisibleChange)===null||$===void 0||$.call(T,S,x)},[u,c]=Ap(!!a.value,{value:a,onChange:l}),f=h.ref(null),d=h.computed(()=>a.value!==void 0),p=h.computed(()=>Array.from(i.keys())),g=h.computed(()=>p.value[r.value.current]),v=h.computed(()=>new Map(Array.from(i).filter(S=>{let[,{canPreview:x}]=S;return!!x}).map(S=>{let[x,{url:T}]=S;return[x,T]}))),m=function(S,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(S,{url:x,canPreview:T})},y=S=>{o.value=S},b=S=>{f.value=S},O=function(S,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const $=()=>{i.delete(S)};return i.set(S,{url:x,canPreview:T}),$},w=S=>{S==null||S.stopPropagation(),c(!1),b(null)};return h.watch(g,S=>{y(S)},{immediate:!0,flush:"post"}),h.watchEffect(()=>{u.value&&d.value&&y(g.value)},{flush:"post"}),XE.provide({isPreviewGroup:h.shallowRef(!0),previewUrls:v,setPreviewUrls:m,current:o,setCurrent:y,setShowPreview:c,setMousePosition:b,registerImage:O}),()=>{const S=l4e(r.value,[]);return h.createVNode(h.Fragment,null,[n.default&&n.default(),h.createVNode(cG,K(K({},S),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:t.previewPrefixCls,onClose:w,mousePosition:f.value,src:v.value.get(o.value),icons:t.icons,getContainer:s.value}),null)])}}}),Bf={x:0,y:0},c4e=k(k({},uw()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),cG=h.defineComponent({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:c4e,emits:["close","afterClose"],setup(t,e){let{emit:n,attrs:r}=e;const{rotateLeft:i,rotateRight:o,zoomIn:a,zoomOut:s,close:l,left:u,right:c,flipX:f,flipY:d}=h.reactive(t.icons),p=h.shallowRef(1),g=h.shallowRef(0),v=h.reactive({x:1,y:1}),[m,y]=a4e(Bf),b=()=>n("close"),O=h.shallowRef(),w=h.reactive({originX:0,originY:0,deltaX:0,deltaY:0}),S=h.shallowRef(!1),x=XE.inject(),{previewUrls:T,current:$,isPreviewGroup:A,setCurrent:P}=x,M=h.computed(()=>T.value.size),I=h.computed(()=>Array.from(T.value.keys())),R=h.computed(()=>I.value.indexOf($.value)),L=h.computed(()=>A.value?T.value.get($.value):t.src),D=h.computed(()=>A.value&&M.value>1),B=h.shallowRef({wheelDirection:0}),F=()=>{p.value=1,g.value=0,v.x=1,v.y=1,y(Bf),n("afterClose")},z=Me=>{Me?p.value+=.5:p.value++,y(Bf)},W=Me=>{p.value>1&&(Me?p.value-=.5:p.value--),y(Bf)},j=()=>{g.value+=90},H=()=>{g.value-=90},Z=()=>{v.x=-v.x},J=()=>{v.y=-v.y},se=Me=>{Me.preventDefault(),Me.stopPropagation(),R.value>0&&P(I.value[R.value-1])},oe=Me=>{Me.preventDefault(),Me.stopPropagation(),R.value<M.value-1&&P(I.value[R.value+1])},de=Pe({[`${t.prefixCls}-moving`]:S.value}),ie=`${t.prefixCls}-operations-operation`,ue=`${t.prefixCls}-operations-icon`,ee=[{icon:l,onClick:b,type:"close"},{icon:a,onClick:()=>z(),type:"zoomIn"},{icon:s,onClick:()=>W(),type:"zoomOut",disabled:h.computed(()=>p.value===1)},{icon:o,onClick:j,type:"rotateRight"},{icon:i,onClick:H,type:"rotateLeft"},{icon:f,onClick:Z,type:"flipX"},{icon:d,onClick:J,type:"flipY"}],X=()=>{if(t.visible&&S.value){const Me=O.value.offsetWidth*p.value,$e=O.value.offsetHeight*p.value,{left:_e,top:De}=I7(O.value),Fe=g.value%180!==0;S.value=!1;const ct=s4e(Fe?$e:Me,Fe?Me:$e,_e,De);ct&&y(k({},ct))}},Y=Me=>{Me.button===0&&(Me.preventDefault(),Me.stopPropagation(),w.deltaX=Me.pageX-m.x,w.deltaY=Me.pageY-m.y,w.originX=m.x,w.originY=m.y,S.value=!0)},le=Me=>{t.visible&&S.value&&y({x:Me.pageX-w.deltaX,y:Me.pageY-w.deltaY})},ve=Me=>{if(!t.visible)return;Me.preventDefault();const $e=Me.deltaY;B.value={wheelDirection:$e}},ye=Me=>{!t.visible||!D.value||(Me.preventDefault(),Me.keyCode===Se.LEFT?R.value>0&&P(I.value[R.value-1]):Me.keyCode===Se.RIGHT&&R.value<M.value-1&&P(I.value[R.value+1]))},Ne=()=>{t.visible&&(p.value!==1&&(p.value=1),(m.x!==Bf.x||m.y!==Bf.y)&&y(Bf))};let Be=()=>{};return h.onMounted(()=>{h.watch([()=>t.visible,S],()=>{Be();let Me,$e;const _e=zr(window,"mouseup",X,!1),De=zr(window,"mousemove",le,!1),Fe=zr(window,"wheel",ve,{passive:!1}),ct=zr(window,"keydown",ye,!1);try{window.top!==window.self&&(Me=zr(window.top,"mouseup",X,!1),$e=zr(window.top,"mousemove",le,!1))}catch(vt){Sf(!1,`[vc-image] ${vt}`)}Be=()=>{_e.remove(),De.remove(),Fe.remove(),ct.remove(),Me&&Me.remove(),$e&&$e.remove()}},{flush:"post",immediate:!0}),h.watch([B],()=>{const{wheelDirection:Me}=B.value;Me>0?W(!0):Me<0&&z(!0)})}),h.onUnmounted(()=>{Be()}),()=>{const{visible:Me,prefixCls:$e,rootClassName:_e}=t;return h.createVNode(aG,K(K({},r),{},{transitionName:t.transitionName,maskTransitionName:t.maskTransitionName,closable:!1,keyboard:!0,prefixCls:$e,onClose:b,afterClose:F,visible:Me,wrapClassName:de,rootClassName:_e,getContainer:t.getContainer}),{default:()=>[h.createVNode("div",{class:[`${t.prefixCls}-operations-wrapper`,_e]},[h.createVNode("ul",{class:`${t.prefixCls}-operations`},[ee.map(De=>{let{icon:Fe,onClick:ct,type:vt,disabled:zt}=De;return h.createVNode("li",{class:Pe(ie,{[`${t.prefixCls}-operations-operation-disabled`]:zt&&(zt==null?void 0:zt.value)}),onClick:ct,key:vt},[h.cloneVNode(Fe,{class:ue})])})])]),h.createVNode("div",{class:`${t.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[h.createVNode("img",{onMousedown:Y,onDblclick:Ne,ref:O,class:`${t.prefixCls}-img`,src:L.value,alt:t.alt,style:{transform:`scale3d(${v.x*p.value}, ${v.y*p.value}, 1) rotate(${g.value}deg)`}},null)]),D.value&&h.createVNode("div",{class:Pe(`${t.prefixCls}-switch-left`,{[`${t.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:se},[u]),D.value&&h.createVNode("div",{class:Pe(`${t.prefixCls}-switch-right`,{[`${t.prefixCls}-switch-right-disabled`]:R.value>=M.value-1}),onClick:oe},[c])]})}}});var f4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const fG=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:ne.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),dG=(t,e)=>{const n=k({},t);return Object.keys(e).forEach(r=>{t[r]===void 0&&(n[r]=e[r])}),n};let d4e=0;const hG=h.defineComponent({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:fG(),emits:["click","error"],setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=h.computed(()=>t.prefixCls),a=h.computed(()=>`${o.value}-preview`),s=h.computed(()=>{const z={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof t.preview=="object"?dG(t.preview,z):z}),l=h.computed(()=>{var z;return(z=s.value.src)!==null&&z!==void 0?z:t.src}),u=h.computed(()=>t.placeholder&&t.placeholder!==!0||r.placeholder),c=h.computed(()=>s.value.visible),f=h.computed(()=>s.value.getContainer),d=h.computed(()=>c.value!==void 0),p=(z,W)=>{var j,H;(H=(j=s.value).onVisibleChange)===null||H===void 0||H.call(j,z,W)},[g,v]=Ap(!!c.value,{value:c,onChange:p}),m=h.ref(u.value?"loading":"normal");h.watch(()=>t.src,()=>{m.value=u.value?"loading":"normal"});const y=h.ref(null),b=h.computed(()=>m.value==="error"),O=XE.inject(),{isPreviewGroup:w,setCurrent:S,setShowPreview:x,setMousePosition:T,registerImage:$}=O,A=h.ref(d4e++),P=h.computed(()=>t.preview&&!b.value),M=()=>{m.value="normal"},I=z=>{m.value="error",i("error",z)},R=z=>{if(!d.value){const{left:W,top:j}=I7(z.target);w.value?(S(A.value),T({x:W,y:j})):y.value={x:W,y:j}}w.value?x(!0):v(!0),i("click",z)},L=()=>{v(!1),d.value||(y.value=null)},D=h.ref(null);h.watch(()=>D,()=>{m.value==="loading"&&D.value.complete&&(D.value.naturalWidth||D.value.naturalHeight)&&M()});let B=()=>{};h.onMounted(()=>{h.watch([l,P],()=>{if(B(),!w.value)return()=>{};B=$(A.value,l.value,P.value),P.value||B()},{flush:"post",immediate:!0})}),h.onUnmounted(()=>{B()});const F=z=>L1e(z)?z+"px":z;return()=>{const{prefixCls:z,wrapperClassName:W,fallback:j,src:H,placeholder:Z,wrapperStyle:J,rootClassName:se}=t,{width:oe,height:de,crossorigin:ie,decoding:ue,alt:ee,sizes:X,srcset:Y,usemap:le,class:ve,style:ye}=n,Ne=s.value,{icons:Be,maskClassName:Me}=Ne,$e=f4e(Ne,["icons","maskClassName"]),_e=Pe(z,W,se,{[`${z}-error`]:b.value}),De=b.value&&j?j:l.value,Fe={crossorigin:ie,decoding:ue,alt:ee,sizes:X,srcset:Y,usemap:le,width:oe,height:de,class:Pe(`${z}-img`,{[`${z}-img-placeholder`]:Z===!0},ve),style:k({height:F(de)},ye)};return h.createVNode(h.Fragment,null,[h.createVNode("div",{class:_e,onClick:P.value?R:ct=>{i("click",ct)},style:k({width:F(oe),height:F(de)},J)},[h.createVNode("img",K(K(K({},Fe),b.value&&j?{src:j}:{onLoad:M,onError:I,src:H}),{},{ref:D}),null),m.value==="loading"&&h.createVNode("div",{"aria-hidden":"true",class:`${z}-placeholder`},[Z||r.placeholder&&r.placeholder()]),r.previewMask&&P.value&&h.createVNode("div",{class:[`${z}-mask`,Me]},[r.previewMask()])]),!w.value&&P.value&&h.createVNode(cG,K(K({},$e),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:a.value,onClose:L,mousePosition:y.value,src:De,alt:ee,getContainer:f.value,icons:Be,rootClassName:se}),null)])}}});hG.PreviewGroup=uG;const h4e=hG;var p4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function pG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){g4e(t,i,n[i])})}return t}function g4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var YE=function(e,n){var r=pG({},e,n.attrs);return h.createVNode(mt,pG({},r,{icon:p4e}),null)};YE.displayName="RotateLeftOutlined",YE.inheritAttrs=!1;var v4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};function gG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){m4e(t,i,n[i])})}return t}function m4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qE=function(e,n){var r=gG({},e,n.attrs);return h.createVNode(mt,gG({},r,{icon:v4e}),null)};qE.displayName="RotateRightOutlined",qE.inheritAttrs=!1;var y4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function vG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){b4e(t,i,n[i])})}return t}function b4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var KE=function(e,n){var r=vG({},e,n.attrs);return h.createVNode(mt,vG({},r,{icon:y4e}),null)};KE.displayName="ZoomInOutlined",KE.inheritAttrs=!1;var _4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function mG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){O4e(t,i,n[i])})}return t}function O4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JE=function(e,n){var r=mG({},e,n.attrs);return h.createVNode(mt,mG({},r,{icon:_4e}),null)};JE.displayName="ZoomOutOutlined",JE.inheritAttrs=!1;var w4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function yG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){S4e(t,i,n[i])})}return t}function S4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cw=function(e,n){var r=yG({},e,n.attrs);return h.createVNode(mt,yG({},r,{icon:w4e}),null)};cw.displayName="SwapOutlined",cw.inheritAttrs=!1;function bG(t){return{position:t,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const _G=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}${t.antCls}-zoom-enter, ${e}${t.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:t.motionDurationSlow,userSelect:"none"},[`${e}${t.antCls}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:k(k({},bG("fixed")),{zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:k(k({},bG("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:mQ(t)}]},x4e=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}-wrap`]:{zIndex:t.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${t.screenSMMax})`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${t.marginXS} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:k(k({},bn(t)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${t.margin*2}px)`,margin:"0 auto",paddingBottom:t.paddingLG,[`${e}-title`]:{margin:0,color:t.modalHeadingColor,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:t.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:t.borderRadiusLG,boxShadow:t.boxShadowSecondary,pointerEvents:"auto",padding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`},[`${e}-close`]:k({position:"absolute",top:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,insetInlineEnd:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,zIndex:t.zIndexPopupBase+10,padding:0,color:t.modalCloseColor,fontWeight:t.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:t.borderRadiusSM,width:t.modalConfirmIconSize,height:t.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,"&-x":{display:"block",fontSize:t.fontSizeLG,fontStyle:"normal",lineHeight:`${t.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:t.modalIconHoverColor,backgroundColor:t.wireframe?"transparent":t.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:t.wireframe?"transparent":t.colorFillContentHover}},iO(t)),[`${e}-header`]:{color:t.colorText,background:t.modalHeaderBg,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,marginBottom:t.marginXS},[`${e}-body`]:{fontSize:t.fontSize,lineHeight:t.lineHeight,wordWrap:"break-word"},[`${e}-footer`]:{textAlign:"end",background:t.modalFooterBg,marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn:not(${t.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:t.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,
  252. ${e}-body,
  253. ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},C4e=t=>{const{componentCls:e}=t,n=`${e}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:k({},rO()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:t.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${t.modalConfirmIconSize+t.marginSM}px)`}},[`${n}-content`]:{color:t.colorText,fontSize:t.fontSize},[`> ${t.iconCls}`]:{flex:"none",marginInlineEnd:t.marginSM,fontSize:t.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${n}-error ${n}-body > ${t.iconCls}`]:{color:t.colorError},[`${n}-warning ${n}-body > ${t.iconCls},
  254. ${n}-confirm ${n}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${n}-info ${n}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${n}-success ${n}-body > ${t.iconCls}`]:{color:t.colorSuccess},[`${e}-zoom-leave ${e}-btns`]:{pointerEvents:"none"}}},T4e=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},P4e=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-confirm`;return{[e]:{[`${e}-content`]:{padding:0},[`${e}-header`]:{padding:t.modalHeaderPadding,borderBottom:`${t.modalHeaderBorderWidth}px ${t.modalHeaderBorderStyle} ${t.modalHeaderBorderColorSplit}`,marginBottom:0},[`${e}-body`]:{padding:t.modalBodyPadding},[`${e}-footer`]:{padding:`${t.modalFooterPaddingVertical}px ${t.modalFooterPaddingHorizontal}px`,borderTop:`${t.modalFooterBorderWidth}px ${t.modalFooterBorderStyle} ${t.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${t.padding*2}px ${t.padding*2}px ${t.paddingLG}px`},[`${r}-body`]:{[`> ${t.iconCls}`]:{marginInlineEnd:t.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.margin}}},[`${r}-btns`]:{marginTop:t.marginLG}}}},$4e=Fn("Modal",t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5,i=Xt(t,{modalBodyPadding:t.paddingLG,modalHeaderBg:t.colorBgElevated,modalHeaderPadding:`${e}px ${t.paddingLG}px`,modalHeaderBorderWidth:t.lineWidth,modalHeaderBorderStyle:t.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:t.colorSplit,modalHeaderCloseSize:r*n+e*2,modalContentBg:t.colorBgElevated,modalHeadingColor:t.colorTextHeading,modalCloseColor:t.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterPaddingVertical:t.paddingXS,modalFooterPaddingHorizontal:t.padding,modalFooterBorderWidth:t.lineWidth,modalConfirmTitleFontSize:t.fontSizeLG,modalIconHoverColor:t.colorIconHover,modalConfirmIconSize:t.fontSize*t.lineHeight,modalCloseBtnSize:t.controlHeightLG*.55});return[x4e(i),C4e(i),T4e(i),_G(i),t.wireframe&&P4e(i),MO(i,"zoom")]}),eM=t=>({position:t||"absolute",inset:0}),A4e=t=>{const{iconCls:e,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new yn("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:k(k({},wp),{padding:`0 ${r}px`,[e]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},E4e=t=>{const{previewCls:e,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:i,motionDurationSlow:o}=t,a=new yn(n).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${e}-operations`]:k(k({},bn(t)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:t.previewOperationColor,listStyle:"none",background:a.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{color:i,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:t.previewOperationSize}})}},M4e=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=t,s=new yn(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:o+1,display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:-t.imagePreviewSwitchSize/2,color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:t.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:t.marginSM},[`${i}-switch-right`]:{insetInlineEnd:t.marginSM}}},I4e=t=>{const{motionEaseOut:e,previewCls:n,motionDurationSlow:r,componentCls:i}=t;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:k(k({},eM()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${e} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":k(k({},eM()),{transition:`transform ${r} ${e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:t.zIndexPopup+1,width:"100%"},"&":[E4e(t),M4e(t)]}]},D4e=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:k({},A4e(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:k({},eM())}}},R4e=t=>{const{previewCls:e}=t;return{[`${e}-root`]:MO(t,"zoom"),"&":mQ(t,!0)}},OG=Fn("Image",t=>{const e=`${t.componentCls}-preview`,n=Xt(t,{previewCls:e,modalMaskBg:new yn("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[D4e(n),I4e(n),_G(Xt(n,{componentCls:e})),R4e(n)]},t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new yn(t.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new yn(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5})),wG={rotateLeft:h.createVNode(YE,null,null),rotateRight:h.createVNode(qE,null,null),zoomIn:h.createVNode(KE,null,null),zoomOut:h.createVNode(JE,null,null),close:h.createVNode(Il,null,null),left:h.createVNode(CE,null,null),right:h.createVNode(FO,null,null),flipX:h.createVNode(cw,null,null),flipY:h.createVNode(cw,{rotate:90},null)},k4e=()=>({previewPrefixCls:String,preview:Go()}),N4e=h.defineComponent({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:k4e(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,rootPrefixCls:o}=Qt("image",t),a=h.computed(()=>`${i.value}-preview`),[s,l]=OG(i),u=h.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return k(k({},f),{rootClassName:l.value,transitionName:As(o.value,"zoom",f.transitionName),maskTransitionName:As(o.value,"fade",f.maskTransitionName)})});return()=>s(h.createVNode(uG,K(K({},k(k({},n),t)),{},{preview:u.value,icons:wG,previewPrefixCls:a.value}),r))}}),Fu=h.defineComponent({name:"AImage",inheritAttrs:!1,props:fG(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,rootPrefixCls:o,configProvider:a}=Qt("image",t),[s,l]=OG(i),u=h.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return k(k({icons:wG},f),{transitionName:As(o.value,"zoom",f.transitionName),maskTransitionName:As(o.value,"fade",f.maskTransitionName)})});return()=>{var c,f;const d=((f=(c=a.locale)===null||c===void 0?void 0:c.value)===null||f===void 0?void 0:f.Image)||$l.Image,p=()=>h.createVNode("div",{class:`${i.value}-mask-info`},[h.createVNode(lw,null,null),d==null?void 0:d.preview]),{previewMask:g=n.previewMask||p}=t;return s(h.createVNode(h4e,K(K({},k(k(k({},r),t),{prefixCls:i.value})),{},{preview:u.value,rootClassName:Pe(t.rootClassName,l.value)}),k(k({},n),{previewMask:typeof g=="function"?g:null})))}}});Fu.PreviewGroup=N4e,Fu.install=function(t){return t.component(Fu.name,Fu),t.component(Fu.PreviewGroup.name,Fu.PreviewGroup),t};var L4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function SG(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){B4e(t,i,n[i])})}return t}function B4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tM=function(e,n){var r=SG({},e,n.attrs);return h.createVNode(mt,SG({},r,{icon:L4e}),null)};tM.displayName="UpOutlined",tM.inheritAttrs=!1;function nM(){return typeof BigInt=="function"}function a0(t){let e=t.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e=`0${e}`);const r=e||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);const s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:`${s}${r}`}}function rM(t){const e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}function s0(t){const e=String(t);if(rM(t)){let n=Number(e.slice(e.indexOf("e-")+2));const r=e.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return e.includes(".")&&oM(e)?e.length-e.indexOf(".")-1:0}function iM(t){let e=String(t);if(rM(t)){if(t>Number.MAX_SAFE_INTEGER)return String(nM()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t<Number.MIN_SAFE_INTEGER)return String(nM()?BigInt(t).toString():Number.MIN_SAFE_INTEGER);e=t.toFixed(s0(e))}return a0(e).fullStr}function oM(t){return typeof t=="number"?!Number.isNaN(t):t?/^\s*-?\d+(\.\d+)?\s*$/.test(t)||/^\s*-?\d+\.\s*$/.test(t)||/^\s*-?\.\d+\s*$/.test(t):!1}function xG(t){return!t&&t!==0&&!Number.isNaN(t)||!String(t).trim()}class Vf{constructor(e){if(this.origin="",xG(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}negate(){return new Vf(-this.toNumber())}add(e){if(this.isInvalidate())return new Vf(e);const n=Number(e);if(Number.isNaN(n))return this;const r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new Vf(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new Vf(Number.MIN_SAFE_INTEGER);const i=Math.max(s0(this.number),s0(n));return new Vf(r.toFixed(i))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toNumber()===(e==null?void 0:e.toNumber())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":iM(this.number):this.origin}}class Fp{constructor(e){if(this.origin="",xG(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}let n=e;if(rM(n)&&(n=Number(n)),n=typeof n=="string"?n:iM(n),oM(n)){const r=a0(n);this.negative=r.negative;const i=r.trimStr.split(".");this.integer=BigInt(i[0]);const o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(n)}negate(){const e=new Fp(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new Fp(e);const n=new Fp(e);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(r),o=n.alignDecimal(r),a=(i+o).toString(),{negativeStr:s,trimStr:l}=a0(a),u=`${s}${l.padStart(r+1,"0")}`;return new Fp(`${u.slice(0,-r)}.${u.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(e==null?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":a0(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Ds(t){return nM()?new Fp(t):new Vf(t)}function aM(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";const{negativeStr:i,integerStr:o,decimalStr:a}=a0(t),s=`${e}${a}`,l=`${i}${o}`;if(n>=0){const u=Number(a[n]);if(u>=5&&!r){const c=Ds(t).add(`${i}0.${"0".repeat(n)}${10-u}`);return aM(c.toString(),e,n,r)}return n===0?l:`${l}${e}${a.padEnd(n,"0").slice(0,n)}`}return s===".0"?l:`${l}${s}`}const V4e=200,z4e=600,F4e=h.defineComponent({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ut()},slots:Object,setup(t,e){let{slots:n,emit:r}=e;const i=h.ref(),o=(s,l)=>{s.preventDefault(),r("step",l);function u(){r("step",l),i.value=setTimeout(u,V4e)}i.value=setTimeout(u,z4e)},a=()=>{clearTimeout(i.value)};return h.onBeforeUnmount(()=>{a()}),()=>{if(HA())return null;const{prefixCls:s,upDisabled:l,downDisabled:u}=t,c=`${s}-handler`,f=Pe(c,`${c}-up`,{[`${c}-up-disabled`]:l}),d=Pe(c,`${c}-down`,{[`${c}-down-disabled`]:u}),p={unselectable:"on",role:"button",onMouseup:a,onMouseleave:a},{upNode:g,downNode:v}=n;return h.createVNode("div",{class:`${c}-wrap`},[h.createVNode("span",K(K({},p),{},{onMousedown:m=>{o(m,!0)},"aria-label":"Increase Value","aria-disabled":l,class:f}),[(g==null?void 0:g())||h.createVNode("span",{unselectable:"on",class:`${s}-handler-up-inner`},null)]),h.createVNode("span",K(K({},p),{},{onMousedown:m=>{o(m,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:d}),[(v==null?void 0:v())||h.createVNode("span",{unselectable:"on",class:`${s}-handler-down-inner`},null)])])}}});function W4e(t,e){const n=h.ref(null);function r(){try{const{selectionStart:o,selectionEnd:a,value:s}=t.value,l=s.substring(0,o),u=s.substring(a);n.value={start:o,end:a,value:s,beforeTxt:l,afterTxt:u}}catch{}}function i(){if(t.value&&n.value&&e.value)try{const{value:o}=t.value,{beforeTxt:a,afterTxt:s,start:l}=n.value;let u=o.length;if(o.endsWith(s))u=o.length-n.value.afterTxt.length;else if(o.startsWith(a))u=a.length;else{const c=a[l-1],f=o.indexOf(c,l-1);f!==-1&&(u=f+1)}t.value.setSelectionRange(u,u)}catch(o){Sf(!1,`Something warning of cursor restore. Please fire issue about this: ${o.message}`)}}return[r,i]}const Q4e=()=>{const t=h.shallowRef(0),e=()=>{Dt.cancel(t.value)};return h.onBeforeUnmount(()=>{e()}),n=>{e(),t.value=Dt(()=>{n()})}};var H4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const CG=(t,e)=>t||e.isEmpty()?e.toString():e.toNumber(),TG=t=>{const e=Ds(t);return e.isInvalidate()?null:e},PG=()=>({stringMode:lt(),defaultValue:kn([String,Number]),value:kn([String,Number]),prefixCls:$n(),min:kn([String,Number]),max:kn([String,Number]),step:kn([String,Number],1),tabindex:Number,controls:lt(!0),readonly:lt(),disabled:lt(),autofocus:lt(),keyboard:lt(!0),parser:ut(),formatter:ut(),precision:Number,decimalSeparator:String,onInput:ut(),onChange:ut(),onPressEnter:ut(),onStep:ut(),onBlur:ut(),onFocus:ut()}),G4e=h.defineComponent({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:k(k({},PG()),{lazy:Boolean}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:o}=e;const a=h.shallowRef(),s=h.shallowRef(!1),l=h.shallowRef(!1),u=h.shallowRef(!1),c=h.shallowRef(Ds(t.value));function f(H){t.value===void 0&&(c.value=H)}const d=(H,Z)=>{if(!Z)return t.precision>=0?t.precision:Math.max(s0(H),s0(t.step))},p=H=>{const Z=String(H);if(t.parser)return t.parser(Z);let J=Z;return t.decimalSeparator&&(J=J.replace(t.decimalSeparator,".")),J.replace(/[^\w.-]+/g,"")},g=h.shallowRef(""),v=(H,Z)=>{if(t.formatter)return t.formatter(H,{userTyping:Z,input:String(g.value)});let J=typeof H=="number"?iM(H):H;if(!Z){const se=d(J,Z);if(oM(J)&&(t.decimalSeparator||se>=0)){const oe=t.decimalSeparator||".";J=aM(J,oe,se)}}return J},m=(()=>{const H=t.value;return c.value.isInvalidate()&&["string","number"].includes(typeof H)?Number.isNaN(H)?"":H:v(c.value.toString(),!1)})();g.value=m;function y(H,Z){g.value=v(H.isInvalidate()?H.toString(!1):H.toString(!Z),Z)}const b=h.computed(()=>TG(t.max)),O=h.computed(()=>TG(t.min)),w=h.computed(()=>!b.value||!c.value||c.value.isInvalidate()?!1:b.value.lessEquals(c.value)),S=h.computed(()=>!O.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(O.value)),[x,T]=W4e(a,s),$=H=>b.value&&!H.lessEquals(b.value)?b.value:O.value&&!O.value.lessEquals(H)?O.value:null,A=H=>!$(H),P=(H,Z)=>{var J;let se=H,oe=A(se)||se.isEmpty();if(!se.isEmpty()&&!Z&&(se=$(se)||se,oe=!0),!t.readonly&&!t.disabled&&oe){const de=se.toString(),ie=d(de,Z);return ie>=0&&(se=Ds(aM(de,".",ie))),se.equals(c.value)||(f(se),(J=t.onChange)===null||J===void 0||J.call(t,se.isEmpty()?null:CG(t.stringMode,se)),t.value===void 0&&y(se,Z)),se}return c.value},M=Q4e(),I=H=>{var Z;if(x(),g.value=H,!u.value){const J=p(H),se=Ds(J);se.isNaN()||P(se,!0)}(Z=t.onInput)===null||Z===void 0||Z.call(t,H),M(()=>{let J=H;t.parser||(J=H.replace(/。/g,".")),J!==H&&I(J)})},R=()=>{u.value=!0},L=()=>{u.value=!1,I(a.value.value)},D=H=>{I(H.target.value)},B=H=>{var Z,J;if(H&&w.value||!H&&S.value)return;l.value=!1;let se=Ds(t.step);H||(se=se.negate());const oe=(c.value||Ds(0)).add(se.toString()),de=P(oe,!1);(Z=t.onStep)===null||Z===void 0||Z.call(t,CG(t.stringMode,de),{offset:t.step,type:H?"up":"down"}),(J=a.value)===null||J===void 0||J.focus()},F=H=>{const Z=Ds(p(g.value));let J=Z;Z.isNaN()?J=c.value:J=P(Z,H),t.value!==void 0?y(c.value,!1):J.isNaN()||y(J,!1)},z=H=>{var Z;const{which:J}=H;l.value=!0,J===Se.ENTER&&(u.value||(l.value=!1),F(!1),(Z=t.onPressEnter)===null||Z===void 0||Z.call(t,H)),t.keyboard!==!1&&!u.value&&[Se.UP,Se.DOWN].includes(J)&&(B(Se.UP===J),H.preventDefault())},W=()=>{l.value=!1},j=H=>{F(!1),s.value=!1,l.value=!1,i("blur",H)};return h.watch(()=>t.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),h.watch(()=>t.value,()=>{const H=Ds(t.value);c.value=H;const Z=Ds(p(g.value));(!H.equals(Z)||!l.value||t.formatter)&&y(H,l.value)},{flush:"post"}),h.watch(g,()=>{t.formatter&&T()},{flush:"post"}),h.watch(()=>t.disabled,H=>{H&&(s.value=!1)}),o({focus:()=>{var H;(H=a.value)===null||H===void 0||H.focus()},blur:()=>{var H;(H=a.value)===null||H===void 0||H.blur()}}),()=>{const H=k(k({},n),t),{prefixCls:Z="rc-input-number",min:J,max:se,step:oe=1,defaultValue:de,value:ie,disabled:ue,readonly:ee,keyboard:X,controls:Y=!0,autofocus:le,stringMode:ve,parser:ye,formatter:Ne,precision:Be,decimalSeparator:Me,onChange:$e,onInput:_e,onPressEnter:De,onStep:Fe,lazy:ct,class:vt,style:zt}=H,we=H4e(H,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:rt,downHandler:Mt}=r,mn=`${Z}-input`,pn={};return ct?pn.onChange=D:pn.onInput=D,h.createVNode("div",{class:Pe(Z,vt,{[`${Z}-focused`]:s.value,[`${Z}-disabled`]:ue,[`${Z}-readonly`]:ee,[`${Z}-not-a-number`]:c.value.isNaN(),[`${Z}-out-of-range`]:!c.value.isInvalidate()&&!A(c.value)}),style:zt,onKeydown:z,onKeyup:W},[Y&&h.createVNode(F4e,{prefixCls:Z,upDisabled:w.value,downDisabled:S.value,onStep:B},{upNode:rt,downNode:Mt}),h.createVNode("div",{class:`${mn}-wrap`},[h.createVNode("input",K(K(K({autofocus:le,autocomplete:"off",role:"spinbutton","aria-valuemin":J,"aria-valuemax":se,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:oe},we),{},{ref:a,class:mn,value:g.value,disabled:ue,readonly:ee,onFocus:pr=>{s.value=!0,i("focus",pr)}},pn),{},{onBlur:j,onCompositionstart:R,onCompositionend:L}),null)])])}}});function sM(t){return t!=null}const j4e=t=>{const{componentCls:e,lineWidth:n,lineType:r,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:f,motionDurationMid:d,colorPrimary:p,controlHeight:g,inputPaddingHorizontal:v,colorBgContainer:m,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:O,controlWidth:w,handleVisible:S}=t;return[{[e]:k(k(k(k({},bn(t)),ZO(t)),UO(t,e)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:O,[`input${e}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${e}-input`]:{height:l-2*n,padding:`0 ${c}px`}},"&:hover":k({},t0(t)),"&-focused":k({},jO(t)),"&-disabled":k(k({},A9(t)),{[`${e}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":k(k(k({},bn(t)),I9(t)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:O}},"&-sm":{[`${e}-group-addon`]:{borderRadius:b}}}}),[e]:{"&-input":k(k({width:"100%",height:g-2*n,padding:`0 ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${d} linear`,appearance:"textfield",color:t.colorText,fontSize:"inherit",verticalAlign:"top"},$9(t.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:{[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:t.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:S===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${d} linear ${d}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
  255. ${e}-handler-up-inner,
  256. ${e}-handler-down-inner
  257. `]:{marginInlineEnd:0,fontSize:t.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${i}`,transition:`all ${d} linear`,"&:active":{background:t.colorFillAlter},"&:hover":{height:"60%",[`
  258. ${e}-handler-up-inner,
  259. ${e}-handler-down-inner
  260. `]:{color:p}},"&-up-inner, &-down-inner":k(k({},Sp()),{color:f,transition:`all ${d} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:o},"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"}},[`
  261. ${e}-handler-up-disabled,
  262. ${e}-handler-down-disabled
  263. `]:{cursor:"not-allowed"},[`
  264. ${e}-handler-up-disabled:hover &-handler-up-inner,
  265. ${e}-handler-down-disabled:hover &-handler-down-inner
  266. `]:{color:y}}},{[`${e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${e}-handler-down`]:{borderBlockStartWidth:0}}}]},U4e=t=>{const{componentCls:e,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=t;return{[`${e}-affix-wrapper`]:k(k(k({},ZO(t)),UO(t,`${e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${e}-affix-wrapper-disabled):hover`]:k(k({},t0(t)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},[`input${e}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},Z4e=Fn("InputNumber",t=>{const e=D9(t);return[j4e(e),U4e(e),IO(e)]},t=>({controlWidth:90,handleWidth:t.controlHeightSM-t.lineWidth*2,handleFontSize:t.fontSize/2,handleVisible:"auto"}));var X4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const $G=PG(),Y4e=()=>k(k({},$G),{size:$n(),bordered:lt(!0),placeholder:String,name:String,id:String,type:String,addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,"onUpdate:value":$G.onChange,valueModifiers:Object,status:$n()}),lM=h.defineComponent({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Y4e(),slots:Object,setup(t,e){let{emit:n,expose:r,attrs:i,slots:o}=e;var a;const s=Ms(),l=Za.useInject(),u=h.computed(()=>Jm(l.status,t.status)),{prefixCls:c,size:f,direction:d,disabled:p}=Qt("input-number",t),{compactSize:g,compactItemClassnames:v}=$O(c,d),m=Cs(),y=h.computed(()=>{var R;return(R=p.value)!==null&&R!==void 0?R:m.value}),[b,O]=Z4e(c),w=h.computed(()=>g.value||f.value),S=h.shallowRef((a=t.value)!==null&&a!==void 0?a:t.defaultValue),x=h.shallowRef(!1);h.watch(()=>t.value,()=>{S.value=t.value});const T=h.shallowRef(null),$=()=>{var R;(R=T.value)===null||R===void 0||R.focus()};r({focus:$,blur:()=>{var R;(R=T.value)===null||R===void 0||R.blur()}});const P=R=>{t.value===void 0&&(S.value=R),n("update:value",R),n("change",R),s.onFieldChange()},M=R=>{x.value=!1,n("blur",R),s.onFieldBlur()},I=R=>{x.value=!0,n("focus",R)};return()=>{var R,L,D,B;const{hasFeedback:F,isFormItemInput:z,feedbackIcon:W}=l,j=(R=t.id)!==null&&R!==void 0?R:s.id.value,H=k(k(k({},i),t),{id:j,disabled:y.value}),{class:Z,bordered:J,readonly:se,style:oe,addonBefore:de=(L=o.addonBefore)===null||L===void 0?void 0:L.call(o),addonAfter:ie=(D=o.addonAfter)===null||D===void 0?void 0:D.call(o),prefix:ue=(B=o.prefix)===null||B===void 0?void 0:B.call(o),valueModifiers:ee={}}=H,X=X4e(H,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),Y=c.value,le=Pe({[`${Y}-lg`]:w.value==="large",[`${Y}-sm`]:w.value==="small",[`${Y}-rtl`]:d.value==="rtl",[`${Y}-readonly`]:se,[`${Y}-borderless`]:!J,[`${Y}-in-form-item`]:z},Dl(Y,u.value),Z,v.value,O.value);let ve=h.createVNode(G4e,K(K({},Er(X,["size","defaultValue"])),{},{ref:T,lazy:!!ee.lazy,value:S.value,class:le,prefixCls:Y,readonly:se,onChange:P,onBlur:M,onFocus:I}),{upHandler:o.upIcon?()=>h.createVNode("span",{class:`${Y}-handler-up-inner`},[o.upIcon()]):()=>h.createVNode(tM,{class:`${Y}-handler-up-inner`},null),downHandler:o.downIcon?()=>h.createVNode("span",{class:`${Y}-handler-down-inner`},[o.downIcon()]):()=>h.createVNode(wO,{class:`${Y}-handler-down-inner`},null)});const ye=sM(de)||sM(ie),Ne=sM(ue);if(Ne||F){const Be=Pe(`${Y}-affix-wrapper`,Dl(`${Y}-affix-wrapper`,u.value,F),{[`${Y}-affix-wrapper-focused`]:x.value,[`${Y}-affix-wrapper-disabled`]:y.value,[`${Y}-affix-wrapper-sm`]:w.value==="small",[`${Y}-affix-wrapper-lg`]:w.value==="large",[`${Y}-affix-wrapper-rtl`]:d.value==="rtl",[`${Y}-affix-wrapper-readonly`]:se,[`${Y}-affix-wrapper-borderless`]:!J,[`${Z}`]:!ye&&Z},O.value);ve=h.createVNode("div",{class:Be,style:oe,onClick:$},[Ne&&h.createVNode("span",{class:`${Y}-prefix`},[ue]),ve,F&&h.createVNode("span",{class:`${Y}-suffix`},[W])])}if(ye){const Be=`${Y}-group`,Me=`${Be}-addon`,$e=de?h.createVNode("div",{class:Me},[de]):null,_e=ie?h.createVNode("div",{class:Me},[ie]):null,De=Pe(`${Y}-wrapper`,Be,{[`${Be}-rtl`]:d.value==="rtl"},O.value),Fe=Pe(`${Y}-group-wrapper`,{[`${Y}-group-wrapper-sm`]:w.value==="small",[`${Y}-group-wrapper-lg`]:w.value==="large",[`${Y}-group-wrapper-rtl`]:d.value==="rtl"},Dl(`${c}-group-wrapper`,u.value,F),Z,O.value);ve=h.createVNode("div",{class:Fe,style:oe},[h.createVNode("div",{class:De},[$e&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[$e]})]}),ve,_e&&h.createVNode(AO,null,{default:()=>[h.createVNode(TO,null,{default:()=>[_e]})]})])])}return b(Gn(ve,{style:oe}))}}}),l0=k(lM,{install:t=>(t.component(lM.name,lM),t)});function q4e(t,e,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,u=l===void 0?void 0:l,c,f=!1,d=0;function p(){c&&clearTimeout(c)}function g(m){var y=m||{},b=y.upcomingOnly,O=b===void 0?!1:b;p(),f=!O}function v(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];var O=this,w=Date.now()-d;if(f)return;function S(){d=Date.now(),e.apply(O,y)}function x(){c=void 0}!s&&u&&!c&&S(),p(),u===void 0&&w>t?s?(d=Date.now(),o||(c=setTimeout(u?x:S,t))):S():o!==!0&&(c=setTimeout(u?x:S,u===void 0?t-w:t))}return v.cancel=g,v}function K4e(t,e,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return q4e(t,e,{debounceMode:o!==!1})}const J4e=new At("antSpinMove",{to:{opacity:1}}),e8e=new At("antRotate",{to:{transform:"rotate(405deg)"}}),t8e=t=>({[`${t.componentCls}`]:k(k({},bn(t)),{position:"absolute",display:"none",color:t.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${t.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${t.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-t.spinDotSize/2},[`${t.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(t.spinDotSize-t.fontSize)/2+2,textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSize/2)-10},"&-sm":{[`${t.componentCls}-dot`]:{margin:-t.spinDotSizeSM/2},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeSM-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSizeSM/2)-10}},"&-lg":{[`${t.componentCls}-dot`]:{margin:-(t.spinDotSizeLG/2)},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeLG-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSizeLG/2)-10}}},[`${t.componentCls}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},[`${t.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:t.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(t.spinDotSize-t.marginXXS/2)/2,height:(t.spinDotSize-t.marginXXS/2)/2,backgroundColor:t.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:J4e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:e8e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeSM,i:{width:(t.spinDotSizeSM-t.marginXXS/2)/2,height:(t.spinDotSizeSM-t.marginXXS/2)/2}},[`&-lg ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeLG,i:{width:(t.spinDotSizeLG-t.marginXXS)/2,height:(t.spinDotSizeLG-t.marginXXS)/2}},[`&${t.componentCls}-show-text ${t.componentCls}-text`]:{display:"block"}})}),n8e=Fn("Spin",t=>{const e=Xt(t,{spinDotDefault:t.colorTextDescription,spinDotSize:t.controlHeightLG/2,spinDotSizeSM:t.controlHeightLG*.35,spinDotSizeLG:t.controlHeight});return[t8e(e)]},{contentHeight:400});var r8e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const i8e=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:ne.any,delay:Number,indicator:ne.any});let fw=null;function o8e(t,e){return!!t&&!!e&&!isNaN(Number(e))}function a8e(t){const e=t.indicator;fw=typeof e=="function"?e:()=>h.createVNode(e,null,null)}const u0=h.defineComponent({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ar(i8e(),{size:"default",spinning:!0,wrapperClassName:""}),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,size:o,direction:a}=Qt("spin",t),[s,l]=n8e(i),u=h.shallowRef(t.spinning&&!o8e(t.spinning,t.delay));let c;return h.watch([()=>t.spinning,()=>t.delay],()=>{c==null||c.cancel(),c=K4e(t.delay,()=>{u.value=t.spinning}),c==null||c()},{immediate:!0,flush:"post"}),h.onBeforeUnmount(()=>{c==null||c.cancel()}),()=>{var f,d;const{class:p}=n,g=r8e(n,["class"]),{tip:v=(f=r.tip)===null||f===void 0?void 0:f.call(r)}=t,m=(d=r.default)===null||d===void 0?void 0:d.call(r),y={[l.value]:!0,[i.value]:!0,[`${i.value}-sm`]:o.value==="small",[`${i.value}-lg`]:o.value==="large",[`${i.value}-spinning`]:u.value,[`${i.value}-show-text`]:!!v,[`${i.value}-rtl`]:a.value==="rtl",[p]:!!p};function b(w){const S=`${w}-dot`;let x=L1(r,t,"indicator");return x===null?null:(Array.isArray(x)&&(x=x.length===1?x[0]:x),h.isVNode(x)?h.cloneVNode(x,{class:S}):fw&&h.isVNode(fw())?h.cloneVNode(fw(),{class:S}):h.createVNode("span",{class:`${S} ${w}-dot-spin`},[h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null)]))}const O=h.createVNode("div",K(K({},g),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[b(i.value),v?h.createVNode("div",{class:`${i.value}-text`},[v]):null]);if(m&&xs(m).length){const w={[`${i.value}-container`]:!0,[`${i.value}-blur`]:u.value};return s(h.createVNode("div",{class:[`${i.value}-nested-loading`,t.wrapperClassName,l.value]},[u.value&&h.createVNode("div",{key:"loading"},[O]),h.createVNode("div",{class:w,key:"container"},[m])]))}return s(O)}}});u0.setDefaultIndicator=a8e,u0.install=function(t){return t.component(u0.name,u0),t};var s8e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let uM;const l8e=t=>{uM={x:t.pageX,y:t.pageY},setTimeout(()=>uM=null,100)};Y9()&&zr(document.documentElement,"click",l8e,!0);const u8e=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ne.any,closable:{type:Boolean,default:void 0},closeIcon:ne.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ne.any,okText:ne.any,okType:String,cancelText:ne.any,icon:ne.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Vt(),cancelButtonProps:Vt(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Vt(),maskStyle:Vt(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Vt()}),bo=h.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Ar(u8e(),{width:520,confirmLoading:!1,okType:"primary"}),setup(t,e){let{emit:n,slots:r,attrs:i}=e;const[o]=z1("Modal"),{prefixCls:a,rootPrefixCls:s,direction:l,getPopupContainer:u}=Qt("modal",t),[c,f]=$4e(a);yi(t.visible===void 0,"Modal","`visible` will be removed in next major version, please use `open` instead.");const d=v=>{n("update:visible",!1),n("update:open",!1),n("cancel",v),n("change",!1)},p=v=>{n("ok",v)},g=()=>{var v,m;const{okText:y=(v=r.okText)===null||v===void 0?void 0:v.call(r),okType:b,cancelText:O=(m=r.cancelText)===null||m===void 0?void 0:m.call(r),confirmLoading:w}=t;return h.createVNode(h.Fragment,null,[h.createVNode(ri,K({onClick:d},t.cancelButtonProps),{default:()=>[O||o.value.cancelText]}),h.createVNode(ri,K(K({},WQ(b)),{},{loading:w,onClick:p},t.okButtonProps),{default:()=>[y||o.value.okText]})])};return()=>{var v,m;const{prefixCls:y,visible:b,open:O,wrapClassName:w,centered:S,getContainer:x,closeIcon:T=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),focusTriggerAfterClose:$=!0}=t,A=s8e(t,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),P=Pe(w,{[`${a.value}-centered`]:!!S,[`${a.value}-wrap-rtl`]:l.value==="rtl"});return c(h.createVNode(aG,K(K(K({},A),i),{},{rootClassName:f.value,class:Pe(f.value,i.class),getContainer:x||(u==null?void 0:u.value),prefixCls:a.value,wrapClassName:P,visible:O??b,onClose:d,focusTriggerAfterClose:$,transitionName:As(s.value,"zoom",t.transitionName),maskTransitionName:As(s.value,"fade",t.maskTransitionName),mousePosition:(m=A.mousePosition)!==null&&m!==void 0?m:uM}),k(k({},r),{footer:r.footer||g,closeIcon:()=>h.createVNode("span",{class:`${a.value}-close-x`},[T||h.createVNode(Il,{class:`${a.value}-close-icon`},null)])})))}}}),c8e=()=>{const t=h.shallowRef(!1);return h.onBeforeUnmount(()=>{t.value=!0}),t},f8e={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Vt(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function AG(t){return!!(t&&t.then)}const EG=h.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:f8e,setup(t,e){let{slots:n}=e;const r=h.shallowRef(!1),i=h.shallowRef(),o=h.shallowRef(!1);let a;const s=c8e();h.onMounted(()=>{t.autofocus&&(a=setTimeout(()=>{var f,d;return(d=(f=Pl(i.value))===null||f===void 0?void 0:f.focus)===null||d===void 0?void 0:d.call(f)}))}),h.onBeforeUnmount(()=>{clearTimeout(a)});const l=function(){for(var f,d=arguments.length,p=new Array(d),g=0;g<d;g++)p[g]=arguments[g];(f=t.close)===null||f===void 0||f.call(t,...p)},u=f=>{AG(f)&&(o.value=!0,f.then(function(){s.value||(o.value=!1),l(...arguments),r.value=!1},d=>(s.value||(o.value=!1),r.value=!1,Promise.reject(d))))},c=f=>{const{actionFn:d}=t;if(r.value)return;if(r.value=!0,!d){l();return}let p;if(t.emitEvent){if(p=d(f),t.quitOnNullishReturnValue&&!AG(p)){r.value=!1,l(f);return}}else if(d.length)p=d(t.close),r.value=!1;else if(p=d(),!p){l();return}u(p)};return()=>{const{type:f,prefixCls:d,buttonProps:p}=t;return h.createVNode(ri,K(K(K({},WQ(f)),{},{onClick:c,loading:o.value,prefixCls:d},p),{},{ref:i}),n)}}});function Wp(t){return typeof t=="function"?t():t}const MG=h.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(t,e){let{attrs:n}=e;const[r]=z1("Modal");return process.env.NODE_ENV!=="production"&&yi(t.visible===void 0,"Modal","`visible` is deprecated, please use `open` instead."),()=>{const{icon:i,onCancel:o,onOk:a,close:s,okText:l,closable:u=!1,zIndex:c,afterClose:f,keyboard:d,centered:p,getContainer:g,maskStyle:v,okButtonProps:m,cancelButtonProps:y,okCancel:b,width:O=416,mask:w=!0,maskClosable:S=!1,type:x,open:T,title:$,content:A,direction:P,closeIcon:M,modalRender:I,focusTriggerAfterClose:R,rootPrefixCls:L,bodyStyle:D,wrapClassName:B,footer:F}=t;let z=i;if(!i&&i!==null)switch(x){case"info":z=h.createVNode(Df,null,null);break;case"success":z=h.createVNode(Nu,null,null);break;case"error":z=h.createVNode(Xo,null,null);break;default:z=h.createVNode(Lu,null,null)}const W=t.okType||"primary",j=t.prefixCls||"ant-modal",H=`${j}-confirm`,Z=n.style||{},J=b??x==="confirm",se=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",oe=`${j}-confirm`,de=Pe(oe,`${oe}-${t.type}`,{[`${oe}-rtl`]:P==="rtl"},n.class),ie=r.value,ue=J&&h.createVNode(EG,{actionFn:o,close:s,autofocus:se==="cancel",buttonProps:y,prefixCls:`${L}-btn`},{default:()=>[Wp(t.cancelText)||ie.cancelText]});return h.createVNode(bo,{prefixCls:j,class:de,wrapClassName:Pe({[`${oe}-centered`]:!!p},B),onCancel:ee=>s==null?void 0:s({triggerCancel:!0},ee),open:T,title:"",footer:"",transitionName:As(L,"zoom",t.transitionName),maskTransitionName:As(L,"fade",t.maskTransitionName),mask:w,maskClosable:S,maskStyle:v,style:Z,bodyStyle:D,width:O,zIndex:c,afterClose:f,keyboard:d,centered:p,getContainer:g,closable:u,closeIcon:M,modalRender:I,focusTriggerAfterClose:R},{default:()=>[h.createVNode("div",{class:`${H}-body-wrapper`},[h.createVNode("div",{class:`${H}-body`},[Wp(z),$===void 0?null:h.createVNode("span",{class:`${H}-title`},[Wp($)]),h.createVNode("div",{class:`${H}-content`},[Wp(A)])]),F!==void 0?Wp(F):h.createVNode("div",{class:`${H}-btns`},[ue,h.createVNode(EG,{type:W,actionFn:a,close:s,autofocus:se==="ok",buttonProps:m,prefixCls:`${L}-btn`},{default:()=>[Wp(l)||(J?ie.okText:ie.justOkText)]})])])]})}}}),zf=[],c0=t=>{const e=document.createDocumentFragment();let n=k(k({},Er(t,["parentContext","appContext"])),{close:o,open:!0}),r=null;function i(){r&&(h.render(null,e),r=null);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];const d=c.some(p=>p&&p.triggerCancel);t.onCancel&&d&&t.onCancel(()=>{},...c.slice(1));for(let p=0;p<zf.length;p++)if(zf[p]===o){zf.splice(p,1);break}}function o(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];n=k(k({},n),{open:!1,afterClose:()=>{typeof t.afterClose=="function"&&t.afterClose(),i.apply(this,c)}}),n.visible&&delete n.visible,a(n)}function a(u){typeof u=="function"?n=u(n):n=k(k({},n),u),r&&DAe(r,n,e)}const s=u=>{const c=Fr,f=c.prefixCls,d=u.prefixCls||`${f}-modal`,p=c.iconPrefixCls,g=INe();return h.createVNode(zp,K(K({},c),{},{prefixCls:f}),{default:()=>[h.createVNode(MG,K(K({},u),{},{rootPrefixCls:f,prefixCls:d,iconPrefixCls:p,locale:g,cancelText:u.cancelText||g.cancelText}),null)]})};function l(u){const c=h.createVNode(s,k({},u));return c.appContext=t.parentContext||t.appContext||c.appContext,h.render(c,e),c}return r=l(n),zf.push(o),{destroy:o,update:a}};function IG(t){return k(k({},t),{type:"warning"})}function DG(t){return k(k({},t),{type:"info"})}function RG(t){return k(k({},t),{type:"success"})}function kG(t){return k(k({},t),{type:"error"})}function NG(t){return k(k({},t),{type:"confirm"})}const d8e=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),h8e=h.defineComponent({name:"HookModal",inheritAttrs:!1,props:Ar(d8e(),{config:{width:520,okType:"primary"}}),setup(t,e){let{expose:n}=e;var r;const i=h.computed(()=>t.open),o=h.computed(()=>t.config),{direction:a,getPrefixCls:s}=V1(),l=s("modal"),u=s(),c=()=>{var g,v;t==null||t.afterClose(),(v=(g=o.value).afterClose)===null||v===void 0||v.call(g)},f=function(){t.destroyAction(...arguments)};n({destroy:f});const d=(r=o.value.okCancel)!==null&&r!==void 0?r:o.value.type==="confirm",[p]=z1("Modal",$l.Modal);return()=>h.createVNode(MG,K(K({prefixCls:l,rootPrefixCls:u},o.value),{},{close:f,open:i.value,afterClose:c,okText:o.value.okText||(d?p==null?void 0:p.value.okText:p==null?void 0:p.value.justOkText),direction:o.value.direction||a.value,cancelText:o.value.cancelText||(p==null?void 0:p.value.cancelText)}),null)}});let LG=0;const p8e=h.defineComponent({name:"ElementsHolder",inheritAttrs:!1,setup(t,e){let{expose:n}=e;const r=h.shallowRef([]);return n({addModal:o=>(r.value.push(o),r.value=r.value.slice(),()=>{r.value=r.value.filter(a=>a!==o)})}),()=>r.value.map(o=>o())}});function g8e(){const t=h.shallowRef(null),e=h.shallowRef([]);h.watch(e,()=>{e.value.length&&([...e.value].forEach(a=>{a()}),e.value=[])},{immediate:!0});const n=o=>function(s){var l;LG+=1;const u=h.shallowRef(!0),c=h.shallowRef(null),f=h.shallowRef(h.unref(s)),d=h.shallowRef({});h.watch(()=>s,O=>{m(k(k({},h.isRef(O)?O.value:O),d.value))});const p=function(){u.value=!1;for(var O=arguments.length,w=new Array(O),S=0;S<O;S++)w[S]=arguments[S];const x=w.some(T=>T&&T.triggerCancel);f.value.onCancel&&x&&f.value.onCancel(()=>{},...w.slice(1))};let g;const v=()=>h.createVNode(h8e,{key:`modal-${LG}`,config:o(f.value),ref:c,open:u.value,destroyAction:p,afterClose:()=>{g==null||g()}},null);g=(l=t.value)===null||l===void 0?void 0:l.addModal(v),g&&zf.push(g);const m=O=>{f.value=k(k({},f.value),O)};return{destroy:()=>{c.value?p():e.value=[...e.value,p]},update:O=>{d.value=O,c.value?m(O):e.value=[...e.value,()=>m(O)]}}},r=h.computed(()=>({info:n(DG),success:n(RG),error:n(kG),warning:n(IG),confirm:n(NG)})),i=Symbol("modalHolderKey");return[r.value,()=>h.createVNode(p8e,{key:i,ref:t},null)]}function BG(t){return c0(IG(t))}bo.useModal=g8e,bo.info=function(e){return c0(DG(e))},bo.success=function(e){return c0(RG(e))},bo.error=function(e){return c0(kG(e))},bo.warning=BG,bo.warn=BG,bo.confirm=function(e){return c0(NG(e))},bo.destroyAll=function(){for(;zf.length;){const e=zf.pop();e&&e()}},bo.install=function(t){return t.component(bo.name,bo),t};const cM=(t,e)=>{let{attrs:n}=e;const{included:r,vertical:i,style:o,class:a}=n;let{length:s,offset:l,reverse:u}=n;s<0&&(u=!u,s=Math.abs(s),l=100-l);const c=i?{[u?"top":"bottom"]:`${l}%`,[u?"bottom":"top"]:"auto",height:`${s}%`}:{[u?"right":"left"]:`${l}%`,[u?"left":"right"]:"auto",width:`${s}%`},f=k(k({},o),c);return r?h.createVNode("div",{class:a,style:f},null):null};cM.inheritAttrs=!1;const v8e=(t,e,n,r,i,o)=>{yi(n?r>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");const a=Object.keys(e).map(parseFloat).sort((s,l)=>s-l);if(n&&r)for(let s=i;s<=o;s+=r)a.indexOf(s)===-1&&a.push(s);return a},VG=(t,e)=>{let{attrs:n}=e;const{prefixCls:r,vertical:i,reverse:o,marks:a,dots:s,step:l,included:u,lowerBound:c,upperBound:f,max:d,min:p,dotStyle:g,activeDotStyle:v}=n,m=d-p,y=v8e(i,a,s,l,p,d).map(b=>{const O=`${Math.abs(b-p)/m*100}%`,w=!u&&b===f||u&&b<=f&&b>=c;let S=i?k(k({},g),{[o?"top":"bottom"]:O}):k(k({},g),{[o?"right":"left"]:O});w&&(S=k(k({},S),v));const x=Pe({[`${r}-dot`]:!0,[`${r}-dot-active`]:w,[`${r}-dot-reverse`]:o});return h.createVNode("span",{class:x,style:S,key:b},null)});return h.createVNode("div",{class:`${r}-step`},[y])};VG.inheritAttrs=!1;const zG=(t,e)=>{let{attrs:n,slots:r}=e;const{class:i,vertical:o,reverse:a,marks:s,included:l,upperBound:u,lowerBound:c,max:f,min:d,onClickLabel:p}=n,g=Object.keys(s),v=r.mark,m=f-d,y=g.map(parseFloat).sort((b,O)=>b-O).map(b=>{const O=typeof s[b]=="function"?s[b]():s[b],w=typeof O=="object"&&!po(O);let S=w?O.label:O;if(!S&&S!==0)return null;v&&(S=v({point:b,label:S}));const x=!l&&b===u||l&&b<=u&&b>=c,T=Pe({[`${i}-text`]:!0,[`${i}-text-active`]:x}),$={marginBottom:"-50%",[a?"top":"bottom"]:`${(b-d)/m*100}%`},A={transform:`translateX(${a?"50%":"-50%"})`,msTransform:`translateX(${a?"50%":"-50%"})`,[a?"right":"left"]:`${(b-d)/m*100}%`},P=o?$:A,M=w?k(k({},P),O.style):P,I={[Vr?"onTouchstartPassive":"onTouchstart"]:R=>p(R,b)};return h.createVNode("span",K({class:T,style:M,key:b,onMousedown:R=>p(R,b)},I),[S])});return h.createVNode("div",{class:i},[y])};zG.inheritAttrs=!1;const FG=h.defineComponent({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:ne.oneOfType([ne.number,ne.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(t,e){let{attrs:n,emit:r,expose:i}=e;const o=h.shallowRef(!1),a=h.shallowRef(),s=()=>{document.activeElement===a.value&&(o.value=!0)},l=m=>{o.value=!1,r("blur",m)},u=()=>{o.value=!1},c=()=>{var m;(m=a.value)===null||m===void 0||m.focus()},f=()=>{var m;(m=a.value)===null||m===void 0||m.blur()},d=()=>{o.value=!0,c()},p=m=>{m.preventDefault(),c(),r("mousedown",m)};i({focus:c,blur:f,clickFocus:d,ref:a});let g=null;h.onMounted(()=>{g=zr(document,"mouseup",s)}),h.onBeforeUnmount(()=>{g==null||g.remove()});const v=h.computed(()=>{const{vertical:m,offset:y,reverse:b}=t;return m?{[b?"top":"bottom"]:`${y}%`,[b?"bottom":"top"]:"auto",transform:b?null:"translateY(+50%)"}:{[b?"right":"left"]:`${y}%`,[b?"left":"right"]:"auto",transform:`translateX(${b?"+":"-"}50%)`}});return()=>{const{prefixCls:m,disabled:y,min:b,max:O,value:w,tabindex:S,ariaLabel:x,ariaLabelledBy:T,ariaValueTextFormatter:$,onMouseenter:A,onMouseleave:P}=t,M=Pe(n.class,{[`${m}-handle-click-focused`]:o.value}),I={"aria-valuemin":b,"aria-valuemax":O,"aria-valuenow":w,"aria-disabled":!!y},R=[n.style,v.value];let L=S||0;(y||S===null)&&(L=null);let D;$&&(D=$(w));const B=k(k(k(k({},n),{role:"slider",tabindex:L}),I),{class:M,onBlur:l,onKeydown:u,onMousedown:p,onMouseenter:A,onMouseleave:P,ref:a,style:R});return h.createVNode("div",K(K({},B),{},{"aria-label":x,"aria-labelledby":T,"aria-valuetext":D}),null)}}});function fM(t,e){try{return Object.keys(e).some(n=>t.target===e[n].ref)}catch{return!1}}function WG(t,e){let{min:n,max:r}=e;return t<n||t>r}function QG(t){return t.touches.length>1||t.type.toLowerCase()==="touchend"&&t.touches.length>0}function HG(t,e){let{marks:n,step:r,min:i,max:o}=e;const a=Object.keys(n).map(parseFloat);if(r!==null){const l=Math.pow(10,GG(r)),u=Math.floor((o*l-i*l)/(r*l)),c=Math.min((t-i)/r,u),f=Math.round(c)*r+i;a.push(f)}const s=a.map(l=>Math.abs(t-l));return a[s.indexOf(Math.min(...s))]}function GG(t){const e=t.toString();let n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n}function jG(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.clientY:e.pageX)/n}function UG(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.touches[0].clientY:e.touches[0].pageX)/n}function ZG(t,e){const n=e.getBoundingClientRect();return t?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function dM(t,e){let{max:n,min:r}=e;return t<=r?r:t>=n?n:t}function XG(t,e){const{step:n}=e,r=isFinite(HG(t,e))?HG(t,e):0;return n===null?r:parseFloat(r.toFixed(GG(n)))}function Qp(t){t.stopPropagation(),t.preventDefault()}function m8e(t,e,n){const r={increase:(a,s)=>a+s,decrease:(a,s)=>a-s},i=r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)),1),o=Object.keys(n.marks)[i];return n.step?r[t](e,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:e}function YG(t,e,n){const r="increase",i="decrease";let o=r;switch(t.keyCode){case Se.UP:o=e&&n?i:r;break;case Se.RIGHT:o=!e&&n?i:r;break;case Se.DOWN:o=e&&n?r:i;break;case Se.LEFT:o=!e&&n?r:i;break;case Se.END:return(a,s)=>s.max;case Se.HOME:return(a,s)=>s.min;case Se.PAGE_UP:return(a,s)=>a+s.step*2;case Se.PAGE_DOWN:return(a,s)=>a-s.step*2;default:return}return(a,s)=>m8e(o,a,s)}var y8e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function Ff(){}function qG(t){const e={id:String,min:Number,max:Number,step:Number,marks:ne.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:ne.object,maximumTrackStyle:ne.object,handleStyle:ne.oneOfType([ne.object,ne.arrayOf(ne.object)]),trackStyle:ne.oneOfType([ne.object,ne.arrayOf(ne.object)]),railStyle:ne.object,dotStyle:ne.object,activeDotStyle:ne.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return h.defineComponent({compatConfig:{MODE:3},name:"CreateSlider",mixins:[gO,t],inheritAttrs:!1,props:Ar(e,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){const{step:n,max:r,min:i}=this,o=isFinite(r-i)?(r-i)%n===0:!0;return yi(n&&Math.floor(n)===n?o:!0,`Slider[max] - Slider[min] (${r-i}) should be a multiple of Slider[step] (${n})`),this.handlesRefs={},{}},mounted(){this.$nextTick(()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:r}=this;n&&!r&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:r,directives:i,className:o,style:a}=n,s=y8e(n,["index","directives","className","style"]);if(delete s.dragging,s.value===null)return null;const l=k(k({},s),{class:o,style:a,key:r});return h.createVNode(FG,l,null)},onDown(n,r){let i=r;const{draggableTrack:o,vertical:a}=this.$props,{bounds:s}=this.$data,l=o&&this.positionGetValue?this.positionGetValue(i)||[]:[],u=fM(n,this.handlesRefs);if(this.dragTrack=o&&s.length>=2&&!u&&!l.map((c,f)=>{const d=f?!0:c>=s[f];return f===l.length-1?c<=s[f]:d}).some(c=>!c),this.dragTrack)this.dragOffset=i,this.startBounds=[...s];else{if(!u)this.dragOffset=0;else{const c=ZG(a,n.target);this.dragOffset=i-c,i=c}this.onStart(i)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const r=this.$props.vertical,i=jG(r,n);this.onDown(n,i),this.addDocumentMouseEvents()},onTouchStart(n){if(QG(n))return;const r=this.vertical,i=UG(r,n);this.onDown(n,i),this.addDocumentTouchEvents(),Qp(n)},onFocus(n){const{vertical:r}=this;if(fM(n,this.handlesRefs)&&!this.dragTrack){const i=ZG(r,n.target);this.dragOffset=0,this.onStart(i),Qp(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const r=jG(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(QG(n)||!this.sliderRef){this.onEnd();return}const r=UG(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&fM(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,r){n.stopPropagation(),this.onChange({sValue:r}),this.setState({sValue:r},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:r,reverse:i}=this,o=n.getBoundingClientRect();return r?i?o.bottom:o.top:window.scrollX+(i?o.right:o.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=zr(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=zr(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=zr(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=zr(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var r,i;(i=(r=this.handlesRefs[n])===null||r===void 0?void 0:r.blur)===null||i===void 0||i.call(r)})},calcValue(n){const{vertical:r,min:i,max:o}=this,a=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-a)*(o-i)+i:a*(o-i)+i},calcValueByPos(n){const i=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(i))},calcOffset(n){const{min:r,max:i}=this,o=(n-r)/(i-r);return Math.max(0,o*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:i,step:o,included:a,disabled:s,vertical:l,reverse:u,min:c,max:f,maximumTrackStyle:d,railStyle:p,dotStyle:g,activeDotStyle:v,id:m}=this,{class:y,style:b}=this.$attrs,{tracks:O,handles:w}=this.renderSlider(),S=Pe(n,y,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:s,[`${n}-vertical`]:l,[`${n}-horizontal`]:!l}),x={vertical:l,marks:r,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,reverse:u,class:`${n}-mark`,onClickLabel:s?Ff:this.onClickMarkLabel},T={[Vr?"onTouchstartPassive":"onTouchstart"]:s?Ff:this.onTouchStart};return h.createVNode("div",K(K({id:m,ref:this.saveSlider,tabindex:"-1",class:S},T),{},{onMousedown:s?Ff:this.onMouseDown,onMouseup:s?Ff:this.onMouseUp,onKeydown:s?Ff:this.onKeyDown,onFocus:s?Ff:this.onFocus,onBlur:s?Ff:this.onBlur,style:b}),[h.createVNode("div",{class:`${n}-rail`,style:k(k({},d),p)},null),O,h.createVNode(VG,{prefixCls:n,vertical:l,reverse:u,marks:r,dots:i,step:o,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,dotStyle:g,activeDotStyle:v},null),w,h.createVNode(zG,x,{mark:this.$slots.mark}),SF(this)])}})}const b8e=h.defineComponent({compatConfig:{MODE:3},name:"Slider",mixins:[gO],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const t=this.defaultValue!==void 0?this.defaultValue:this.min,e=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(e),dragging:!1}},watch:{value:{handler(t){this.setChangeValue(t)},deep:!0},min(){const{sValue:t}=this;this.setChangeValue(t)},max(){const{sValue:t}=this;this.setChangeValue(t)}},methods:{setChangeValue(t){const e=t!==void 0?t:this.sValue,n=this.trimAlignValue(e,this.$props);n!==this.sValue&&(this.setState({sValue:n}),WG(e,this.$props)&&this.$emit("change",n))},onChange(t){const e=!N1(this,"value"),n=t.sValue>this.max?k(k({},t),{sValue:this.max}):t;e&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(t){this.setState({dragging:!0});const{sValue:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t,n!==e&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(t){const{dragging:e}=this;this.removeDocumentEvents(),(e||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(t,e){Qp(t);const{sValue:n}=this,r=this.calcValueByPos(e);r!==n&&this.onChange({sValue:r})},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=YG(t,n,e);if(r){Qp(t);const{sValue:i}=this,o=r(i,this.$props),a=this.trimAlignValue(o);if(a===i)return;this.onChange({sValue:a}),this.$emit("afterChange",a),this.onEnd()}},getLowerBound(){const t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound(){return this.$data.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;const n=k(k({},this.$props),e),r=dM(t,n);return XG(r,n)},getTrack(t){let{prefixCls:e,reverse:n,vertical:r,included:i,minimumTrackStyle:o,mergedTrackStyle:a,length:s,offset:l}=t;return h.createVNode(cM,{class:`${e}-track`,vertical:r,included:i,offset:l,reverse:n,length:s,style:k(k({},o),a)},null)},renderSlider(){const{prefixCls:t,vertical:e,included:n,disabled:r,minimumTrackStyle:i,trackStyle:o,handleStyle:a,tabindex:s,ariaLabelForHandle:l,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:f,max:d,startPoint:p,reverse:g,handle:v,defaultHandle:m}=this,y=v||m,{sValue:b,dragging:O}=this,w=this.calcOffset(b),S=y({class:`${t}-handle`,prefixCls:t,vertical:e,offset:w,value:b,dragging:O,disabled:r,min:f,max:d,reverse:g,index:0,tabindex:s,ariaLabel:l,ariaLabelledBy:u,ariaValueTextFormatter:c,style:a[0]||a,ref:$=>this.saveHandle(0,$),onFocus:this.onFocus,onBlur:this.onBlur}),x=p!==void 0?this.calcOffset(p):0,T=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:g,vertical:e,included:n,offset:x,minimumTrackStyle:i,mergedTrackStyle:T,length:w-x}),handles:S}}}}),_8e=qG(b8e),f0=t=>{let{value:e,handle:n,bounds:r,props:i}=t;const{allowCross:o,pushable:a}=i,s=Number(a),l=dM(e,i);let u=l;return!o&&n!=null&&r!==void 0&&(n>0&&l<=r[n-1]+s&&(u=r[n-1]+s),n<r.length-1&&l>=r[n+1]-s&&(u=r[n+1]-s)),XG(u,i)},O8e={defaultValue:ne.arrayOf(ne.number),value:ne.arrayOf(ne.number),count:Number,pushable:Z$e(ne.oneOfType([ne.looseBool,ne.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:ne.arrayOf(ne.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},w8e=h.defineComponent({compatConfig:{MODE:3},name:"Range",mixins:[gO],inheritAttrs:!1,props:Ar(O8e,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:t,min:e,max:n}=this,r=Array(...Array(t+1)).map(()=>e),i=N1(this,"defaultValue")?this.defaultValue:r;let{value:o}=this;o===void 0&&(o=i);const a=o.map((l,u)=>f0({value:l,handle:u,props:this.$props}));return{sHandle:null,recent:a[0]===n?0:a.length-1,bounds:a}},watch:{value:{handler(t){const{bounds:e}=this;this.setChangeValue(t||e)},deep:!0},min(){const{value:t}=this;this.setChangeValue(t||this.bounds)},max(){const{value:t}=this;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue(t){const{bounds:e}=this;let n=t.map((r,i)=>f0({value:r,handle:i,bounds:e,props:this.$props}));if(e.length===n.length){if(n.every((r,i)=>r===e[i]))return null}else n=t.map((r,i)=>f0({value:r,handle:i,props:this.$props}));if(this.setState({bounds:n}),t.some(r=>WG(r,this.$props))){const r=t.map(i=>dM(i,this.$props));this.$emit("change",r)}},onChange(t){if(!N1(this,"value"))this.setState(t);else{const i={};["sHandle","recent"].forEach(o=>{t[o]!==void 0&&(i[o]=t[o])}),Object.keys(i).length&&this.setState(i)}const r=k(k({},this.$data),t).bounds;this.$emit("change",r)},positionGetValue(t){const e=this.getValue(),n=this.calcValueByPos(t),r=this.getClosestBound(n),i=this.getBoundNeedMoving(n,r),o=e[i];if(n===o)return null;const a=[...e];return a[i]=n,a},onStart(t){const{bounds:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const i=e[this.prevMovedHandleIndex];if(n===i)return;const o=[...e];o[this.prevMovedHandleIndex]=n,this.onChange({bounds:o})},onEnd(t){const{sHandle:e}=this;this.removeDocumentEvents(),e||(this.dragTrack=!1),(e!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(t,e,n,r){Qp(t);const{$data:i,$props:o}=this,a=o.max||100,s=o.min||0;if(n){let d=o.vertical?-e:e;d=o.reverse?-d:d;const p=a-Math.max(...r),g=s-Math.min(...r),v=Math.min(Math.max(d/(this.getSliderLength()/100),g),p),m=r.map(y=>Math.floor(Math.max(Math.min(y+v,a),s)));i.bounds.map((y,b)=>y===m[b]).some(y=>!y)&&this.onChange({bounds:m});return}const{bounds:l,sHandle:u}=this,c=this.calcValueByPos(e),f=l[u];c!==f&&this.moveTo(c)},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=YG(t,n,e);if(r){Qp(t);const{bounds:i,sHandle:o}=this,a=i[o===null?this.recent:o],s=r(a,this.$props),l=f0({value:s,handle:o,bounds:i,props:this.$props});if(l===a)return;this.moveTo(l,!0)}},getClosestBound(t){const{bounds:e}=this;let n=0;for(let r=1;r<e.length-1;r+=1)t>=e[r]&&(n=r);return Math.abs(e[n+1]-t)<Math.abs(e[n]-t)&&(n+=1),n},getBoundNeedMoving(t,e){const{bounds:n,recent:r}=this;let i=e;const o=n[e+1]===n[e];return o&&n[r]===n[e]&&(i=r),o&&t!==n[e+1]&&(i=t<n[e+1]?e:e+1),i},getLowerBound(){return this.bounds[0]},getUpperBound(){const{bounds:t}=this;return t[t.length-1]},getPoints(){const{marks:t,step:e,min:n,max:r}=this,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==e){const o=k({},t);if(e!==null)for(let s=n;s<=r;s+=e)o[s]=s;const a=Object.keys(o).map(parseFloat);a.sort((s,l)=>s-l),this.internalPointsCache={marks:t,step:e,points:a}}return this.internalPointsCache.points},moveTo(t,e){const n=[...this.bounds],{sHandle:r,recent:i}=this,o=r===null?i:r;n[o]=t;let a=o;this.$props.pushable!==!1?this.pushSurroundingHandles(n,a):this.$props.allowCross&&(n.sort((s,l)=>s-l),a=n.indexOf(t)),this.onChange({recent:a,sHandle:a,bounds:n}),e&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[a].focus()}),this.onEnd())},pushSurroundingHandles(t,e){const n=t[e],{pushable:r}=this,i=Number(r);let o=0;if(t[e+1]-n<i&&(o=1),n-t[e-1]<i&&(o=-1),o===0)return;const a=e+o,s=o*(t[a]-n);this.pushHandle(t,a,o,i-s)||(t[e]=t[a]-o*i)},pushHandle(t,e,n,r){const i=t[e];let o=t[e];for(;n*(o-i)<r;){if(!this.pushHandleOnePoint(t,e,n))return t[e]=i,!1;o=t[e]}return!0},pushHandleOnePoint(t,e,n){const r=this.getPoints(),o=r.indexOf(t[e])+n;if(o>=r.length||o<0)return!1;const a=e+n,s=r[o],{pushable:l}=this,u=Number(l),c=n*(t[a]-s);return this.pushHandle(t,a,n,u-c)?(t[e]=s,!0):!1},trimAlignValue(t){const{sHandle:e,bounds:n}=this;return f0({value:t,handle:e,bounds:n,props:this.$props})},ensureValueNotConflict(t,e,n){let{allowCross:r,pushable:i}=n;const o=this.$data||{},{bounds:a}=o;if(t=t===void 0?o.sHandle:t,i=Number(i),!r&&t!=null&&a!==void 0){if(t>0&&e<=a[t-1]+i)return a[t-1]+i;if(t<a.length-1&&e>=a[t+1]-i)return a[t+1]-i}return e},getTrack(t){let{bounds:e,prefixCls:n,reverse:r,vertical:i,included:o,offsets:a,trackStyle:s}=t;return e.slice(0,-1).map((l,u)=>{const c=u+1,f=Pe({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return h.createVNode(cM,{class:f,vertical:i,reverse:r,included:o,offset:a[c-1],length:a[c]-a[c-1],style:s[u],key:c},null)})},renderSlider(){const{sHandle:t,bounds:e,prefixCls:n,vertical:r,included:i,disabled:o,min:a,max:s,reverse:l,handle:u,defaultHandle:c,trackStyle:f,handleStyle:d,tabindex:p,ariaLabelGroupForHandles:g,ariaLabelledByGroupForHandles:v,ariaValueTextFormatterGroupForHandles:m}=this,y=u||c,b=e.map(S=>this.calcOffset(S)),O=`${n}-handle`,w=e.map((S,x)=>{let T=p[x]||0;(o||p[x]===null)&&(T=null);const $=t===x;return y({class:Pe({[O]:!0,[`${O}-${x+1}`]:!0,[`${O}-dragging`]:$}),prefixCls:n,vertical:r,dragging:$,offset:b[x],value:S,index:x,tabindex:T,min:a,max:s,reverse:l,disabled:o,style:d[x],ref:A=>this.saveHandle(x,A),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:g[x],ariaLabelledBy:v[x],ariaValueTextFormatter:m[x]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:l,vertical:r,included:i,offsets:b,trackStyle:f}),handles:w}}}}),S8e=qG(w8e),x8e=h.defineComponent({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:FQ(),setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(null),o=h.ref(null);function a(){Dt.cancel(o.value),o.value=null}function s(){o.value=Dt(()=>{var u;(u=i.value)===null||u===void 0||u.forcePopupAlign(),o.value=null})}const l=()=>{a(),t.open&&s()};return h.watch([()=>t.open,()=>t.title],()=>{l()},{flush:"post",immediate:!0}),h.onActivated(()=>{l()}),h.onBeforeUnmount(()=>{a()}),()=>h.createVNode(NO,K(K({ref:i},t),n),r)}}),C8e=t=>{const{componentCls:e,controlSize:n,dotSize:r,marginFull:i,marginPart:o,colorFillContentHover:a}=t;return{[e]:k(k({},bn(t)),{position:"relative",height:n,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${o}px`},[`${e}-rail`]:{position:"absolute",backgroundColor:t.colorFillTertiary,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},[`${e}-track`]:{position:"absolute",backgroundColor:t.colorPrimaryBorder,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},"&:hover":{[`${e}-rail`]:{backgroundColor:t.colorFillSecondary},[`${e}-track`]:{backgroundColor:t.colorPrimaryBorderHover},[`${e}-dot`]:{borderColor:a},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:t.colorPrimary}},[`${e}-handle`]:{position:"absolute",width:t.handleSize,height:t.handleSize,outline:"none",[`${e}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-t.handleLineWidth,insetBlockStart:-t.handleLineWidth,width:t.handleSize+t.handleLineWidth*2,height:t.handleSize+t.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:t.handleSize,height:t.handleSize,backgroundColor:t.colorBgElevated,boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`
  267. inset-inline-start ${t.motionDurationMid},
  268. inset-block-start ${t.motionDurationMid},
  269. width ${t.motionDurationMid},
  270. height ${t.motionDurationMid},
  271. box-shadow ${t.motionDurationMid}
  272. `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),insetBlockStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),width:t.handleSizeHover+t.handleLineWidthHover*2,height:t.handleSizeHover+t.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${t.handleLineWidthHover}px ${t.colorPrimary}`,width:t.handleSizeHover,height:t.handleSizeHover,insetInlineStart:(t.handleSize-t.handleSizeHover)/2,insetBlockStart:(t.handleSize-t.handleSizeHover)/2}}},[`${e}-mark`]:{position:"absolute",fontSize:t.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:t.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:t.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:t.colorBgElevated,border:`${t.handleLineWidth}px solid ${t.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,"&-active":{borderColor:t.colorPrimaryBorder}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${t.colorFillSecondary} !important`},[`${e}-track`]:{backgroundColor:`${t.colorTextDisabled} !important`},[`
  273. ${e}-dot
  274. `]:{backgroundColor:t.colorBgElevated,borderColor:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:t.colorBgElevated,cursor:"not-allowed",width:t.handleSize,height:t.handleSize,boxShadow:`0 0 0 ${t.handleLineWidth}px ${new yn(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`
  275. ${e}-mark-text,
  276. ${e}-dot
  277. `]:{cursor:"not-allowed !important"}}})}},KG=(t,e)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o}=t,a=e?"paddingBlock":"paddingInline",s=e?"width":"height",l=e?"height":"width",u=e?"insetBlockStart":"insetInlineStart",c=e?"top":"insetInlineStart";return{[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[u]:(r*3-i)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:i,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-o)/2}}},T8e=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:k(k({},KG(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},P8e=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:k(k({},KG(t,!1)),{height:"100%"})}},$8e=Fn("Slider",t=>{const e=Xt(t,{marginPart:(t.controlHeight-t.controlSize)/2,marginFull:t.controlSize/2,marginPartWithMark:t.controlHeightLG-t.controlSize});return[C8e(e),T8e(e),P8e(e)]},t=>{const n=t.controlHeightLG/4,r=t.controlHeightSM/2,i=t.lineWidth+1,o=t.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}});var JG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const A8e=t=>typeof t=="number"?t.toString():"",E8e=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:kn([Boolean,Object]),reverse:lt(),min:Number,max:Number,step:kn([Object,Number]),marks:Vt(),dots:lt(),value:kn([Array,Number]),defaultValue:kn([Array,Number]),included:lt(),disabled:lt(),vertical:lt(),tipFormatter:kn([Function,Object],()=>A8e),tooltipOpen:lt(),tooltipVisible:lt(),tooltipPlacement:$n(),getTooltipPopupContainer:ut(),autofocus:lt(),handleStyle:kn([Array,Object]),trackStyle:kn([Array,Object]),onChange:ut(),onAfterChange:ut(),onFocus:ut(),onBlur:ut(),"onUpdate:value":ut()}),M8e=h.defineComponent({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:E8e(),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:o}=e;process.env.NODE_ENV!=="production"&&[["tooltipVisible","tooltipOpen"]].forEach(T=>{let[$,A]=T;mo(t.tooltipVisible===void 0,"Slider",`\`${$}\` is deprecated, please use \`${A}\` instead.`)});const{prefixCls:a,rootPrefixCls:s,direction:l,getPopupContainer:u,configProvider:c}=Qt("slider",t),[f,d]=$8e(a),p=Ms(),g=h.ref(),v=h.ref({}),m=(T,$)=>{v.value[T]=$},y=h.computed(()=>t.tooltipPlacement?t.tooltipPlacement:t.vertical?l.value==="rtl"?"left":"right":"top"),b=()=>{var T;(T=g.value)===null||T===void 0||T.focus()},O=()=>{var T;(T=g.value)===null||T===void 0||T.blur()},w=T=>{i("update:value",T),i("change",T),p.onFieldChange()},S=T=>{i("blur",T)};o({focus:b,blur:O});const x=T=>{var{tooltipPrefixCls:$}=T,A=T.info,{value:P,dragging:M,index:I}=A,R=JG(A,["value","dragging","index"]);const{tipFormatter:L,tooltipOpen:D=t.tooltipVisible,getTooltipPopupContainer:B}=t,F=L?v.value[I]||M:!1,z=D||D===void 0&&F;return h.createVNode(x8e,{prefixCls:$,title:L?L(P):"",open:z,placement:y.value,transitionName:`${s.value}-zoom-down`,key:I,overlayClassName:`${a.value}-tooltip`,getPopupContainer:B||(u==null?void 0:u.value)},{default:()=>[h.createVNode(FG,K(K({},R),{},{value:P,onMouseenter:()=>m(I,!0),onMouseleave:()=>m(I,!1)}),null)]})};return()=>{const{tooltipPrefixCls:T,range:$,id:A=p.id.value}=t,P=JG(t,["tooltipPrefixCls","range","id"]),M=c.getPrefixCls("tooltip",T),I=Pe(n.class,{[`${a.value}-rtl`]:l.value==="rtl"},d.value);l.value==="rtl"&&!P.vertical&&(P.reverse=!P.reverse);let R;return typeof $=="object"&&(R=$.draggableTrack),f($?h.createVNode(S8e,K(K(K({},n),P),{},{step:P.step,draggableTrack:R,class:I,ref:g,handle:L=>x({tooltipPrefixCls:M,prefixCls:a.value,info:L}),prefixCls:a.value,onChange:w,onBlur:S}),{mark:r.mark}):h.createVNode(_8e,K(K(K({},n),P),{},{id:A,step:P.step,class:I,ref:g,handle:L=>x({tooltipPrefixCls:M,prefixCls:a.value,info:L}),prefixCls:a.value,onChange:w,onBlur:S}),{mark:r.mark}))}}}),I8e=mp(M8e);var D8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"};function ej(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){R8e(t,i,n[i])})}return t}function R8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hM=function(e,n){var r=ej({},e,n.attrs);return h.createVNode(mt,ej({},r,{icon:D8e}),null)};hM.displayName="AlignCenterOutlined",hM.inheritAttrs=!1;var k8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};function tj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){N8e(t,i,n[i])})}return t}function N8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pM=function(e,n){var r=tj({},e,n.attrs);return h.createVNode(mt,tj({},r,{icon:k8e}),null)};pM.displayName="AlignLeftOutlined",pM.inheritAttrs=!1;var L8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-right",theme:"outlined"};function nj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){B8e(t,i,n[i])})}return t}function B8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gM=function(e,n){var r=nj({},e,n.attrs);return h.createVNode(mt,nj({},r,{icon:L8e}),null)};gM.displayName="AlignRightOutlined",gM.inheritAttrs=!1;var V8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"};function rj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){z8e(t,i,n[i])})}return t}function z8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vM=function(e,n){var r=rj({},e,n.attrs);return h.createVNode(mt,rj({},r,{icon:V8e}),null)};vM.displayName="BoldOutlined",vM.inheritAttrs=!1;var F8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"border-bottom",theme:"outlined"};function ij(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){W8e(t,i,n[i])})}return t}function W8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mM=function(e,n){var r=ij({},e,n.attrs);return h.createVNode(mt,ij({},r,{icon:F8e}),null)};mM.displayName="BorderBottomOutlined",mM.inheritAttrs=!1;var Q8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-left",theme:"outlined"};function oj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){H8e(t,i,n[i])})}return t}function H8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yM=function(e,n){var r=oj({},e,n.attrs);return h.createVNode(mt,oj({},r,{icon:Q8e}),null)};yM.displayName="BorderLeftOutlined",yM.inheritAttrs=!1;var G8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-right",theme:"outlined"};function aj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){j8e(t,i,n[i])})}return t}function j8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bM=function(e,n){var r=aj({},e,n.attrs);return h.createVNode(mt,aj({},r,{icon:G8e}),null)};bM.displayName="BorderRightOutlined",bM.inheritAttrs=!1;var U8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-top",theme:"outlined"};function sj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Z8e(t,i,n[i])})}return t}function Z8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _M=function(e,n){var r=sj({},e,n.attrs);return h.createVNode(mt,sj({},r,{icon:U8e}),null)};_M.displayName="BorderTopOutlined",_M.inheritAttrs=!1;var X8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};function lj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Y8e(t,i,n[i])})}return t}function Y8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d0=function(e,n){var r=lj({},e,n.attrs);return h.createVNode(mt,lj({},r,{icon:X8e}),null)};d0.displayName="DatabaseOutlined",d0.inheritAttrs=!1;var q8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z"}}]},name:"font-colors",theme:"outlined"};function uj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){K8e(t,i,n[i])})}return t}function K8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OM=function(e,n){var r=uj({},e,n.attrs);return h.createVNode(mt,uj({},r,{icon:q8e}),null)};OM.displayName="FontColorsOutlined",OM.inheritAttrs=!1;var J8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"};function cj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){e5e(t,i,n[i])})}return t}function e5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wM=function(e,n){var r=cj({},e,n.attrs);return h.createVNode(mt,cj({},r,{icon:J8e}),null)};wM.displayName="ItalicOutlined",wM.inheritAttrs=!1;var t5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"radius-bottomleft",theme:"outlined"};function fj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){n5e(t,i,n[i])})}return t}function n5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var SM=function(e,n){var r=fj({},e,n.attrs);return h.createVNode(mt,fj({},r,{icon:t5e}),null)};SM.displayName="RadiusBottomleftOutlined",SM.inheritAttrs=!1;var r5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z"}}]},name:"radius-bottomright",theme:"outlined"};function dj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){i5e(t,i,n[i])})}return t}function i5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xM=function(e,n){var r=dj({},e,n.attrs);return h.createVNode(mt,dj({},r,{icon:r5e}),null)};xM.displayName="RadiusBottomrightOutlined",xM.inheritAttrs=!1;var o5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"radius-upleft",theme:"outlined"};function hj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){a5e(t,i,n[i])})}return t}function a5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var CM=function(e,n){var r=hj({},e,n.attrs);return h.createVNode(mt,hj({},r,{icon:o5e}),null)};CM.displayName="RadiusUpleftOutlined",CM.inheritAttrs=!1;var s5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z"}}]},name:"radius-upright",theme:"outlined"};function pj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){l5e(t,i,n[i])})}return t}function l5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TM=function(e,n){var r=pj({},e,n.attrs);return h.createVNode(mt,pj({},r,{icon:s5e}),null)};TM.displayName="RadiusUprightOutlined",TM.inheritAttrs=!1;var u5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function gj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){c5e(t,i,n[i])})}return t}function c5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dw=function(e,n){var r=gj({},e,n.attrs);return h.createVNode(mt,gj({},r,{icon:u5e}),null)};dw.displayName="SettingOutlined",dw.inheritAttrs=!1;var f5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}}]},name:"skin",theme:"outlined"};function vj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){d5e(t,i,n[i])})}return t}function d5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h0=function(e,n){var r=vj({},e,n.attrs);return h.createVNode(mt,vj({},r,{icon:f5e}),null)};h0.displayName="SkinOutlined",h0.inheritAttrs=!1;function mj(t,e){return function(){return t.apply(e,arguments)}}const{toString:h5e}=Object.prototype,{getPrototypeOf:PM}=Object,hw=(t=>e=>{const n=h5e.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xa=t=>(t=t.toLowerCase(),e=>hw(e)===t),pw=t=>e=>typeof e===t,{isArray:Hp}=Array,p0=pw("undefined");function p5e(t){return t!==null&&!p0(t)&&t.constructor!==null&&!p0(t.constructor)&&Jo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const yj=Xa("ArrayBuffer");function g5e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&yj(t.buffer),e}const v5e=pw("string"),Jo=pw("function"),bj=pw("number"),gw=t=>t!==null&&typeof t=="object",m5e=t=>t===!0||t===!1,vw=t=>{if(hw(t)!=="object")return!1;const e=PM(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},y5e=Xa("Date"),b5e=Xa("File"),_5e=Xa("Blob"),O5e=Xa("FileList"),w5e=t=>gw(t)&&Jo(t.pipe),S5e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jo(t.append)&&((e=hw(t))==="formdata"||e==="object"&&Jo(t.toString)&&t.toString()==="[object FormData]"))},x5e=Xa("URLSearchParams"),[C5e,T5e,P5e,$5e]=["ReadableStream","Request","Response","Headers"].map(Xa),A5e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function g0(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Hp(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let s;for(r=0;r<a;r++)s=o[r],e.call(null,t[s],s,t)}}function _j(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Oj=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wj=t=>!p0(t)&&t!==Oj;function $M(){const{caseless:t}=wj(this)&&this||{},e={},n=(r,i)=>{const o=t&&_j(e,i)||i;vw(e[o])&&vw(r)?e[o]=$M(e[o],r):vw(r)?e[o]=$M({},r):Hp(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&g0(arguments[r],n);return e}const E5e=(t,e,n,{allOwnKeys:r}={})=>(g0(e,(i,o)=>{n&&Jo(i)?t[o]=mj(i,n):t[o]=i},{allOwnKeys:r}),t),M5e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),I5e=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},D5e=(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!r||r(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=n!==!1&&PM(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},R5e=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},k5e=t=>{if(!t)return null;if(Hp(t))return t;let e=t.length;if(!bj(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},N5e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&PM(Uint8Array)),L5e=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},B5e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},V5e=Xa("HTMLFormElement"),z5e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Sj=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),F5e=Xa("RegExp"),xj=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};g0(n,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(r[o]=a||i)}),Object.defineProperties(t,r)},W5e=t=>{xj(t,(e,n)=>{if(Jo(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Jo(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Q5e=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Hp(t)?r(t):r(String(t).split(e)),n},H5e=()=>{},G5e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,AM="abcdefghijklmnopqrstuvwxyz",Cj="0123456789",Tj={DIGIT:Cj,ALPHA:AM,ALPHA_DIGIT:AM+AM.toUpperCase()+Cj},j5e=(t=16,e=Tj.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function U5e(t){return!!(t&&Jo(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Z5e=t=>{const e=new Array(10),n=(r,i)=>{if(gw(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Hp(r)?[]:{};return g0(r,(a,s)=>{const l=n(a,i+1);!p0(l)&&(o[s]=l)}),e[i]=void 0,o}}return r};return n(t,0)},X5e=Xa("AsyncFunction"),be={isArray:Hp,isArrayBuffer:yj,isBuffer:p5e,isFormData:S5e,isArrayBufferView:g5e,isString:v5e,isNumber:bj,isBoolean:m5e,isObject:gw,isPlainObject:vw,isReadableStream:C5e,isRequest:T5e,isResponse:P5e,isHeaders:$5e,isUndefined:p0,isDate:y5e,isFile:b5e,isBlob:_5e,isRegExp:F5e,isFunction:Jo,isStream:w5e,isURLSearchParams:x5e,isTypedArray:N5e,isFileList:O5e,forEach:g0,merge:$M,extend:E5e,trim:A5e,stripBOM:M5e,inherits:I5e,toFlatObject:D5e,kindOf:hw,kindOfTest:Xa,endsWith:R5e,toArray:k5e,forEachEntry:L5e,matchAll:B5e,isHTMLForm:V5e,hasOwnProperty:Sj,hasOwnProp:Sj,reduceDescriptors:xj,freezeMethods:W5e,toObjectSet:Q5e,toCamelCase:z5e,noop:H5e,toFiniteNumber:G5e,findKey:_j,global:Oj,isContextDefined:wj,ALPHABET:Tj,generateString:j5e,isSpecCompliantForm:U5e,toJSONObject:Z5e,isAsyncFn:X5e,isThenable:t=>t&&(gw(t)||Jo(t))&&Jo(t.then)&&Jo(t.catch)};function xt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}be.inherits(xt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pj=xt.prototype,$j={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{$j[t]={value:t}}),Object.defineProperties(xt,$j),Object.defineProperty(Pj,"isAxiosError",{value:!0}),xt.from=(t,e,n,r,i,o)=>{const a=Object.create(Pj);return be.toFlatObject(t,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),xt.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const Y5e=null;function EM(t){return be.isPlainObject(t)||be.isArray(t)}function Aj(t){return be.endsWith(t,"[]")?t.slice(0,-2):t}function Ej(t,e,n){return t?t.concat(e).map(function(i,o){return i=Aj(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function q5e(t){return be.isArray(t)&&!t.some(EM)}const K5e=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});function mw(t,e,n){if(!be.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!be.isUndefined(m[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(e);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(be.isDate(g))return g.toISOString();if(!l&&be.isBlob(g))throw new xt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(g)||be.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,m){let y=g;if(g&&!m&&typeof g=="object"){if(be.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(be.isArray(g)&&q5e(g)||(be.isFileList(g)||be.endsWith(v,"[]"))&&(y=be.toArray(g)))return v=Aj(v),y.forEach(function(O,w){!(be.isUndefined(O)||O===null)&&e.append(a===!0?Ej([v],w,o):a===null?v:v+"[]",u(O))}),!1}return EM(g)?!0:(e.append(Ej(m,v,o),u(g)),!1)}const f=[],d=Object.assign(K5e,{defaultVisitor:c,convertValue:u,isVisitable:EM});function p(g,v){if(!be.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),be.forEach(g,function(y,b){(!(be.isUndefined(y)||y===null)&&i.call(e,y,be.isString(b)?b.trim():b,v,d))===!0&&p(y,v?v.concat(b):[b])}),f.pop()}}if(!be.isObject(t))throw new TypeError("data must be an object");return p(t),e}function Mj(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function MM(t,e){this._pairs=[],t&&mw(t,this,e)}const Ij=MM.prototype;Ij.append=function(e,n){this._pairs.push([e,n])},Ij.toString=function(e){const n=e?function(r){return e.call(this,r,Mj)}:Mj;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function J5e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dj(t,e,n){if(!e)return t;const r=n&&n.encode||J5e,i=n&&n.serialize;let o;if(i?o=i(e,n):o=be.isURLSearchParams(e)?e.toString():new MM(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Rj{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,function(r){r!==null&&e(r)})}}const kj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e3e={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:MM,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},IM=typeof window<"u"&&typeof document<"u",t3e=(t=>IM&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),n3e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r3e=IM&&window.location.href||"http://localhost",Ya={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:IM,hasStandardBrowserEnv:t3e,hasStandardBrowserWebWorkerEnv:n3e,origin:r3e},Symbol.toStringTag,{value:"Module"})),...e3e};function i3e(t,e){return mw(t,new Ya.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Ya.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function o3e(t){return be.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function a3e(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function Nj(t){function e(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=a3e(i[a])),!s)}if(be.isFormData(t)&&be.isFunction(t.entries)){const n={};return be.forEachEntry(t,(r,i)=>{e(o3e(r),i,n,0)}),n}return null}function s3e(t,e,n){if(be.isString(t))try{return(e||JSON.parse)(t),be.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const v0={transitional:kj,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(e);if(o&&be.isHTMLForm(e)&&(e=new FormData(e)),be.isFormData(e))return i?JSON.stringify(Nj(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return i3e(e,this.formSerializer).toString();if((s=be.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return mw(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),s3e(e)):e}],transformResponse:[function(e){const n=this.transitional||v0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?xt.from(s,xt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ya.classes.FormData,Blob:Ya.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],t=>{v0.headers[t]={}});const l3e=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),u3e=t=>{const e={};let n,r,i;return t&&t.split(`
  278. `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&l3e[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Lj=Symbol("internals");function m0(t){return t&&String(t).trim().toLowerCase()}function yw(t){return t===!1||t==null?t:be.isArray(t)?t.map(yw):String(t)}function c3e(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const f3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function DM(t,e,n,r,i){if(be.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!be.isString(e)){if(be.isString(r))return e.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(e)}}function d3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function h3e(t,e){const n=be.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}class ji{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(s,l,u){const c=m0(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=yw(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(be.isString(e)&&(e=e.trim())&&!f3e(e))a(u3e(e),n);else if(be.isHeaders(e))for(const[s,l]of e.entries())o(l,s,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=m0(e),e){const r=be.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return c3e(i);if(be.isFunction(n))return n.call(this,i,r);if(be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=m0(e),e){const r=be.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||DM(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(a){if(a=m0(a),a){const s=be.findKey(r,a);s&&(!n||DM(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||DM(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=yw(i),delete n[o];return}const s=e?d3e(o):String(o).trim();s!==o&&delete n[o],n[s]=yw(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&be.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
  279. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Lj]=this[Lj]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=m0(a);r[s]||(h3e(i,a),r[s]=!0)}return be.isArray(e)?e.forEach(o):o(e),this}}ji.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.reduceDescriptors(ji.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),be.freezeMethods(ji);function RM(t,e){const n=this||v0,r=e||n,i=ji.from(r.headers);let o=r.data;return be.forEach(t,function(s){o=s.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Bj(t){return!!(t&&t.__CANCEL__)}function Gp(t,e,n){xt.call(this,t??"canceled",xt.ERR_CANCELED,e,n),this.name="CanceledError"}be.inherits(Gp,xt,{__CANCEL__:!0});function Vj(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new xt("Request failed with status code "+n.status,[xt.ERR_BAD_REQUEST,xt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function p3e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function g3e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-a<e)return;const p=c&&u-c;return p?Math.round(d*1e3/p):void 0}}function v3e(t,e){let n=0;const r=1e3/e;let i=null;return function(){const a=this===!0,s=Date.now();if(a||s-n>r)return i&&(clearTimeout(i),i=null),n=s,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,arguments)),r-(s-n)))}}const bw=(t,e,n=3)=>{let r=0;const i=g3e(50,250);return v3e(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null};f[e?"download":"upload"]=!0,t(f)},n)},m3e=Ya.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=be.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),y3e=Ya.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const a=[t+"="+encodeURIComponent(e)];be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),be.isString(r)&&a.push("path="+r),be.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b3e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function _3e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function zj(t,e){return t&&!b3e(e)?_3e(t,e):e}const Fj=t=>t instanceof ji?{...t}:t;function Wf(t,e){e=e||{};const n={};function r(u,c,f){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:f},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!be.isUndefined(c))return r(void 0,c)}function a(u,c){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(Fj(u),Fj(c),!0)};return be.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,d=f(t[c],e[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const Wj=t=>{const e=Wf({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;e.headers=a=ji.from(a),e.url=Dj(zj(e.baseURL,e.url),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(n)){if(Ya.hasStandardBrowserEnv||Ya.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Ya.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(e)),r||r!==!1&&m3e(e.url))){const u=i&&o&&y3e.read(o);u&&a.set(i,u)}return e},O3e=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const i=Wj(t);let o=i.data;const a=ji.from(i.headers).normalize();let{responseType:s}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function f(){if(!c)return;const p=ji.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};Vj(function(y){n(y),u()},function(y){r(y),u()},v),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new xt("Request aborted",xt.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new xt("Network Error",xt.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const v=i.transitional||kj;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new xt(g,v.clarifyTimeoutError?xt.ETIMEDOUT:xt.ECONNABORTED,i,c)),c=null},o===void 0&&a.setContentType(null),"setRequestHeader"in c&&be.forEach(a.toJSON(),function(g,v){c.setRequestHeader(v,g)}),be.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&s!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",bw(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",bw(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=p=>{c&&(r(!p||p.type?new Gp(null,t,c):p),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=p3e(i.url);if(d&&Ya.protocols.indexOf(d)===-1){r(new xt("Unsupported protocol "+d+":",xt.ERR_BAD_REQUEST,t));return}c.send(o||null)})},w3e=(t,e)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof xt?u:new Gp(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{i(new xt(`timeout ${e} of ms exceeded`,xt.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},S3e=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},x3e=async function*(t,e,n){for await(const r of t)yield*S3e(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Qj=(t,e,n,r,i)=>{const o=x3e(t,e,i);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:u}=await o.next();if(l){s.close(),r();return}let c=u.byteLength;n&&n(a+=c),s.enqueue(new Uint8Array(u))},cancel(s){return r(s),o.return()}},{highWaterMark:2})},Hj=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},_w=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gj=_w&&typeof ReadableStream=="function",kM=_w&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),C3e=Gj&&(()=>{let t=!1;const e=new Request(Ya.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),jj=64*1024,NM=Gj&&!!(()=>{try{return be.isReadableStream(new Response("").body)}catch{}})(),Ow={stream:NM&&(t=>t.body)};_w&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ow[e]&&(Ow[e]=be.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new xt(`Response type '${e}' is not supported`,xt.ERR_NOT_SUPPORT,r)})})})(new Response);const T3e=async t=>{if(t==null)return 0;if(be.isBlob(t))return t.size;if(be.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(be.isArrayBufferView(t))return t.byteLength;if(be.isURLSearchParams(t)&&(t=t+""),be.isString(t))return(await kM(t)).byteLength},P3e=async(t,e)=>{const n=be.toFiniteNumber(t.getContentLength());return n??T3e(e)},LM={http:Y5e,xhr:O3e,fetch:_w&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Wj(t);u=u?(u+"").toLowerCase():"text";let[p,g]=i||o||a?w3e([i,o],a):[],v,m;const y=()=>{!v&&setTimeout(()=>{p&&p.unsubscribe()}),v=!0};let b;try{if(l&&C3e&&n!=="get"&&n!=="head"&&(b=await P3e(c,r))!==0){let x=new Request(e,{method:"POST",body:r,duplex:"half"}),T;be.isFormData(r)&&(T=x.headers.get("content-type"))&&c.setContentType(T),x.body&&(r=Qj(x.body,jj,Hj(b,bw(l)),null,kM))}be.isString(f)||(f=f?"cors":"omit"),m=new Request(e,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let O=await fetch(m);const w=NM&&(u==="stream"||u==="response");if(NM&&(s||w)){const x={};["status","statusText","headers"].forEach($=>{x[$]=O[$]});const T=be.toFiniteNumber(O.headers.get("content-length"));O=new Response(Qj(O.body,jj,s&&Hj(T,bw(s,!0)),w&&y,kM),x)}u=u||"text";let S=await Ow[be.findKey(Ow,u)||"text"](O,t);return!w&&y(),g&&g(),await new Promise((x,T)=>{Vj(x,T,{data:S,headers:ji.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})})}catch(O){throw y(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new xt("Network Error",xt.ERR_NETWORK,t,m),{cause:O.cause||O}):xt.from(O,O&&O.code,t,m)}})};be.forEach(LM,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Uj=t=>`- ${t}`,$3e=t=>be.isFunction(t)||t===null||t===!1,Zj={getAdapter:t=>{t=be.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!$3e(n)&&(r=LM[(a=String(n)).toLowerCase()],r===void 0))throw new xt(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
  280. `+o.map(Uj).join(`
  281. `):" "+Uj(o[0]):"as no adapter specified";throw new xt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:LM};function BM(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Gp(null,t)}function Xj(t){return BM(t),t.headers=ji.from(t.headers),t.data=RM.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Zj.getAdapter(t.adapter||v0.adapter)(t).then(function(r){return BM(t),r.data=RM.call(t,t.transformResponse,r),r.headers=ji.from(r.headers),r},function(r){return Bj(r)||(BM(t),r&&r.response&&(r.response.data=RM.call(t,t.transformResponse,r.response),r.response.headers=ji.from(r.response.headers))),Promise.reject(r)})}const Yj="1.7.2",VM={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{VM[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const qj={};VM.transitional=function(e,n,r){function i(o,a){return"[Axios v"+Yj+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(e===!1)throw new xt(i(a," has been removed"+(n?" in "+n:"")),xt.ERR_DEPRECATED);return n&&!qj[a]&&(qj[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,s):!0}};function A3e(t,e,n){if(typeof t!="object")throw new xt("options must be an object",xt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=t[o],l=s===void 0||a(s,o,t);if(l!==!0)throw new xt("option "+o+" must be "+l,xt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xt("Unknown option "+o,xt.ERR_BAD_OPTION)}}const zM={assertOptions:A3e,validators:VM},Wu=zM.validators;class Qf{constructor(e){this.defaults=e,this.interceptors={request:new Rj,response:new Rj}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
  282. `+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Wf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&zM.assertOptions(r,{silentJSONParsing:Wu.transitional(Wu.boolean),forcedJSONParsing:Wu.transitional(Wu.boolean),clarifyTimeoutError:Wu.transitional(Wu.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:zM.assertOptions(i,{encode:Wu.function,serialize:Wu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[n.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ji.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const g=[Xj.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f<d;)c=c.then(g[f++],g[f++]);return c}d=s.length;let p=n;for(f=0;f<d;){const g=s[f++],v=s[f++];try{p=g(p)}catch(m){v.call(this,m);break}}try{c=Xj.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Wf(this.defaults,e);const n=zj(e.baseURL,e.url);return Dj(n,e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(e){Qf.prototype[e]=function(n,r){return this.request(Wf(r||{},{method:e,url:n,data:(r||{}).data}))}}),be.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,s){return this.request(Wf(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Qf.prototype[e]=n(),Qf.prototype[e+"Form"]=n(!0)});class FM{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,s){r.reason||(r.reason=new Gp(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new FM(function(i){e=i}),cancel:e}}}function E3e(t){return function(n){return t.apply(null,n)}}function M3e(t){return be.isObject(t)&&t.isAxiosError===!0}const WM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(WM).forEach(([t,e])=>{WM[e]=t});function Kj(t){const e=new Qf(t),n=mj(Qf.prototype.request,e);return be.extend(n,Qf.prototype,e,{allOwnKeys:!0}),be.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Kj(Wf(t,i))},n}const ur=Kj(v0);ur.Axios=Qf,ur.CanceledError=Gp,ur.CancelToken=FM,ur.isCancel=Bj,ur.VERSION=Yj,ur.toFormData=mw,ur.AxiosError=xt,ur.Cancel=ur.CanceledError,ur.all=function(e){return Promise.all(e)},ur.spread=E3e,ur.isAxiosError=M3e,ur.mergeConfig=Wf,ur.AxiosHeaders=ji,ur.formToJSON=t=>Nj(be.isHTMLForm(t)?new FormData(t):t),ur.getAdapter=Zj.getAdapter,ur.HttpStatusCode=WM,ur.default=ur;class I3e{constructor(e,n){this.axiosInstance=ur.create({baseURL:e,timeout:5e3}),this.options=n}get(e,n){return this.request({url:e,method:"GET",...n})}post(e,n,r){return this.request({url:e,method:"POST",data:n,...r})}put(e,n,r){return this.request({url:e,method:"PUT",data:n,...r})}delete(e,n){return this.request({url:e,method:"DELETE",...n})}request(e){e.headers={...e.headers,Authorization:localStorage.getItem("token")||""};const{transformResponse:n}=this.options||{};return new Promise((r,i)=>{this.axiosInstance.request(e).then(o=>{if(n)try{const a=n(o.data,e);r(a)}catch(a){i(a)}r(o.data)}).catch(o=>{i(o)})})}}var D3e={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const R3e=D3e.VITE_APP_BASE_URL,k3e=(t,e)=>{if(e.responseType==="blob")return t;if(t.code===1)return t.result;throw Nf.warning(t.error),new Error(t.error)},Jj=new I3e(R3e,{transformResponse:k3e});function N3e(t){return Jj.post("/api/table/GetAllTablesAndViews",t)}function L3e(t){return Jj.post("/api/system/GetAllBasicData",t)}const B3e=t=>{const e=h.ref(),n=h.ref(!1),r=h.ref(""),i=h.ref(""),o=h.ref(),a=h.ref("");t==="view"&&(e.value=[{label:"系统视图",children:[]},{label:"数据源视图",children:[]}],n.value=!0,N3e({types:t}).then(u=>{const{bpmViewTables:c=[]}=u||{};c.forEach(f=>{const{name:d,schemaName:p,type:g,id:v}=f;e.value[g-1]&&e.value[g-1].children.push({label:`${p}(${d})`,value:p,id:v})})}).finally(()=>{n.value=!1}));const s=(u,c)=>{if(u.level===0)return c([{name:"基础数据"}]);const f=u.data;L3e({currentPage:1,pageSize:999,orderByProperty:"id",Ascending:!0,totalPage:1,totalCount:1,filters:f!=null&&f.id?[{name:"parentId",value:f.id}]:null}).then(d=>{c(d||[])})},l=()=>t==="table"?React.createElement(fF,{ref:o,lazy:!0,load:s,props:{label:u=>u.path?`${u.path}(${u.name})`:u.name,children:"children"},"onNode-click":u=>{u!=null&&u.path&&(r.value=u.path)},filterNodeMethod:(u,c)=>{var f;return((f=c.path)==null?void 0:f.toUpperCase().includes(u.toUpperCase()))||c.name.toUpperCase().includes(u.toUpperCase())},"empty-text":"暂无数据"}):React.createElement(fF,{ref:o,data:e.value,defaultExpandAll:!0,"onNode-click":u=>{u!=null&&u.value&&u.id&&(r.value=u.value,a.value=u.id)},filterNodeMethod:(u,c)=>{var f;return(f=c.label)==null?void 0:f.includes(u)},"empty-text":"暂无数据"});return new Promise((u,c)=>{const f=document.createElement("div"),d=h.createApp({render(){return React.createElement(FTe,{modelValue:!0,title:t==="table"?"选择数据集":"选择视图表",width:"800px",style:{height:"600px"},"v-slots":{footer:()=>React.createElement(L$,{type:"primary",disabled:!r.value,onClick:()=>{u({value:r.value}),document.body.removeChild(f)}},"确定")},onClose:()=>{c("close"),document.body.removeChild(f)}},React.createElement(O1,{size:"small",placeholder:"请输入关键字进行搜索","v-model":i.value,onInput:()=>{var p;(p=o.value)==null||p.filter(i.value)},style:{marginBottom:"10px",height:"35px",fontSize:"14px"}}),React.createElement("div",{style:{height:"379px",overflow:"auto"}},l()))}});document.body.appendChild(f),d.mount(f)})};function QM(t){const e={};for(const n in t)if(typeof t[n]=="object")switch(n){case"background":t[n].type==="none"&&(e[n]="none"),t[n].type==="color"&&(e[n]=t[n].color),t[n].type==="image"&&(e[n+"-image"]=`url(${t[n].image}) no-repeat center center`,e[n+"-size"]=t[n].fillType);break;case"border":t[n].type==="none"?e[n]="none":e[n]=`${t[n].width}px ${t[n].type} ${t[n].color}`;break;case"borderRadius":t[n].type==="all"?e[n]=`${t[n].value}${t[n].unit}`:e[n]=`${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`;break;case"boxShadow":t[n].enabled&&(e[n]=`${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset?"inset":""}`);break;case"backdropFilter":t[n].enabled&&(e[n]=`blur(${t[n].blur}px)`);break}else typeof t[n]=="number"?e[n]=t[n]+"px":typeof t[n]=="string"&&(e[n]=t[n]);return e}var ww={exports:{}};/**
  283. * @license
  284. * Lodash <https://lodash.com/>
  285. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  286. * Released under MIT license <https://lodash.com/license>
  287. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  288. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  289. */ww.exports,function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,p=4,g=1,v=2,m=1,y=2,b=4,O=8,w=16,S=32,x=64,T=128,$=256,A=512,P=30,M="...",I=800,R=16,L=1,D=2,B=3,F=1/0,z=9007199254740991,W=17976931348623157e292,j=NaN,H=4294967295,Z=H-1,J=H>>>1,se=[["ary",T],["bind",m],["bindKey",y],["curry",O],["curryRight",w],["flip",A],["partial",S],["partialRight",x],["rearg",$]],oe="[object Arguments]",de="[object Array]",ie="[object AsyncFunction]",ue="[object Boolean]",ee="[object Date]",X="[object DOMException]",Y="[object Error]",le="[object Function]",ve="[object GeneratorFunction]",ye="[object Map]",Ne="[object Number]",Be="[object Null]",Me="[object Object]",$e="[object Promise]",_e="[object Proxy]",De="[object RegExp]",Fe="[object Set]",ct="[object String]",vt="[object Symbol]",zt="[object Undefined]",we="[object WeakMap]",rt="[object WeakSet]",Mt="[object ArrayBuffer]",mn="[object DataView]",pn="[object Float32Array]",pr="[object Float64Array]",Ni="[object Int8Array]",du="[object Int16Array]",hu="[object Int32Array]",Uc="[object Uint8Array]",Th="[object Uint8ClampedArray]",vl="[object Uint16Array]",Ph="[object Uint32Array]",$h=/\b__p \+= '';/g,x_=/\b(__p \+=) '' \+/g,Zc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,C_=/&(?:amp|lt|gt|quot|#39);/g,E3=/[&<>"']/g,Spe=RegExp(C_.source),xpe=RegExp(E3.source),Cpe=/<%-([\s\S]+?)%>/g,Tpe=/<%([\s\S]+?)%>/g,Vv=/<%=([\s\S]+?)%>/g,T_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EP=/^\w*$/,zv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P_=/[\\^$.*+?()[\]{}|]/g,M3=RegExp(P_.source),$_=/^\s+/,I3=/\s/,D3=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,R3=/\{\n\/\* \[wrapped with (.+)\] \*/,MP=/,? & /,Ah=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,A_=/[()=,{}\[\]\/\s]/,IP=/\\(\\)?/g,DP=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,E_=/\w*$/,RP=/^[-+]0x[0-9a-f]+$/i,k3=/^0b[01]+$/i,N3=/^\[object .+?Constructor\]$/,L3=/^0o[0-7]+$/i,kP=/^(?:0|[1-9]\d*)$/,M_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Aa=/($^)/,NP=/['\n\r\u2028\u2029\\]/g,Fv="\\ud800-\\udfff",Iwt="\\u0300-\\u036f",Dwt="\\ufe20-\\ufe2f",Rwt="\\u20d0-\\u20ff",Ppe=Iwt+Dwt+Rwt,$pe="\\u2700-\\u27bf",Ape="a-z\\xdf-\\xf6\\xf8-\\xff",kwt="\\xac\\xb1\\xd7\\xf7",Nwt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lwt="\\u2000-\\u206f",Bwt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Epe="A-Z\\xc0-\\xd6\\xd8-\\xde",Mpe="\\ufe0e\\ufe0f",Ipe=kwt+Nwt+Lwt+Bwt,B3="['’]",Vwt="["+Fv+"]",Dpe="["+Ipe+"]",LP="["+Ppe+"]",Rpe="\\d+",zwt="["+$pe+"]",kpe="["+Ape+"]",Npe="[^"+Fv+Ipe+Rpe+$pe+Ape+Epe+"]",V3="\\ud83c[\\udffb-\\udfff]",Fwt="(?:"+LP+"|"+V3+")",Lpe="[^"+Fv+"]",z3="(?:\\ud83c[\\udde6-\\uddff]){2}",F3="[\\ud800-\\udbff][\\udc00-\\udfff]",Wv="["+Epe+"]",Bpe="\\u200d",Vpe="(?:"+kpe+"|"+Npe+")",Wwt="(?:"+Wv+"|"+Npe+")",zpe="(?:"+B3+"(?:d|ll|m|re|s|t|ve))?",Fpe="(?:"+B3+"(?:D|LL|M|RE|S|T|VE))?",Wpe=Fwt+"?",Qpe="["+Mpe+"]?",Qwt="(?:"+Bpe+"(?:"+[Lpe,z3,F3].join("|")+")"+Qpe+Wpe+")*",Hwt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gwt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hpe=Qpe+Wpe+Qwt,jwt="(?:"+[zwt,z3,F3].join("|")+")"+Hpe,Uwt="(?:"+[Lpe+LP+"?",LP,z3,F3,Vwt].join("|")+")",Zwt=RegExp(B3,"g"),Xwt=RegExp(LP,"g"),W3=RegExp(V3+"(?="+V3+")|"+Uwt+Hpe,"g"),Ywt=RegExp([Wv+"?"+kpe+"+"+zpe+"(?="+[Dpe,Wv,"$"].join("|")+")",Wwt+"+"+Fpe+"(?="+[Dpe,Wv+Vpe,"$"].join("|")+")",Wv+"?"+Vpe+"+"+zpe,Wv+"+"+Fpe,Gwt,Hwt,Rpe,jwt].join("|"),"g"),qwt=RegExp("["+Bpe+Fv+Ppe+Mpe+"]"),Kwt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jwt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eSt=-1,Rn={};Rn[pn]=Rn[pr]=Rn[Ni]=Rn[du]=Rn[hu]=Rn[Uc]=Rn[Th]=Rn[vl]=Rn[Ph]=!0,Rn[oe]=Rn[de]=Rn[Mt]=Rn[ue]=Rn[mn]=Rn[ee]=Rn[Y]=Rn[le]=Rn[ye]=Rn[Ne]=Rn[Me]=Rn[De]=Rn[Fe]=Rn[ct]=Rn[we]=!1;var Tn={};Tn[oe]=Tn[de]=Tn[Mt]=Tn[mn]=Tn[ue]=Tn[ee]=Tn[pn]=Tn[pr]=Tn[Ni]=Tn[du]=Tn[hu]=Tn[ye]=Tn[Ne]=Tn[Me]=Tn[De]=Tn[Fe]=Tn[ct]=Tn[vt]=Tn[Uc]=Tn[Th]=Tn[vl]=Tn[Ph]=!0,Tn[Y]=Tn[le]=Tn[we]=!1;var tSt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nSt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rSt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},iSt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oSt=parseFloat,aSt=parseInt,Gpe=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,sSt=typeof self=="object"&&self&&self.Object===Object&&self,Jr=Gpe||sSt||Function("return this")(),Q3=e&&!e.nodeType&&e,Eh=Q3&&!0&&t&&!t.nodeType&&t,jpe=Eh&&Eh.exports===Q3,H3=jpe&&Gpe.process,Ea=function(){try{var ce=Eh&&Eh.require&&Eh.require("util").types;return ce||H3&&H3.binding&&H3.binding("util")}catch{}}(),Upe=Ea&&Ea.isArrayBuffer,Zpe=Ea&&Ea.isDate,Xpe=Ea&&Ea.isMap,Ype=Ea&&Ea.isRegExp,qpe=Ea&&Ea.isSet,Kpe=Ea&&Ea.isTypedArray;function Ro(ce,Oe,pe){switch(pe.length){case 0:return ce.call(Oe);case 1:return ce.call(Oe,pe[0]);case 2:return ce.call(Oe,pe[0],pe[1]);case 3:return ce.call(Oe,pe[0],pe[1],pe[2])}return ce.apply(Oe,pe)}function lSt(ce,Oe,pe,Xe){for(var wt=-1,sn=ce==null?0:ce.length;++wt<sn;){var Pr=ce[wt];Oe(Xe,Pr,pe(Pr),ce)}return Xe}function Ma(ce,Oe){for(var pe=-1,Xe=ce==null?0:ce.length;++pe<Xe&&Oe(ce[pe],pe,ce)!==!1;);return ce}function uSt(ce,Oe){for(var pe=ce==null?0:ce.length;pe--&&Oe(ce[pe],pe,ce)!==!1;);return ce}function Jpe(ce,Oe){for(var pe=-1,Xe=ce==null?0:ce.length;++pe<Xe;)if(!Oe(ce[pe],pe,ce))return!1;return!0}function Xc(ce,Oe){for(var pe=-1,Xe=ce==null?0:ce.length,wt=0,sn=[];++pe<Xe;){var Pr=ce[pe];Oe(Pr,pe,ce)&&(sn[wt++]=Pr)}return sn}function BP(ce,Oe){var pe=ce==null?0:ce.length;return!!pe&&Qv(ce,Oe,0)>-1}function G3(ce,Oe,pe){for(var Xe=-1,wt=ce==null?0:ce.length;++Xe<wt;)if(pe(Oe,ce[Xe]))return!0;return!1}function Vn(ce,Oe){for(var pe=-1,Xe=ce==null?0:ce.length,wt=Array(Xe);++pe<Xe;)wt[pe]=Oe(ce[pe],pe,ce);return wt}function Yc(ce,Oe){for(var pe=-1,Xe=Oe.length,wt=ce.length;++pe<Xe;)ce[wt+pe]=Oe[pe];return ce}function j3(ce,Oe,pe,Xe){var wt=-1,sn=ce==null?0:ce.length;for(Xe&&sn&&(pe=ce[++wt]);++wt<sn;)pe=Oe(pe,ce[wt],wt,ce);return pe}function cSt(ce,Oe,pe,Xe){var wt=ce==null?0:ce.length;for(Xe&&wt&&(pe=ce[--wt]);wt--;)pe=Oe(pe,ce[wt],wt,ce);return pe}function U3(ce,Oe){for(var pe=-1,Xe=ce==null?0:ce.length;++pe<Xe;)if(Oe(ce[pe],pe,ce))return!0;return!1}var fSt=Z3("length");function dSt(ce){return ce.split("")}function hSt(ce){return ce.match(Ah)||[]}function ege(ce,Oe,pe){var Xe;return pe(ce,function(wt,sn,Pr){if(Oe(wt,sn,Pr))return Xe=sn,!1}),Xe}function VP(ce,Oe,pe,Xe){for(var wt=ce.length,sn=pe+(Xe?1:-1);Xe?sn--:++sn<wt;)if(Oe(ce[sn],sn,ce))return sn;return-1}function Qv(ce,Oe,pe){return Oe===Oe?CSt(ce,Oe,pe):VP(ce,tge,pe)}function pSt(ce,Oe,pe,Xe){for(var wt=pe-1,sn=ce.length;++wt<sn;)if(Xe(ce[wt],Oe))return wt;return-1}function tge(ce){return ce!==ce}function nge(ce,Oe){var pe=ce==null?0:ce.length;return pe?Y3(ce,Oe)/pe:j}function Z3(ce){return function(Oe){return Oe==null?n:Oe[ce]}}function X3(ce){return function(Oe){return ce==null?n:ce[Oe]}}function rge(ce,Oe,pe,Xe,wt){return wt(ce,function(sn,Pr,wn){pe=Xe?(Xe=!1,sn):Oe(pe,sn,Pr,wn)}),pe}function gSt(ce,Oe){var pe=ce.length;for(ce.sort(Oe);pe--;)ce[pe]=ce[pe].value;return ce}function Y3(ce,Oe){for(var pe,Xe=-1,wt=ce.length;++Xe<wt;){var sn=Oe(ce[Xe]);sn!==n&&(pe=pe===n?sn:pe+sn)}return pe}function q3(ce,Oe){for(var pe=-1,Xe=Array(ce);++pe<ce;)Xe[pe]=Oe(pe);return Xe}function vSt(ce,Oe){return Vn(Oe,function(pe){return[pe,ce[pe]]})}function ige(ce){return ce&&ce.slice(0,lge(ce)+1).replace($_,"")}function ko(ce){return function(Oe){return ce(Oe)}}function K3(ce,Oe){return Vn(Oe,function(pe){return ce[pe]})}function I_(ce,Oe){return ce.has(Oe)}function oge(ce,Oe){for(var pe=-1,Xe=ce.length;++pe<Xe&&Qv(Oe,ce[pe],0)>-1;);return pe}function age(ce,Oe){for(var pe=ce.length;pe--&&Qv(Oe,ce[pe],0)>-1;);return pe}function mSt(ce,Oe){for(var pe=ce.length,Xe=0;pe--;)ce[pe]===Oe&&++Xe;return Xe}var ySt=X3(tSt),bSt=X3(nSt);function _St(ce){return"\\"+iSt[ce]}function OSt(ce,Oe){return ce==null?n:ce[Oe]}function Hv(ce){return qwt.test(ce)}function wSt(ce){return Kwt.test(ce)}function SSt(ce){for(var Oe,pe=[];!(Oe=ce.next()).done;)pe.push(Oe.value);return pe}function J3(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Xe,wt){pe[++Oe]=[wt,Xe]}),pe}function sge(ce,Oe){return function(pe){return ce(Oe(pe))}}function qc(ce,Oe){for(var pe=-1,Xe=ce.length,wt=0,sn=[];++pe<Xe;){var Pr=ce[pe];(Pr===Oe||Pr===c)&&(ce[pe]=c,sn[wt++]=pe)}return sn}function zP(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Xe){pe[++Oe]=Xe}),pe}function xSt(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Xe){pe[++Oe]=[Xe,Xe]}),pe}function CSt(ce,Oe,pe){for(var Xe=pe-1,wt=ce.length;++Xe<wt;)if(ce[Xe]===Oe)return Xe;return-1}function TSt(ce,Oe,pe){for(var Xe=pe+1;Xe--;)if(ce[Xe]===Oe)return Xe;return Xe}function Gv(ce){return Hv(ce)?$St(ce):fSt(ce)}function ys(ce){return Hv(ce)?ASt(ce):dSt(ce)}function lge(ce){for(var Oe=ce.length;Oe--&&I3.test(ce.charAt(Oe)););return Oe}var PSt=X3(rSt);function $St(ce){for(var Oe=W3.lastIndex=0;W3.test(ce);)++Oe;return Oe}function ASt(ce){return ce.match(W3)||[]}function ESt(ce){return ce.match(Ywt)||[]}var MSt=function ce(Oe){Oe=Oe==null?Jr:jv.defaults(Jr.Object(),Oe,jv.pick(Jr,Jwt));var pe=Oe.Array,Xe=Oe.Date,wt=Oe.Error,sn=Oe.Function,Pr=Oe.Math,wn=Oe.Object,eB=Oe.RegExp,ISt=Oe.String,Ia=Oe.TypeError,FP=pe.prototype,DSt=sn.prototype,Uv=wn.prototype,WP=Oe["__core-js_shared__"],QP=DSt.toString,gn=Uv.hasOwnProperty,RSt=0,uge=function(){var _=/[^.]+$/.exec(WP&&WP.keys&&WP.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),HP=Uv.toString,kSt=QP.call(wn),NSt=Jr._,LSt=eB("^"+QP.call(gn).replace(P_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),GP=jpe?Oe.Buffer:n,Kc=Oe.Symbol,jP=Oe.Uint8Array,cge=GP?GP.allocUnsafe:n,UP=sge(wn.getPrototypeOf,wn),fge=wn.create,dge=Uv.propertyIsEnumerable,ZP=FP.splice,hge=Kc?Kc.isConcatSpreadable:n,D_=Kc?Kc.iterator:n,Mh=Kc?Kc.toStringTag:n,XP=function(){try{var _=Nh(wn,"defineProperty");return _({},"",{}),_}catch{}}(),BSt=Oe.clearTimeout!==Jr.clearTimeout&&Oe.clearTimeout,VSt=Xe&&Xe.now!==Jr.Date.now&&Xe.now,zSt=Oe.setTimeout!==Jr.setTimeout&&Oe.setTimeout,YP=Pr.ceil,qP=Pr.floor,tB=wn.getOwnPropertySymbols,FSt=GP?GP.isBuffer:n,pge=Oe.isFinite,WSt=FP.join,QSt=sge(wn.keys,wn),$r=Pr.max,pi=Pr.min,HSt=Xe.now,GSt=Oe.parseInt,gge=Pr.random,jSt=FP.reverse,nB=Nh(Oe,"DataView"),R_=Nh(Oe,"Map"),rB=Nh(Oe,"Promise"),Zv=Nh(Oe,"Set"),k_=Nh(Oe,"WeakMap"),N_=Nh(wn,"create"),KP=k_&&new k_,Xv={},USt=Lh(nB),ZSt=Lh(R_),XSt=Lh(rB),YSt=Lh(Zv),qSt=Lh(k_),JP=Kc?Kc.prototype:n,L_=JP?JP.valueOf:n,vge=JP?JP.toString:n;function G(_){if(qn(_)&&!St(_)&&!(_ instanceof jt)){if(_ instanceof Da)return _;if(gn.call(_,"__wrapped__"))return mve(_)}return new Da(_)}var Yv=function(){function _(){}return function(C){if(!Hn(C))return{};if(fge)return fge(C);_.prototype=C;var E=new _;return _.prototype=n,E}}();function e2(){}function Da(_,C){this.__wrapped__=_,this.__actions__=[],this.__chain__=!!C,this.__index__=0,this.__values__=n}G.templateSettings={escape:Cpe,evaluate:Tpe,interpolate:Vv,variable:"",imports:{_:G}},G.prototype=e2.prototype,G.prototype.constructor=G,Da.prototype=Yv(e2.prototype),Da.prototype.constructor=Da;function jt(_){this.__wrapped__=_,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function KSt(){var _=new jt(this.__wrapped__);return _.__actions__=so(this.__actions__),_.__dir__=this.__dir__,_.__filtered__=this.__filtered__,_.__iteratees__=so(this.__iteratees__),_.__takeCount__=this.__takeCount__,_.__views__=so(this.__views__),_}function JSt(){if(this.__filtered__){var _=new jt(this);_.__dir__=-1,_.__filtered__=!0}else _=this.clone(),_.__dir__*=-1;return _}function ext(){var _=this.__wrapped__.value(),C=this.__dir__,E=St(_),N=C<0,Q=E?_.length:0,U=dCt(0,Q,this.__views__),q=U.start,te=U.end,fe=te-q,xe=N?te:q-1,Te=this.__iteratees__,Ae=Te.length,We=0,et=pi(fe,this.__takeCount__);if(!E||!N&&Q==fe&&et==fe)return zge(_,this.__actions__);var pt=[];e:for(;fe--&&We<et;){xe+=C;for(var kt=-1,gt=_[xe];++kt<Ae;){var Ft=Te[kt],Kt=Ft.iteratee,Bo=Ft.type,Vi=Kt(gt);if(Bo==D)gt=Vi;else if(!Vi){if(Bo==L)continue e;break e}}pt[We++]=gt}return pt}jt.prototype=Yv(e2.prototype),jt.prototype.constructor=jt;function Ih(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C<E;){var N=_[C];this.set(N[0],N[1])}}function txt(){this.__data__=N_?N_(null):{},this.size=0}function nxt(_){var C=this.has(_)&&delete this.__data__[_];return this.size-=C?1:0,C}function rxt(_){var C=this.__data__;if(N_){var E=C[_];return E===l?n:E}return gn.call(C,_)?C[_]:n}function ixt(_){var C=this.__data__;return N_?C[_]!==n:gn.call(C,_)}function oxt(_,C){var E=this.__data__;return this.size+=this.has(_)?0:1,E[_]=N_&&C===n?l:C,this}Ih.prototype.clear=txt,Ih.prototype.delete=nxt,Ih.prototype.get=rxt,Ih.prototype.has=ixt,Ih.prototype.set=oxt;function pu(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C<E;){var N=_[C];this.set(N[0],N[1])}}function axt(){this.__data__=[],this.size=0}function sxt(_){var C=this.__data__,E=t2(C,_);if(E<0)return!1;var N=C.length-1;return E==N?C.pop():ZP.call(C,E,1),--this.size,!0}function lxt(_){var C=this.__data__,E=t2(C,_);return E<0?n:C[E][1]}function uxt(_){return t2(this.__data__,_)>-1}function cxt(_,C){var E=this.__data__,N=t2(E,_);return N<0?(++this.size,E.push([_,C])):E[N][1]=C,this}pu.prototype.clear=axt,pu.prototype.delete=sxt,pu.prototype.get=lxt,pu.prototype.has=uxt,pu.prototype.set=cxt;function gu(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C<E;){var N=_[C];this.set(N[0],N[1])}}function fxt(){this.size=0,this.__data__={hash:new Ih,map:new(R_||pu),string:new Ih}}function dxt(_){var C=h2(this,_).delete(_);return this.size-=C?1:0,C}function hxt(_){return h2(this,_).get(_)}function pxt(_){return h2(this,_).has(_)}function gxt(_,C){var E=h2(this,_),N=E.size;return E.set(_,C),this.size+=E.size==N?0:1,this}gu.prototype.clear=fxt,gu.prototype.delete=dxt,gu.prototype.get=hxt,gu.prototype.has=pxt,gu.prototype.set=gxt;function Dh(_){var C=-1,E=_==null?0:_.length;for(this.__data__=new gu;++C<E;)this.add(_[C])}function vxt(_){return this.__data__.set(_,l),this}function mxt(_){return this.__data__.has(_)}Dh.prototype.add=Dh.prototype.push=vxt,Dh.prototype.has=mxt;function bs(_){var C=this.__data__=new pu(_);this.size=C.size}function yxt(){this.__data__=new pu,this.size=0}function bxt(_){var C=this.__data__,E=C.delete(_);return this.size=C.size,E}function _xt(_){return this.__data__.get(_)}function Oxt(_){return this.__data__.has(_)}function wxt(_,C){var E=this.__data__;if(E instanceof pu){var N=E.__data__;if(!R_||N.length<i-1)return N.push([_,C]),this.size=++E.size,this;E=this.__data__=new gu(N)}return E.set(_,C),this.size=E.size,this}bs.prototype.clear=yxt,bs.prototype.delete=bxt,bs.prototype.get=_xt,bs.prototype.has=Oxt,bs.prototype.set=wxt;function mge(_,C){var E=St(_),N=!E&&Bh(_),Q=!E&&!N&&rf(_),U=!E&&!N&&!Q&&em(_),q=E||N||Q||U,te=q?q3(_.length,ISt):[],fe=te.length;for(var xe in _)(C||gn.call(_,xe))&&!(q&&(xe=="length"||Q&&(xe=="offset"||xe=="parent")||U&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||bu(xe,fe)))&&te.push(xe);return te}function yge(_){var C=_.length;return C?_[pB(0,C-1)]:n}function Sxt(_,C){return p2(so(_),Rh(C,0,_.length))}function xxt(_){return p2(so(_))}function iB(_,C,E){(E!==n&&!_s(_[C],E)||E===n&&!(C in _))&&vu(_,C,E)}function B_(_,C,E){var N=_[C];(!(gn.call(_,C)&&_s(N,E))||E===n&&!(C in _))&&vu(_,C,E)}function t2(_,C){for(var E=_.length;E--;)if(_s(_[E][0],C))return E;return-1}function Cxt(_,C,E,N){return Jc(_,function(Q,U,q){C(N,Q,E(Q),q)}),N}function bge(_,C){return _&&yl(C,Nr(C),_)}function Txt(_,C){return _&&yl(C,uo(C),_)}function vu(_,C,E){C=="__proto__"&&XP?XP(_,C,{configurable:!0,enumerable:!0,value:E,writable:!0}):_[C]=E}function oB(_,C){for(var E=-1,N=C.length,Q=pe(N),U=_==null;++E<N;)Q[E]=U?n:VB(_,C[E]);return Q}function Rh(_,C,E){return _===_&&(E!==n&&(_=_<=E?_:E),C!==n&&(_=_>=C?_:C)),_}function Ra(_,C,E,N,Q,U){var q,te=C&f,fe=C&d,xe=C&p;if(E&&(q=Q?E(_,N,Q,U):E(_)),q!==n)return q;if(!Hn(_))return _;var Te=St(_);if(Te){if(q=pCt(_),!te)return so(_,q)}else{var Ae=gi(_),We=Ae==le||Ae==ve;if(rf(_))return Qge(_,te);if(Ae==Me||Ae==oe||We&&!Q){if(q=fe||We?{}:lve(_),!te)return fe?rCt(_,Txt(q,_)):nCt(_,bge(q,_))}else{if(!Tn[Ae])return Q?_:{};q=gCt(_,Ae,te)}}U||(U=new bs);var et=U.get(_);if(et)return et;U.set(_,q),Lve(_)?_.forEach(function(gt){q.add(Ra(gt,C,E,gt,_,U))}):kve(_)&&_.forEach(function(gt,Ft){q.set(Ft,Ra(gt,C,E,Ft,_,U))});var pt=xe?fe?CB:xB:fe?uo:Nr,kt=Te?n:pt(_);return Ma(kt||_,function(gt,Ft){kt&&(Ft=gt,gt=_[Ft]),B_(q,Ft,Ra(gt,C,E,Ft,_,U))}),q}function Pxt(_){var C=Nr(_);return function(E){return _ge(E,_,C)}}function _ge(_,C,E){var N=E.length;if(_==null)return!N;for(_=wn(_);N--;){var Q=E[N],U=C[Q],q=_[Q];if(q===n&&!(Q in _)||!U(q))return!1}return!0}function Oge(_,C,E){if(typeof _!="function")throw new Ia(a);return G_(function(){_.apply(n,E)},C)}function V_(_,C,E,N){var Q=-1,U=BP,q=!0,te=_.length,fe=[],xe=C.length;if(!te)return fe;E&&(C=Vn(C,ko(E))),N?(U=G3,q=!1):C.length>=i&&(U=I_,q=!1,C=new Dh(C));e:for(;++Q<te;){var Te=_[Q],Ae=E==null?Te:E(Te);if(Te=N||Te!==0?Te:0,q&&Ae===Ae){for(var We=xe;We--;)if(C[We]===Ae)continue e;fe.push(Te)}else U(C,Ae,N)||fe.push(Te)}return fe}var Jc=Zge(ml),wge=Zge(sB,!0);function $xt(_,C){var E=!0;return Jc(_,function(N,Q,U){return E=!!C(N,Q,U),E}),E}function n2(_,C,E){for(var N=-1,Q=_.length;++N<Q;){var U=_[N],q=C(U);if(q!=null&&(te===n?q===q&&!Lo(q):E(q,te)))var te=q,fe=U}return fe}function Axt(_,C,E,N){var Q=_.length;for(E=It(E),E<0&&(E=-E>Q?0:Q+E),N=N===n||N>Q?Q:It(N),N<0&&(N+=Q),N=E>N?0:Vve(N);E<N;)_[E++]=C;return _}function Sge(_,C){var E=[];return Jc(_,function(N,Q,U){C(N,Q,U)&&E.push(N)}),E}function ei(_,C,E,N,Q){var U=-1,q=_.length;for(E||(E=mCt),Q||(Q=[]);++U<q;){var te=_[U];C>0&&E(te)?C>1?ei(te,C-1,E,N,Q):Yc(Q,te):N||(Q[Q.length]=te)}return Q}var aB=Xge(),xge=Xge(!0);function ml(_,C){return _&&aB(_,C,Nr)}function sB(_,C){return _&&xge(_,C,Nr)}function r2(_,C){return Xc(C,function(E){return _u(_[E])})}function kh(_,C){C=tf(C,_);for(var E=0,N=C.length;_!=null&&E<N;)_=_[bl(C[E++])];return E&&E==N?_:n}function Cge(_,C,E){var N=C(_);return St(_)?N:Yc(N,E(_))}function Li(_){return _==null?_===n?zt:Be:Mh&&Mh in wn(_)?fCt(_):xCt(_)}function lB(_,C){return _>C}function Ext(_,C){return _!=null&&gn.call(_,C)}function Mxt(_,C){return _!=null&&C in wn(_)}function Ixt(_,C,E){return _>=pi(C,E)&&_<$r(C,E)}function uB(_,C,E){for(var N=E?G3:BP,Q=_[0].length,U=_.length,q=U,te=pe(U),fe=1/0,xe=[];q--;){var Te=_[q];q&&C&&(Te=Vn(Te,ko(C))),fe=pi(Te.length,fe),te[q]=!E&&(C||Q>=120&&Te.length>=120)?new Dh(q&&Te):n}Te=_[0];var Ae=-1,We=te[0];e:for(;++Ae<Q&&xe.length<fe;){var et=Te[Ae],pt=C?C(et):et;if(et=E||et!==0?et:0,!(We?I_(We,pt):N(xe,pt,E))){for(q=U;--q;){var kt=te[q];if(!(kt?I_(kt,pt):N(_[q],pt,E)))continue e}We&&We.push(pt),xe.push(et)}}return xe}function Dxt(_,C,E,N){return ml(_,function(Q,U,q){C(N,E(Q),U,q)}),N}function z_(_,C,E){C=tf(C,_),_=dve(_,C);var N=_==null?_:_[bl(Na(C))];return N==null?n:Ro(N,_,E)}function Tge(_){return qn(_)&&Li(_)==oe}function Rxt(_){return qn(_)&&Li(_)==Mt}function kxt(_){return qn(_)&&Li(_)==ee}function F_(_,C,E,N,Q){return _===C?!0:_==null||C==null||!qn(_)&&!qn(C)?_!==_&&C!==C:Nxt(_,C,E,N,F_,Q)}function Nxt(_,C,E,N,Q,U){var q=St(_),te=St(C),fe=q?de:gi(_),xe=te?de:gi(C);fe=fe==oe?Me:fe,xe=xe==oe?Me:xe;var Te=fe==Me,Ae=xe==Me,We=fe==xe;if(We&&rf(_)){if(!rf(C))return!1;q=!0,Te=!1}if(We&&!Te)return U||(U=new bs),q||em(_)?ove(_,C,E,N,Q,U):uCt(_,C,fe,E,N,Q,U);if(!(E&g)){var et=Te&&gn.call(_,"__wrapped__"),pt=Ae&&gn.call(C,"__wrapped__");if(et||pt){var kt=et?_.value():_,gt=pt?C.value():C;return U||(U=new bs),Q(kt,gt,E,N,U)}}return We?(U||(U=new bs),cCt(_,C,E,N,Q,U)):!1}function Lxt(_){return qn(_)&&gi(_)==ye}function cB(_,C,E,N){var Q=E.length,U=Q,q=!N;if(_==null)return!U;for(_=wn(_);Q--;){var te=E[Q];if(q&&te[2]?te[1]!==_[te[0]]:!(te[0]in _))return!1}for(;++Q<U;){te=E[Q];var fe=te[0],xe=_[fe],Te=te[1];if(q&&te[2]){if(xe===n&&!(fe in _))return!1}else{var Ae=new bs;if(N)var We=N(xe,Te,fe,_,C,Ae);if(!(We===n?F_(Te,xe,g|v,N,Ae):We))return!1}}return!0}function Pge(_){if(!Hn(_)||bCt(_))return!1;var C=_u(_)?LSt:N3;return C.test(Lh(_))}function Bxt(_){return qn(_)&&Li(_)==De}function Vxt(_){return qn(_)&&gi(_)==Fe}function zxt(_){return qn(_)&&_2(_.length)&&!!Rn[Li(_)]}function $ge(_){return typeof _=="function"?_:_==null?co:typeof _=="object"?St(_)?Mge(_[0],_[1]):Ege(_):Yve(_)}function fB(_){if(!H_(_))return QSt(_);var C=[];for(var E in wn(_))gn.call(_,E)&&E!="constructor"&&C.push(E);return C}function Fxt(_){if(!Hn(_))return SCt(_);var C=H_(_),E=[];for(var N in _)N=="constructor"&&(C||!gn.call(_,N))||E.push(N);return E}function dB(_,C){return _<C}function Age(_,C){var E=-1,N=lo(_)?pe(_.length):[];return Jc(_,function(Q,U,q){N[++E]=C(Q,U,q)}),N}function Ege(_){var C=PB(_);return C.length==1&&C[0][2]?cve(C[0][0],C[0][1]):function(E){return E===_||cB(E,_,C)}}function Mge(_,C){return AB(_)&&uve(C)?cve(bl(_),C):function(E){var N=VB(E,_);return N===n&&N===C?zB(E,_):F_(C,N,g|v)}}function i2(_,C,E,N,Q){_!==C&&aB(C,function(U,q){if(Q||(Q=new bs),Hn(U))Wxt(_,C,q,E,i2,N,Q);else{var te=N?N(MB(_,q),U,q+"",_,C,Q):n;te===n&&(te=U),iB(_,q,te)}},uo)}function Wxt(_,C,E,N,Q,U,q){var te=MB(_,E),fe=MB(C,E),xe=q.get(fe);if(xe){iB(_,E,xe);return}var Te=U?U(te,fe,E+"",_,C,q):n,Ae=Te===n;if(Ae){var We=St(fe),et=!We&&rf(fe),pt=!We&&!et&&em(fe);Te=fe,We||et||pt?St(te)?Te=te:or(te)?Te=so(te):et?(Ae=!1,Te=Qge(fe,!0)):pt?(Ae=!1,Te=Hge(fe,!0)):Te=[]:j_(fe)||Bh(fe)?(Te=te,Bh(te)?Te=zve(te):(!Hn(te)||_u(te))&&(Te=lve(fe))):Ae=!1}Ae&&(q.set(fe,Te),Q(Te,fe,N,U,q),q.delete(fe)),iB(_,E,Te)}function Ige(_,C){var E=_.length;if(E)return C+=C<0?E:0,bu(C,E)?_[C]:n}function Dge(_,C,E){C.length?C=Vn(C,function(U){return St(U)?function(q){return kh(q,U.length===1?U[0]:U)}:U}):C=[co];var N=-1;C=Vn(C,ko(ft()));var Q=Age(_,function(U,q,te){var fe=Vn(C,function(xe){return xe(U)});return{criteria:fe,index:++N,value:U}});return gSt(Q,function(U,q){return tCt(U,q,E)})}function Qxt(_,C){return Rge(_,C,function(E,N){return zB(_,N)})}function Rge(_,C,E){for(var N=-1,Q=C.length,U={};++N<Q;){var q=C[N],te=kh(_,q);E(te,q)&&W_(U,tf(q,_),te)}return U}function Hxt(_){return function(C){return kh(C,_)}}function hB(_,C,E,N){var Q=N?pSt:Qv,U=-1,q=C.length,te=_;for(_===C&&(C=so(C)),E&&(te=Vn(_,ko(E)));++U<q;)for(var fe=0,xe=C[U],Te=E?E(xe):xe;(fe=Q(te,Te,fe,N))>-1;)te!==_&&ZP.call(te,fe,1),ZP.call(_,fe,1);return _}function kge(_,C){for(var E=_?C.length:0,N=E-1;E--;){var Q=C[E];if(E==N||Q!==U){var U=Q;bu(Q)?ZP.call(_,Q,1):mB(_,Q)}}return _}function pB(_,C){return _+qP(gge()*(C-_+1))}function Gxt(_,C,E,N){for(var Q=-1,U=$r(YP((C-_)/(E||1)),0),q=pe(U);U--;)q[N?U:++Q]=_,_+=E;return q}function gB(_,C){var E="";if(!_||C<1||C>z)return E;do C%2&&(E+=_),C=qP(C/2),C&&(_+=_);while(C);return E}function Nt(_,C){return IB(fve(_,C,co),_+"")}function jxt(_){return yge(tm(_))}function Uxt(_,C){var E=tm(_);return p2(E,Rh(C,0,E.length))}function W_(_,C,E,N){if(!Hn(_))return _;C=tf(C,_);for(var Q=-1,U=C.length,q=U-1,te=_;te!=null&&++Q<U;){var fe=bl(C[Q]),xe=E;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return _;if(Q!=q){var Te=te[fe];xe=N?N(Te,fe,te):n,xe===n&&(xe=Hn(Te)?Te:bu(C[Q+1])?[]:{})}B_(te,fe,xe),te=te[fe]}return _}var Nge=KP?function(_,C){return KP.set(_,C),_}:co,Zxt=XP?function(_,C){return XP(_,"toString",{configurable:!0,enumerable:!1,value:WB(C),writable:!0})}:co;function Xxt(_){return p2(tm(_))}function ka(_,C,E){var N=-1,Q=_.length;C<0&&(C=-C>Q?0:Q+C),E=E>Q?Q:E,E<0&&(E+=Q),Q=C>E?0:E-C>>>0,C>>>=0;for(var U=pe(Q);++N<Q;)U[N]=_[N+C];return U}function Yxt(_,C){var E;return Jc(_,function(N,Q,U){return E=C(N,Q,U),!E}),!!E}function o2(_,C,E){var N=0,Q=_==null?N:_.length;if(typeof C=="number"&&C===C&&Q<=J){for(;N<Q;){var U=N+Q>>>1,q=_[U];q!==null&&!Lo(q)&&(E?q<=C:q<C)?N=U+1:Q=U}return Q}return vB(_,C,co,E)}function vB(_,C,E,N){var Q=0,U=_==null?0:_.length;if(U===0)return 0;C=E(C);for(var q=C!==C,te=C===null,fe=Lo(C),xe=C===n;Q<U;){var Te=qP((Q+U)/2),Ae=E(_[Te]),We=Ae!==n,et=Ae===null,pt=Ae===Ae,kt=Lo(Ae);if(q)var gt=N||pt;else xe?gt=pt&&(N||We):te?gt=pt&&We&&(N||!et):fe?gt=pt&&We&&!et&&(N||!kt):et||kt?gt=!1:gt=N?Ae<=C:Ae<C;gt?Q=Te+1:U=Te}return pi(U,Z)}function Lge(_,C){for(var E=-1,N=_.length,Q=0,U=[];++E<N;){var q=_[E],te=C?C(q):q;if(!E||!_s(te,fe)){var fe=te;U[Q++]=q===0?0:q}}return U}function Bge(_){return typeof _=="number"?_:Lo(_)?j:+_}function No(_){if(typeof _=="string")return _;if(St(_))return Vn(_,No)+"";if(Lo(_))return vge?vge.call(_):"";var C=_+"";return C=="0"&&1/_==-F?"-0":C}function ef(_,C,E){var N=-1,Q=BP,U=_.length,q=!0,te=[],fe=te;if(E)q=!1,Q=G3;else if(U>=i){var xe=C?null:sCt(_);if(xe)return zP(xe);q=!1,Q=I_,fe=new Dh}else fe=C?[]:te;e:for(;++N<U;){var Te=_[N],Ae=C?C(Te):Te;if(Te=E||Te!==0?Te:0,q&&Ae===Ae){for(var We=fe.length;We--;)if(fe[We]===Ae)continue e;C&&fe.push(Ae),te.push(Te)}else Q(fe,Ae,E)||(fe!==te&&fe.push(Ae),te.push(Te))}return te}function mB(_,C){return C=tf(C,_),_=dve(_,C),_==null||delete _[bl(Na(C))]}function Vge(_,C,E,N){return W_(_,C,E(kh(_,C)),N)}function a2(_,C,E,N){for(var Q=_.length,U=N?Q:-1;(N?U--:++U<Q)&&C(_[U],U,_););return E?ka(_,N?0:U,N?U+1:Q):ka(_,N?U+1:0,N?Q:U)}function zge(_,C){var E=_;return E instanceof jt&&(E=E.value()),j3(C,function(N,Q){return Q.func.apply(Q.thisArg,Yc([N],Q.args))},E)}function yB(_,C,E){var N=_.length;if(N<2)return N?ef(_[0]):[];for(var Q=-1,U=pe(N);++Q<N;)for(var q=_[Q],te=-1;++te<N;)te!=Q&&(U[Q]=V_(U[Q]||q,_[te],C,E));return ef(ei(U,1),C,E)}function Fge(_,C,E){for(var N=-1,Q=_.length,U=C.length,q={};++N<Q;){var te=N<U?C[N]:n;E(q,_[N],te)}return q}function bB(_){return or(_)?_:[]}function _B(_){return typeof _=="function"?_:co}function tf(_,C){return St(_)?_:AB(_,C)?[_]:vve(cn(_))}var qxt=Nt;function nf(_,C,E){var N=_.length;return E=E===n?N:E,!C&&E>=N?_:ka(_,C,E)}var Wge=BSt||function(_){return Jr.clearTimeout(_)};function Qge(_,C){if(C)return _.slice();var E=_.length,N=cge?cge(E):new _.constructor(E);return _.copy(N),N}function OB(_){var C=new _.constructor(_.byteLength);return new jP(C).set(new jP(_)),C}function Kxt(_,C){var E=C?OB(_.buffer):_.buffer;return new _.constructor(E,_.byteOffset,_.byteLength)}function Jxt(_){var C=new _.constructor(_.source,E_.exec(_));return C.lastIndex=_.lastIndex,C}function eCt(_){return L_?wn(L_.call(_)):{}}function Hge(_,C){var E=C?OB(_.buffer):_.buffer;return new _.constructor(E,_.byteOffset,_.length)}function Gge(_,C){if(_!==C){var E=_!==n,N=_===null,Q=_===_,U=Lo(_),q=C!==n,te=C===null,fe=C===C,xe=Lo(C);if(!te&&!xe&&!U&&_>C||U&&q&&fe&&!te&&!xe||N&&q&&fe||!E&&fe||!Q)return 1;if(!N&&!U&&!xe&&_<C||xe&&E&&Q&&!N&&!U||te&&E&&Q||!q&&Q||!fe)return-1}return 0}function tCt(_,C,E){for(var N=-1,Q=_.criteria,U=C.criteria,q=Q.length,te=E.length;++N<q;){var fe=Gge(Q[N],U[N]);if(fe){if(N>=te)return fe;var xe=E[N];return fe*(xe=="desc"?-1:1)}}return _.index-C.index}function jge(_,C,E,N){for(var Q=-1,U=_.length,q=E.length,te=-1,fe=C.length,xe=$r(U-q,0),Te=pe(fe+xe),Ae=!N;++te<fe;)Te[te]=C[te];for(;++Q<q;)(Ae||Q<U)&&(Te[E[Q]]=_[Q]);for(;xe--;)Te[te++]=_[Q++];return Te}function Uge(_,C,E,N){for(var Q=-1,U=_.length,q=-1,te=E.length,fe=-1,xe=C.length,Te=$r(U-te,0),Ae=pe(Te+xe),We=!N;++Q<Te;)Ae[Q]=_[Q];for(var et=Q;++fe<xe;)Ae[et+fe]=C[fe];for(;++q<te;)(We||Q<U)&&(Ae[et+E[q]]=_[Q++]);return Ae}function so(_,C){var E=-1,N=_.length;for(C||(C=pe(N));++E<N;)C[E]=_[E];return C}function yl(_,C,E,N){var Q=!E;E||(E={});for(var U=-1,q=C.length;++U<q;){var te=C[U],fe=N?N(E[te],_[te],te,E,_):n;fe===n&&(fe=_[te]),Q?vu(E,te,fe):B_(E,te,fe)}return E}function nCt(_,C){return yl(_,$B(_),C)}function rCt(_,C){return yl(_,ave(_),C)}function s2(_,C){return function(E,N){var Q=St(E)?lSt:Cxt,U=C?C():{};return Q(E,_,ft(N,2),U)}}function qv(_){return Nt(function(C,E){var N=-1,Q=E.length,U=Q>1?E[Q-1]:n,q=Q>2?E[2]:n;for(U=_.length>3&&typeof U=="function"?(Q--,U):n,q&&Bi(E[0],E[1],q)&&(U=Q<3?n:U,Q=1),C=wn(C);++N<Q;){var te=E[N];te&&_(C,te,N,U)}return C})}function Zge(_,C){return function(E,N){if(E==null)return E;if(!lo(E))return _(E,N);for(var Q=E.length,U=C?Q:-1,q=wn(E);(C?U--:++U<Q)&&N(q[U],U,q)!==!1;);return E}}function Xge(_){return function(C,E,N){for(var Q=-1,U=wn(C),q=N(C),te=q.length;te--;){var fe=q[_?te:++Q];if(E(U[fe],fe,U)===!1)break}return C}}function iCt(_,C,E){var N=C&m,Q=Q_(_);function U(){var q=this&&this!==Jr&&this instanceof U?Q:_;return q.apply(N?E:this,arguments)}return U}function Yge(_){return function(C){C=cn(C);var E=Hv(C)?ys(C):n,N=E?E[0]:C.charAt(0),Q=E?nf(E,1).join(""):C.slice(1);return N[_]()+Q}}function Kv(_){return function(C){return j3(Zve(Uve(C).replace(Zwt,"")),_,"")}}function Q_(_){return function(){var C=arguments;switch(C.length){case 0:return new _;case 1:return new _(C[0]);case 2:return new _(C[0],C[1]);case 3:return new _(C[0],C[1],C[2]);case 4:return new _(C[0],C[1],C[2],C[3]);case 5:return new _(C[0],C[1],C[2],C[3],C[4]);case 6:return new _(C[0],C[1],C[2],C[3],C[4],C[5]);case 7:return new _(C[0],C[1],C[2],C[3],C[4],C[5],C[6])}var E=Yv(_.prototype),N=_.apply(E,C);return Hn(N)?N:E}}function oCt(_,C,E){var N=Q_(_);function Q(){for(var U=arguments.length,q=pe(U),te=U,fe=Jv(Q);te--;)q[te]=arguments[te];var xe=U<3&&q[0]!==fe&&q[U-1]!==fe?[]:qc(q,fe);if(U-=xe.length,U<E)return tve(_,C,l2,Q.placeholder,n,q,xe,n,n,E-U);var Te=this&&this!==Jr&&this instanceof Q?N:_;return Ro(Te,this,q)}return Q}function qge(_){return function(C,E,N){var Q=wn(C);if(!lo(C)){var U=ft(E,3);C=Nr(C),E=function(te){return U(Q[te],te,Q)}}var q=_(C,E,N);return q>-1?Q[U?C[q]:q]:n}}function Kge(_){return yu(function(C){var E=C.length,N=E,Q=Da.prototype.thru;for(_&&C.reverse();N--;){var U=C[N];if(typeof U!="function")throw new Ia(a);if(Q&&!q&&d2(U)=="wrapper")var q=new Da([],!0)}for(N=q?N:E;++N<E;){U=C[N];var te=d2(U),fe=te=="wrapper"?TB(U):n;fe&&EB(fe[0])&&fe[1]==(T|O|S|$)&&!fe[4].length&&fe[9]==1?q=q[d2(fe[0])].apply(q,fe[3]):q=U.length==1&&EB(U)?q[te]():q.thru(U)}return function(){var xe=arguments,Te=xe[0];if(q&&xe.length==1&&St(Te))return q.plant(Te).value();for(var Ae=0,We=E?C[Ae].apply(this,xe):Te;++Ae<E;)We=C[Ae].call(this,We);return We}})}function l2(_,C,E,N,Q,U,q,te,fe,xe){var Te=C&T,Ae=C&m,We=C&y,et=C&(O|w),pt=C&A,kt=We?n:Q_(_);function gt(){for(var Ft=arguments.length,Kt=pe(Ft),Bo=Ft;Bo--;)Kt[Bo]=arguments[Bo];if(et)var Vi=Jv(gt),Vo=mSt(Kt,Vi);if(N&&(Kt=jge(Kt,N,Q,et)),U&&(Kt=Uge(Kt,U,q,et)),Ft-=Vo,et&&Ft<xe){var ar=qc(Kt,Vi);return tve(_,C,l2,gt.placeholder,E,Kt,ar,te,fe,xe-Ft)}var Os=Ae?E:this,wu=We?Os[_]:_;return Ft=Kt.length,te?Kt=CCt(Kt,te):pt&&Ft>1&&Kt.reverse(),Te&&fe<Ft&&(Kt.length=fe),this&&this!==Jr&&this instanceof gt&&(wu=kt||Q_(wu)),wu.apply(Os,Kt)}return gt}function Jge(_,C){return function(E,N){return Dxt(E,_,C(N),{})}}function u2(_,C){return function(E,N){var Q;if(E===n&&N===n)return C;if(E!==n&&(Q=E),N!==n){if(Q===n)return N;typeof E=="string"||typeof N=="string"?(E=No(E),N=No(N)):(E=Bge(E),N=Bge(N)),Q=_(E,N)}return Q}}function wB(_){return yu(function(C){return C=Vn(C,ko(ft())),Nt(function(E){var N=this;return _(C,function(Q){return Ro(Q,N,E)})})})}function c2(_,C){C=C===n?" ":No(C);var E=C.length;if(E<2)return E?gB(C,_):C;var N=gB(C,YP(_/Gv(C)));return Hv(C)?nf(ys(N),0,_).join(""):N.slice(0,_)}function aCt(_,C,E,N){var Q=C&m,U=Q_(_);function q(){for(var te=-1,fe=arguments.length,xe=-1,Te=N.length,Ae=pe(Te+fe),We=this&&this!==Jr&&this instanceof q?U:_;++xe<Te;)Ae[xe]=N[xe];for(;fe--;)Ae[xe++]=arguments[++te];return Ro(We,Q?E:this,Ae)}return q}function eve(_){return function(C,E,N){return N&&typeof N!="number"&&Bi(C,E,N)&&(E=N=n),C=Ou(C),E===n?(E=C,C=0):E=Ou(E),N=N===n?C<E?1:-1:Ou(N),Gxt(C,E,N,_)}}function f2(_){return function(C,E){return typeof C=="string"&&typeof E=="string"||(C=La(C),E=La(E)),_(C,E)}}function tve(_,C,E,N,Q,U,q,te,fe,xe){var Te=C&O,Ae=Te?q:n,We=Te?n:q,et=Te?U:n,pt=Te?n:U;C|=Te?S:x,C&=~(Te?x:S),C&b||(C&=~(m|y));var kt=[_,C,Q,et,Ae,pt,We,te,fe,xe],gt=E.apply(n,kt);return EB(_)&&hve(gt,kt),gt.placeholder=N,pve(gt,_,C)}function SB(_){var C=Pr[_];return function(E,N){if(E=La(E),N=N==null?0:pi(It(N),292),N&&pge(E)){var Q=(cn(E)+"e").split("e"),U=C(Q[0]+"e"+(+Q[1]+N));return Q=(cn(U)+"e").split("e"),+(Q[0]+"e"+(+Q[1]-N))}return C(E)}}var sCt=Zv&&1/zP(new Zv([,-0]))[1]==F?function(_){return new Zv(_)}:GB;function nve(_){return function(C){var E=gi(C);return E==ye?J3(C):E==Fe?xSt(C):vSt(C,_(C))}}function mu(_,C,E,N,Q,U,q,te){var fe=C&y;if(!fe&&typeof _!="function")throw new Ia(a);var xe=N?N.length:0;if(xe||(C&=~(S|x),N=Q=n),q=q===n?q:$r(It(q),0),te=te===n?te:It(te),xe-=Q?Q.length:0,C&x){var Te=N,Ae=Q;N=Q=n}var We=fe?n:TB(_),et=[_,C,E,N,Q,Te,Ae,U,q,te];if(We&&wCt(et,We),_=et[0],C=et[1],E=et[2],N=et[3],Q=et[4],te=et[9]=et[9]===n?fe?0:_.length:$r(et[9]-xe,0),!te&&C&(O|w)&&(C&=~(O|w)),!C||C==m)var pt=iCt(_,C,E);else C==O||C==w?pt=oCt(_,C,te):(C==S||C==(m|S))&&!Q.length?pt=aCt(_,C,E,N):pt=l2.apply(n,et);var kt=We?Nge:hve;return pve(kt(pt,et),_,C)}function rve(_,C,E,N){return _===n||_s(_,Uv[E])&&!gn.call(N,E)?C:_}function ive(_,C,E,N,Q,U){return Hn(_)&&Hn(C)&&(U.set(C,_),i2(_,C,n,ive,U),U.delete(C)),_}function lCt(_){return j_(_)?n:_}function ove(_,C,E,N,Q,U){var q=E&g,te=_.length,fe=C.length;if(te!=fe&&!(q&&fe>te))return!1;var xe=U.get(_),Te=U.get(C);if(xe&&Te)return xe==C&&Te==_;var Ae=-1,We=!0,et=E&v?new Dh:n;for(U.set(_,C),U.set(C,_);++Ae<te;){var pt=_[Ae],kt=C[Ae];if(N)var gt=q?N(kt,pt,Ae,C,_,U):N(pt,kt,Ae,_,C,U);if(gt!==n){if(gt)continue;We=!1;break}if(et){if(!U3(C,function(Ft,Kt){if(!I_(et,Kt)&&(pt===Ft||Q(pt,Ft,E,N,U)))return et.push(Kt)})){We=!1;break}}else if(!(pt===kt||Q(pt,kt,E,N,U))){We=!1;break}}return U.delete(_),U.delete(C),We}function uCt(_,C,E,N,Q,U,q){switch(E){case mn:if(_.byteLength!=C.byteLength||_.byteOffset!=C.byteOffset)return!1;_=_.buffer,C=C.buffer;case Mt:return!(_.byteLength!=C.byteLength||!U(new jP(_),new jP(C)));case ue:case ee:case Ne:return _s(+_,+C);case Y:return _.name==C.name&&_.message==C.message;case De:case ct:return _==C+"";case ye:var te=J3;case Fe:var fe=N&g;if(te||(te=zP),_.size!=C.size&&!fe)return!1;var xe=q.get(_);if(xe)return xe==C;N|=v,q.set(_,C);var Te=ove(te(_),te(C),N,Q,U,q);return q.delete(_),Te;case vt:if(L_)return L_.call(_)==L_.call(C)}return!1}function cCt(_,C,E,N,Q,U){var q=E&g,te=xB(_),fe=te.length,xe=xB(C),Te=xe.length;if(fe!=Te&&!q)return!1;for(var Ae=fe;Ae--;){var We=te[Ae];if(!(q?We in C:gn.call(C,We)))return!1}var et=U.get(_),pt=U.get(C);if(et&&pt)return et==C&&pt==_;var kt=!0;U.set(_,C),U.set(C,_);for(var gt=q;++Ae<fe;){We=te[Ae];var Ft=_[We],Kt=C[We];if(N)var Bo=q?N(Kt,Ft,We,C,_,U):N(Ft,Kt,We,_,C,U);if(!(Bo===n?Ft===Kt||Q(Ft,Kt,E,N,U):Bo)){kt=!1;break}gt||(gt=We=="constructor")}if(kt&&!gt){var Vi=_.constructor,Vo=C.constructor;Vi!=Vo&&"constructor"in _&&"constructor"in C&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof Vo=="function"&&Vo instanceof Vo)&&(kt=!1)}return U.delete(_),U.delete(C),kt}function yu(_){return IB(fve(_,n,_ve),_+"")}function xB(_){return Cge(_,Nr,$B)}function CB(_){return Cge(_,uo,ave)}var TB=KP?function(_){return KP.get(_)}:GB;function d2(_){for(var C=_.name+"",E=Xv[C],N=gn.call(Xv,C)?E.length:0;N--;){var Q=E[N],U=Q.func;if(U==null||U==_)return Q.name}return C}function Jv(_){var C=gn.call(G,"placeholder")?G:_;return C.placeholder}function ft(){var _=G.iteratee||QB;return _=_===QB?$ge:_,arguments.length?_(arguments[0],arguments[1]):_}function h2(_,C){var E=_.__data__;return yCt(C)?E[typeof C=="string"?"string":"hash"]:E.map}function PB(_){for(var C=Nr(_),E=C.length;E--;){var N=C[E],Q=_[N];C[E]=[N,Q,uve(Q)]}return C}function Nh(_,C){var E=OSt(_,C);return Pge(E)?E:n}function fCt(_){var C=gn.call(_,Mh),E=_[Mh];try{_[Mh]=n;var N=!0}catch{}var Q=HP.call(_);return N&&(C?_[Mh]=E:delete _[Mh]),Q}var $B=tB?function(_){return _==null?[]:(_=wn(_),Xc(tB(_),function(C){return dge.call(_,C)}))}:jB,ave=tB?function(_){for(var C=[];_;)Yc(C,$B(_)),_=UP(_);return C}:jB,gi=Li;(nB&&gi(new nB(new ArrayBuffer(1)))!=mn||R_&&gi(new R_)!=ye||rB&&gi(rB.resolve())!=$e||Zv&&gi(new Zv)!=Fe||k_&&gi(new k_)!=we)&&(gi=function(_){var C=Li(_),E=C==Me?_.constructor:n,N=E?Lh(E):"";if(N)switch(N){case USt:return mn;case ZSt:return ye;case XSt:return $e;case YSt:return Fe;case qSt:return we}return C});function dCt(_,C,E){for(var N=-1,Q=E.length;++N<Q;){var U=E[N],q=U.size;switch(U.type){case"drop":_+=q;break;case"dropRight":C-=q;break;case"take":C=pi(C,_+q);break;case"takeRight":_=$r(_,C-q);break}}return{start:_,end:C}}function hCt(_){var C=_.match(R3);return C?C[1].split(MP):[]}function sve(_,C,E){C=tf(C,_);for(var N=-1,Q=C.length,U=!1;++N<Q;){var q=bl(C[N]);if(!(U=_!=null&&E(_,q)))break;_=_[q]}return U||++N!=Q?U:(Q=_==null?0:_.length,!!Q&&_2(Q)&&bu(q,Q)&&(St(_)||Bh(_)))}function pCt(_){var C=_.length,E=new _.constructor(C);return C&&typeof _[0]=="string"&&gn.call(_,"index")&&(E.index=_.index,E.input=_.input),E}function lve(_){return typeof _.constructor=="function"&&!H_(_)?Yv(UP(_)):{}}function gCt(_,C,E){var N=_.constructor;switch(C){case Mt:return OB(_);case ue:case ee:return new N(+_);case mn:return Kxt(_,E);case pn:case pr:case Ni:case du:case hu:case Uc:case Th:case vl:case Ph:return Hge(_,E);case ye:return new N;case Ne:case ct:return new N(_);case De:return Jxt(_);case Fe:return new N;case vt:return eCt(_)}}function vCt(_,C){var E=C.length;if(!E)return _;var N=E-1;return C[N]=(E>1?"& ":"")+C[N],C=C.join(E>2?", ":" "),_.replace(D3,`{
  290. /* [wrapped with `+C+`] */
  291. `)}function mCt(_){return St(_)||Bh(_)||!!(hge&&_&&_[hge])}function bu(_,C){var E=typeof _;return C=C??z,!!C&&(E=="number"||E!="symbol"&&kP.test(_))&&_>-1&&_%1==0&&_<C}function Bi(_,C,E){if(!Hn(E))return!1;var N=typeof C;return(N=="number"?lo(E)&&bu(C,E.length):N=="string"&&C in E)?_s(E[C],_):!1}function AB(_,C){if(St(_))return!1;var E=typeof _;return E=="number"||E=="symbol"||E=="boolean"||_==null||Lo(_)?!0:EP.test(_)||!T_.test(_)||C!=null&&_ in wn(C)}function yCt(_){var C=typeof _;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?_!=="__proto__":_===null}function EB(_){var C=d2(_),E=G[C];if(typeof E!="function"||!(C in jt.prototype))return!1;if(_===E)return!0;var N=TB(E);return!!N&&_===N[0]}function bCt(_){return!!uge&&uge in _}var _Ct=WP?_u:UB;function H_(_){var C=_&&_.constructor,E=typeof C=="function"&&C.prototype||Uv;return _===E}function uve(_){return _===_&&!Hn(_)}function cve(_,C){return function(E){return E==null?!1:E[_]===C&&(C!==n||_ in wn(E))}}function OCt(_){var C=y2(_,function(N){return E.size===u&&E.clear(),N}),E=C.cache;return C}function wCt(_,C){var E=_[1],N=C[1],Q=E|N,U=Q<(m|y|T),q=N==T&&E==O||N==T&&E==$&&_[7].length<=C[8]||N==(T|$)&&C[7].length<=C[8]&&E==O;if(!(U||q))return _;N&m&&(_[2]=C[2],Q|=E&m?0:b);var te=C[3];if(te){var fe=_[3];_[3]=fe?jge(fe,te,C[4]):te,_[4]=fe?qc(_[3],c):C[4]}return te=C[5],te&&(fe=_[5],_[5]=fe?Uge(fe,te,C[6]):te,_[6]=fe?qc(_[5],c):C[6]),te=C[7],te&&(_[7]=te),N&T&&(_[8]=_[8]==null?C[8]:pi(_[8],C[8])),_[9]==null&&(_[9]=C[9]),_[0]=C[0],_[1]=Q,_}function SCt(_){var C=[];if(_!=null)for(var E in wn(_))C.push(E);return C}function xCt(_){return HP.call(_)}function fve(_,C,E){return C=$r(C===n?_.length-1:C,0),function(){for(var N=arguments,Q=-1,U=$r(N.length-C,0),q=pe(U);++Q<U;)q[Q]=N[C+Q];Q=-1;for(var te=pe(C+1);++Q<C;)te[Q]=N[Q];return te[C]=E(q),Ro(_,this,te)}}function dve(_,C){return C.length<2?_:kh(_,ka(C,0,-1))}function CCt(_,C){for(var E=_.length,N=pi(C.length,E),Q=so(_);N--;){var U=C[N];_[N]=bu(U,E)?Q[U]:n}return _}function MB(_,C){if(!(C==="constructor"&&typeof _[C]=="function")&&C!="__proto__")return _[C]}var hve=gve(Nge),G_=zSt||function(_,C){return Jr.setTimeout(_,C)},IB=gve(Zxt);function pve(_,C,E){var N=C+"";return IB(_,vCt(N,TCt(hCt(N),E)))}function gve(_){var C=0,E=0;return function(){var N=HSt(),Q=R-(N-E);if(E=N,Q>0){if(++C>=I)return arguments[0]}else C=0;return _.apply(n,arguments)}}function p2(_,C){var E=-1,N=_.length,Q=N-1;for(C=C===n?N:C;++E<C;){var U=pB(E,Q),q=_[U];_[U]=_[E],_[E]=q}return _.length=C,_}var vve=OCt(function(_){var C=[];return _.charCodeAt(0)===46&&C.push(""),_.replace(zv,function(E,N,Q,U){C.push(Q?U.replace(IP,"$1"):N||E)}),C});function bl(_){if(typeof _=="string"||Lo(_))return _;var C=_+"";return C=="0"&&1/_==-F?"-0":C}function Lh(_){if(_!=null){try{return QP.call(_)}catch{}try{return _+""}catch{}}return""}function TCt(_,C){return Ma(se,function(E){var N="_."+E[0];C&E[1]&&!BP(_,N)&&_.push(N)}),_.sort()}function mve(_){if(_ instanceof jt)return _.clone();var C=new Da(_.__wrapped__,_.__chain__);return C.__actions__=so(_.__actions__),C.__index__=_.__index__,C.__values__=_.__values__,C}function PCt(_,C,E){(E?Bi(_,C,E):C===n)?C=1:C=$r(It(C),0);var N=_==null?0:_.length;if(!N||C<1)return[];for(var Q=0,U=0,q=pe(YP(N/C));Q<N;)q[U++]=ka(_,Q,Q+=C);return q}function $Ct(_){for(var C=-1,E=_==null?0:_.length,N=0,Q=[];++C<E;){var U=_[C];U&&(Q[N++]=U)}return Q}function ACt(){var _=arguments.length;if(!_)return[];for(var C=pe(_-1),E=arguments[0],N=_;N--;)C[N-1]=arguments[N];return Yc(St(E)?so(E):[E],ei(C,1))}var ECt=Nt(function(_,C){return or(_)?V_(_,ei(C,1,or,!0)):[]}),MCt=Nt(function(_,C){var E=Na(C);return or(E)&&(E=n),or(_)?V_(_,ei(C,1,or,!0),ft(E,2)):[]}),ICt=Nt(function(_,C){var E=Na(C);return or(E)&&(E=n),or(_)?V_(_,ei(C,1,or,!0),n,E):[]});function DCt(_,C,E){var N=_==null?0:_.length;return N?(C=E||C===n?1:It(C),ka(_,C<0?0:C,N)):[]}function RCt(_,C,E){var N=_==null?0:_.length;return N?(C=E||C===n?1:It(C),C=N-C,ka(_,0,C<0?0:C)):[]}function kCt(_,C){return _&&_.length?a2(_,ft(C,3),!0,!0):[]}function NCt(_,C){return _&&_.length?a2(_,ft(C,3),!0):[]}function LCt(_,C,E,N){var Q=_==null?0:_.length;return Q?(E&&typeof E!="number"&&Bi(_,C,E)&&(E=0,N=Q),Axt(_,C,E,N)):[]}function yve(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=E==null?0:It(E);return Q<0&&(Q=$r(N+Q,0)),VP(_,ft(C,3),Q)}function bve(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=N-1;return E!==n&&(Q=It(E),Q=E<0?$r(N+Q,0):pi(Q,N-1)),VP(_,ft(C,3),Q,!0)}function _ve(_){var C=_==null?0:_.length;return C?ei(_,1):[]}function BCt(_){var C=_==null?0:_.length;return C?ei(_,F):[]}function VCt(_,C){var E=_==null?0:_.length;return E?(C=C===n?1:It(C),ei(_,C)):[]}function zCt(_){for(var C=-1,E=_==null?0:_.length,N={};++C<E;){var Q=_[C];N[Q[0]]=Q[1]}return N}function Ove(_){return _&&_.length?_[0]:n}function FCt(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=E==null?0:It(E);return Q<0&&(Q=$r(N+Q,0)),Qv(_,C,Q)}function WCt(_){var C=_==null?0:_.length;return C?ka(_,0,-1):[]}var QCt=Nt(function(_){var C=Vn(_,bB);return C.length&&C[0]===_[0]?uB(C):[]}),HCt=Nt(function(_){var C=Na(_),E=Vn(_,bB);return C===Na(E)?C=n:E.pop(),E.length&&E[0]===_[0]?uB(E,ft(C,2)):[]}),GCt=Nt(function(_){var C=Na(_),E=Vn(_,bB);return C=typeof C=="function"?C:n,C&&E.pop(),E.length&&E[0]===_[0]?uB(E,n,C):[]});function jCt(_,C){return _==null?"":WSt.call(_,C)}function Na(_){var C=_==null?0:_.length;return C?_[C-1]:n}function UCt(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=N;return E!==n&&(Q=It(E),Q=Q<0?$r(N+Q,0):pi(Q,N-1)),C===C?TSt(_,C,Q):VP(_,tge,Q,!0)}function ZCt(_,C){return _&&_.length?Ige(_,It(C)):n}var XCt=Nt(wve);function wve(_,C){return _&&_.length&&C&&C.length?hB(_,C):_}function YCt(_,C,E){return _&&_.length&&C&&C.length?hB(_,C,ft(E,2)):_}function qCt(_,C,E){return _&&_.length&&C&&C.length?hB(_,C,n,E):_}var KCt=yu(function(_,C){var E=_==null?0:_.length,N=oB(_,C);return kge(_,Vn(C,function(Q){return bu(Q,E)?+Q:Q}).sort(Gge)),N});function JCt(_,C){var E=[];if(!(_&&_.length))return E;var N=-1,Q=[],U=_.length;for(C=ft(C,3);++N<U;){var q=_[N];C(q,N,_)&&(E.push(q),Q.push(N))}return kge(_,Q),E}function DB(_){return _==null?_:jSt.call(_)}function eTt(_,C,E){var N=_==null?0:_.length;return N?(E&&typeof E!="number"&&Bi(_,C,E)?(C=0,E=N):(C=C==null?0:It(C),E=E===n?N:It(E)),ka(_,C,E)):[]}function tTt(_,C){return o2(_,C)}function nTt(_,C,E){return vB(_,C,ft(E,2))}function rTt(_,C){var E=_==null?0:_.length;if(E){var N=o2(_,C);if(N<E&&_s(_[N],C))return N}return-1}function iTt(_,C){return o2(_,C,!0)}function oTt(_,C,E){return vB(_,C,ft(E,2),!0)}function aTt(_,C){var E=_==null?0:_.length;if(E){var N=o2(_,C,!0)-1;if(_s(_[N],C))return N}return-1}function sTt(_){return _&&_.length?Lge(_):[]}function lTt(_,C){return _&&_.length?Lge(_,ft(C,2)):[]}function uTt(_){var C=_==null?0:_.length;return C?ka(_,1,C):[]}function cTt(_,C,E){return _&&_.length?(C=E||C===n?1:It(C),ka(_,0,C<0?0:C)):[]}function fTt(_,C,E){var N=_==null?0:_.length;return N?(C=E||C===n?1:It(C),C=N-C,ka(_,C<0?0:C,N)):[]}function dTt(_,C){return _&&_.length?a2(_,ft(C,3),!1,!0):[]}function hTt(_,C){return _&&_.length?a2(_,ft(C,3)):[]}var pTt=Nt(function(_){return ef(ei(_,1,or,!0))}),gTt=Nt(function(_){var C=Na(_);return or(C)&&(C=n),ef(ei(_,1,or,!0),ft(C,2))}),vTt=Nt(function(_){var C=Na(_);return C=typeof C=="function"?C:n,ef(ei(_,1,or,!0),n,C)});function mTt(_){return _&&_.length?ef(_):[]}function yTt(_,C){return _&&_.length?ef(_,ft(C,2)):[]}function bTt(_,C){return C=typeof C=="function"?C:n,_&&_.length?ef(_,n,C):[]}function RB(_){if(!(_&&_.length))return[];var C=0;return _=Xc(_,function(E){if(or(E))return C=$r(E.length,C),!0}),q3(C,function(E){return Vn(_,Z3(E))})}function Sve(_,C){if(!(_&&_.length))return[];var E=RB(_);return C==null?E:Vn(E,function(N){return Ro(C,n,N)})}var _Tt=Nt(function(_,C){return or(_)?V_(_,C):[]}),OTt=Nt(function(_){return yB(Xc(_,or))}),wTt=Nt(function(_){var C=Na(_);return or(C)&&(C=n),yB(Xc(_,or),ft(C,2))}),STt=Nt(function(_){var C=Na(_);return C=typeof C=="function"?C:n,yB(Xc(_,or),n,C)}),xTt=Nt(RB);function CTt(_,C){return Fge(_||[],C||[],B_)}function TTt(_,C){return Fge(_||[],C||[],W_)}var PTt=Nt(function(_){var C=_.length,E=C>1?_[C-1]:n;return E=typeof E=="function"?(_.pop(),E):n,Sve(_,E)});function xve(_){var C=G(_);return C.__chain__=!0,C}function $Tt(_,C){return C(_),_}function g2(_,C){return C(_)}var ATt=yu(function(_){var C=_.length,E=C?_[0]:0,N=this.__wrapped__,Q=function(U){return oB(U,_)};return C>1||this.__actions__.length||!(N instanceof jt)||!bu(E)?this.thru(Q):(N=N.slice(E,+E+(C?1:0)),N.__actions__.push({func:g2,args:[Q],thisArg:n}),new Da(N,this.__chain__).thru(function(U){return C&&!U.length&&U.push(n),U}))});function ETt(){return xve(this)}function MTt(){return new Da(this.value(),this.__chain__)}function ITt(){this.__values__===n&&(this.__values__=Bve(this.value()));var _=this.__index__>=this.__values__.length,C=_?n:this.__values__[this.__index__++];return{done:_,value:C}}function DTt(){return this}function RTt(_){for(var C,E=this;E instanceof e2;){var N=mve(E);N.__index__=0,N.__values__=n,C?Q.__wrapped__=N:C=N;var Q=N;E=E.__wrapped__}return Q.__wrapped__=_,C}function kTt(){var _=this.__wrapped__;if(_ instanceof jt){var C=_;return this.__actions__.length&&(C=new jt(this)),C=C.reverse(),C.__actions__.push({func:g2,args:[DB],thisArg:n}),new Da(C,this.__chain__)}return this.thru(DB)}function NTt(){return zge(this.__wrapped__,this.__actions__)}var LTt=s2(function(_,C,E){gn.call(_,E)?++_[E]:vu(_,E,1)});function BTt(_,C,E){var N=St(_)?Jpe:$xt;return E&&Bi(_,C,E)&&(C=n),N(_,ft(C,3))}function VTt(_,C){var E=St(_)?Xc:Sge;return E(_,ft(C,3))}var zTt=qge(yve),FTt=qge(bve);function WTt(_,C){return ei(v2(_,C),1)}function QTt(_,C){return ei(v2(_,C),F)}function HTt(_,C,E){return E=E===n?1:It(E),ei(v2(_,C),E)}function Cve(_,C){var E=St(_)?Ma:Jc;return E(_,ft(C,3))}function Tve(_,C){var E=St(_)?uSt:wge;return E(_,ft(C,3))}var GTt=s2(function(_,C,E){gn.call(_,E)?_[E].push(C):vu(_,E,[C])});function jTt(_,C,E,N){_=lo(_)?_:tm(_),E=E&&!N?It(E):0;var Q=_.length;return E<0&&(E=$r(Q+E,0)),O2(_)?E<=Q&&_.indexOf(C,E)>-1:!!Q&&Qv(_,C,E)>-1}var UTt=Nt(function(_,C,E){var N=-1,Q=typeof C=="function",U=lo(_)?pe(_.length):[];return Jc(_,function(q){U[++N]=Q?Ro(C,q,E):z_(q,C,E)}),U}),ZTt=s2(function(_,C,E){vu(_,E,C)});function v2(_,C){var E=St(_)?Vn:Age;return E(_,ft(C,3))}function XTt(_,C,E,N){return _==null?[]:(St(C)||(C=C==null?[]:[C]),E=N?n:E,St(E)||(E=E==null?[]:[E]),Dge(_,C,E))}var YTt=s2(function(_,C,E){_[E?0:1].push(C)},function(){return[[],[]]});function qTt(_,C,E){var N=St(_)?j3:rge,Q=arguments.length<3;return N(_,ft(C,4),E,Q,Jc)}function KTt(_,C,E){var N=St(_)?cSt:rge,Q=arguments.length<3;return N(_,ft(C,4),E,Q,wge)}function JTt(_,C){var E=St(_)?Xc:Sge;return E(_,b2(ft(C,3)))}function ePt(_){var C=St(_)?yge:jxt;return C(_)}function tPt(_,C,E){(E?Bi(_,C,E):C===n)?C=1:C=It(C);var N=St(_)?Sxt:Uxt;return N(_,C)}function nPt(_){var C=St(_)?xxt:Xxt;return C(_)}function rPt(_){if(_==null)return 0;if(lo(_))return O2(_)?Gv(_):_.length;var C=gi(_);return C==ye||C==Fe?_.size:fB(_).length}function iPt(_,C,E){var N=St(_)?U3:Yxt;return E&&Bi(_,C,E)&&(C=n),N(_,ft(C,3))}var oPt=Nt(function(_,C){if(_==null)return[];var E=C.length;return E>1&&Bi(_,C[0],C[1])?C=[]:E>2&&Bi(C[0],C[1],C[2])&&(C=[C[0]]),Dge(_,ei(C,1),[])}),m2=VSt||function(){return Jr.Date.now()};function aPt(_,C){if(typeof C!="function")throw new Ia(a);return _=It(_),function(){if(--_<1)return C.apply(this,arguments)}}function Pve(_,C,E){return C=E?n:C,C=_&&C==null?_.length:C,mu(_,T,n,n,n,n,C)}function $ve(_,C){var E;if(typeof C!="function")throw new Ia(a);return _=It(_),function(){return--_>0&&(E=C.apply(this,arguments)),_<=1&&(C=n),E}}var kB=Nt(function(_,C,E){var N=m;if(E.length){var Q=qc(E,Jv(kB));N|=S}return mu(_,N,C,E,Q)}),Ave=Nt(function(_,C,E){var N=m|y;if(E.length){var Q=qc(E,Jv(Ave));N|=S}return mu(C,N,_,E,Q)});function Eve(_,C,E){C=E?n:C;var N=mu(_,O,n,n,n,n,n,C);return N.placeholder=Eve.placeholder,N}function Mve(_,C,E){C=E?n:C;var N=mu(_,w,n,n,n,n,n,C);return N.placeholder=Mve.placeholder,N}function Ive(_,C,E){var N,Q,U,q,te,fe,xe=0,Te=!1,Ae=!1,We=!0;if(typeof _!="function")throw new Ia(a);C=La(C)||0,Hn(E)&&(Te=!!E.leading,Ae="maxWait"in E,U=Ae?$r(La(E.maxWait)||0,C):U,We="trailing"in E?!!E.trailing:We);function et(ar){var Os=N,wu=Q;return N=Q=n,xe=ar,q=_.apply(wu,Os),q}function pt(ar){return xe=ar,te=G_(Ft,C),Te?et(ar):q}function kt(ar){var Os=ar-fe,wu=ar-xe,qve=C-Os;return Ae?pi(qve,U-wu):qve}function gt(ar){var Os=ar-fe,wu=ar-xe;return fe===n||Os>=C||Os<0||Ae&&wu>=U}function Ft(){var ar=m2();if(gt(ar))return Kt(ar);te=G_(Ft,kt(ar))}function Kt(ar){return te=n,We&&N?et(ar):(N=Q=n,q)}function Bo(){te!==n&&Wge(te),xe=0,N=fe=Q=te=n}function Vi(){return te===n?q:Kt(m2())}function Vo(){var ar=m2(),Os=gt(ar);if(N=arguments,Q=this,fe=ar,Os){if(te===n)return pt(fe);if(Ae)return Wge(te),te=G_(Ft,C),et(fe)}return te===n&&(te=G_(Ft,C)),q}return Vo.cancel=Bo,Vo.flush=Vi,Vo}var sPt=Nt(function(_,C){return Oge(_,1,C)}),lPt=Nt(function(_,C,E){return Oge(_,La(C)||0,E)});function uPt(_){return mu(_,A)}function y2(_,C){if(typeof _!="function"||C!=null&&typeof C!="function")throw new Ia(a);var E=function(){var N=arguments,Q=C?C.apply(this,N):N[0],U=E.cache;if(U.has(Q))return U.get(Q);var q=_.apply(this,N);return E.cache=U.set(Q,q)||U,q};return E.cache=new(y2.Cache||gu),E}y2.Cache=gu;function b2(_){if(typeof _!="function")throw new Ia(a);return function(){var C=arguments;switch(C.length){case 0:return!_.call(this);case 1:return!_.call(this,C[0]);case 2:return!_.call(this,C[0],C[1]);case 3:return!_.call(this,C[0],C[1],C[2])}return!_.apply(this,C)}}function cPt(_){return $ve(2,_)}var fPt=qxt(function(_,C){C=C.length==1&&St(C[0])?Vn(C[0],ko(ft())):Vn(ei(C,1),ko(ft()));var E=C.length;return Nt(function(N){for(var Q=-1,U=pi(N.length,E);++Q<U;)N[Q]=C[Q].call(this,N[Q]);return Ro(_,this,N)})}),NB=Nt(function(_,C){var E=qc(C,Jv(NB));return mu(_,S,n,C,E)}),Dve=Nt(function(_,C){var E=qc(C,Jv(Dve));return mu(_,x,n,C,E)}),dPt=yu(function(_,C){return mu(_,$,n,n,n,C)});function hPt(_,C){if(typeof _!="function")throw new Ia(a);return C=C===n?C:It(C),Nt(_,C)}function pPt(_,C){if(typeof _!="function")throw new Ia(a);return C=C==null?0:$r(It(C),0),Nt(function(E){var N=E[C],Q=nf(E,0,C);return N&&Yc(Q,N),Ro(_,this,Q)})}function gPt(_,C,E){var N=!0,Q=!0;if(typeof _!="function")throw new Ia(a);return Hn(E)&&(N="leading"in E?!!E.leading:N,Q="trailing"in E?!!E.trailing:Q),Ive(_,C,{leading:N,maxWait:C,trailing:Q})}function vPt(_){return Pve(_,1)}function mPt(_,C){return NB(_B(C),_)}function yPt(){if(!arguments.length)return[];var _=arguments[0];return St(_)?_:[_]}function bPt(_){return Ra(_,p)}function _Pt(_,C){return C=typeof C=="function"?C:n,Ra(_,p,C)}function OPt(_){return Ra(_,f|p)}function wPt(_,C){return C=typeof C=="function"?C:n,Ra(_,f|p,C)}function SPt(_,C){return C==null||_ge(_,C,Nr(C))}function _s(_,C){return _===C||_!==_&&C!==C}var xPt=f2(lB),CPt=f2(function(_,C){return _>=C}),Bh=Tge(function(){return arguments}())?Tge:function(_){return qn(_)&&gn.call(_,"callee")&&!dge.call(_,"callee")},St=pe.isArray,TPt=Upe?ko(Upe):Rxt;function lo(_){return _!=null&&_2(_.length)&&!_u(_)}function or(_){return qn(_)&&lo(_)}function PPt(_){return _===!0||_===!1||qn(_)&&Li(_)==ue}var rf=FSt||UB,$Pt=Zpe?ko(Zpe):kxt;function APt(_){return qn(_)&&_.nodeType===1&&!j_(_)}function EPt(_){if(_==null)return!0;if(lo(_)&&(St(_)||typeof _=="string"||typeof _.splice=="function"||rf(_)||em(_)||Bh(_)))return!_.length;var C=gi(_);if(C==ye||C==Fe)return!_.size;if(H_(_))return!fB(_).length;for(var E in _)if(gn.call(_,E))return!1;return!0}function MPt(_,C){return F_(_,C)}function IPt(_,C,E){E=typeof E=="function"?E:n;var N=E?E(_,C):n;return N===n?F_(_,C,n,E):!!N}function LB(_){if(!qn(_))return!1;var C=Li(_);return C==Y||C==X||typeof _.message=="string"&&typeof _.name=="string"&&!j_(_)}function DPt(_){return typeof _=="number"&&pge(_)}function _u(_){if(!Hn(_))return!1;var C=Li(_);return C==le||C==ve||C==ie||C==_e}function Rve(_){return typeof _=="number"&&_==It(_)}function _2(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=z}function Hn(_){var C=typeof _;return _!=null&&(C=="object"||C=="function")}function qn(_){return _!=null&&typeof _=="object"}var kve=Xpe?ko(Xpe):Lxt;function RPt(_,C){return _===C||cB(_,C,PB(C))}function kPt(_,C,E){return E=typeof E=="function"?E:n,cB(_,C,PB(C),E)}function NPt(_){return Nve(_)&&_!=+_}function LPt(_){if(_Ct(_))throw new wt(o);return Pge(_)}function BPt(_){return _===null}function VPt(_){return _==null}function Nve(_){return typeof _=="number"||qn(_)&&Li(_)==Ne}function j_(_){if(!qn(_)||Li(_)!=Me)return!1;var C=UP(_);if(C===null)return!0;var E=gn.call(C,"constructor")&&C.constructor;return typeof E=="function"&&E instanceof E&&QP.call(E)==kSt}var BB=Ype?ko(Ype):Bxt;function zPt(_){return Rve(_)&&_>=-z&&_<=z}var Lve=qpe?ko(qpe):Vxt;function O2(_){return typeof _=="string"||!St(_)&&qn(_)&&Li(_)==ct}function Lo(_){return typeof _=="symbol"||qn(_)&&Li(_)==vt}var em=Kpe?ko(Kpe):zxt;function FPt(_){return _===n}function WPt(_){return qn(_)&&gi(_)==we}function QPt(_){return qn(_)&&Li(_)==rt}var HPt=f2(dB),GPt=f2(function(_,C){return _<=C});function Bve(_){if(!_)return[];if(lo(_))return O2(_)?ys(_):so(_);if(D_&&_[D_])return SSt(_[D_]());var C=gi(_),E=C==ye?J3:C==Fe?zP:tm;return E(_)}function Ou(_){if(!_)return _===0?_:0;if(_=La(_),_===F||_===-F){var C=_<0?-1:1;return C*W}return _===_?_:0}function It(_){var C=Ou(_),E=C%1;return C===C?E?C-E:C:0}function Vve(_){return _?Rh(It(_),0,H):0}function La(_){if(typeof _=="number")return _;if(Lo(_))return j;if(Hn(_)){var C=typeof _.valueOf=="function"?_.valueOf():_;_=Hn(C)?C+"":C}if(typeof _!="string")return _===0?_:+_;_=ige(_);var E=k3.test(_);return E||L3.test(_)?aSt(_.slice(2),E?2:8):RP.test(_)?j:+_}function zve(_){return yl(_,uo(_))}function jPt(_){return _?Rh(It(_),-z,z):_===0?_:0}function cn(_){return _==null?"":No(_)}var UPt=qv(function(_,C){if(H_(C)||lo(C)){yl(C,Nr(C),_);return}for(var E in C)gn.call(C,E)&&B_(_,E,C[E])}),Fve=qv(function(_,C){yl(C,uo(C),_)}),w2=qv(function(_,C,E,N){yl(C,uo(C),_,N)}),ZPt=qv(function(_,C,E,N){yl(C,Nr(C),_,N)}),XPt=yu(oB);function YPt(_,C){var E=Yv(_);return C==null?E:bge(E,C)}var qPt=Nt(function(_,C){_=wn(_);var E=-1,N=C.length,Q=N>2?C[2]:n;for(Q&&Bi(C[0],C[1],Q)&&(N=1);++E<N;)for(var U=C[E],q=uo(U),te=-1,fe=q.length;++te<fe;){var xe=q[te],Te=_[xe];(Te===n||_s(Te,Uv[xe])&&!gn.call(_,xe))&&(_[xe]=U[xe])}return _}),KPt=Nt(function(_){return _.push(n,ive),Ro(Wve,n,_)});function JPt(_,C){return ege(_,ft(C,3),ml)}function e2t(_,C){return ege(_,ft(C,3),sB)}function t2t(_,C){return _==null?_:aB(_,ft(C,3),uo)}function n2t(_,C){return _==null?_:xge(_,ft(C,3),uo)}function r2t(_,C){return _&&ml(_,ft(C,3))}function i2t(_,C){return _&&sB(_,ft(C,3))}function o2t(_){return _==null?[]:r2(_,Nr(_))}function a2t(_){return _==null?[]:r2(_,uo(_))}function VB(_,C,E){var N=_==null?n:kh(_,C);return N===n?E:N}function s2t(_,C){return _!=null&&sve(_,C,Ext)}function zB(_,C){return _!=null&&sve(_,C,Mxt)}var l2t=Jge(function(_,C,E){C!=null&&typeof C.toString!="function"&&(C=HP.call(C)),_[C]=E},WB(co)),u2t=Jge(function(_,C,E){C!=null&&typeof C.toString!="function"&&(C=HP.call(C)),gn.call(_,C)?_[C].push(E):_[C]=[E]},ft),c2t=Nt(z_);function Nr(_){return lo(_)?mge(_):fB(_)}function uo(_){return lo(_)?mge(_,!0):Fxt(_)}function f2t(_,C){var E={};return C=ft(C,3),ml(_,function(N,Q,U){vu(E,C(N,Q,U),N)}),E}function d2t(_,C){var E={};return C=ft(C,3),ml(_,function(N,Q,U){vu(E,Q,C(N,Q,U))}),E}var h2t=qv(function(_,C,E){i2(_,C,E)}),Wve=qv(function(_,C,E,N){i2(_,C,E,N)}),p2t=yu(function(_,C){var E={};if(_==null)return E;var N=!1;C=Vn(C,function(U){return U=tf(U,_),N||(N=U.length>1),U}),yl(_,CB(_),E),N&&(E=Ra(E,f|d|p,lCt));for(var Q=C.length;Q--;)mB(E,C[Q]);return E});function g2t(_,C){return Qve(_,b2(ft(C)))}var v2t=yu(function(_,C){return _==null?{}:Qxt(_,C)});function Qve(_,C){if(_==null)return{};var E=Vn(CB(_),function(N){return[N]});return C=ft(C),Rge(_,E,function(N,Q){return C(N,Q[0])})}function m2t(_,C,E){C=tf(C,_);var N=-1,Q=C.length;for(Q||(Q=1,_=n);++N<Q;){var U=_==null?n:_[bl(C[N])];U===n&&(N=Q,U=E),_=_u(U)?U.call(_):U}return _}function y2t(_,C,E){return _==null?_:W_(_,C,E)}function b2t(_,C,E,N){return N=typeof N=="function"?N:n,_==null?_:W_(_,C,E,N)}var Hve=nve(Nr),Gve=nve(uo);function _2t(_,C,E){var N=St(_),Q=N||rf(_)||em(_);if(C=ft(C,4),E==null){var U=_&&_.constructor;Q?E=N?new U:[]:Hn(_)?E=_u(U)?Yv(UP(_)):{}:E={}}return(Q?Ma:ml)(_,function(q,te,fe){return C(E,q,te,fe)}),E}function O2t(_,C){return _==null?!0:mB(_,C)}function w2t(_,C,E){return _==null?_:Vge(_,C,_B(E))}function S2t(_,C,E,N){return N=typeof N=="function"?N:n,_==null?_:Vge(_,C,_B(E),N)}function tm(_){return _==null?[]:K3(_,Nr(_))}function x2t(_){return _==null?[]:K3(_,uo(_))}function C2t(_,C,E){return E===n&&(E=C,C=n),E!==n&&(E=La(E),E=E===E?E:0),C!==n&&(C=La(C),C=C===C?C:0),Rh(La(_),C,E)}function T2t(_,C,E){return C=Ou(C),E===n?(E=C,C=0):E=Ou(E),_=La(_),Ixt(_,C,E)}function P2t(_,C,E){if(E&&typeof E!="boolean"&&Bi(_,C,E)&&(C=E=n),E===n&&(typeof C=="boolean"?(E=C,C=n):typeof _=="boolean"&&(E=_,_=n)),_===n&&C===n?(_=0,C=1):(_=Ou(_),C===n?(C=_,_=0):C=Ou(C)),_>C){var N=_;_=C,C=N}if(E||_%1||C%1){var Q=gge();return pi(_+Q*(C-_+oSt("1e-"+((Q+"").length-1))),C)}return pB(_,C)}var $2t=Kv(function(_,C,E){return C=C.toLowerCase(),_+(E?jve(C):C)});function jve(_){return FB(cn(_).toLowerCase())}function Uve(_){return _=cn(_),_&&_.replace(M_,ySt).replace(Xwt,"")}function A2t(_,C,E){_=cn(_),C=No(C);var N=_.length;E=E===n?N:Rh(It(E),0,N);var Q=E;return E-=C.length,E>=0&&_.slice(E,Q)==C}function E2t(_){return _=cn(_),_&&xpe.test(_)?_.replace(E3,bSt):_}function M2t(_){return _=cn(_),_&&M3.test(_)?_.replace(P_,"\\$&"):_}var I2t=Kv(function(_,C,E){return _+(E?"-":"")+C.toLowerCase()}),D2t=Kv(function(_,C,E){return _+(E?" ":"")+C.toLowerCase()}),R2t=Yge("toLowerCase");function k2t(_,C,E){_=cn(_),C=It(C);var N=C?Gv(_):0;if(!C||N>=C)return _;var Q=(C-N)/2;return c2(qP(Q),E)+_+c2(YP(Q),E)}function N2t(_,C,E){_=cn(_),C=It(C);var N=C?Gv(_):0;return C&&N<C?_+c2(C-N,E):_}function L2t(_,C,E){_=cn(_),C=It(C);var N=C?Gv(_):0;return C&&N<C?c2(C-N,E)+_:_}function B2t(_,C,E){return E||C==null?C=0:C&&(C=+C),GSt(cn(_).replace($_,""),C||0)}function V2t(_,C,E){return(E?Bi(_,C,E):C===n)?C=1:C=It(C),gB(cn(_),C)}function z2t(){var _=arguments,C=cn(_[0]);return _.length<3?C:C.replace(_[1],_[2])}var F2t=Kv(function(_,C,E){return _+(E?"_":"")+C.toLowerCase()});function W2t(_,C,E){return E&&typeof E!="number"&&Bi(_,C,E)&&(C=E=n),E=E===n?H:E>>>0,E?(_=cn(_),_&&(typeof C=="string"||C!=null&&!BB(C))&&(C=No(C),!C&&Hv(_))?nf(ys(_),0,E):_.split(C,E)):[]}var Q2t=Kv(function(_,C,E){return _+(E?" ":"")+FB(C)});function H2t(_,C,E){return _=cn(_),E=E==null?0:Rh(It(E),0,_.length),C=No(C),_.slice(E,E+C.length)==C}function G2t(_,C,E){var N=G.templateSettings;E&&Bi(_,C,E)&&(C=n),_=cn(_),C=w2({},C,N,rve);var Q=w2({},C.imports,N.imports,rve),U=Nr(Q),q=K3(Q,U),te,fe,xe=0,Te=C.interpolate||Aa,Ae="__p += '",We=eB((C.escape||Aa).source+"|"+Te.source+"|"+(Te===Vv?DP:Aa).source+"|"+(C.evaluate||Aa).source+"|$","g"),et="//# sourceURL="+(gn.call(C,"sourceURL")?(C.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eSt+"]")+`
  292. `;_.replace(We,function(gt,Ft,Kt,Bo,Vi,Vo){return Kt||(Kt=Bo),Ae+=_.slice(xe,Vo).replace(NP,_St),Ft&&(te=!0,Ae+=`' +
  293. __e(`+Ft+`) +
  294. '`),Vi&&(fe=!0,Ae+=`';
  295. `+Vi+`;
  296. __p += '`),Kt&&(Ae+=`' +
  297. ((__t = (`+Kt+`)) == null ? '' : __t) +
  298. '`),xe=Vo+gt.length,gt}),Ae+=`';
  299. `;var pt=gn.call(C,"variable")&&C.variable;if(!pt)Ae=`with (obj) {
  300. `+Ae+`
  301. }
  302. `;else if(A_.test(pt))throw new wt(s);Ae=(fe?Ae.replace($h,""):Ae).replace(x_,"$1").replace(Zc,"$1;"),Ae="function("+(pt||"obj")+`) {
  303. `+(pt?"":`obj || (obj = {});
  304. `)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join;
  305. function print() { __p += __j.call(arguments, '') }
  306. `:`;
  307. `)+Ae+`return __p
  308. }`;var kt=Xve(function(){return sn(U,et+"return "+Ae).apply(n,q)});if(kt.source=Ae,LB(kt))throw kt;return kt}function j2t(_){return cn(_).toLowerCase()}function U2t(_){return cn(_).toUpperCase()}function Z2t(_,C,E){if(_=cn(_),_&&(E||C===n))return ige(_);if(!_||!(C=No(C)))return _;var N=ys(_),Q=ys(C),U=oge(N,Q),q=age(N,Q)+1;return nf(N,U,q).join("")}function X2t(_,C,E){if(_=cn(_),_&&(E||C===n))return _.slice(0,lge(_)+1);if(!_||!(C=No(C)))return _;var N=ys(_),Q=age(N,ys(C))+1;return nf(N,0,Q).join("")}function Y2t(_,C,E){if(_=cn(_),_&&(E||C===n))return _.replace($_,"");if(!_||!(C=No(C)))return _;var N=ys(_),Q=oge(N,ys(C));return nf(N,Q).join("")}function q2t(_,C){var E=P,N=M;if(Hn(C)){var Q="separator"in C?C.separator:Q;E="length"in C?It(C.length):E,N="omission"in C?No(C.omission):N}_=cn(_);var U=_.length;if(Hv(_)){var q=ys(_);U=q.length}if(E>=U)return _;var te=E-Gv(N);if(te<1)return N;var fe=q?nf(q,0,te).join(""):_.slice(0,te);if(Q===n)return fe+N;if(q&&(te+=fe.length-te),BB(Q)){if(_.slice(te).search(Q)){var xe,Te=fe;for(Q.global||(Q=eB(Q.source,cn(E_.exec(Q))+"g")),Q.lastIndex=0;xe=Q.exec(Te);)var Ae=xe.index;fe=fe.slice(0,Ae===n?te:Ae)}}else if(_.indexOf(No(Q),te)!=te){var We=fe.lastIndexOf(Q);We>-1&&(fe=fe.slice(0,We))}return fe+N}function K2t(_){return _=cn(_),_&&Spe.test(_)?_.replace(C_,PSt):_}var J2t=Kv(function(_,C,E){return _+(E?" ":"")+C.toUpperCase()}),FB=Yge("toUpperCase");function Zve(_,C,E){return _=cn(_),C=E?n:C,C===n?wSt(_)?ESt(_):hSt(_):_.match(C)||[]}var Xve=Nt(function(_,C){try{return Ro(_,n,C)}catch(E){return LB(E)?E:new wt(E)}}),e$t=yu(function(_,C){return Ma(C,function(E){E=bl(E),vu(_,E,kB(_[E],_))}),_});function t$t(_){var C=_==null?0:_.length,E=ft();return _=C?Vn(_,function(N){if(typeof N[1]!="function")throw new Ia(a);return[E(N[0]),N[1]]}):[],Nt(function(N){for(var Q=-1;++Q<C;){var U=_[Q];if(Ro(U[0],this,N))return Ro(U[1],this,N)}})}function n$t(_){return Pxt(Ra(_,f))}function WB(_){return function(){return _}}function r$t(_,C){return _==null||_!==_?C:_}var i$t=Kge(),o$t=Kge(!0);function co(_){return _}function QB(_){return $ge(typeof _=="function"?_:Ra(_,f))}function a$t(_){return Ege(Ra(_,f))}function s$t(_,C){return Mge(_,Ra(C,f))}var l$t=Nt(function(_,C){return function(E){return z_(E,_,C)}}),u$t=Nt(function(_,C){return function(E){return z_(_,E,C)}});function HB(_,C,E){var N=Nr(C),Q=r2(C,N);E==null&&!(Hn(C)&&(Q.length||!N.length))&&(E=C,C=_,_=this,Q=r2(C,Nr(C)));var U=!(Hn(E)&&"chain"in E)||!!E.chain,q=_u(_);return Ma(Q,function(te){var fe=C[te];_[te]=fe,q&&(_.prototype[te]=function(){var xe=this.__chain__;if(U||xe){var Te=_(this.__wrapped__),Ae=Te.__actions__=so(this.__actions__);return Ae.push({func:fe,args:arguments,thisArg:_}),Te.__chain__=xe,Te}return fe.apply(_,Yc([this.value()],arguments))})}),_}function c$t(){return Jr._===this&&(Jr._=NSt),this}function GB(){}function f$t(_){return _=It(_),Nt(function(C){return Ige(C,_)})}var d$t=wB(Vn),h$t=wB(Jpe),p$t=wB(U3);function Yve(_){return AB(_)?Z3(bl(_)):Hxt(_)}function g$t(_){return function(C){return _==null?n:kh(_,C)}}var v$t=eve(),m$t=eve(!0);function jB(){return[]}function UB(){return!1}function y$t(){return{}}function b$t(){return""}function _$t(){return!0}function O$t(_,C){if(_=It(_),_<1||_>z)return[];var E=H,N=pi(_,H);C=ft(C),_-=H;for(var Q=q3(N,C);++E<_;)C(E);return Q}function w$t(_){return St(_)?Vn(_,bl):Lo(_)?[_]:so(vve(cn(_)))}function S$t(_){var C=++RSt;return cn(_)+C}var x$t=u2(function(_,C){return _+C},0),C$t=SB("ceil"),T$t=u2(function(_,C){return _/C},1),P$t=SB("floor");function $$t(_){return _&&_.length?n2(_,co,lB):n}function A$t(_,C){return _&&_.length?n2(_,ft(C,2),lB):n}function E$t(_){return nge(_,co)}function M$t(_,C){return nge(_,ft(C,2))}function I$t(_){return _&&_.length?n2(_,co,dB):n}function D$t(_,C){return _&&_.length?n2(_,ft(C,2),dB):n}var R$t=u2(function(_,C){return _*C},1),k$t=SB("round"),N$t=u2(function(_,C){return _-C},0);function L$t(_){return _&&_.length?Y3(_,co):0}function B$t(_,C){return _&&_.length?Y3(_,ft(C,2)):0}return G.after=aPt,G.ary=Pve,G.assign=UPt,G.assignIn=Fve,G.assignInWith=w2,G.assignWith=ZPt,G.at=XPt,G.before=$ve,G.bind=kB,G.bindAll=e$t,G.bindKey=Ave,G.castArray=yPt,G.chain=xve,G.chunk=PCt,G.compact=$Ct,G.concat=ACt,G.cond=t$t,G.conforms=n$t,G.constant=WB,G.countBy=LTt,G.create=YPt,G.curry=Eve,G.curryRight=Mve,G.debounce=Ive,G.defaults=qPt,G.defaultsDeep=KPt,G.defer=sPt,G.delay=lPt,G.difference=ECt,G.differenceBy=MCt,G.differenceWith=ICt,G.drop=DCt,G.dropRight=RCt,G.dropRightWhile=kCt,G.dropWhile=NCt,G.fill=LCt,G.filter=VTt,G.flatMap=WTt,G.flatMapDeep=QTt,G.flatMapDepth=HTt,G.flatten=_ve,G.flattenDeep=BCt,G.flattenDepth=VCt,G.flip=uPt,G.flow=i$t,G.flowRight=o$t,G.fromPairs=zCt,G.functions=o2t,G.functionsIn=a2t,G.groupBy=GTt,G.initial=WCt,G.intersection=QCt,G.intersectionBy=HCt,G.intersectionWith=GCt,G.invert=l2t,G.invertBy=u2t,G.invokeMap=UTt,G.iteratee=QB,G.keyBy=ZTt,G.keys=Nr,G.keysIn=uo,G.map=v2,G.mapKeys=f2t,G.mapValues=d2t,G.matches=a$t,G.matchesProperty=s$t,G.memoize=y2,G.merge=h2t,G.mergeWith=Wve,G.method=l$t,G.methodOf=u$t,G.mixin=HB,G.negate=b2,G.nthArg=f$t,G.omit=p2t,G.omitBy=g2t,G.once=cPt,G.orderBy=XTt,G.over=d$t,G.overArgs=fPt,G.overEvery=h$t,G.overSome=p$t,G.partial=NB,G.partialRight=Dve,G.partition=YTt,G.pick=v2t,G.pickBy=Qve,G.property=Yve,G.propertyOf=g$t,G.pull=XCt,G.pullAll=wve,G.pullAllBy=YCt,G.pullAllWith=qCt,G.pullAt=KCt,G.range=v$t,G.rangeRight=m$t,G.rearg=dPt,G.reject=JTt,G.remove=JCt,G.rest=hPt,G.reverse=DB,G.sampleSize=tPt,G.set=y2t,G.setWith=b2t,G.shuffle=nPt,G.slice=eTt,G.sortBy=oPt,G.sortedUniq=sTt,G.sortedUniqBy=lTt,G.split=W2t,G.spread=pPt,G.tail=uTt,G.take=cTt,G.takeRight=fTt,G.takeRightWhile=dTt,G.takeWhile=hTt,G.tap=$Tt,G.throttle=gPt,G.thru=g2,G.toArray=Bve,G.toPairs=Hve,G.toPairsIn=Gve,G.toPath=w$t,G.toPlainObject=zve,G.transform=_2t,G.unary=vPt,G.union=pTt,G.unionBy=gTt,G.unionWith=vTt,G.uniq=mTt,G.uniqBy=yTt,G.uniqWith=bTt,G.unset=O2t,G.unzip=RB,G.unzipWith=Sve,G.update=w2t,G.updateWith=S2t,G.values=tm,G.valuesIn=x2t,G.without=_Tt,G.words=Zve,G.wrap=mPt,G.xor=OTt,G.xorBy=wTt,G.xorWith=STt,G.zip=xTt,G.zipObject=CTt,G.zipObjectDeep=TTt,G.zipWith=PTt,G.entries=Hve,G.entriesIn=Gve,G.extend=Fve,G.extendWith=w2,HB(G,G),G.add=x$t,G.attempt=Xve,G.camelCase=$2t,G.capitalize=jve,G.ceil=C$t,G.clamp=C2t,G.clone=bPt,G.cloneDeep=OPt,G.cloneDeepWith=wPt,G.cloneWith=_Pt,G.conformsTo=SPt,G.deburr=Uve,G.defaultTo=r$t,G.divide=T$t,G.endsWith=A2t,G.eq=_s,G.escape=E2t,G.escapeRegExp=M2t,G.every=BTt,G.find=zTt,G.findIndex=yve,G.findKey=JPt,G.findLast=FTt,G.findLastIndex=bve,G.findLastKey=e2t,G.floor=P$t,G.forEach=Cve,G.forEachRight=Tve,G.forIn=t2t,G.forInRight=n2t,G.forOwn=r2t,G.forOwnRight=i2t,G.get=VB,G.gt=xPt,G.gte=CPt,G.has=s2t,G.hasIn=zB,G.head=Ove,G.identity=co,G.includes=jTt,G.indexOf=FCt,G.inRange=T2t,G.invoke=c2t,G.isArguments=Bh,G.isArray=St,G.isArrayBuffer=TPt,G.isArrayLike=lo,G.isArrayLikeObject=or,G.isBoolean=PPt,G.isBuffer=rf,G.isDate=$Pt,G.isElement=APt,G.isEmpty=EPt,G.isEqual=MPt,G.isEqualWith=IPt,G.isError=LB,G.isFinite=DPt,G.isFunction=_u,G.isInteger=Rve,G.isLength=_2,G.isMap=kve,G.isMatch=RPt,G.isMatchWith=kPt,G.isNaN=NPt,G.isNative=LPt,G.isNil=VPt,G.isNull=BPt,G.isNumber=Nve,G.isObject=Hn,G.isObjectLike=qn,G.isPlainObject=j_,G.isRegExp=BB,G.isSafeInteger=zPt,G.isSet=Lve,G.isString=O2,G.isSymbol=Lo,G.isTypedArray=em,G.isUndefined=FPt,G.isWeakMap=WPt,G.isWeakSet=QPt,G.join=jCt,G.kebabCase=I2t,G.last=Na,G.lastIndexOf=UCt,G.lowerCase=D2t,G.lowerFirst=R2t,G.lt=HPt,G.lte=GPt,G.max=$$t,G.maxBy=A$t,G.mean=E$t,G.meanBy=M$t,G.min=I$t,G.minBy=D$t,G.stubArray=jB,G.stubFalse=UB,G.stubObject=y$t,G.stubString=b$t,G.stubTrue=_$t,G.multiply=R$t,G.nth=ZCt,G.noConflict=c$t,G.noop=GB,G.now=m2,G.pad=k2t,G.padEnd=N2t,G.padStart=L2t,G.parseInt=B2t,G.random=P2t,G.reduce=qTt,G.reduceRight=KTt,G.repeat=V2t,G.replace=z2t,G.result=m2t,G.round=k$t,G.runInContext=ce,G.sample=ePt,G.size=rPt,G.snakeCase=F2t,G.some=iPt,G.sortedIndex=tTt,G.sortedIndexBy=nTt,G.sortedIndexOf=rTt,G.sortedLastIndex=iTt,G.sortedLastIndexBy=oTt,G.sortedLastIndexOf=aTt,G.startCase=Q2t,G.startsWith=H2t,G.subtract=N$t,G.sum=L$t,G.sumBy=B$t,G.template=G2t,G.times=O$t,G.toFinite=Ou,G.toInteger=It,G.toLength=Vve,G.toLower=j2t,G.toNumber=La,G.toSafeInteger=jPt,G.toString=cn,G.toUpper=U2t,G.trim=Z2t,G.trimEnd=X2t,G.trimStart=Y2t,G.truncate=q2t,G.unescape=K2t,G.uniqueId=S$t,G.upperCase=J2t,G.upperFirst=FB,G.each=Cve,G.eachRight=Tve,G.first=Ove,HB(G,function(){var _={};return ml(G,function(C,E){gn.call(G.prototype,E)||(_[E]=C)}),_}(),{chain:!1}),G.VERSION=r,Ma(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){G[_].placeholder=G}),Ma(["drop","take"],function(_,C){jt.prototype[_]=function(E){E=E===n?1:$r(It(E),0);var N=this.__filtered__&&!C?new jt(this):this.clone();return N.__filtered__?N.__takeCount__=pi(E,N.__takeCount__):N.__views__.push({size:pi(E,H),type:_+(N.__dir__<0?"Right":"")}),N},jt.prototype[_+"Right"]=function(E){return this.reverse()[_](E).reverse()}}),Ma(["filter","map","takeWhile"],function(_,C){var E=C+1,N=E==L||E==B;jt.prototype[_]=function(Q){var U=this.clone();return U.__iteratees__.push({iteratee:ft(Q,3),type:E}),U.__filtered__=U.__filtered__||N,U}}),Ma(["head","last"],function(_,C){var E="take"+(C?"Right":"");jt.prototype[_]=function(){return this[E](1).value()[0]}}),Ma(["initial","tail"],function(_,C){var E="drop"+(C?"":"Right");jt.prototype[_]=function(){return this.__filtered__?new jt(this):this[E](1)}}),jt.prototype.compact=function(){return this.filter(co)},jt.prototype.find=function(_){return this.filter(_).head()},jt.prototype.findLast=function(_){return this.reverse().find(_)},jt.prototype.invokeMap=Nt(function(_,C){return typeof _=="function"?new jt(this):this.map(function(E){return z_(E,_,C)})}),jt.prototype.reject=function(_){return this.filter(b2(ft(_)))},jt.prototype.slice=function(_,C){_=It(_);var E=this;return E.__filtered__&&(_>0||C<0)?new jt(E):(_<0?E=E.takeRight(-_):_&&(E=E.drop(_)),C!==n&&(C=It(C),E=C<0?E.dropRight(-C):E.take(C-_)),E)},jt.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},jt.prototype.toArray=function(){return this.take(H)},ml(jt.prototype,function(_,C){var E=/^(?:filter|find|map|reject)|While$/.test(C),N=/^(?:head|last)$/.test(C),Q=G[N?"take"+(C=="last"?"Right":""):C],U=N||/^find/.test(C);Q&&(G.prototype[C]=function(){var q=this.__wrapped__,te=N?[1]:arguments,fe=q instanceof jt,xe=te[0],Te=fe||St(q),Ae=function(Ft){var Kt=Q.apply(G,Yc([Ft],te));return N&&We?Kt[0]:Kt};Te&&E&&typeof xe=="function"&&xe.length!=1&&(fe=Te=!1);var We=this.__chain__,et=!!this.__actions__.length,pt=U&&!We,kt=fe&&!et;if(!U&&Te){q=kt?q:new jt(this);var gt=_.apply(q,te);return gt.__actions__.push({func:g2,args:[Ae],thisArg:n}),new Da(gt,We)}return pt&&kt?_.apply(this,te):(gt=this.thru(Ae),pt?N?gt.value()[0]:gt.value():gt)})}),Ma(["pop","push","shift","sort","splice","unshift"],function(_){var C=FP[_],E=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",N=/^(?:pop|shift)$/.test(_);G.prototype[_]=function(){var Q=arguments;if(N&&!this.__chain__){var U=this.value();return C.apply(St(U)?U:[],Q)}return this[E](function(q){return C.apply(St(q)?q:[],Q)})}}),ml(jt.prototype,function(_,C){var E=G[C];if(E){var N=E.name+"";gn.call(Xv,N)||(Xv[N]=[]),Xv[N].push({name:C,func:E})}}),Xv[l2(n,y).name]=[{name:"wrapper",func:n}],jt.prototype.clone=KSt,jt.prototype.reverse=JSt,jt.prototype.value=ext,G.prototype.at=ATt,G.prototype.chain=ETt,G.prototype.commit=MTt,G.prototype.next=ITt,G.prototype.plant=RTt,G.prototype.reverse=kTt,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=NTt,G.prototype.first=G.prototype.head,D_&&(G.prototype[D_]=DTt),G},jv=MSt();Eh?((Eh.exports=jv)._=jv,Q3._=jv):Jr._=jv}).call(Tl)}(ww,ww.exports);var eU=ww.exports;const V3e=h.defineComponent({name:"DContainer",props:{style:Object,props:Object},setup(t){const e=h.computed(()=>{var i,o,a,s,l,u;return{width:((i=t.props)==null?void 0:i.width)+"px",height:((o=t.props)==null?void 0:o.height)+"px",transform:`rotateX(${((a=t.props)==null?void 0:a.rotateX)||0}deg) rotateY(${((s=t.props)==null?void 0:s.rotateY)||0}deg) rotateZ(${((l=t.props)==null?void 0:l.rotateZ)||0}deg)`,opacity:((u=t.props)==null?void 0:u.opacity)/100,...QM(eU.pick(t.style,["boxShadow","webkitBoxReflect"]))}}),n=h.computed(()=>{var i,o,a,s;return{paddingLeft:((i=t.props)==null?void 0:i.paddingLeft)+"px",paddingRight:((o=t.props)==null?void 0:o.paddingRight)+"px",paddingTop:((a=t.props)==null?void 0:a.paddingTop)+"px",paddingBottom:((s=t.props)==null?void 0:s.paddingBottom)+"px",overflow:"hidden"}}),r=h.computed(()=>{var a,s;const{style:i={}}=t,o=QM(eU.pick(i,["background","backdropFilter","borderRadius","borderStyle","borderColor","borderWidth"]));return{position:"absolute",boxSizing:"border-box",left:0,top:0,opacity:i.opacity/100,width:((a=t.props)==null?void 0:a.width)+"px",height:((s=t.props)==null?void 0:s.height)+"px",...o}});return{getContentStyle:n,getBackgroundStyle:r,getContainetStyle:e}}}),Mr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function z3e(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",h.mergeProps({class:"component-contaier",style:t.getContainetStyle},t.$attrs),[h.createElementVNode("div",{class:"component-background",style:h.normalizeStyle(t.getBackgroundStyle)},null,4),h.createElementVNode("div",{class:"component-content",style:h.normalizeStyle(t.getContentStyle)},[h.renderSlot(t.$slots,"default",{},void 0,!0)],4)],16)}const Hf=Mr(V3e,[["render",z3e],["__scopeId","data-v-54953270"]]);Hf.install=t=>(t.component(Hf.name,Hf),t);const F3e=Object.freeze(Object.defineProperty({__proto__:null,Container:Hf,default:Hf},Symbol.toStringTag,{value:"Module"})),HM={text:{type:String,required:!0},width:{type:Number},height:{type:Number},fontSize:{type:Number},fontWeight:{type:[Number,String]},color:{type:String},backgroundColor:{type:String},textAlign:{type:String},direction:{type:String}},W3e={container:{style:{background:{type:"none"}},props:{width:300,height:80}},props:{text:"标题内容",fontSize:24,color:"#fff",fontWeight:"bold",textAlign:"left",direction:"horizontal"}},Q3e=h.defineComponent({name:"DTitle",props:HM,setup(t){return{style:h.computed(()=>{const n=QM(t),r={};return n.color.length>9&&(r.backgroundImage=n.color,r.webkitBackgroundClip="text",r.webkitTextFillColor="transparent"),{...r,...n,width:"100%",height:"100%",lineHeight:t.height+"px"}})}}});function H3e(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:"cus-title",style:h.normalizeStyle(t.style)},h.toDisplayString(t.text),5)}const Gf=Mr(Q3e,[["render",H3e]]),tU=t=>(h.pushScopeId("data-v-eace9702"),t=t(),h.popScopeId(),t),G3e={key:0,class:"color-box"},j3e={class:"img-preview"},U3e=tU(()=>h.createElementVNode("div",{class:"img-empty"},"未选择",-1)),Z3e=tU(()=>h.createElementVNode("div",{class:"img-tip"},"选择素材",-1)),X3e=Mr(h.defineComponent({__name:"BackgroundSelect",props:{value:{default:()=>({type:"none",color:"",image:"",fillType:""})},filterOptions:{}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,i=h.ref(n.value),o=[{label:"无",value:"none"},{label:"颜色",value:"color"},{label:"图片",value:"image"}],a=h.computed(()=>n.filterOptions?o.filter(l=>{var u;return!((u=n.filterOptions)!=null&&u.includes(l.value))}):o);h.watch(()=>i.value,()=>{r("update:value",i.value)},{deep:!0});const s=l=>{l==="color"&&!i.value.color&&(i.value.color="#0B074BFF")};return(l,u)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(Hi),{value:i.value.type,"onUpdate:value":u[0]||(u[0]=c=>i.value.type=c),style:{width:"100%"},options:a.value,onChange:s},null,8,["value","options"]),i.value.type==="color"?(h.openBlock(),h.createElementBlock("div",G3e,[h.createVNode(h.unref(dp),{modelValue:i.value.color,"onUpdate:modelValue":u[1]||(u[1]=c=>i.value.color=c),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(O1),{modelValue:i.value.color,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value.color=c),size:"small"},null,8,["modelValue"])])):i.value.type==="image"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createVNode(h.unref(jn),{style:{"margin-top":"12px"},placeholder:"图片地址",value:i.value.image,"onUpdate:value":u[3]||(u[3]=c=>i.value.image=c)},null,8,["value"]),h.createElementVNode("div",j3e,[U3e,h.createVNode(h.unref(Fu),{src:i.value.image},null,8,["src"]),Z3e]),h.createVNode(h.unref(eF),{modelValue:i.value.fillType,"onUpdate:modelValue":u[4]||(u[4]=c=>i.value.fillType=c)},{default:h.withCtx(()=>[h.createVNode(h.unref($m),{value:"cover"},{default:h.withCtx(()=>[h.createTextVNode("填充")]),_:1}),h.createVNode(h.unref($m),{value:"contain"},{default:h.withCtx(()=>[h.createTextVNode("适应")]),_:1}),h.createVNode(h.unref($m),{value:"stretch"},{default:h.withCtx(()=>[h.createTextVNode("拉伸")]),_:1})]),_:1},8,["modelValue"])],64)):h.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-eace9702"]]),Y3e=Mr(h.defineComponent({__name:"ColorSelect",props:{value:{},gradient:{type:Boolean,default:!0}},emits:["update:value"],setup(t,{emit:e}){var s,l;const n=e,r=t,i=h.ref(((s=r.value)==null?void 0:s.length)<=9||!r.value?"pure":"gradient"),o=h.ref(r.value),a=h.ref(((l=r.value)==null?void 0:l.length)>=9?r.value.slice(22).replace(")","").split(","):["#4ba9ff","#fff"]);return h.watch(()=>[i.value,o.value,a.value],()=>{i.value==="pure"?o.value=o.value.length>9?"#FFFFFFFF":o.value:o.value=`linear-gradient(90deg, ${a.value.join(",")})`,n("update:value",o.value)},{deep:!0}),h.watch(()=>r.gradient,u=>{u||(i.value="pure",o.value=o.value.length>9?"#FFFFFFFF":o.value)}),(u,c)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[u.gradient?(h.openBlock(),h.createBlock(h.unref(eF),{key:0,modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),size:"small",style:{width:"100%"}},{default:h.withCtx(()=>[h.createVNode(h.unref($m),{value:"pure"},{default:h.withCtx(()=>[h.createTextVNode("单色")]),_:1}),h.createVNode(h.unref($m),{value:"gradient"},{default:h.withCtx(()=>[h.createTextVNode("渐变色")]),_:1})]),_:1},8,["modelValue"])):h.createCommentVNode("",!0),i.value==="pure"?(h.openBlock(),h.createElementBlock("div",{key:1,class:"color-box",style:h.normalizeStyle({marginTop:u.gradient?"12px":"0"})},[h.createVNode(h.unref(dp),{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(O1),{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=f=>o.value=f),size:"small"},null,8,["modelValue"])],4)):i.value==="gradient"?(h.openBlock(),h.createElementBlock("div",{key:2,class:"gradient-box",style:h.normalizeStyle({background:o.value})},[h.createVNode(h.unref(dp),{modelValue:a.value[0],"onUpdate:modelValue":c[3]||(c[3]=f=>a.value[0]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(dp),{modelValue:a.value[1],"onUpdate:modelValue":c[4]||(c[4]=f=>a.value[1]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"])],4)):h.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d5768739"]]),Sw=[{name:"清新",color:["#00a8e1","#99cc00","#e30039","#fcd300","#800080"]},{name:"复古",color:["#FFA69E","#FAE3D9","#B8F2E6","#56E39F","#3A837D"]},{name:"商务",color:["#194f97","#555555","#bd6b08","#00686b","#c82d31"]},{name:"经典",color:["#002c53","#ffa510","#0c84c6","#ffffff","#f74d4d"]},{name:"怀旧",color:["#3b6291","#943c39","#779043","#624c7c","#388498"]}],q3e={color:Sw[0].color,title:{show:!0,left:"center",top:8,textStyle:{color:"#FFFFFFFF",fontSize:16,fontWeight:"normal"}},legend:{show:!0,textStyle:{color:"#FFFFFFFF"},top:32,bottom:"auto",left:"center",right:"auto"},grid:{bottom:34,right:20,left:20,top:60},xAxis:{type:"category",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLine:{show:!0,lineStyle:{width:1}},axisTick:{show:!0,lineStyle:{width:1,color:"#ccc"}}},yAxis:{splitLine:{show:!0,lineStyle:{type:"dashed",color:"#36485f"}},type:"value",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal",rotate:0},axisLine:{show:!1,lineStyle:{width:1,color:"#ccc"}},axisTick:{show:!1,lineStyle:{width:1,color:"#ccc"}}},tooltip:{show:!0,trigger:"axis",formatter:"{b} {c}",axisPointer:{type:"line"},textStyle:{color:"#000000FF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},padding:10,borderWidth:1,borderColor:"#ccc",borderRadius:4,backgroundColor:"#FFFFFFFF",extraCssText:""}},K3e={class:"color-list"},J3e={class:"del-btn"},eBe=Mr(h.defineComponent({__name:"ColorScheme",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=Sw.map(d=>d.color.join(",")),i=e,o=h.ref(r.includes(n.value.join(","))?n.value.join(","):"custom"),a=h.ref(n.value),s=h.ref();function l(d){d==="custom"||(a.value=d.split(","),i("update:value",d.split(",")))}const u=()=>{var d;(d=s.value)==null||d.show()};function c(d){a.value.push(d),o.value="custom",i("update:value",a.value)}const f=d=>{a.value.splice(d,1),o.value="custom",i("update:value",a.value)};return(d,p)=>(h.openBlock(),h.createElementBlock("div",null,[h.createVNode(h.unref(Hi),{value:o.value,"onUpdate:value":p[0]||(p[0]=g=>o.value=g),size:"small",style:{width:"100%"},onChange:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(Sw),g=>(h.openBlock(),h.createBlock(h.unref(Ip),{key:g.name,value:g.color.join(",")},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(g.color.slice(0,5),v=>(h.openBlock(),h.createElementBlock("span",{class:"color-block",key:v,style:h.normalizeStyle({background:v})},null,4))),128)),h.createTextVNode(" "+h.toDisplayString(g.name),1)]),_:2},1032,["value"]))),128)),h.createVNode(h.unref(Ip),{value:"custom"},{default:h.withCtx(()=>[h.createTextVNode("自定义组合")]),_:1})]),_:1},8,["value"]),h.createElementVNode("div",K3e,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(g,v)=>(h.openBlock(),h.createElementBlock("span",{class:"color-block",key:v,style:h.normalizeStyle({background:g})},[h.createElementVNode("span",J3e,[h.createVNode(h.unref(Xo),{onClick:m=>f(v)},null,8,["onClick"])])],4))),128)),h.createElementVNode("span",{class:"color-block cus-btn",onClick:u},[h.createVNode(h.unref(YO))]),h.createVNode(h.unref(dp),{ref_key:"colorPickerRef",ref:s,style:{width:"0",height:"0",opacity:"0"},onChange:c},null,512)])]))}}),[["__scopeId","data-v-b29b1b78"]]),tBe={class:"position"},nBe=Mr(h.defineComponent({__name:"Position",props:{value:{},type:{default:"line"}},emits:["update:value"],setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("div",tBe,[e.type==="line"?(h.openBlock(),h.createBlock(h.unref(Rf),{key:0,value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r.target.value))},{default:h.withCtx(()=>[h.createVNode(h.unref(Is),{value:"left"},{default:h.withCtx(()=>[h.createVNode(h.unref(pM))]),_:1}),h.createVNode(h.unref(Is),{value:"center"},{default:h.withCtx(()=>[h.createVNode(h.unref(hM))]),_:1}),h.createVNode(h.unref(Is),{value:"right"},{default:h.withCtx(()=>[h.createVNode(h.unref(gM))]),_:1})]),_:1},8,["value"])):e.type==="round"?(h.openBlock(),h.createBlock(h.unref(Rf),{key:1,value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r.target.value))},{default:h.withCtx(()=>[h.createVNode(h.unref(Is),{value:"top"},{default:h.withCtx(()=>[h.createVNode(h.unref(_M))]),_:1}),h.createVNode(h.unref(Is),{value:"bottom"},{default:h.withCtx(()=>[h.createVNode(h.unref(mM))]),_:1}),h.createVNode(h.unref(Is),{value:"left"},{default:h.withCtx(()=>[h.createVNode(h.unref(yM))]),_:1}),h.createVNode(h.unref(Is),{value:"right"},{default:h.withCtx(()=>[h.createVNode(h.unref(bM))]),_:1})]),_:1},8,["value"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a4b8591a"]]),rBe={class:"font-style"},iBe={class:"cus-btn"},oBe=Mr(h.defineComponent({__name:"FontStyle",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){var v,m,y,b;const n=t,r=e,i=h.ref((v=n.value)==null?void 0:v.bold),o=h.ref((m=n.value)==null?void 0:m.italic),a=h.ref((y=n.value)==null?void 0:y.size),s=h.ref((b=n.value)==null?void 0:b.color),l=h.ref(),u=()=>{r("update:value",{size:a.value,bold:i.value,italic:o.value,color:s.value})},c=()=>{i.value=!i.value,u()},f=()=>{o.value=!o.value,u()};function d(O){s.value=O,u()}function p(O){a.value=O,u()}const g=()=>{var O;(O=l.value)==null||O.show()};return(O,w)=>(h.openBlock(),h.createElementBlock("div",rBe,[h.createVNode(h.unref(ri),{size:"small",onClick:g},{default:h.withCtx(()=>[h.createElementVNode("span",iBe,[h.createVNode(h.unref(OM)),h.createElementVNode("div",{class:"color-block",style:h.normalizeStyle({background:s.value})},null,4),h.createVNode(h.unref(dp),{ref_key:"colorPickerRef",ref:l,style:{width:"0",height:"0",opacity:"0"},value:s.value,"onUpdate:value":w[0]||(w[0]=S=>s.value=S),onChange:d},null,8,["value"])])]),_:1}),h.createVNode(h.unref(ri),{size:"small",onClick:c},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass(["cus-btn",{"active-btn":i.value}])},[h.createVNode(h.unref(vM))],2)]),_:1}),h.createVNode(h.unref(ri),{size:"small",onClick:f},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass(["cus-btn",{"active-btn":o.value}])},[h.createVNode(h.unref(wM))],2)]),_:1}),h.createVNode(h.unref(l0),{size:"small",value:a.value,min:12,step:1,precision:0,style:{width:"80px"},onChange:p},{addonAfter:h.withCtx(()=>[h.createTextVNode("px")]),_:1},8,["value"])]))}}),[["__scopeId","data-v-12e62bfe"]]),aBe={class:"cus-slider"},sBe=Mr(h.defineComponent({__name:"CusSlider",props:{value:{}},emits:["update:value"],setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("div",aBe,[h.createVNode(h.unref(I8e),{value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r)),"tip-formatter":r=>`${r}%`},null,8,["value","tip-formatter"]),h.createVNode(h.unref(l0),{value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r)),"addon-after":"%"},null,8,["value"])]))}}),[["__scopeId","data-v-2fe8fa98"]]),lBe=h.defineComponent({name:"FmBorderRadius",components:{RadioGroup:Rf,RadioButton:Is,InputNumber:l0,Select:Hi,RadiusUpleftOutlined:CM,RadiusUprightOutlined:TM,RadiusBottomleftOutlined:SM,RadiusBottomrightOutlined:xM},props:{value:{type:Object,default:()=>({})}},emits:["update:value"],setup(t,{emit:e}){var r,i,o,a;const n=h.reactive({type:t.value.type||"all",value:t.value.type==="all"?t.value.value:0,unit:t.value.unit||"px",topLeft:typeof t.value.value=="object"?(r=t.value.value)==null?void 0:r.topLeft:0,topRight:typeof t.value.value=="object"?(i=t.value.value)==null?void 0:i.topRight:0,bottomLeft:typeof t.value.value=="object"?(o=t.value.value)==null?void 0:o.bottomLeft:0,bottomRight:typeof t.value.value=="object"?(a=t.value.value)==null?void 0:a.bottomRight:0});return h.watch(()=>n,s=>{e("update:value",{type:s.type,value:s.type==="all"?s.value:{topLeft:s.topLeft,topRight:s.topRight,bottomLeft:s.bottomLeft,bottomRight:s.bottomRight},unit:s.unit})},{deep:!0}),{radius:n,unitOptions:[{label:"px",value:"px"},{label:"%",value:"%"}]}}}),uBe={key:0,class:"all"},cBe={key:1,class:"custom"};function fBe(t,e,n,r,i,o){const a=h.resolveComponent("RadioButton"),s=h.resolveComponent("RadioGroup"),l=h.resolveComponent("InputNumber"),u=h.resolveComponent("Select"),c=h.resolveComponent("RadiusUpleftOutlined"),f=h.resolveComponent("RadiusUprightOutlined"),d=h.resolveComponent("RadiusBottomleftOutlined"),p=h.resolveComponent("RadiusBottomrightOutlined");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(s,{value:t.radius.type,"onUpdate:value":e[0]||(e[0]=g=>t.radius.type=g)},{default:h.withCtx(()=>[h.createVNode(a,{value:"all"},{default:h.withCtx(()=>[h.createTextVNode("整体")]),_:1}),h.createVNode(a,{value:"custom"},{default:h.withCtx(()=>[h.createTextVNode("单个")]),_:1})]),_:1},8,["value"]),t.radius.type==="all"?(h.openBlock(),h.createElementBlock("div",uBe,[h.createVNode(l,{value:t.radius.value,"onUpdate:value":e[1]||(e[1]=g=>t.radius.value=g)},null,8,["value"]),h.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[2]||(e[2]=g=>t.radius.unit=g),options:t.unitOptions},null,8,["value","options"])])):(h.openBlock(),h.createElementBlock("div",cBe,[h.createVNode(l,{value:t.radius.topLeft,"onUpdate:value":e[3]||(e[3]=g=>t.radius.topLeft=g)},{addonBefore:h.withCtx(()=>[h.createVNode(c)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.topRight,"onUpdate:value":e[4]||(e[4]=g=>t.radius.topRight=g)},{addonBefore:h.withCtx(()=>[h.createVNode(f)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.bottomLeft,"onUpdate:value":e[5]||(e[5]=g=>t.radius.bottomLeft=g)},{addonBefore:h.withCtx(()=>[h.createVNode(d)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.bottomRight,"onUpdate:value":e[6]||(e[6]=g=>t.radius.bottomRight=g)},{addonBefore:h.withCtx(()=>[h.createVNode(p)]),_:1},8,["value"]),h.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[7]||(e[7]=g=>t.radius.unit=g),options:t.unitOptions},null,8,["value","options"])]))])}const dBe=Mr(lBe,[["render",fBe],["__scopeId","data-v-da2b5cf6"]]),hBe=Mr(h.defineComponent({__name:"CusFormItem",props:{item:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=h.ref(n.modelValue);return h.watch(()=>i.value,()=>{r("update:modelValue",i.value)},{deep:!0}),h.watch(()=>n.modelValue,o=>{fm(o,i.value)||(i.value=o)}),(o,a)=>(h.openBlock(),h.createBlock(h.unref(cH),{label:o.item.type!=="divider"?o.item.label:"",name:o.item.prop,rules:o.item.rules},{default:h.withCtx(()=>{var s,l,u,c,f,d,p,g,v,m,y;return[o.item.type==="divider"?(h.openBlock(),h.createBlock(h.unref(ALe),{key:0,style:{margin:"0"}},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(o.item.label),1)]),_:1})):o.item.type==="input"?(h.openBlock(),h.createBlock(h.unref(jn),h.mergeProps({key:1,value:i.value,"onUpdate:value":a[0]||(a[0]=b=>i.value=b)},(s=o.item)==null?void 0:s.fieldProps),null,16,["value"])):o.item.type==="select"?(h.openBlock(),h.createBlock(h.unref(Hi),h.mergeProps({key:2,value:i.value,"onUpdate:value":a[1]||(a[1]=b=>i.value=b)},(l=o.item)==null?void 0:l.fieldProps),null,16,["value"])):o.item.type==="inputNumber"?(h.openBlock(),h.createBlock(h.unref(l0),h.mergeProps({key:3,value:i.value,"onUpdate:value":a[2]||(a[2]=b=>i.value=b)},(u=o.item)==null?void 0:u.fieldProps,{style:{width:"100%"}}),null,16,["value"])):o.item.type==="image"?(h.openBlock(),h.createBlock(h.unref(Fu),h.mergeProps({key:4,value:i.value,"onUpdate:value":a[3]||(a[3]=b=>i.value=b)},(c=o.item)==null?void 0:c.fieldProps),null,16,["value"])):o.item.type==="checkboxGroup"?(h.openBlock(),h.createBlock(h.unref(tw),h.mergeProps({key:5,value:i.value,"onUpdate:value":a[4]||(a[4]=b=>i.value=b)},(f=o.item)==null?void 0:f.fieldProps),null,16,["value"])):o.item.type==="backgroundSelect"?(h.openBlock(),h.createBlock(X3e,h.mergeProps({key:6,value:i.value,"onUpdate:value":a[5]||(a[5]=b=>i.value=b)},(d=o.item)==null?void 0:d.fieldProps),null,16,["value"])):o.item.type==="colorSelect"?(h.openBlock(),h.createBlock(Y3e,h.mergeProps({key:7,value:i.value,"onUpdate:value":a[6]||(a[6]=b=>i.value=b)},(p=o.item)==null?void 0:p.fieldProps),null,16,["value"])):o.item.type==="colorScheme"?(h.openBlock(),h.createBlock(eBe,h.mergeProps({key:8,value:i.value,"onUpdate:value":a[7]||(a[7]=b=>i.value=b)},(g=o.item)==null?void 0:g.fieldProps),null,16,["value"])):o.item.type==="radioGroup"?(h.openBlock(),h.createBlock(h.unref(Rf),h.mergeProps({key:9,value:i.value,"onUpdate:value":a[8]||(a[8]=b=>i.value=b),size:"small"},(v=o.item)==null?void 0:v.fieldProps),null,16,["value"])):o.item.type==="radioGroupButton"?(h.openBlock(),h.createBlock(h.unref(Rf),{key:10,value:i.value,"onUpdate:value":a[9]||(a[9]=b=>i.value=b),size:"small"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.item.fieldProps.options,b=>(h.openBlock(),h.createBlock(h.unref(Is),{key:b.value,value:b.value},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])):o.item.type==="position"?(h.openBlock(),h.createBlock(nBe,h.mergeProps({key:11,value:i.value,"onUpdate:value":a[10]||(a[10]=b=>i.value=b)},(m=o.item)==null?void 0:m.fieldProps),null,16,["value"])):o.item.type==="fontStyle"?(h.openBlock(),h.createBlock(oBe,h.mergeProps({key:12,value:i.value,"onUpdate:value":a[11]||(a[11]=b=>i.value=b)},(y=o.item)==null?void 0:y.fieldProps),null,16,["value"])):o.item.type==="slider"?(h.openBlock(),h.createBlock(h.unref(Km),{key:13},{default:h.withCtx(()=>{var b;return[h.createVNode(sBe,h.mergeProps({value:i.value,"onUpdate:value":a[12]||(a[12]=O=>i.value=O)},(b=o.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):o.item.type==="boderRadiusSelect"?(h.openBlock(),h.createBlock(h.unref(Km),{key:14},{default:h.withCtx(()=>{var b;return[h.createVNode(dBe,h.mergeProps({value:i.value,"onUpdate:value":a[13]||(a[13]=O=>i.value=O)},(b=o.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):h.createCommentVNode("",!0),o.item.tip?(h.openBlock(),h.createBlock(h.unref(NO),{key:15,title:o.item.tip},{default:h.withCtx(()=>[h.createVNode(h.unref(DO),{style:{color:"#666"}})]),_:1},8,["title"])):h.createCommentVNode("",!0)]}),_:1},8,["label","name","rules"]))}}),[["__scopeId","data-v-04c55003"]]),Qu=h.defineComponent({name:"DCusForm",props:{columns:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>({})}},emits:["change"],setup(t,{emit:e}){const n=h.ref({}),r=h.ref(),i=h.ref({}),o=h.computed(()=>t.columns.map(f=>({...f,rules:(f==null?void 0:f.rules)||[]}))),a=f=>{f==null||f.forEach(d=>{var p;if(d.type==="group")a(d.children);else if(d.type==="dependency"){const g=(p=d.children)==null?void 0:p.call(d,Xh(n.value,d.name||[]),n);a(g)}else{if(d.type==="divider")return;const g=Ut(t.formModel,d.prop);n.value[d.prop]=d!=null&&d.valueToForm?d.valueToForm(g,t.formModel):g??d.defaultValue,d.format?d.format(i,n.value[d.prop]):i.value[d.prop]=g??d.defaultValue}})},s=(f,d)=>{n.value[d.prop]=f,d.format?d.format(i,f):i.value[d.prop]=f,e("change",i.value)},l=f=>{var d;switch(f.type){case"dependency":{const p=(d=f.children)==null?void 0:d.call(f,Xh(n.value,f.name||[]),n);return a(p),c(p)}case"group":return u(f);default:return React.createElement(hBe,{key:f.prop,item:f,modelValue:n.value[f.prop],"onUpdate:modelValue":p=>{s(p,f)}})}},u=f=>{var d;return React.createElement(n0,{style:{borderRadius:0}},React.createElement(qO,{style:{borderRadius:0},key:f.prop,header:f.label},(d=f.children)==null?void 0:d.map(p=>l(p))))},c=f=>f.map(d=>{switch(d.type){case"group":return u(d);default:return l(d)}});return h.watch(()=>o.value,f=>{f&&a(f)},{immediate:!0}),()=>React.createElement(mr,{model:n,colon:!1,"label-col":{span:8},ref:r,layout:"horizontal",size:"small"},c(o.value))}});Qu.install=t=>(t.component(Qu.name,Qu),t);const nU=h.defineComponent({__name:"Config",props:HM,emits:["change"],setup(t,{emit:e}){const n=t,r=e,i=h.computed(()=>[{label:"内容",prop:"text",type:"input",defaultValue:n.text},{label:"字体",prop:"fontSize",type:"inputNumber",defaultValue:n.fontSize},{label:"颜色",prop:"color",type:"colorSelect",defaultValue:n.color},{label:"对齐",prop:"textAlign",type:"radioGroup",defaultValue:n.textAlign,fieldProps:{options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]}}]),o=a=>{r("change",a)};return(a,s)=>(h.openBlock(),h.createBlock(h.unref(Qu),h.mergeProps({columns:i.value},a.$attrs,{onChange:o}),null,16,["columns"]))}});Gf.Config=nU,Gf.install=t=>(t.component(Gf.name,Gf),t);const pBe=Object.freeze(Object.defineProperty({__proto__:null,Config:nU,default:Gf,defaultPropsValue:W3e,titleProps:HM},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
  309. Copyright (c) Microsoft Corporation.
  310. Permission to use, copy, modify, and/or distribute this software for any
  311. purpose with or without fee is hereby granted.
  312. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  313. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  314. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  315. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  316. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  317. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  318. PERFORMANCE OF THIS SOFTWARE.
  319. ***************************************************************************** */var GM=function(t,e){return GM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},GM(t,e)};function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");GM(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var gBe=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),vBe=function(){function t(){this.browser=new gBe,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 t}(),jf=new vBe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(jf.wxa=!0,jf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?jf.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(jf.node=!0,jf.svgSupported=!0):mBe(navigator.userAgent,jf);function mBe(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Ct=jf;var jM=12,rU="sans-serif",Hu=jM+"px "+rU,yBe=20,bBe=100,_Be="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function OBe(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-yBe)/bBe;e[r]=i}return e}var wBe=OBe(_Be),qa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=qa.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Hu),t.measureText(n);n=n||"",r=r||Hu;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||jM,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=wBe[n[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function iU(t){for(var e in qa)t[e]&&(qa[e]=t[e])}var oU=ta(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),aU=ta(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),jp=Object.prototype.toString,xw=Array.prototype,SBe=xw.forEach,xBe=xw.filter,UM=xw.slice,CBe=xw.map,sU=(function(){}).constructor,Cw=sU?sU.prototype:null,ZM="__proto__",TBe=2311;function XM(){return TBe++}function ea(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ue(t){if(t==null||typeof t!="object")return t;var e=t,n=jp.call(t);if(n==="[object Array]"){if(!Up(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=Ue(t[r])}}else if(aU[n]){if(!Up(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!oU[n]&&!Up(t)&&!Gu(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==ZM&&(e[a]=Ue(t[a]))}return e}function it(t,e,n){if(!Qe(e)||!Qe(t))return n?Ue(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==ZM){var i=t[r],o=e[r];Qe(o)&&Qe(i)&&!ge(o)&&!ge(i)&&!Gu(o)&&!Gu(i)&&!qM(o)&&!qM(i)&&!Up(o)&&!Up(i)?it(i,o,n):(n||!(r in t))&&(t[r]=Ue(e[r]))}return t}function Tw(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=it(n,t[r],e);return n}function he(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==ZM&&(t[n]=e[n]);return t}function Ge(t,e,n){for(var r=bt(e),i=0;i<r.length;i++){var o=r[i];(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var PBe=qa.createCanvas;function st(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function YM(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function Wn(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}else Ge(t,e,n)}function Wr(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function V(t,e,n){if(t&&e)if(t.forEach&&t.forEach===SBe)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function me(t,e,n){if(!t)return[];if(!e)return Pw(t);if(t.map&&t.map===CBe)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function ta(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function Yt(t,e,n){if(!t)return[];if(!e)return Pw(t);if(t.filter&&t.filter===xBe)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function lU(t,e,n){if(t&&e){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}}function bt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function $Be(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(UM.call(arguments)))}}var Re=Cw&&ze(Cw.bind)?Cw.call.bind(Cw.bind):$Be;function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(UM.call(arguments)))}}function ge(t){return Array.isArray?Array.isArray(t):jp.call(t)==="[object Array]"}function ze(t){return typeof t=="function"}function Ie(t){return typeof t=="string"}function y0(t){return jp.call(t)==="[object String]"}function Et(t){return typeof t=="number"}function Qe(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function qM(t){return!!oU[jp.call(t)]}function ii(t){return!!aU[jp.call(t)]}function Gu(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function b0(t){return t.colorStops!=null}function uU(t){return t.image!=null}function KM(t){return jp.call(t)==="[object RegExp]"}function ju(t){return t!==t}function Un(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function Je(t,e){return t??e}function _o(t,e,n){return t??e??n}function Pw(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return UM.apply(t,e)}function $w(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function je(t,e){if(!t)throw new Error(e)}function na(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cU="__ec_primitive__";function _0(t){t[cU]=!0}function Up(t){return t[cU]}var ABe=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return bt(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),fU=typeof Map=="function";function EBe(){return fU?new Map:new ABe}var dU=function(){function t(e){var n=ge(e);this.data=EBe();var r=this;e instanceof t?e.each(i):e&&V(e,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,i){e.call(n,r,i)})},t.prototype.keys=function(){var e=this.data.keys();return fU?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Le(t){return new dU(t)}function O0(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}function w0(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&he(n,e),n}function JM(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ke(t,e){return t.hasOwnProperty(e)}function Qn(){}var S0=180/Math.PI;const MBe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:dU,RADIAN_TO_DEGREE:S0,assert:je,bind:Re,clone:Ue,concatArray:O0,createCanvas:PBe,createHashMap:Le,createObject:w0,curry:tt,defaults:Ge,disableUserSelect:JM,each:V,eqNaN:ju,extend:he,filter:Yt,find:lU,guid:XM,hasOwn:ke,indexOf:st,inherits:YM,isArray:ge,isArrayLike:Wr,isBuiltInObject:qM,isDom:Gu,isFunction:ze,isGradientObject:b0,isImagePatternObject:uU,isNumber:Et,isObject:Qe,isPrimitive:Up,isRegExp:KM,isString:Ie,isStringSafe:y0,isTypedArray:ii,keys:bt,logError:ea,map:me,merge:it,mergeAll:Tw,mixin:Wn,noop:Qn,normalizeCssArray:$w,reduce:ta,retrieve:Un,retrieve2:Je,retrieve3:_o,setAsPrimitive:_0,slice:Pw,trim:na},Symbol.toStringTag,{value:"Module"}));function Uu(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function oi(t,e){return t[0]=e[0],t[1]=e[1],t}function Rs(t){return[t[0],t[1]]}function hU(t,e,n){return t[0]=e,t[1]=n,t}function eI(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Aw(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Zu(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function x0(t){return Math.sqrt(tI(t))}var IBe=x0;function tI(t){return t[0]*t[0]+t[1]*t[1]}var DBe=tI;function RBe(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function kBe(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function NBe(t,e){return t[0]*e[0]+t[1]*e[1]}function C0(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Uf(t,e){var n=x0(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Ew(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Ll=Ew;function pU(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Xu=pU;function LBe(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Ir(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Bl(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Vl(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const BBe=Object.freeze(Object.defineProperty({__proto__:null,add:eI,applyTransform:Ir,clone:Rs,copy:oi,create:Uu,dist:Ll,distSquare:Xu,distance:Ew,distanceSquare:pU,div:kBe,dot:NBe,len:x0,lenSquare:tI,length:IBe,lengthSquare:DBe,lerp:T0,max:Vl,min:Bl,mul:RBe,negate:LBe,normalize:Uf,scale:C0,scaleAndAdd:Aw,set:hU,sub:Zu},Symbol.toStringTag,{value:"Module"}));var Zp=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),VBe=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Zp(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,i=e.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,e),this.handler.dispatchToElement(new Zp(n,e),"drag",e.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Zp(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Zp(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Zp(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Zp(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),ra=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!e)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[e].length-1,c=o[e][u];return c&&c.callAtLast?o[e].splice(u,0,l):o[e].push(l),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var i=[],o=0,a=r[e].length;o<a;o++)r[e][o].h!==n&&i.push(r[e][o]);r[e]=i}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(e,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},t}(),zBe=Math.log(2);function nI(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/zBe);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,p=0;d<s;d++){var g=1<<d;g&i||(f+=(p%2?-1:1)*t[n][d]*nI(t,e-1,c,u,i|g,o),p++)}return o[a]=f,f}function gU(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=nI(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*nI(n,7,a===0?1:0,1<<a,1<<s,r)/i*e[a];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var vU="___zrEVENTSAVED",rI=[];function FBe(t,e,n,r,i){return iI(rI,e,r,i,!0)&&iI(t,n,rI[0],rI[1])}function iI(t,e,n,r,i){if(e.getBoundingClientRect&&Ct.domSupported&&!mU(e)){var o=e[vU]||(e[vU]={}),a=WBe(e,o),s=QBe(a,o,i);if(s)return s(t,n,r),!0}return!1}function WBe(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function QBe(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[f]&&p===o[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?gU(s,a):gU(a,s))}function mU(t){return t.nodeName.toUpperCase()==="CANVAS"}var HBe=/([&<>"'])/g,GBe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _i(t){return t==null?"":(t+"").replace(HBe,function(e,n){return GBe[n]})}var jBe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oI=[],UBe=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function aI(t,e,n,r){return n=n||{},r?yU(t,e,n):UBe&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):yU(t,e,n),n}function yU(t,e,n){if(Ct.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(mU(t)){var o=t.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(iI(oI,t,r,i)){n.zrX=oI[0],n.zrY=oI[1];return}}n.zrX=n.zrY=0}function sI(t){return t||window.event}function ia(t,e,n){if(e=sI(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];a&&aI(t,a,e,n)}else{aI(t,e,e,n);var o=ZBe(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&jBe.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function ZBe(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function lI(t,e,n,r){t.addEventListener(e,n,r)}function XBe(t,e,n,r){t.removeEventListener(e,n,r)}var zl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function bU(t){return t.which===2||t.which===3}var YBe=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var i=e.touches;if(i){for(var o={points:[],touches:[],target:n,event:e},a=0,s=i.length;a<s;a++){var l=i[a],u=aI(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},t.prototype._recognize=function(e){for(var n in uI)if(uI.hasOwnProperty(n)){var r=uI[n](this._track,e);if(r)return r}},t}();function _U(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function qBe(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var uI={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=_U(r)/_U(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=qBe(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Ui(){return[1,0,0,1,0,0]}function P0(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mw(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ks(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ka(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Yu(t,e,n,r){r===void 0&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),f=Math.cos(n);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=o*f+l*c,t[3]=-o*c+f*l,t[4]=f*(a-r[0])+c*(u-r[1])+r[0],t[5]=f*(u-r[1])-c*(a-r[0])+r[1],t}function Iw(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Zf(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function OU(t){var e=Ui();return Mw(e,t),e}const KBe=Object.freeze(Object.defineProperty({__proto__:null,clone:OU,copy:Mw,create:Ui,identity:P0,invert:Zf,mul:ks,rotate:Yu,scale:Iw,translate:Ka},Symbol.toStringTag,{value:"Module"}));var ot=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,i){e.x=n.x+r.x*i,e.y=n.y+r.y*i},t.lerp=function(e,n,r,i){var o=1-i;e.x=o*n.x+i*r.x,e.y=o*n.y+i*r.y},t}(),Dw=Math.min,Rw=Math.max,Xf=new ot,Yf=new ot,qf=new ot,Kf=new ot,$0=new ot,A0=new ot,JBe=function(){function t(e,n,r,i){r<0&&(e=e+r,r=-r),i<0&&(n=n+i,i=-i),this.x=e,this.y=n,this.width=r,this.height=i}return t.prototype.union=function(e){var n=Dw(e.x,this.x),r=Dw(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rw(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rw(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,i=e.height/n.height,o=Ui();return Ka(o,o,[-n.x,-n.y]),Iw(o,o,[r,i]),Ka(o,o,[e.x,e.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(o<l||u<i||s<c||f<a);if(n){var p=1/0,g=0,v=Math.abs(o-l),m=Math.abs(u-i),y=Math.abs(s-c),b=Math.abs(f-a),O=Math.min(v,m),w=Math.min(y,b);o<l||u<i?O>g&&(g=O,v<m?ot.set(A0,-v,0):ot.set(A0,m,0)):O<p&&(p=O,v<m?ot.set($0,v,0):ot.set($0,-m,0)),s<c||f<a?w>g&&(g=w,y<b?ot.set(A0,0,-y):ot.set(A0,0,b)):O<p&&(p=O,y<b?ot.set($0,0,y):ot.set($0,0,-b))}return n&&ot.copy(n,d?$0:A0),d},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xf.x=qf.x=n.x,Xf.y=Kf.y=n.y,Yf.x=Kf.x=n.x+n.width,Yf.y=qf.y=n.y+n.height,Xf.transform(r),Kf.transform(r),Yf.transform(r),qf.transform(r),e.x=Dw(Xf.x,Yf.x,qf.x,Kf.x),e.y=Dw(Xf.y,Yf.y,qf.y,Kf.y);var l=Rw(Xf.x,Yf.x,qf.x,Kf.x),u=Rw(Xf.y,Yf.y,qf.y,Kf.y);e.width=l-e.x,e.height=u-e.y},t}();const at=JBe;var wU="silent";function e6e(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:t6e}}function t6e(){zl(this.event)}var n6e=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ra),E0=function(){function t(e,n){this.x=e,this.y=n}return t}(),r6e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cI=new at(0,0,0,0),SU=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this)||this;return s._hovered=new E0(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new n6e,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new VBe(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(V(r6e,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=CU(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new E0(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new E0(0,0)},e.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=e6e(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new E0(n,r);if(xU(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new at(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(cI.copy(d.getBoundingRect()),d.transform&&cI.applyTransform(d.transform),cI.intersect(c)&&s.push(d))}if(s.length)for(var p=4,g=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=p)for(var y=0;y<v;y+=g){var b=n+m*Math.cos(y),O=r+m*Math.sin(y);if(xU(s,a,b,O,i),a.target)return a}}return a},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new YBe);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new E0;s.target=o.target,this.dispatchToElement(s,a,o.event)}},e}(ra);V(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){SU.prototype[t]=function(e){var n=e.zrX,r=e.zrY,i=CU(this,n,r),o,a;if((t!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),t==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(t==="mouseup")this._upEl=a;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ll(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}});function i6e(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?wU:!0}return!1}function xU(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=i6e(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==wU)){e.target=a;break}}}function CU(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var TU=32,M0=7;function o6e(t){for(var e=0;t>=TU;)e|=t&1,t>>=1;return t+e}function PU(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;a6e(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function a6e(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function $U(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o=t[r],a=e,s=r,l;a<s;)l=a+s>>>1,i(o,t[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;u>0;)t[a+u]=t[a+u-1],u--}t[a]=o}}function fI(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function dI(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function s6e(t,e){var n=M0,r,i,o=0,a=[];r=[],i=[];function s(p,g){r[o]=p,i[o]=g,o+=1}function l(){for(;o>1;){var p=o-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;c(p)}}function u(){for(;o>1;){var p=o-2;p>0&&i[p-1]<i[p+1]&&p--,c(p)}}function c(p){var g=r[p],v=i[p],m=r[p+1],y=i[p+1];i[p]=v+y,p===o-3&&(r[p+1]=r[p+2],i[p+1]=i[p+2]),o--;var b=dI(t[m],t,g,v,0,e);g+=b,v-=b,v!==0&&(y=fI(t[g+v-1],t,m,y,y-1,e),y!==0&&(v<=y?f(g,v,m,y):d(g,v,m,y)))}function f(p,g,v,m){var y=0;for(y=0;y<g;y++)a[y]=t[p+y];var b=0,O=v,w=p;if(t[w++]=t[O++],--m===0){for(y=0;y<g;y++)t[w+y]=a[b+y];return}if(g===1){for(y=0;y<m;y++)t[w+y]=t[O+y];t[w+m]=a[b];return}for(var S=n,x,T,$;;){x=0,T=0,$=!1;do if(e(t[O],a[b])<0){if(t[w++]=t[O++],T++,x=0,--m===0){$=!0;break}}else if(t[w++]=a[b++],x++,T=0,--g===1){$=!0;break}while((x|T)<S);if($)break;do{if(x=dI(t[O],a,b,g,0,e),x!==0){for(y=0;y<x;y++)t[w+y]=a[b+y];if(w+=x,b+=x,g-=x,g<=1){$=!0;break}}if(t[w++]=t[O++],--m===0){$=!0;break}if(T=fI(a[b],t,O,m,0,e),T!==0){for(y=0;y<T;y++)t[w+y]=t[O+y];if(w+=T,O+=T,m-=T,m===0){$=!0;break}}if(t[w++]=a[b++],--g===1){$=!0;break}S--}while(x>=M0||T>=M0);if($)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),g===1){for(y=0;y<m;y++)t[w+y]=t[O+y];t[w+m]=a[b]}else{if(g===0)throw new Error;for(y=0;y<g;y++)t[w+y]=a[b+y]}}function d(p,g,v,m){var y=0;for(y=0;y<m;y++)a[y]=t[v+y];var b=p+g-1,O=m-1,w=v+m-1,S=0,x=0;if(t[w--]=t[b--],--g===0){for(S=w-(m-1),y=0;y<m;y++)t[S+y]=a[y];return}if(m===1){for(w-=g,b-=g,x=w+1,S=b+1,y=g-1;y>=0;y--)t[x+y]=t[S+y];t[w]=a[O];return}for(var T=n;;){var $=0,A=0,P=!1;do if(e(a[O],t[b])<0){if(t[w--]=t[b--],$++,A=0,--g===0){P=!0;break}}else if(t[w--]=a[O--],A++,$=0,--m===1){P=!0;break}while(($|A)<T);if(P)break;do{if($=g-dI(a[O],t,p,g,g-1,e),$!==0){for(w-=$,b-=$,g-=$,x=w+1,S=b+1,y=$-1;y>=0;y--)t[x+y]=t[S+y];if(g===0){P=!0;break}}if(t[w--]=a[O--],--m===1){P=!0;break}if(A=m-fI(t[b],a,0,m,m-1,e),A!==0){for(w-=A,O-=A,m-=A,x=w+1,S=O+1,y=0;y<A;y++)t[x+y]=a[S+y];if(m<=1){P=!0;break}}if(t[w--]=t[b--],--g===0){P=!0;break}T--}while($>=M0||A>=M0);if(P)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),m===1){for(w-=g,b-=g,x=w+1,S=b+1,y=g-1;y>=0;y--)t[x+y]=t[S+y];t[w]=a[O]}else{if(m===0)throw new Error;for(S=w-(m-1),y=0;y<m;y++)t[S+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function kw(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<TU){o=PU(t,n,r,e),$U(t,n,r,n+o,e);return}var a=s6e(t,e),s=o6e(i);do{if(o=PU(t,n,r,e),o<s){var l=i;l>s&&(l=s),$U(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var Oo=1,I0=2,Xp=4,AU=!1;function hI(){AU||(AU=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function EU(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l6e=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=EU}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,e);r.length=this._displayListLen,kw(r,EU)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=e;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Oo),this._updateAndAddDisplayable(u,n,r)}e.__dirty=0}else{var c=e;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(hI(),c.z=0),isNaN(c.z2)&&(hI(),c.z2=0),isNaN(c.zlevel)&&(hI(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var i=st(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Nw;Nw=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var D0={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-D0.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?D0.bounceIn(t*2)*.5:D0.bounceOut(t*2-1)*.5+.5}},Lw=Math.pow,qu=Math.sqrt,Bw=1e-8,MU=1e-4,IU=qu(3),Vw=1/3,Ns=Uu(),oa=Uu(),Yp=Uu();function Ku(t){return t>-Bw&&t<Bw}function DU(t){return t>Bw||t<-Bw}function yr(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function RU(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function zw(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,f=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Ku(c)&&Ku(f))if(Ku(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[p++]=g)}else{var v=f*f-4*c*d;if(Ku(v)){var m=f/c,g=-s/a+m,y=-m/2;g>=0&&g<=1&&(o[p++]=g),y>=0&&y<=1&&(o[p++]=y)}else if(v>0){var b=qu(v),O=c*s+1.5*a*(-f+b),w=c*s+1.5*a*(-f-b);O<0?O=-Lw(-O,Vw):O=Lw(O,Vw),w<0?w=-Lw(-w,Vw):w=Lw(w,Vw);var g=(-s-(O+w))/(3*a);g>=0&&g<=1&&(o[p++]=g)}else{var S=(2*c*s-3*a*f)/(2*qu(c*c*c)),x=Math.acos(S)/3,T=qu(c),$=Math.cos(x),g=(-s-2*T*$)/(3*a),y=(-s+T*($+IU*Math.sin(x)))/(3*a),A=(-s+T*($-IU*Math.sin(x)))/(3*a);g>=0&&g<=1&&(o[p++]=g),y>=0&&y<=1&&(o[p++]=y),A>=0&&A<=1&&(o[p++]=A)}}return p}function kU(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Ku(a)){if(DU(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ku(c))i[0]=-o/(2*a);else if(c>0){var f=qu(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Ju(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function NU(t,e,n,r,i,o,a,s,l,u,c){var f,d=.005,p=1/0,g,v,m,y;Ns[0]=l,Ns[1]=u;for(var b=0;b<1;b+=.05)oa[0]=yr(t,n,i,a,b),oa[1]=yr(e,r,o,s,b),m=Xu(Ns,oa),m<p&&(f=b,p=m);p=1/0;for(var O=0;O<32&&!(d<MU);O++)g=f-d,v=f+d,oa[0]=yr(t,n,i,a,g),oa[1]=yr(e,r,o,s,g),m=Xu(oa,Ns),g>=0&&m<p?(f=g,p=m):(Yp[0]=yr(t,n,i,a,v),Yp[1]=yr(e,r,o,s,v),y=Xu(Yp,Ns),v<=1&&y<p?(f=v,p=y):d*=.5);return c&&(c[0]=yr(t,n,i,a,f),c[1]=yr(e,r,o,s,f)),qu(p)}function u6e(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,f=0,d=1/l,p=1;p<=l;p++){var g=p*d,v=yr(t,n,i,a,g),m=yr(e,r,o,s,g),y=v-u,b=m-c;f+=Math.sqrt(y*y+b*b),u=v,c=m}return f}function Dr(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function pI(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function c6e(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Ku(o)){if(DU(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ku(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=qu(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function LU(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function R0(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function BU(t,e,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Ns[0]=a,Ns[1]=s;for(var d=0;d<1;d+=.05){oa[0]=Dr(t,n,i,d),oa[1]=Dr(e,r,o,d);var p=Xu(Ns,oa);p<f&&(u=d,f=p)}f=1/0;for(var g=0;g<32&&!(c<MU);g++){var v=u-c,m=u+c;oa[0]=Dr(t,n,i,v),oa[1]=Dr(e,r,o,v);var p=Xu(oa,Ns);if(v>=0&&p<f)u=v,f=p;else{Yp[0]=Dr(t,n,i,m),Yp[1]=Dr(e,r,o,m);var y=Xu(Yp,Ns);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Dr(t,n,i,u),l[1]=Dr(e,r,o,u)),qu(f)}function f6e(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,p=Dr(t,n,i,d),g=Dr(e,r,o,d),v=p-s,m=g-l;u+=Math.sqrt(v*v+m*m),s=p,l=g}return u}var d6e=/cubic-bezier\(([0-9,\.e ]+)\)/;function gI(t){var e=t&&d6e.exec(t);if(e){var n=e[1].split(","),r=+na(n[0]),i=+na(n[1]),o=+na(n[2]),a=+na(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:zw(0,r,o,1,l,s)&&yr(0,i,a,1,s[0])}}}var h6e=function(){function t(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||Qn,this.ondestroy=e.ondestroy||Qn,this.onrestart=e.onrestart||Qn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=e-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ze(e)?e:D0[e]||gI(e)},t}(),VU=function(){function t(e){this.value=e}return t}(),p6e=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new VU(e);return this.insertEntry(n),n},t.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++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),k0=function(){function t(e){this._list=new p6e,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,i=this._map,o=null;if(i[e]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new VU(n),s.key=e,r.insertEntry(s),i[e]=s}return o},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),zU={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 Ja(t){return t=Math.round(t),t<0?0:t>255?255:t}function g6e(t){return t=Math.round(t),t<0?0:t>360?360:t}function N0(t){return t<0?0:t>1?1:t}function vI(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ja(parseFloat(e)/100*255):Ja(parseInt(e,10))}function Jf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?N0(parseFloat(e)/100):N0(parseFloat(e))}function mI(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function ec(t,e,n){return t+(e-t)*n}function aa(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function yI(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var FU=new k0(20),Fw=null;function qp(t,e){Fw&&yI(Fw,e),Fw=FU.put(t,Fw||e.slice())}function Oi(t,e){if(t){e=e||[];var n=FU.get(t);if(n)return yI(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in zU)return yI(e,zU[r]),qp(t,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){aa(e,0,0,0,1);return}return aa(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),qp(t,e),e}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){aa(e,0,0,0,1);return}return aa(e,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),qp(t,e),e}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?aa(e,+u[0],+u[1],+u[2],1):aa(e,0,0,0,1);c=Jf(u.pop());case"rgb":if(u.length>=3)return aa(e,vI(u[0]),vI(u[1]),vI(u[2]),u.length===3?c:Jf(u[3])),qp(t,e),e;aa(e,0,0,0,1);return;case"hsla":if(u.length!==4){aa(e,0,0,0,1);return}return u[3]=Jf(u[3]),bI(u,e),qp(t,e),e;case"hsl":if(u.length!==3){aa(e,0,0,0,1);return}return bI(u,e),qp(t,e),e;default:return}}aa(e,0,0,0,1)}}function bI(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Jf(t[1]),i=Jf(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return e=e||[],aa(e,Ja(mI(a,o,n+1/3)*255),Ja(mI(a,o,n)*255),Ja(mI(a,o,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function v6e(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i,s=(o+i)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+i):u=a/(2-o-i);var c=((o-e)/6+a/2)/a,f=((o-n)/6+a/2)/a,d=((o-r)/6+a/2)/a;e===o?l=d-f:n===o?l=1/3+c-d:r===o&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return t[3]!=null&&p.push(t[3]),p}}function Ww(t,e){var n=Oi(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return es(n,n.length===4?"rgba":"rgb")}}function m6e(t){var e=Oi(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function L0(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=Ja(ec(a[0],s[0],l)),n[1]=Ja(ec(a[1],s[1],l)),n[2]=Ja(ec(a[2],s[2],l)),n[3]=N0(ec(a[3],s[3],l)),n}}var y6e=L0;function _I(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Oi(e[i]),s=Oi(e[o]),l=r-i,u=es([Ja(ec(a[0],s[0],l)),Ja(ec(a[1],s[1],l)),Ja(ec(a[2],s[2],l)),N0(ec(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var b6e=_I;function Kp(t,e,n,r){var i=Oi(t);if(t)return i=v6e(i),e!=null&&(i[0]=g6e(e)),n!=null&&(i[1]=Jf(n)),r!=null&&(i[2]=Jf(r)),es(bI(i),"rgba")}function B0(t,e){var n=Oi(t);if(n&&e!=null)return n[3]=N0(e),es(n,"rgba")}function es(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function V0(t,e){var n=Oi(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function _6e(){return es([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var WU=new k0(100);function Qw(t){if(Ie(t)){var e=WU.get(t);return e||(e=Ww(t,-.1),WU.put(t,e)),e}else if(b0(t)){var n=he({},t);return n.colorStops=me(t.colorStops,function(r){return{offset:r.offset,color:Ww(r.color,-.1)}}),n}return t}const O6e=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:L0,fastMapToColor:y6e,lerp:_I,lift:Ww,liftColor:Qw,lum:V0,mapToColor:b6e,modifyAlpha:B0,modifyHSL:Kp,parse:Oi,random:_6e,stringify:es,toHex:m6e},Symbol.toStringTag,{value:"Module"}));var Hw=Math.round;function z0(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Oi(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var QU=1e-4;function tc(t){return t<QU&&t>-QU}function Gw(t){return Hw(t*1e3)/1e3}function OI(t){return Hw(t*1e4)/1e4}function w6e(t){return"matrix("+Gw(t[0])+","+Gw(t[1])+","+Gw(t[2])+","+Gw(t[3])+","+OI(t[4])+","+OI(t[5])+")"}var S6e={left:"start",right:"end",center:"middle",middle:"middle"};function x6e(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function C6e(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function T6e(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function HU(t){return t&&!!t.image}function P6e(t){return t&&!!t.svgElement}function wI(t){return HU(t)||P6e(t)}function GU(t){return t.type==="linear"}function jU(t){return t.type==="radial"}function UU(t){return t&&(t.type==="linear"||t.type==="radial")}function jw(t){return"url(#"+t+")"}function ZU(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function XU(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*S0,i=Je(t.scaleX,1),o=Je(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Hw(a*S0)+"deg, "+Hw(s*S0)+"deg)"),l.join(" ")}var $6e=function(){return Ct.hasGlobalWindow&&ze(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&ea("Base64 isn't natively supported in the current environment."),null}}(),SI=Array.prototype.slice;function Fl(t,e,n){return(e-t)*n+t}function xI(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=Fl(e[o],n[o],r);return t}function A6e(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Fl(e[a][s],n[a][s],r)}return t}function Uw(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function YU(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function E6e(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function M6e(t,e,n){var r=t,i=e;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:SI.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function F0(t){if(Wr(t)){var e=t.length;if(Wr(t[0])){for(var n=[],r=0;r<e;r++)n.push(SI.call(t[r]));return n}return SI.call(t)}return t}function Zw(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function I6e(t){return Wr(t&&t[0])?2:1}var Xw=0,Yw=1,qU=2,W0=3,CI=4,TI=5,KU=6;function JU(t){return t===CI||t===TI}function qw(t){return t===Yw||t===qU}var Q0=[0,0,0,0],D6e=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=KU,l=n;if(Wr(n)){var u=I6e(n);s=u,(u===1&&!Et(n[0])||u===2&&!Et(n[0][0]))&&(a=!0)}else if(Et(n)&&!ju(n))s=Xw;else if(Ie(n))if(!isNaN(+n))s=Xw;else{var c=Oi(n);c&&(l=c,s=W0)}else if(b0(n)){var f=he({},l);f.colorStops=me(n.colorStops,function(p){return{offset:p.offset,color:Oi(p.color)}}),GU(n)?s=CI:jU(n)&&(s=TI),l=f}o===0?this.valType=s:(s!==this.valType||s===KU)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=ze(r)?r:D0[r]||gI(r)),i.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,m){return v.time-m.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=qw(i),u=JU(i),c=0;c<o;c++){var f=r[c],d=f.value,p=a.value;f.percent=f.time/e,s||(l&&c!==o-1?M6e(d,p,i):u&&E6e(d.colorStops,p.colorStops))}if(!s&&i!==TI&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var g=r[0].value,c=0;c<o;c++)i===Xw?r[c].additiveValue=r[c].value-g:i===W0?r[c].additiveValue=Uw([],r[c].value,g,-1):qw(i)&&(r[c].additiveValue=i===Yw?Uw([],r[c].value,g,-1):YU([],r[c].value,g,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===W0,c,f=this._lastFr,d=Math.min,p,g;if(s===1)p=g=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var v=d(f+1,s-1);for(c=v;c>=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);c++);c=d(c-1,s-2)}g=a[c+1],p=a[c]}if(p&&g){this._lastFr=c,this._lastFrP=n;var m=g.percent-p.percent,y=m===0?1:d((n-p.percent)/m,1);g.easingFunc&&(y=g.easingFunc(y));var b=r?this._additiveValue:u?Q0:e[l];if((qw(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?p.rawValue:g.rawValue;else if(qw(o))o===Yw?xI(b,p[i],g[i],y):A6e(b,p[i],g[i],y);else if(JU(o)){var O=p[i],w=g[i],S=o===CI;e[l]={type:S?"linear":"radial",x:Fl(O.x,w.x,y),y:Fl(O.y,w.y,y),colorStops:me(O.colorStops,function(T,$){var A=w.colorStops[$];return{offset:Fl(T.offset,A.offset,y),color:Zw(xI([],T.color,A.color,y))}}),global:w.global},S?(e[l].x2=Fl(O.x2,w.x2,y),e[l].y2=Fl(O.y2,w.y2,y)):e[l].r=Fl(O.r,w.r,y)}else if(u)xI(b,p[i],g[i],y),r||(e[l]=Zw(b));else{var x=Fl(p[i],g[i],y);r?this._additiveValue=x:e[l]=x}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,i=this._additiveValue;n===Xw?e[r]=e[r]+i:n===W0?(Oi(e[r],Q0),Uw(Q0,Q0,i,1),e[r]=Zw(Q0)):n===Yw?Uw(e[r],e[r],i,1):n===qU&&YU(e[r],e[r],i,1)},t}(),PI=function(){function t(e,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&i){ea("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,bt(n),r)},t.prototype.whenWithKeys=function(e,n,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new D6e(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===W0&&u&&(u=Zw(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,F0(u),i),this._trackKeys.push(s)}l.addKeyframe(e,F0(n[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(e);o&&(n=o)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new h6e({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var g=n._additiveAnimators;if(g){for(var v=!1,m=0;m<g.length;m++)if(g[m]._clip){v=!0;break}v||(n._additiveAnimators=null)}for(var m=0;m<r.length;m++)r[m].step(n._target,p);var y=n._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return me(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<e.length;o++){var a=r[e[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(e[o]=F0(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||bt(e);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}();function Jp(){return new Date().getTime()}var R6e=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=Jp()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Nw(r),!n._paused&&n.update())}Nw(r)},e.prototype.start=function(){this._running||(this._time=Jp(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Jp(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Jp()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var i=new PI(n,r.loop);return this.addAnimator(i),i},e}(ra),k6e=300,$I=Ct.domSupported,AI=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=me(t,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:t,touch:e,pointer:r}}(),eZ={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tZ=!1;function EI(t){var e=t.pointerType;return e==="pen"||e==="touch"}function N6e(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function MI(t){t&&(t.zrByTouch=!0)}function L6e(t,e){return ia(t.dom,new B6e(t,e),!0)}function nZ(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var B6e=function(){function t(e,n){this.stopPropagation=Qn,this.stopImmediatePropagation=Qn,this.preventDefault=Qn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),ts={mousedown:function(t){t=ia(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ia(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ia(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ia(this.dom,t);var e=t.toElement||t.relatedTarget;nZ(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){tZ=!0,t=ia(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){tZ||(t=ia(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ia(this.dom,t),MI(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ts.mousemove.call(this,t),ts.mousedown.call(this,t)},touchmove:function(t){t=ia(this.dom,t),MI(t),this.handler.processGesture(t,"change"),ts.mousemove.call(this,t)},touchend:function(t){t=ia(this.dom,t),MI(t),this.handler.processGesture(t,"end"),ts.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<k6e&&ts.click.call(this,t)},pointerdown:function(t){ts.mousedown.call(this,t)},pointermove:function(t){EI(t)||ts.mousemove.call(this,t)},pointerup:function(t){ts.mouseup.call(this,t)},pointerout:function(t){EI(t)||ts.mouseout.call(this,t)}};V(["click","dblclick","contextmenu"],function(t){ts[t]=function(e){e=ia(this.dom,e),this.trigger(t,e)}});var II={pointermove:function(t){EI(t)||II.mousemove.call(this,t)},pointerup:function(t){II.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function V6e(t,e){var n=e.domHandlers;Ct.pointerEventsSupported?V(AI.pointer,function(r){Kw(e,r,function(i){n[r].call(t,i)})}):(Ct.touchEventsSupported&&V(AI.touch,function(r){Kw(e,r,function(i){n[r].call(t,i),N6e(e)})}),V(AI.mouse,function(r){Kw(e,r,function(i){i=sI(i),e.touching||n[r].call(t,i)})}))}function z6e(t,e){Ct.pointerEventsSupported?V(eZ.pointer,n):Ct.touchEventsSupported||V(eZ.mouse,n);function n(r){function i(o){o=sI(o),nZ(t,o.target)||(o=L6e(t,o),e.domHandlers[r].call(t,o))}Kw(e,r,i,{capture:!0})}}function Kw(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,lI(t.domTarget,e,n,r)}function DI(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&XBe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var rZ=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),F6e=function(t){re(e,t);function e(n,r){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new rZ(n,ts),$I&&(i._globalHandlerScope=new rZ(document,II)),V6e(i,i._localHandlerScope),i}return e.prototype.dispose=function(){DI(this._localHandlerScope),$I&&DI(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,$I&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?z6e(this,r):DI(r)}},e}(ra),iZ=1;Ct.hasGlobalWindow&&(iZ=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Jw=iZ,RI=.4,kI="#333",NI="#ccc",W6e="#eee",oZ=P0,aZ=5e-5;function ed(t){return t>aZ||t<-aZ}var td=[],eg=[],LI=Ui(),BI=Math.abs,Q6e=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return ed(this.rotation)||ed(this.x)||ed(this.y)||ed(this.scaleX-1)||ed(this.scaleY-1)||ed(this.skewX)||ed(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(oZ(r),this.invTransform=null);return}r=r||Ui(),n?this.getLocalTransform(r):oZ(r),e&&(n?ks(r,e,r):Mw(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(td);var r=td[0]<0?-1:1,i=td[1]<0?-1:1,o=((td[0]-r)*n+r)/td[0]||0,a=((td[1]-i)*n+i)/td[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||Ui(),Zf(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ui(),ks(eg,e.invTransform,n),n=eg);var r=this.originX,i=this.originY;(r||i)&&(LI[4]=r,LI[5]=i,ks(eg,n,LI),eg[4]-=r,eg[5]-=i,n=eg),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],i=this.invTransform;return i&&Ir(r,r,i),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],i=this.transform;return i&&Ir(r,r,i),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&BI(e[0]-1)>1e-10&&BI(e[3]-1)>1e-10?Math.sqrt(BI(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){sZ(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var g=r+s,v=i+l;n[4]=-g*o-d*v*a,n[5]=-v*a-p*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=p*o,n[2]=d*a,u&&Yu(n,n,u),n[4]+=r+c,n[5]+=i+f,n},t.initDefaultProps=function(){var e=t.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}(),t}(),Ls=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function sZ(t,e){for(var n=0;n<Ls.length;n++){var r=Ls[n];t[r]=e[r]}}const Wl=Q6e;var lZ={};function wo(t,e){e=e||Hu;var n=lZ[e];n||(n=lZ[e]=new k0(500));var r=n.get(t);return r==null&&(r=qa.measureText(t,e).width,n.put(t,r)),r}function uZ(t,e,n,r){var i=wo(t,e),o=eS(e),a=G0(0,i,n),s=tg(0,o,r),l=new at(a,s,i,o);return l}function H0(t,e,n,r){var i=((t||"")+"").split(`
  320. `),o=i.length;if(o===1)return uZ(i[0],e,n,r);for(var a=new at(0,0,0,0),s=0;s<i.length;s++){var l=uZ(i[s],e,n,r);s===0?a.copy(l):a.union(l)}return a}function G0(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function tg(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function eS(t){return wo("国",t)}function ns(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function tS(t,e,n){var r=e.position||"inside",i=e.distance!=null?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=ns(r[0],n.width),u+=ns(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var VI="__zr_normal__",zI=Ls.concat(["ignore"]),H6e=ta(Ls,function(t,e){return t[e]=!0,t},{ignore:!1}),ng={},G6e=new at(0,0,0,0),nS=function(){function t(e){this.id=XM(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=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]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var c=G6e;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ng,r,c):tS(ng,r,c),o.x=ng.x,o.y=ng.y,a=ng.align,s=ng.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,p=void 0;f==="center"?(d=c.width*.5,p=c.height*.5):(d=ns(f[0],c.width),p=ns(f[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+p+(i?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],u||(o.originX=-g[0],o.originY=-g[1]));var v=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,O=void 0;v&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),O=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),O=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||O!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=O,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=Oo,l&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?NI:kI},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Oi(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,es(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},he(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(Qe(e))for(var r=e,i=bt(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,e[a])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==VI)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,zI)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var i=0;i<r.length;i++){var o=r[i];e[o]!=null&&!(o in n)&&(n[o]=this[o])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(VI,!1,e)},t.prototype.useState=function(e,n,r,i){var o=e===VI,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){ea("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,n,r,c),d&&d.useState(e,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oo),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var i=[],o=this.currentStates,a=e.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(e[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;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[a-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!n&&!this.__inHover&&g&&g.duration>0,g);var v=this._textContent,m=this._textGuide;v&&v.useStates(e,n,d),m&&m.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Oo)}},t.prototype.isSilent=function(){for(var e=this.silent,n=this.parent;!e&&n;){if(n.silent){e=!0;break}n=n.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=st(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var i=this.currentStates.slice(),o=st(i,e),a=st(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,i=0;i<e.length;i++){var o=e[i];he(n,o),o.textConfig&&(r=r||{},he(r,o.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=he({},i?this.textConfig:r.textConfig),he(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<zI.length;c++){var f=zI[c],d=o&&H6e[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],g=p.targetName;p.getLoop()||p.__changeFinalValue(g?(n||r)[g]:n||r)}u&&this._transitionState(e,l,a)},t.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 n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;if(n!==e){if(n&&n!==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 Wl,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),he(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Oo;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){ea('Property "'+e+'" is not existed in element '+this.id);return}var o=new PI(i,n,r);return e&&(o.targetName=e),this.addAnimator(o,e),o},t.prototype.addAnimator=function(e,n){var r=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=st(o,e);a>=0&&o.splice(a,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!e||e===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},t.prototype.animateTo=function(e,n,r){FI(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){FI(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,i){for(var o=FI(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Oo;var n={};function r(o,a,s){n[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),n[o+a+s]=!0)}function i(o,a,s,l){Object.defineProperty(e,o,{get:function(){if(process.env.NODE_ENV!=="production"&&r(o,s,l),!this[a]){var c=this[a]=[];u(this,c)}return this[a]},set:function(c){process.env.NODE_ENV!=="production"&&r(o,s,l),this[s]=c[0],this[l]=c[1],this[a]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();Wn(nS,ra),Wn(nS,Wl);function FI(t,e,n,r,i){n=n||{};var o=[];cZ(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(g,v){n.during(v)});for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),f&&p.aborted(f),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function WI(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function j6e(t){return Wr(t[0])}function U6e(t,e,n){if(Wr(e[n]))if(Wr(t[n])||(t[n]=[]),ii(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),WI(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(j6e(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?WI(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else WI(o,i,a);o.length=i.length}else t[n]=e[n]}function Z6e(t,e){return t===e||Wr(t)&&Wr(e)&&X6e(t,e)}function X6e(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function cZ(t,e,n,r,i,o,a,s){for(var l=bt(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,p=!Qe(o),g=t.animators,v=[],m=0;m<l.length;m++){var y=l[m],b=r[y];if(b!=null&&n[y]!=null&&(p||o[y]))if(Qe(b)&&!Wr(b)&&!b0(b)){if(e){s||(n[y]=b,t.updateDuringAnimation(e));continue}cZ(t,y,n[y],b,i,o&&o[y],a,s)}else v.push(y);else s||(n[y]=b,t.updateDuringAnimation(e),v.push(y))}var O=v.length;if(!f&&O)for(var w=0;w<g.length;w++){var S=g[w];if(S.targetName===e){var x=S.stopTracks(v);if(x){var T=st(g,S);g.splice(T,1)}}}if(i.force||(v=Yt(v,function(M){return!Z6e(r[M],n[M])}),O=v.length),O>0||i.force&&!a.length){var $=void 0,A=void 0,P=void 0;if(s){A={},d&&($={});for(var w=0;w<O;w++){var y=v[w];A[y]=n[y],d?$[y]=r[y]:n[y]=r[y]}}else if(d){P={};for(var w=0;w<O;w++){var y=v[w];P[y]=F0(n[y]),U6e(n,r,y)}}var S=new PI(n,!1,!1,f?Yt(g,function(I){return I.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),d&&$&&S.whenWithKeys(0,$,v),P&&S.whenWithKeys(0,P,v),S.whenWithKeys(u??500,s?A:r,v).delay(c||0),t.addAnimator(S,e),a.push(S)}}var fZ=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){if(n&&(n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),process.env.NODE_ENV!=="production"&&n.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var i=st(this._children,n);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,i=this._children,o=st(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},e.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new at(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(at.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},e}(nS);fZ.prototype.type="group";const qe=fZ;/*!
  321. * ZRender, a high performance 2d drawing library.
  322. *
  323. * Copyright (c) 2013, Baidu Inc.
  324. * All rights reserved.
  325. *
  326. * LICENSE
  327. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  328. */var j0={},nd={};function Y6e(t){delete nd[t]}function q6e(t){if(!t)return!1;if(typeof t=="string")return V0(t,1)<RI;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=V0(e[i].color,1);return n/=r,n<RI}return!1}var K6e=function(){function t(e,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var o=new l6e,a=r.renderer||"canvas";if(j0[a]||(a=bt(j0)[0]),process.env.NODE_ENV!=="production"&&!j0[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new j0[a](n,o,r,e),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Ct.node&&!Ct.worker&&!l?new F6e(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Ct.touchEventsSupported:!!c,d=44,p;f&&(p=Je(r.pointerSize,d)),this.handler=new SU(o,s,u,s.root,p),this.animation=new R6e({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=q6e(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var n,r=Jp();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=Jp();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof qe&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,Y6e(this.id))},t}();function QI(t,e){var n=new K6e(XM(),t,e);return nd[n.id]=n,n}function J6e(t){t.dispose()}function eVe(){for(var t in nd)nd.hasOwnProperty(t)&&nd[t].dispose();nd={}}function tVe(t){return nd[t]}function dZ(t,e){j0[t]=e}var HI;function hZ(t){if(typeof HI=="function")return HI(t)}function pZ(t){HI=t}var nVe="5.6.0";const rVe=Object.freeze(Object.defineProperty({__proto__:null,dispose:J6e,disposeAll:eVe,getElementSSRData:hZ,getInstance:tVe,init:QI,registerPainter:dZ,registerSSRDataGetter:pZ,version:nVe},Symbol.toStringTag,{value:"Module"}));var gZ=1e-4,vZ=20;function iVe(t){return t.replace(/^\s+|\s+$/g,"")}function qt(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Ee(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ie(t)?iVe(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Nn(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),vZ),t=(+t).toFixed(e),n?t:+t}function So(t){return t.sort(function(e,n){return e-n}),t}function rs(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return rS(t)}function rS(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function GI(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function oVe(t,e,n){if(!t[e])return 0;var r=mZ(t,n);return r[e]||0}function mZ(t,e){var n=ta(t,function(p,g){return p+(isNaN(g)?0:g)},0);if(n===0)return[];for(var r=Math.pow(10,e),i=me(t,function(p){return(isNaN(p)?0:p)/n*r*100}),o=r*100,a=me(i,function(p){return Math.floor(p)}),s=ta(a,function(p,g){return p+g},0),l=me(i,function(p,g){return p-a[g]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++a[c],l[c]=0,++s}return me(a,function(p){return p/r})}function aVe(t,e){var n=Math.max(rs(t),rs(e)),r=t+e;return n>vZ?r:Nn(r,n)}var jI=9007199254740991;function UI(t){var e=Math.PI*2;return(t%e+e)%e}function rg(t){return t>-gZ&&t<gZ}var sVe=/^(?:(\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 xo(t){if(t instanceof Date)return t;if(Ie(t)){var e=sVe.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(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(t==null)return new Date(NaN);return new Date(Math.round(t))}function yZ(t){return Math.pow(10,U0(t))}function U0(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ZI(t,e){var n=U0(t),r=Math.pow(10,n),i=t/r,o;return e?i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10:i<1?o=1:i<2?o=2:i<3?o=3:i<5?o=5:o=10,t=o*r,n>=-20?+t.toFixed(n<0?-n:0):t}function iS(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function XI(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;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 Bs(t){var e=parseFloat(t);return e==t&&(e!==0||!Ie(t)||t.indexOf("x")<=0)?e:NaN}function oS(t){return!isNaN(Bs(t))}function bZ(){return Math.round(Math.random()*9)}function _Z(t,e){return e===0?t:_Z(e,t%e)}function OZ(t,e){return t==null?e:e==null?t:t*e/_Z(t,e)}var lVe="[ECharts] ",wZ={},uVe=typeof console<"u"&&console.warn&&console.log;function aS(t,e,n){if(uVe){if(n){if(wZ[e])return;wZ[e]=!0}console[t](lVe+e)}}function cVe(t,e){aS("log",t,e)}function En(t,e){aS("warn",t,e)}function Qr(t,e){aS("error",t,e)}function sa(t){process.env.NODE_ENV!=="production"&&aS("warn","DEPRECATED: "+t,!0)}function Zn(t,e,n){process.env.NODE_ENV!=="production"&&sa((n?"["+n+"]":"")+(t+" is deprecated, use "+e+" instead."))}function wi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if(process.env.NODE_ENV!=="production"){var r=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":ju(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":ze(i)?"function () { ... }":KM(i)?i+"":null};n=me(t,function(i){if(Ie(i))return i;var o=r(i);if(o!=null)return o;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(a,s){var l=r(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return n}function Ht(t){throw new Error(t)}function SZ(t,e,n){return(e-t)*n+t}var xZ="series\0",CZ="\0_ec_\0";function nn(t){return t instanceof Array?t:t==null?[]:[t]}function rd(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var TZ=["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 ig(t){return Qe(t)&&!ge(t)&&!(t instanceof Date)?t.value:t}function fVe(t){return Qe(t)&&!(t instanceof Array)}function PZ(t,e,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";t=t||[],e=(e||[]).slice();var a=Le();V(e,function(l,u){if(!Qe(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!EZ(l.id)&&AZ(l.id),l.name!=null&&!EZ(l.name)&&AZ(l.name))});var s=dVe(t,a,n);return(r||i)&&hVe(s,t,a,e),r&&pVe(s,e),r||i?gVe(s,e,i):o&&vVe(s,e),mVe(s),s}function dVe(t,e,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<t.length;i++){var o=t[i];o&&o.id!=null&&e.set(o.id,i),r.push({existing:n==="replaceMerge"||og(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function hVe(t,e,n,r){V(r,function(i,o){if(!(!i||i.id==null)){var a=Z0(i.id),s=n.get(a);if(s!=null){var l=t[s];je(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}function pVe(t,e){V(e,function(n,r){if(!(!n||n.name==null))for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(o.id==null||n.id==null)&&!og(n)&&!og(o)&&$Z("name",o,n)){t[i].newOption=n,e[r]=null;return}}})}function gVe(t,e,n){V(e,function(r){if(r){for(var i,o=0;(i=t[o])&&(i.newOption||og(i.existing)||i.existing&&r.id!=null&&!$Z("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function vVe(t,e){V(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function mVe(t){var e=Le();V(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),V(t,function(n){var r=n.newOption;je(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),V(t,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(Qe(o)){if(a.name=o.name!=null?Z0(o.name):i?i.name:xZ+r,i)a.id=Z0(i.id);else if(o.id!=null)a.id=Z0(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,n)}})}function $Z(t,e,n){var r=cr(e[t],null),i=cr(n[t],null);return r!=null&&i!=null&&r===i}function Z0(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return cr(t,"")}function cr(t,e){return t==null?e:Ie(t)?t:Et(t)||y0(t)?t+"":e}function AZ(t){process.env.NODE_ENV!=="production"&&En("`"+t+"` is invalid id or name. Must be a string or number.")}function EZ(t){return y0(t)||oS(t)}function YI(t){var e=t.name;return!!(e&&e.indexOf(xZ))}function og(t){return t&&t.id!=null&&Z0(t.id).indexOf(CZ)===0}function yVe(t){return CZ+t}function bVe(t,e,n){V(t,function(r){var i=r.newOption;Qe(i)&&(r.keyInfo.mainType=e,r.keyInfo.subType=_Ve(e,i,r.existing,n))})}function _Ve(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function OVe(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(a,s,l){for(var u=0,c=a.length;u<c;u++){var f=cr(a[u].seriesId,null);if(f==null)return;for(var d=nn(a[u].dataIndex),p=l&&l[f],g=0,v=d.length;g<v;g++){var m=d[g];p&&p[m]?p[m]=null:(s[f]||(s[f]={}))[m]=1}}}function o(a,s){var l=[];for(var u in a)if(a.hasOwnProperty(u)&&a[u]!=null)if(s)l.push(+u);else{var c=o(a[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function id(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ge(e.dataIndex)?me(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ge(e.name)?me(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function Tt(){var t="__ec_inner_"+wVe++;return function(e){return e[t]||(e[t]={})}}var wVe=bZ();function X0(t,e,n){var r=qI(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var f=Y0(t,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function qI(t,e){var n;if(Ie(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Le(),o={},a=!1;return V(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&st(e.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Jn={useDefault:!0,enableAll:!1,enableNone:!1},SVe={useDefault:!1,enableAll:!0,enableNone:!0};function Y0(t,e,n,r){r=r||Jn;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(je(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(je(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function MZ(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function xVe(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function CVe(t){return t==="auto"?Ct.domSupported?"html":"richText":t||"html"}function KI(t,e){var n=Le(),r=[];return V(t,function(i){var o=e(i);(n.get(o)||(r.push(o),n.set(o,[]))).push(i)}),{keys:r,buckets:n}}function IZ(t,e,n,r,i){var o=e==null||e==="auto";if(r==null)return r;if(Et(r)){var a=SZ(n||0,r,i);return Nn(a,o?Math.max(rs(n||0),rs(r)):e)}else{if(Ie(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=t.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var p=l&&l[f]?l[f]:0,g=u[f],a=SZ(p,g,i);s[f]=Nn(a,o?Math.max(rs(p),rs(g)):e)}}return s}}var TVe=".",od="___EC__COMPONENT__CONTAINER___",DZ="___EC__EXTENDED_CLASS___";function Vs(t){var e={main:"",sub:""};if(t){var n=t.split(TVe);e.main=n[0]||"",e.sub=n[1]||""}return e}function PVe(t){je(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function $Ve(t){return!!(t&&t[DZ])}function JI(t,e){t.$constructor=t,t.extend=function(n){process.env.NODE_ENV!=="production"&&V(e,function(o){n[o]||console.warn("Method `"+o+"` should be implemented"+(n.type?" in "+n.type:"")+".")});var r=this,i;return AVe(r)?i=function(o){re(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},YM(i,this)),he(i.prototype,n),i[DZ]=!0,i.extend=this.extend,i.superCall=IVe,i.superApply=DVe,i.superClass=r,i}}function AVe(t){return ze(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function RZ(t,e){t.extend=e.extend}var EVe=Math.round(Math.random()*10);function MVe(t){var e=["__\0is_clz",EVe++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&je(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(n){return!!(n&&n[e])}}function IVe(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function DVe(t,e,n){return this.superClass.prototype[e].apply(t,n)}function sS(t){var e={};t.registerClass=function(r){var i=r.type||r.prototype.type;if(i){PVe(i),r.prototype.type=i;var o=Vs(i);if(!o.sub)process.env.NODE_ENV!=="production"&&e[o.main]&&console.warn(o.main+" exists."),e[o.main]=r;else if(o.sub!==od){var a=n(o);a[o.sub]=r}}return r},t.getClass=function(r,i,o){var a=e[r];if(a&&a[od]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},t.getClassesByMainType=function(r){var i=Vs(r),o=[],a=e[i.main];return a&&a[od]?V(a,function(s,l){l!==od&&o.push(s)}):o.push(a),o},t.hasClass=function(r){var i=Vs(r);return!!e[i.main]},t.getAllClassMainTypes=function(){var r=[];return V(e,function(i,o){r.push(o)}),r},t.hasSubTypes=function(r){var i=Vs(r),o=e[i.main];return o&&o[od]};function n(r){var i=e[r.main];return(!i||!i[od])&&(i=e[r.main]={},i[od]=!0),i}}function ad(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,i,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&st(i,l)>=0||o&&st(o,l)<0)){var u=r.getShallow(l,e);u!=null&&(a[t[s][0]]=u)}}return a}}var RVe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],kVe=ad(RVe),NVe=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return kVe(this,e,n)},t}(),eD=new k0(50);function LVe(t){if(typeof t=="string"){var e=eD.get(t);return e&&e.image}else return t}function tD(t,e,n,r,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var o=eD.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!lS(e)&&o.pending.push(a)):(e=qa.loadImage(t,kZ,kZ),e.__zrImageSrc=t,eD.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}else return t;else return e}function kZ(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function lS(t){return t&&t.width&&t.height}var nD=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function NZ(t,e,n,r,i){if(!e)return"";var o=(t+"").split(`
  329. `);i=LZ(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=BZ(o[a],i);return o.join(`
  330. `)}function LZ(t,e,n,r){r=r||{};var i=he({},r);i.font=e,n=Je(n,"..."),i.maxIterations=Je(r.maxIterations,2);var o=i.minChar=Je(r.minChar,0);i.cnCharWidth=wo("国",e);var a=i.ascCharWidth=wo("a",e);i.placeholder=Je(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=wo(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function BZ(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=wo(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=a===0?BVe(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=wo(t,r)}return t===""&&(t=e.placeholder),t}function BVe(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function VVe(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,i=e.font,o=n==="truncate",a=eS(i),s=Je(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,f;c!=null&&(n==="break"||n==="breakAll")?f=t?zZ(t,e.font,c,n==="breakAll",0).lines:[]:f=t?t.split(`
  331. `):[];var d=f.length*s,p=Je(e.height,d);if(d>p&&u){var g=Math.floor(p/s);f=f.slice(0,g)}if(t&&o&&c!=null)for(var v=LZ(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<f.length;m++)f[m]=BZ(f[m],v);for(var y=p,b=0,m=0;m<f.length;m++)b=Math.max(wo(f[m],i),b);c==null&&(c=b);var O=b;return r&&(y+=r[0]+r[2],O+=r[1]+r[3],c+=r[1]+r[3]),l&&(O=c),{lines:f,height:p,outerWidth:O,outerHeight:y,lineHeight:s,calculatedLineHeight:a,contentWidth:b,contentHeight:d,width:c}}var zVe=function(){function t(){}return t}(),VZ=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),FVe=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function WVe(t,e){var n=new FVe;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,i=e.height,o=e.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=nD.lastIndex=0,l;(l=nD.exec(t))!=null;){var u=l.index;u>s&&rD(n,t.substring(s,u),e,a),rD(n,l[2],e,a,l[1]),s=nD.lastIndex}s<t.length&&rD(n,t.substring(s,t.length),e,a);var c=[],f=0,d=0,p=e.padding,g=o==="truncate",v=e.lineOverflow==="truncate";function m(z,W,j){z.width=W,z.lineHeight=j,f+=j,d=Math.max(d,W)}e:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],O=0,w=0,S=0;S<b.tokens.length;S++){var x=b.tokens[S],T=x.styleName&&e.rich[x.styleName]||{},$=x.textPadding=T.padding,A=$?$[1]+$[3]:0,P=x.font=T.font||e.font;x.contentHeight=eS(P);var M=Je(T.height,x.contentHeight);if(x.innerHeight=M,$&&(M+=$[0]+$[2]),x.height=M,x.lineHeight=_o(T.lineHeight,e.lineHeight,M),x.align=T&&T.align||e.align,x.verticalAlign=T&&T.verticalAlign||"middle",v&&i!=null&&f+x.lineHeight>i){S>0?(b.tokens=b.tokens.slice(0,S),m(b,w,O),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var I=T.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,c.push(x),x.contentWidth=wo(x.text,P);else{if(R){var L=T.backgroundColor,D=L&&L.image;D&&(D=LVe(D),lS(D)&&(x.width=Math.max(x.width,D.width*M/D.height)))}var B=g&&r!=null?r-w:null;B!=null&&B<x.width?!R||B<A?(x.text="",x.width=x.contentWidth=0):(x.text=NZ(x.text,B-A,P,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=wo(x.text,P)):x.contentWidth=wo(x.text,P)}x.width+=A,w+=x.width,T&&(O=Math.max(O,x.lineHeight))}m(b,w,O)}n.outerWidth=n.width=Je(r,d),n.outerHeight=n.height=Je(i,f),n.contentHeight=f,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var y=0;y<c.length;y++){var x=c[y],F=x.percentWidth;x.width=parseInt(F,10)/100*n.width}return n}function rD(t,e,n,r,i){var o=e==="",a=i&&n.rich[i]||{},s=t.lines,l=a.font||n.font,u=!1,c,f;if(r){var d=a.padding,p=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var g=ns(a.width,r.width)+p;s.length>0&&g+r.accumWidth>r.width&&(c=e.split(`
  332. `),u=!0),r.accumWidth=g}else{var v=zZ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+p,f=v.linesWidths,c=v.lines}}else c=e.split(`
  333. `);for(var m=0;m<c.length;m++){var y=c[m],b=new zVe;if(b.styleName=i,b.text=y,b.isLineHolder=!y&&!o,typeof a.width=="number"?b.width=a.width:b.width=f?f[m]:wo(y,l),!m&&!u){var O=(s[s.length-1]||(s[0]=new VZ)).tokens,w=O.length;w===1&&O[0].isLineHolder?O[0]=b:(y||!w||o)&&O.push(b)}else s.push(new VZ([b]))}}function QVe(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var HVe=ta(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function GVe(t){return QVe(t)?!!HVe[t]:!0}function zZ(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;f<t.length;f++){var d=t.charAt(f);if(d===`
  334. `){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var p=wo(d,e),g=r?!1:!GVe(d);if(o.length?c+p>n:i+c+p>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):g?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p));continue}c+=p,g?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var iD="__zr_style_"+Math.round(Math.random()*10),sd={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},uS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};sd[iD]=!0;var FZ=["z","z2","invisible"],jVe=["invisible"],UVe=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=bt(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):t.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ZVe(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new at(0,0,0,0)),r?at.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new at(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:he(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=I0,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&I0)},e.prototype.styleUpdated=function(){this.__dirty&=~I0},e.prototype.createStyle=function(n){return w0(sd,n)},e.prototype.useStyle=function(n){n[iD]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[iD]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,FZ)},e.prototype._applyStateObj=function(n,r,i,o,a,s){t.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.style?a?o?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=bt(c),d=0;d<f.length;d++){var p=f[d];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var g=bt(u),d=0;d<g.length;d++){var p=g[d];this.style[p]=this.style[p]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?jVe:FZ,d=0;d<v.length;d++){var p=v[d];r&&r[p]!=null?this[p]=r[p]:l&&i[p]!=null&&(this[p]=i[p])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},e.prototype._mergeStyle=function(n,r){return he(n,r),n},e.prototype.getAnimationStyleProps=function(){return uS},e.initDefaultProps=function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Oo|I0}(),e}(nS),oD=new at(0,0,0,0),aD=new at(0,0,0,0);function ZVe(t,e,n){return oD.copy(t.getBoundingRect()),t.transform&&oD.applyTransform(t.transform),aD.width=e,aD.height=n,!oD.intersect(aD)}const la=UVe;var Zi=Math.min,Xi=Math.max,sD=Math.sin,lD=Math.cos,ld=Math.PI*2,cS=Uu(),fS=Uu(),dS=Uu();function hS(t,e,n){if(t.length!==0){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=Zi(i,r[0]),o=Xi(o,r[0]),a=Zi(a,r[1]),s=Xi(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function WZ(t,e,n,r,i,o){i[0]=Zi(t,n),i[1]=Zi(e,r),o[0]=Xi(t,n),o[1]=Xi(e,r)}var QZ=[],HZ=[];function XVe(t,e,n,r,i,o,a,s,l,u){var c=kU,f=yr,d=c(t,n,i,a,QZ);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var g=f(t,n,i,a,QZ[p]);l[0]=Zi(g,l[0]),u[0]=Xi(g,u[0])}d=c(e,r,o,s,HZ);for(var p=0;p<d;p++){var v=f(e,r,o,s,HZ[p]);l[1]=Zi(v,l[1]),u[1]=Xi(v,u[1])}l[0]=Zi(t,l[0]),u[0]=Xi(t,u[0]),l[0]=Zi(a,l[0]),u[0]=Xi(a,u[0]),l[1]=Zi(e,l[1]),u[1]=Xi(e,u[1]),l[1]=Zi(s,l[1]),u[1]=Xi(s,u[1])}function YVe(t,e,n,r,i,o,a,s){var l=LU,u=Dr,c=Xi(Zi(l(t,n,i),1),0),f=Xi(Zi(l(e,r,o),1),0),d=u(t,n,i,c),p=u(e,r,o,f);a[0]=Zi(t,i,d),a[1]=Zi(e,o,p),s[0]=Xi(t,i,d),s[1]=Xi(e,o,p)}function qVe(t,e,n,r,i,o,a,s,l){var u=Bl,c=Vl,f=Math.abs(i-o);if(f%ld<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(cS[0]=lD(i)*n+t,cS[1]=sD(i)*r+e,fS[0]=lD(o)*n+t,fS[1]=sD(o)*r+e,u(s,cS,fS),c(l,cS,fS),i=i%ld,i<0&&(i=i+ld),o=o%ld,o<0&&(o=o+ld),i>o&&!a?o+=ld:i<o&&a&&(i+=ld),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(dS[0]=lD(p)*n+t,dS[1]=sD(p)*r+e,u(s,dS,s),c(l,dS,l))}var ln={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ud=[],cd=[],zs=[],nc=[],Fs=[],Ws=[],uD=Math.min,cD=Math.max,fd=Math.cos,dd=Math.sin,Ql=Math.abs,fD=Math.PI,rc=fD*2,dD=typeof Float32Array<"u",q0=[];function hD(t){var e=Math.round(t/fD*1e8)/1e8;return e%2*fD}function pD(t,e){var n=hD(t[0]);n<0&&(n+=rc);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=rc?i=n+rc:e&&n-i>=rc?i=n-rc:!e&&n>i?i=n+(rc-hD(n-i)):e&&n<i&&(i=n-(rc-hD(i-n))),t[0]=n,t[1]=i}var Qs=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=Ql(r/Jw/e)||0,this._uy=Ql(r/Jw/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(ln.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Ql(e-this._xi),i=Ql(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(ln.L,e,n),this._ctx&&o&&this._ctx.lineTo(e,n),o)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,n,r,i,o,a){return this._drawPendingPt(),this.addData(ln.C,e,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(e,n,r,i,o,a),this._xi=o,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,n,r,i){return this._drawPendingPt(),this.addData(ln.Q,e,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,i),this._xi=r,this._yi=i,this},t.prototype.arc=function(e,n,r,i,o,a){this._drawPendingPt(),q0[0]=i,q0[1]=o,pD(q0,a),i=q0[0],o=q0[1];var s=o-i;return this.addData(ln.A,e,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(e,n,r,i,o,a),this._xi=fd(o)*r+e,this._yi=dd(o)*r+n,this},t.prototype.arcTo=function(e,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,i,o),this},t.prototype.rect=function(e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,i),this.addData(ln.R,e,n,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ln.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&dD&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,i=this._len,o=0;o<n;o++)r+=e[o].len();dD&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=e[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},t.prototype.addData=function(e,n,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,dD&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){zs[0]=zs[1]=Fs[0]=Fs[1]=Number.MAX_VALUE,nc[0]=nc[1]=Ws[0]=Ws[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(n=e[a],r=e[a+1],i=n,o=r),s){case ln.M:n=i=e[a++],r=o=e[a++],Fs[0]=i,Fs[1]=o,Ws[0]=i,Ws[1]=o;break;case ln.L:WZ(n,r,e[a],e[a+1],Fs,Ws),n=e[a++],r=e[a++];break;case ln.C:XVe(n,r,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Fs,Ws),n=e[a++],r=e[a++];break;case ln.Q:YVe(n,r,e[a++],e[a++],e[a],e[a+1],Fs,Ws),n=e[a++],r=e[a++];break;case ln.A:var u=e[a++],c=e[a++],f=e[a++],d=e[a++],p=e[a++],g=e[a++]+p;a+=1;var v=!e[a++];l&&(i=fd(p)*f+u,o=dd(p)*d+c),qVe(u,c,f,d,p,g,v,Fs,Ws),n=fd(g)*f+u,r=dd(g)*d+c;break;case ln.R:i=n=e[a++],o=r=e[a++];var m=e[a++],y=e[a++];WZ(i,o,i+m,o+y,Fs,Ws);break;case ln.Z:n=i,r=o;break}Bl(zs,zs,Fs),Vl(nc,nc,Ws)}return a===0&&(zs[0]=zs[1]=nc[0]=nc[1]=0),new at(zs[0],zs[1],nc[0]-zs[0],nc[1]-zs[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var p=e[d++],g=d===1;g&&(o=e[d],a=e[d+1],s=o,l=a);var v=-1;switch(p){case ln.M:o=s=e[d++],a=l=e[d++];break;case ln.L:{var m=e[d++],y=e[d++],b=m-o,O=y-a;(Ql(b)>r||Ql(O)>i||d===n-1)&&(v=Math.sqrt(b*b+O*O),o=m,a=y);break}case ln.C:{var w=e[d++],S=e[d++],m=e[d++],y=e[d++],x=e[d++],T=e[d++];v=u6e(o,a,w,S,m,y,x,T,10),o=x,a=T;break}case ln.Q:{var w=e[d++],S=e[d++],m=e[d++],y=e[d++];v=f6e(o,a,w,S,m,y,10),o=m,a=y;break}case ln.A:var $=e[d++],A=e[d++],P=e[d++],M=e[d++],I=e[d++],R=e[d++],L=R+I;d+=1,g&&(s=fd(I)*P+$,l=dd(I)*M+A),v=cD(P,M)*uD(rc,Math.abs(R)),o=fd(L)*P+$,a=dd(L)*M+A;break;case ln.R:{s=o=e[d++],l=a=e[d++];var D=e[d++],B=e[d++];v=D*2+B*2;break}case ln.Z:{var b=s-o,O=l-a;v=Math.sqrt(b*b+O*O),o=s,a=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,d,p=n<1,g,v,m=0,y=0,b,O=0,w,S;if(!(p&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,v=this._pathLen,b=n*v,!b)))e:for(var x=0;x<a;){var T=r[x++],$=x===1;switch($&&(u=r[x],c=r[x+1],s=u,l=c),T!==ln.L&&O>0&&(e.lineTo(w,S),O=0),T){case ln.M:s=u=r[x++],l=c=r[x++],e.moveTo(u,c);break;case ln.L:{f=r[x++],d=r[x++];var A=Ql(f-u),P=Ql(d-c);if(A>i||P>o){if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;e.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}m+=M}e.lineTo(f,d),u=f,c=d,O=0}else{var R=A*A+P*P;R>O&&(w=f,S=d,O=R)}break}case ln.C:{var L=r[x++],D=r[x++],B=r[x++],F=r[x++],z=r[x++],W=r[x++];if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;Ju(u,L,B,z,I,ud),Ju(c,D,F,W,I,cd),e.bezierCurveTo(ud[1],cd[1],ud[2],cd[2],ud[3],cd[3]);break e}m+=M}e.bezierCurveTo(L,D,B,F,z,W),u=z,c=W;break}case ln.Q:{var L=r[x++],D=r[x++],B=r[x++],F=r[x++];if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;R0(u,L,B,I,ud),R0(c,D,F,I,cd),e.quadraticCurveTo(ud[1],cd[1],ud[2],cd[2]);break e}m+=M}e.quadraticCurveTo(L,D,B,F),u=B,c=F;break}case ln.A:var j=r[x++],H=r[x++],Z=r[x++],J=r[x++],se=r[x++],oe=r[x++],de=r[x++],ie=!r[x++],ue=Z>J?Z:J,ee=Ql(Z-J)>.001,X=se+oe,Y=!1;if(p){var M=g[y++];m+M>b&&(X=se+oe*(b-m)/M,Y=!0),m+=M}if(ee&&e.ellipse?e.ellipse(j,H,Z,J,de,se,X,ie):e.arc(j,H,ue,se,X,ie),Y)break e;$&&(s=fd(se)*Z+j,l=dd(se)*J+H),u=fd(X)*Z+j,c=dd(X)*J+H;break;case ln.R:s=u=r[x],l=c=r[x+1],f=r[x++],d=r[x++];var le=r[x++],ve=r[x++];if(p){var M=g[y++];if(m+M>b){var ye=b-m;e.moveTo(f,d),e.lineTo(f+uD(ye,le),d),ye-=le,ye>0&&e.lineTo(f+le,d+uD(ye,ve)),ye-=ve,ye>0&&e.lineTo(f+cD(le-ye,0),d+ve),ye-=le,ye>0&&e.lineTo(f,d+cD(ve-ye,0));break e}m+=M}e.rect(f,d,le,ve);break;case ln.Z:if(p){var M=g[y++];if(m+M>b){var I=(b-m)/M;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}m+=M}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ln,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function ic(t,e,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t!==n)l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);else return Math.abs(o-t)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function KVe(t,e,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>r+f&&c>o+f&&c>s+f||c<e-f&&c<r-f&&c<o-f&&c<s-f||u>t+f&&u>n+f&&u>i+f&&u>a+f||u<t-f&&u<n-f&&u<i-f&&u<a-f)return!1;var d=NU(t,e,n,r,i,o,a,s,u,c,null);return d<=f/2}function GZ(t,e,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=BU(t,e,n,r,i,o,s,l,null);return c<=u/2}var jZ=Math.PI*2;function Co(t){return t%=jZ,t<0&&(t+=jZ),t}var K0=Math.PI*2;function JVe(t,e,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%K0<1e-4)return!0;if(o){var f=r;r=Co(i),i=Co(f)}else r=Co(r),i=Co(i);r>i&&(i+=K0);var d=Math.atan2(l,s);return d<0&&(d+=K0),d>=r&&d<=i||d+K0>=r&&d+K0<=i}function Hl(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r||r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;(a===1||a===0)&&(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var oc=Qs.CMD,hd=Math.PI*2,eze=1e-4;function tze(t,e){return Math.abs(t-e)<eze}var Si=[-1,-1,-1],ua=[-1,-1];function nze(){var t=ua[0];ua[0]=ua[1],ua[1]=t}function rze(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=zw(e,r,o,s,u,Si);if(c===0)return 0;for(var f=0,d=-1,p=void 0,g=void 0,v=0;v<c;v++){var m=Si[v],y=m===0||m===1?.5:1,b=yr(t,n,i,a,m);b<l||(d<0&&(d=kU(e,r,o,s,ua),ua[1]<ua[0]&&d>1&&nze(),p=yr(e,r,o,s,ua[0]),d>1&&(g=yr(e,r,o,s,ua[1]))),d===2?m<ua[0]?f+=p<e?y:-y:m<ua[1]?f+=g<p?y:-y:f+=s<g?y:-y:m<ua[0]?f+=p<e?y:-y:f+=s<p?y:-y)}return f}function ize(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=c6e(e,r,o,s,Si);if(l===0)return 0;var u=LU(e,r,o);if(u>=0&&u<=1){for(var c=0,f=Dr(e,r,o,u),d=0;d<l;d++){var p=Si[d]===0||Si[d]===1?.5:1,g=Dr(t,n,i,Si[d]);g<a||(Si[d]<u?c+=f<e?p:-p:c+=o<f?p:-p)}return c}else{var p=Si[0]===0||Si[0]===1?.5:1,g=Dr(t,n,i,Si[0]);return g<a?0:o<e?p:-p}}function oze(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Si[0]=-l,Si[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=hd-1e-4){r=0,i=hd;var c=o?1:-1;return a>=Si[0]+t&&a<=Si[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=hd,i+=hd);for(var d=0,p=0;p<2;p++){var g=Si[p];if(g+t>a){var v=Math.atan2(s,g),c=o?1:-1;v<0&&(v=hd+v),(v>=r&&v<=i||v+hd>=r&&v+hd<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),d+=c)}}return d}function UZ(t,e,n,r,i){for(var o=t.data,a=t.len(),s=0,l=0,u=0,c=0,f=0,d,p,g=0;g<a;){var v=o[g++],m=g===1;switch(v===oc.M&&g>1&&(n||(s+=Hl(l,u,c,f,r,i))),m&&(l=o[g],u=o[g+1],c=l,f=u),v){case oc.M:c=o[g++],f=o[g++],l=c,u=f;break;case oc.L:if(n){if(ic(l,u,o[g],o[g+1],e,r,i))return!0}else s+=Hl(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case oc.C:if(n){if(KVe(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],e,r,i))return!0}else s+=rze(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case oc.Q:if(n){if(GZ(l,u,o[g++],o[g++],o[g],o[g+1],e,r,i))return!0}else s+=ize(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case oc.A:var y=o[g++],b=o[g++],O=o[g++],w=o[g++],S=o[g++],x=o[g++];g+=1;var T=!!(1-o[g++]);d=Math.cos(S)*O+y,p=Math.sin(S)*w+b,m?(c=d,f=p):s+=Hl(l,u,d,p,r,i);var $=(r-y)*w/O+y;if(n){if(JVe(y,b,w,S,S+x,T,e,$,i))return!0}else s+=oze(y,b,w,S,S+x,T,$,i);l=Math.cos(S+x)*O+y,u=Math.sin(S+x)*w+b;break;case oc.R:c=l=o[g++],f=u=o[g++];var A=o[g++],P=o[g++];if(d=c+A,p=f+P,n){if(ic(c,f,d,f,e,r,i)||ic(d,f,d,p,e,r,i)||ic(d,p,c,p,e,r,i)||ic(c,p,c,f,e,r,i))return!0}else s+=Hl(d,f,d,p,r,i),s+=Hl(c,p,c,f,r,i);break;case oc.Z:if(n){if(ic(l,u,c,f,e,r,i))return!0}else s+=Hl(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!tze(u,f)&&(s+=Hl(l,u,c,f,r,i)||0),s!==0}function aze(t,e,n){return UZ(t,0,!1,e,n)}function sze(t,e,n,r){return UZ(t,e,!0,n,r)}var pS=Ge({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},sd),lze={style:Ge({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uS.style)},gD=Ls.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<gD.length;++s)i[gD[s]]=this[gD[s]];i.__dirty|=Oo}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=bt(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?he(this.style,s):this.useStyle(s):a==="shape"?he(this.shape,s):t.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(Ie(n)){var r=V0(n,0);return r>.5?kI:r>.2?W6e:NI}else if(n)return NI}return kI},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ie(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=V0(n,0)<RI;if(o===a)return r}},e.prototype.buildPath=function(n,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Xp},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new Qs(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&Xp)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),sze(s,l/u,n,r)))return!0}if(this.hasFill())return aze(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Xp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:he(i,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Xp)},e.prototype.createStyle=function(n){return w0(pS,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=he({},this.shape))},e.prototype._applyStateObj=function(n,r,i,o,a,s){t.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=he({},i.shape),he(u,r.shape)):(u=he({},o?this.shape:i.shape),he(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=he({},this.shape);for(var c={},f=bt(u),d=0;d<f.length;d++){var p=f[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},e.prototype.getAnimationStyleProps=function(){return lze},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(o){re(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Ue(n.style)},a.prototype.getDefaultShape=function(){return Ue(n.shape)},a}(e);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Oo|I0|Xp}(),e}(la),uze=Ge({strokeFirst:!0,font:Hu,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},pS),ag=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return w0(uze,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=H0(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(la);ag.prototype.type="tspan";var cze=Ge({x:0,y:0},sd),fze={style:Ge({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uS.style)};function dze(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ZZ=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return w0(cze,n)},e.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=dze(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fze},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new at(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(la);ZZ.prototype.type="image";const Rr=ZZ;function hze(t,e){var n=e.x,r=e.y,i=e.width,o=e.height,a=e.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),t.moveTo(n+s,r),t.lineTo(n+i-l,r),l!==0&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),u!==0&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+c,r+o),c!==0&&t.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),t.lineTo(n,r+s),s!==0&&t.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var sg=Math.round;function XZ(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(sg(r*2)===sg(i*2)&&(t.x1=t.x2=pd(r,s,!0)),sg(o*2)===sg(a*2)&&(t.y1=t.y2=pd(o,s,!0))),t}}function YZ(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=pd(r,s,!0),t.y=pd(i,s,!0),t.width=Math.max(pd(r+o,s,!1)-t.x,o===0?0:1),t.height=Math.max(pd(i+a,s,!1)-t.y,a===0?0:1)),t}}function pd(t,e,n){if(!e)return t;var r=sg(t*2);return(r+sg(e))%2===0?r/2:(r+(n?1:-1))/2}var pze=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),gze={},qZ=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new pze},e.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=YZ(gze,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?hze(n,r):n.rect(i,o,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);qZ.prototype.type="rect";const Pt=qZ;var KZ={fill:"#000"},JZ=2,vze={style:Ge({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},uS.style)},eX=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=KZ,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,bze(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new at(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||KZ},e.prototype.setTextContent=function(n){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return he(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},e.prototype._mergeRich=function(n,r){for(var i=bt(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},he(n[a],r[a])}},e.prototype.getAnimationStyleProps=function(){return vze},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Hu,i=n.padding,o=uX(n),a=VVe(o,n),s=vD(n),l=!!n.backgroundColor,u=a.outerHeight,c=a.outerWidth,f=a.contentWidth,d=a.lines,p=a.lineHeight,g=this._defaultStyle,v=n.x||0,m=n.y||0,y=n.align||g.align||"left",b=n.verticalAlign||g.verticalAlign||"top",O=v,w=tg(m,a.contentHeight,b);if(s||i){var S=G0(v,c,y),x=tg(m,u,b);s&&this._renderBackground(n,n,S,x,c,u)}w+=p/2,i&&(O=lX(v,y,i),b==="top"?w+=i[0]:b==="bottom"&&(w-=i[2]));for(var T=0,$=!1,A=sX("fill"in n?n.fill:($=!0,g.fill)),P=aX("stroke"in n?n.stroke:!l&&(!g.autoStroke||$)?(T=JZ,g.stroke):null),M=n.textShadowBlur>0,I=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),R=a.calculatedLineHeight,L=0;L<d.length;L++){var D=this._getOrCreateChild(ag),B=D.createStyle();D.useStyle(B),B.text=d[L],B.x=O,B.y=w,y&&(B.textAlign=y),B.textBaseline="middle",B.opacity=n.opacity,B.strokeFirst=!0,M&&(B.shadowBlur=n.textShadowBlur||0,B.shadowColor=n.textShadowColor||"transparent",B.shadowOffsetX=n.textShadowOffsetX||0,B.shadowOffsetY=n.textShadowOffsetY||0),B.stroke=P,B.fill=A,P&&(B.lineWidth=n.lineWidth||T,B.lineDash=n.lineDash,B.lineDashOffset=n.lineDashOffset||0),B.font=r,rX(B,n),w+=p,I&&D.setBoundingRect(new at(G0(B.x,n.width,B.textAlign),tg(B.y,R,B.textBaseline),f,R))}},e.prototype._updateRichTexts=function(){var n=this.style,r=uX(n),i=WVe(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,p=n.verticalAlign||f.verticalAlign,g=G0(u,a,d),v=tg(c,s,p),m=g,y=v;l&&(m+=l[3],y+=l[0]);var b=m+o;vD(n)&&this._renderBackground(n,n,g,v,a,s);for(var O=!!n.backgroundColor,w=0;w<i.lines.length;w++){for(var S=i.lines[w],x=S.tokens,T=x.length,$=S.lineHeight,A=S.width,P=0,M=m,I=b,R=T-1,L=void 0;P<T&&(L=x[P],!L.align||L.align==="left");)this._placeToken(L,n,$,y,M,"left",O),A-=L.width,M+=L.width,P++;for(;R>=0&&(L=x[R],L.align==="right");)this._placeToken(L,n,$,y,I,"right",O),A-=L.width,I-=L.width,R--;for(M+=(o-(M-m)-(b-I)-A)/2;P<=R;)L=x[P],this._placeToken(L,n,$,y,M+L.width/2,"center",O),M+=L.width,P++;y+=$}},e.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var d=!n.isLineHolder&&vD(u);d&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var p=!!u.backgroundColor,g=n.textPadding;g&&(a=lX(a,s,g),f-=n.height/2-g[0]-n.innerHeight/2);var v=this._getOrCreateChild(ag),m=v.createStyle();v.useStyle(m);var y=this._defaultStyle,b=!1,O=0,w=sX("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),S=aX("stroke"in u?u.stroke:"stroke"in r?r.stroke:!p&&!l&&(!y.autoStroke||b)?(O=JZ,y.stroke):null),x=u.textShadowBlur>0||r.textShadowBlur>0;m.text=n.text,m.x=a,m.y=f,x&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=n.font||Hu,m.opacity=_o(u.opacity,r.opacity,1),rX(m,u),S&&(m.lineWidth=_o(u.lineWidth,r.lineWidth,O),m.lineDash=Je(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=S),w&&(m.fill=w);var T=n.contentWidth,$=n.contentHeight;v.setBoundingRect(new at(G0(m.x,T,m.textAlign),tg(m.y,$,m.textBaseline),T,$))},e.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,p=n.borderRadius,g=this,v,m;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(Pt),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=p,v.dirtyShape()}if(d){var b=v.style;b.fill=l||null,b.fillOpacity=Je(n.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Rr),m.onload=function(){g.dirtyStyle()};var O=m.style;O.image=l.image,O.x=i,O.y=o,O.width=a,O.height=s}if(u&&c){var b=v.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Je(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(v||m).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=_o(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return iX(n)&&(r=[n.fontStyle,n.fontWeight,nX(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&na(r)||n.textFont||n.font},e}(la),mze={left:!0,right:1,center:1},yze={top:1,bottom:1,middle:1},tX=["fontStyle","fontWeight","fontSize","fontFamily"];function nX(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?jM+"px":t+"px"}function rX(t,e){for(var n=0;n<tX.length;n++){var r=tX[n],i=e[r];i!=null&&(t[r]=i)}}function iX(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function bze(t){return oX(t),V(t.rich,oX),t}function oX(t){if(t){t.font=eX.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||mze[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||yze[n]?n:"top";var r=t.padding;r&&(t.padding=$w(t.padding))}}function aX(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function sX(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function lX(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function uX(t){var e=t.text;return e!=null&&(e+=""),e}function vD(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const $t=eX;var Ke=Tt(),mD=function(t,e,n,r){if(r){var i=Ke(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Ke(o);a.seriesIndex=t,a.dataIndex=n,a.dataType=e,a.ssrType="chart"})}},cX=1,fX={},dX=Tt(),yD=Tt(),bD=0,J0=1,gS=2,xi=["emphasis","blur","select"],ey=["normal","emphasis","blur","select"],lg=10,_ze=9,gd="highlight",vS="downplay",ty="select",mS="unselect",ny="toggleSelect";function ug(t){return t!=null&&t!=="none"}function yS(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function hX(t){yS(t,"emphasis",gS)}function pX(t){t.hoverState===gS&&yS(t,"normal",bD)}function _D(t){yS(t,"blur",J0)}function gX(t){t.hoverState===J0&&yS(t,"normal",bD)}function Oze(t){t.selected=!0}function wze(t){t.selected=!1}function vX(t,e,n){e(t,n)}function Gl(t,e,n){vX(t,e,n),t.isGroup&&t.traverse(function(r){vX(r,e,n)})}function bS(t,e){switch(e){case"emphasis":t.hoverState=gS;break;case"normal":t.hoverState=bD;break;case"blur":t.hoverState=J0;break;case"select":t.selected=!0}}function Sze(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,e)}return o}function xze(t,e,n,r){var i=n&&st(n,"select")>=0,o=!1;if(t instanceof yt){var a=dX(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(ug(s)||ug(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=he({},r),u=he({},u),u.fill=s):!ug(u.fill)&&ug(s)?(o=!0,r=he({},r),u=he({},u),u.fill=Qw(s)):!ug(u.stroke)&&ug(l)&&(o||(r=he({},r),u=he({},u)),u.stroke=Qw(l)),r.style=u}}if(r&&r.z2==null){o||(r=he({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??lg)}return r}function Cze(t,e,n){if(n&&n.z2==null){n=he({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??_ze)}return n}function Tze(t,e,n){var r=st(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:Sze(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=he({},n),a=he({opacity:r?i:o.opacity*.1},a),n.style=a),n}function OD(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return xze(this,t,e,n);if(t==="blur")return Tze(this,t,n);if(t==="select")return Cze(this,t,n)}return n}function vd(t){t.stateProxy=OD;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=OD),n&&(n.stateProxy=OD)}function mX(t,e){!wX(t,e)&&!t.__highByOuter&&Gl(t,hX)}function yX(t,e){!wX(t,e)&&!t.__highByOuter&&Gl(t,pX)}function jl(t,e){t.__highByOuter|=1<<(e||0),Gl(t,hX)}function Ul(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Gl(t,pX)}function bX(t){Gl(t,_D)}function wD(t){Gl(t,gX)}function _X(t){Gl(t,Oze)}function OX(t){Gl(t,wze)}function wX(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function SX(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(i,o){var a=yD(o),s=i==="series",l=s?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){gX(u)}),s&&n.push(o)),a.isBlured=!1}),V(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,e)})}function SD(t,e,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&wD(d)}}if(t!=null&&!(!e||e==="none")){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||e==="series"&&c)){var p=r.getViewOfSeriesModel(u);if(p.group.traverse(function(m){m.__highByOuter&&c&&e==="self"||_D(m)}),Wr(e))o(u.getData(),e);else if(Qe(e))for(var g=bt(e),v=0;v<g.length;v++)o(u.getData(g[v]),e[g[v]]);l.push(u),yD(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function xD(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){yD(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){_D(o)})}}}function Pze(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&Qr("Unknown dataType "+e.dataType);return}var o=id(i,e);o=(ge(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Ke(a);SD(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&SD(r,c,f,n)}}function CD(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!sc(s[u])&&Qr("param should be highDownDispatcher"),Ke(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function $ze(t,e,n){process.env.NODE_ENV!=="production"&&!sc(t)&&Qr("param should be highDownDispatcher");var r=Ke(t),i=CD(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&xD(r.componentMainType,r.componentIndex,n),V(o,function(s){return mX(s,e)})):(SD(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&xD(r.componentMainType,r.componentIndex,n),mX(t,e))}function Aze(t,e,n){process.env.NODE_ENV!=="production"&&!sc(t)&&Qr("param should be highDownDispatcher"),SX(n);var r=Ke(t),i=CD(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?V(i,function(o){return yX(o,e)}):yX(t,e)}function Eze(t,e,n){if(PD(e)){var r=e.dataType,i=t.getData(r),o=id(i,e);ge(o)||(o=[o]),t[e.type===ny?"toggleSelect":e.type===ty?"select":"unselect"](o,r)}}function xX(t){var e=t.getAllData();V(e,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){t.isSelected(a,i)?_X(o):OX(o)})})}function Mze(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();V(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),e.push(s)}})}),e}function ac(t,e,n){md(t,!0),Gl(t,vd),TD(t,e,n)}function Ize(t){md(t,!1)}function Ln(t,e,n,r){r?Ize(t):ac(t,e,n)}function TD(t,e,n){var r=Ke(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var CX=["emphasis","blur","select"],Dze={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Hr(t,e,n,r){n=n||"itemStyle";for(var i=0;i<CX.length;i++){var o=CX[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[Dze[n]]()}}function md(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function sc(t){return!!(t&&t.__highDownDispatcher)}function Rze(t,e,n){var r=Ke(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function kze(t){var e=fX[t];return e==null&&cX<=32&&(e=fX[t]=cX++),e}function PD(t){var e=t.type;return e===ty||e===mS||e===ny}function TX(t){var e=t.type;return e===gd||e===vS}function Nze(t){var e=dX(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var cg=Qs.CMD,Lze=[[],[],[]],PX=Math.sqrt,Bze=Math.atan2;function $X(t,e){if(e){var n=t.data,r=t.len(),i,o,a,s,l,u,c=cg.M,f=cg.C,d=cg.L,p=cg.R,g=cg.A,v=cg.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case f:o=3;break;case v:o=2;break;case g:var m=e[4],y=e[5],b=PX(e[0]*e[0]+e[1]*e[1]),O=PX(e[2]*e[2]+e[3]*e[3]),w=Bze(-e[1]/O,e[0]/b);n[a]*=b,n[a++]+=m,n[a]*=O,n[a++]+=y,n[a++]*=b,n[a++]*=O,n[a++]+=w,n[a++]+=w,a+=2,s=a;break;case p:u[0]=n[a++],u[1]=n[a++],Ir(u,u,e),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],Ir(u,u,e),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var S=Lze[l];S[0]=n[a++],S[1]=n[a++],Ir(S,S,e),n[s++]=S[0],n[s++]=S[1]}}t.increaseVersion()}}var $D=Math.sqrt,_S=Math.sin,OS=Math.cos,ry=Math.PI;function AX(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function AD(t,e){return(t[0]*e[0]+t[1]*e[1])/(AX(t)*AX(e))}function EX(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(AD(t,e))}function MX(t,e,n,r,i,o,a,s,l,u,c){var f=l*(ry/180),d=OS(f)*(t-n)/2+_S(f)*(e-r)/2,p=-1*_S(f)*(t-n)/2+OS(f)*(e-r)/2,g=d*d/(a*a)+p*p/(s*s);g>1&&(a*=$D(g),s*=$D(g));var v=(i===o?-1:1)*$D((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=v*a*p/s,y=v*-s*d/a,b=(t+n)/2+OS(f)*m-_S(f)*y,O=(e+r)/2+_S(f)*m+OS(f)*y,w=EX([1,0],[(d-m)/a,(p-y)/s]),S=[(d-m)/a,(p-y)/s],x=[(-1*d-m)/a,(-1*p-y)/s],T=EX(S,x);if(AD(S,x)<=-1&&(T=ry),AD(S,x)>=1&&(T=0),T<0){var $=Math.round(T/ry*1e6)/1e6;T=ry*2+$%2*ry}c.addData(u,b,O,a,s,w,T,f,o)}var Vze=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,zze=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Fze(t){var e=new Qs;if(!t)return e;var n=0,r=0,i=n,o=r,a,s=Qs.CMD,l=t.match(Vze);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,p=c.match(zze)||[],g=p.length,v=0;v<g;v++)p[v]=parseFloat(p[v]);for(var m=0;m<g;){var y=void 0,b=void 0,O=void 0,w=void 0,S=void 0,x=void 0,T=void 0,$=n,A=r,P=void 0,M=void 0;switch(f){case"l":n+=p[m++],r+=p[m++],d=s.L,e.addData(d,n,r);break;case"L":n=p[m++],r=p[m++],d=s.L,e.addData(d,n,r);break;case"m":n+=p[m++],r+=p[m++],d=s.M,e.addData(d,n,r),i=n,o=r,f="l";break;case"M":n=p[m++],r=p[m++],d=s.M,e.addData(d,n,r),i=n,o=r,f="L";break;case"h":n+=p[m++],d=s.L,e.addData(d,n,r);break;case"H":n=p[m++],d=s.L,e.addData(d,n,r);break;case"v":r+=p[m++],d=s.L,e.addData(d,n,r);break;case"V":r=p[m++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),n=p[m-2],r=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r),n+=p[m-2],r+=p[m-1];break;case"S":y=n,b=r,P=e.len(),M=e.data,a===s.C&&(y+=n-M[P-4],b+=r-M[P-3]),d=s.C,$=p[m++],A=p[m++],n=p[m++],r=p[m++],e.addData(d,y,b,$,A,n,r);break;case"s":y=n,b=r,P=e.len(),M=e.data,a===s.C&&(y+=n-M[P-4],b+=r-M[P-3]),d=s.C,$=n+p[m++],A=r+p[m++],n+=p[m++],r+=p[m++],e.addData(d,y,b,$,A,n,r);break;case"Q":$=p[m++],A=p[m++],n=p[m++],r=p[m++],d=s.Q,e.addData(d,$,A,n,r);break;case"q":$=p[m++]+n,A=p[m++]+r,n+=p[m++],r+=p[m++],d=s.Q,e.addData(d,$,A,n,r);break;case"T":y=n,b=r,P=e.len(),M=e.data,a===s.Q&&(y+=n-M[P-4],b+=r-M[P-3]),n=p[m++],r=p[m++],d=s.Q,e.addData(d,y,b,n,r);break;case"t":y=n,b=r,P=e.len(),M=e.data,a===s.Q&&(y+=n-M[P-4],b+=r-M[P-3]),n+=p[m++],r+=p[m++],d=s.Q,e.addData(d,y,b,n,r);break;case"A":O=p[m++],w=p[m++],S=p[m++],x=p[m++],T=p[m++],$=n,A=r,n=p[m++],r=p[m++],d=s.A,MX($,A,n,r,x,T,O,w,S,d,e);break;case"a":O=p[m++],w=p[m++],S=p[m++],x=p[m++],T=p[m++],$=n,A=r,n+=p[m++],r+=p[m++],d=s.A,MX($,A,n,r,x,T,O,w,S,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=i,r=o),a=d}return e.toStatic(),e}var IX=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(yt);function DX(t){return t.setData!=null}function RX(t,e){var n=Fze(t),r=he({},e);return r.buildPath=function(i){if(DX(i)){i.setData(n.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;n.rebuildPath(o,1)}},r.applyTransform=function(i){$X(n,i),this.dirtyShape()},r}function kX(t,e){return new IX(RX(t,e))}function Wze(t,e){var n=RX(t,e),r=function(i){re(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o}(IX);return r}function Qze(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new yt(e);return a.createPathProxy(),a.buildPath=function(s){if(DX(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function ED(t,e){e=e||{};var n=new yt;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?$X(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Hze=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),NX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Hze},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(yt);NX.prototype.type="circle";const Zl=NX;var Gze=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),LX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Gze},e.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},e}(yt);LX.prototype.type="ellipse";const wS=LX;var BX=Math.PI,MD=BX*2,yd=Math.sin,fg=Math.cos,jze=Math.acos,ai=Math.atan2,VX=Math.abs,iy=Math.sqrt,oy=Math.max,Hs=Math.min,is=1e-4;function Uze(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<is))return d=(c*(e-o)-f*(t-i))/d,[t+d*l,e+d*u]}function SS(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/iy(s*s+l*l),c=u*l,f=-u*s,d=t+c,p=e+f,g=n+c,v=r+f,m=(d+g)/2,y=(p+v)/2,b=g-d,O=v-p,w=b*b+O*O,S=i-o,x=d*v-g*p,T=(O<0?-1:1)*iy(oy(0,S*S*w-x*x)),$=(x*O-b*T)/w,A=(-x*b-O*T)/w,P=(x*O+b*T)/w,M=(-x*b+O*T)/w,I=$-m,R=A-y,L=P-m,D=M-y;return I*I+R*R>L*L+D*D&&($=P,A=M),{cx:$,cy:A,x0:-c,y0:-f,x1:$*(i/S-1),y1:A*(i/S-1)}}function Zze(t){var e;if(ge(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Xze(t,e){var n,r=oy(e.r,0),i=oy(e.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,p=VX(u-l),g=p>MD&&p%MD;if(g>is&&(p=g),!(r>is))t.moveTo(c,f);else if(p>MD-is)t.moveTo(c+r*fg(l),f+r*yd(l)),t.arc(c,f,r,l,u,!d),i>is&&(t.moveTo(c+i*fg(u),f+i*yd(u)),t.arc(c,f,i,u,l,d));else{var v=void 0,m=void 0,y=void 0,b=void 0,O=void 0,w=void 0,S=void 0,x=void 0,T=void 0,$=void 0,A=void 0,P=void 0,M=void 0,I=void 0,R=void 0,L=void 0,D=r*fg(l),B=r*yd(l),F=i*fg(u),z=i*yd(u),W=p>is;if(W){var j=e.cornerRadius;j&&(n=Zze(j),v=n[0],m=n[1],y=n[2],b=n[3]);var H=VX(r-i)/2;if(O=Hs(H,y),w=Hs(H,b),S=Hs(H,v),x=Hs(H,m),A=T=oy(O,w),P=$=oy(S,x),(T>is||$>is)&&(M=r*fg(u),I=r*yd(u),R=i*fg(l),L=i*yd(l),p<BX)){var Z=Uze(D,B,R,L,M,I,F,z);if(Z){var J=D-Z[0],se=B-Z[1],oe=M-Z[0],de=I-Z[1],ie=1/yd(jze((J*oe+se*de)/(iy(J*J+se*se)*iy(oe*oe+de*de)))/2),ue=iy(Z[0]*Z[0]+Z[1]*Z[1]);A=Hs(T,(r-ue)/(ie+1)),P=Hs($,(i-ue)/(ie-1))}}}if(!W)t.moveTo(c+D,f+B);else if(A>is){var ee=Hs(y,A),X=Hs(b,A),Y=SS(R,L,D,B,r,ee,d),le=SS(M,I,F,z,r,X,d);t.moveTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),A<T&&ee===X?t.arc(c+Y.cx,f+Y.cy,A,ai(Y.y0,Y.x0),ai(le.y0,le.x0),!d):(ee>0&&t.arc(c+Y.cx,f+Y.cy,ee,ai(Y.y0,Y.x0),ai(Y.y1,Y.x1),!d),t.arc(c,f,r,ai(Y.cy+Y.y1,Y.cx+Y.x1),ai(le.cy+le.y1,le.cx+le.x1),!d),X>0&&t.arc(c+le.cx,f+le.cy,X,ai(le.y1,le.x1),ai(le.y0,le.x0),!d))}else t.moveTo(c+D,f+B),t.arc(c,f,r,l,u,!d);if(!(i>is)||!W)t.lineTo(c+F,f+z);else if(P>is){var ee=Hs(v,P),X=Hs(m,P),Y=SS(F,z,M,I,i,-X,d),le=SS(D,B,R,L,i,-ee,d);t.lineTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),P<$&&ee===X?t.arc(c+Y.cx,f+Y.cy,P,ai(Y.y0,Y.x0),ai(le.y0,le.x0),!d):(X>0&&t.arc(c+Y.cx,f+Y.cy,X,ai(Y.y0,Y.x0),ai(Y.y1,Y.x1),!d),t.arc(c,f,i,ai(Y.cy+Y.y1,Y.cx+Y.x1),ai(le.cy+le.y1,le.cx+le.x1),d),ee>0&&t.arc(c+le.cx,f+le.cy,ee,ai(le.y1,le.x1),ai(le.y0,le.x0),!d))}else t.lineTo(c+F,f+z),t.arc(c,f,i,u,l,d)}t.closePath()}}}var Yze=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),zX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Yze},e.prototype.buildPath=function(n,r){Xze(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);zX.prototype.type="sector";const Ci=zX;var qze=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),FX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new qze},e.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},e}(yt);FX.prototype.type="ring";const ay=FX;function Kze(t,e,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)Bl(c,c,t[d]),Vl(f,f,t[d]);Bl(c,c,r[0]),Vl(f,f,r[1])}for(var d=0,p=t.length;d<p;d++){var g=t[d];if(n)l=t[d?d-1:p-1],u=t[(d+1)%p];else if(d===0||d===p-1){i.push(Rs(t[d]));continue}else l=t[d-1],u=t[d+1];Zu(o,u,l),C0(o,o,e);var v=Ew(g,l),m=Ew(g,u),y=v+m;y!==0&&(v/=y,m/=y),C0(a,o,-v),C0(s,o,m);var b=eI([],g,a),O=eI([],g,s);r&&(Vl(b,b,c),Bl(b,b,f),Vl(O,O,c),Bl(O,O,f)),i.push(b),i.push(O)}return n&&i.push(i.shift()),i}function WX(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=Kze(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Jze=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),QX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Jze},e.prototype.buildPath=function(n,r){WX(n,r,!0)},e}(yt);QX.prototype.type="polygon";const Ti=QX;var eFe=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),HX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eFe},e.prototype.buildPath=function(n,r){WX(n,r,!1)},e}(yt);HX.prototype.type="polyline";const Pi=HX;var tFe={},nFe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),GX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nFe},e.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=XZ(tFe,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(yt);GX.prototype.type="line";const br=GX;var Yi=[],rFe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function jX(t,e,n){var r=t.cpx2,i=t.cpy2;return r!=null||i!=null?[(n?RU:yr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?RU:yr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?pI:Dr)(t.x1,t.cpx1,t.x2,e),(n?pI:Dr)(t.y1,t.cpy1,t.y2,e)]}var UX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rFe},e.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(i,o),c==null||f==null?(d<1&&(R0(i,l,a,d,Yi),l=Yi[1],a=Yi[2],R0(o,u,s,d,Yi),u=Yi[1],s=Yi[2]),n.quadraticCurveTo(l,u,a,s)):(d<1&&(Ju(i,l,c,a,d,Yi),l=Yi[1],c=Yi[2],a=Yi[3],Ju(o,u,f,s,d,Yi),u=Yi[1],f=Yi[2],s=Yi[3]),n.bezierCurveTo(l,u,c,f,a,s)))},e.prototype.pointAt=function(n){return jX(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=jX(this.shape,n,!0);return Uf(r,r)},e}(yt);UX.prototype.type="bezier-curve";const sy=UX;var iFe=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),ZX=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iFe},e.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*a+i,f*a+o),n.arc(i,o,a,s,l,!u)},e}(yt);ZX.prototype.type="arc";const xS=ZX;var oFe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yt.prototype.getBoundingRect.call(this)},e}(yt);const CS=oFe;var XX=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}(),aFe=function(t){re(e,t);function e(n,r,i,o,a,s){var l=t.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return e}(XX);const dg=aFe;var sFe=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return e}(XX);const ID=sFe;var bd=[0,0],_d=[0,0],TS=new ot,PS=new ot,lFe=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new ot;for(var r=0;r<2;r++)this._axes[r]=new ot;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);ot.sub(i[0],r[1],r[0]),ot.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,i=!n;return TS.set(1/0,1/0),PS.set(0,0),!this._intersectCheckOneSide(this,e,TS,PS,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,TS,PS,i,-1)&&(r=!1,i)||i||ot.copy(n,r?TS:PS),r},t.prototype._intersectCheckOneSide=function(e,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,bd),this._getProjMinMaxOnAxis(l,n._corners,_d),bd[1]<_d[0]||bd[0]>_d[1]){if(s=!1,o)return s;var c=Math.abs(_d[0]-bd[1]),f=Math.abs(bd[0]-_d[1]);Math.min(c,f)>i.len()&&(c<f?ot.scale(i,u,-c*a):ot.scale(i,u,f*a))}else if(r){var c=Math.abs(_d[0]-bd[1]),f=Math.abs(bd[0]-_d[1]);Math.min(c,f)<r.len()&&(c<f?ot.scale(r,u,c*a):ot.scale(r,u,-f*a))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var i=this._axes[e],o=this._origin,a=n[0].dot(i)+o[e],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[e];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},t}();const $S=lFe;var uFe=[],cFe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new at(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(uFe)),n.union(o)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},e}(la);const YX=cFe;var qX=Tt();function hg(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Je(r.duration,200),c=Je(r.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),ze(f)&&(f=f(n,i)),ze(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function DD(t,e,n,r,i,o,a){var s=!1,l;ze(i)?(a=o,o=i,i=null):Qe(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=hg(t,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,p=c.easing,g={duration:f,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};s?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!s&&e.attr(n),a&&a(1),o&&o()}function Rt(t,e,n,r,i,o){DD("update",t,e,n,r,i,o)}function vn(t,e,n,r,i,o){DD("enter",t,e,n,r,i,o)}function pg(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function lc(t,e,n,r,i,o){pg(t)||DD("leave",t,e,n,r,i,o)}function KX(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),lc(t,{style:{opacity:0}},e,n,r)}function ly(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||KX(i,e,n,r)}):KX(t,e,n,r)}function os(t){qX(t).oldStyle=t.style}function fFe(t){return qX(t).oldStyle}var AS=Math.max,ES=Math.min,RD={};function JX(t){return yt.extend(t)}var dFe=Wze;function eY(t,e){return dFe(t,e)}function ca(t,e){RD[t]=e}function MS(t){if(RD.hasOwnProperty(t))return RD[t]}function uy(t,e,n,r){var i=kX(t,e);return n&&(r==="center"&&(n=tY(n,i.getBoundingRect())),ND(i,n)),i}function kD(t,e,n){var r=new Rr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(tY(e,o))}}});return r}function tY(t,e){var n=e.width/e.height,r=t.height*n,i;r<=t.width?i=t.height:(r=t.width,i=r/n);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var To=Qze;function ND(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function gg(t,e){return XZ(t,t,{lineWidth:e}),t}function hFe(t){return YZ(t.shape,t.shape,t.style),t}var IS=pd;function uc(t,e){for(var n=P0([]);t&&t!==e;)ks(n,t.getLocalTransform(),n),t=t.parent;return n}function as(t,e,n){return e&&!Wr(e)&&(e=Wl.getLocalTransform(e)),n&&(e=Zf([],e)),Ir([],t,e)}function DS(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),o=[t==="left"?-r:t==="right"?r:0,t==="top"?-i:t==="bottom"?i:0];return o=as(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function nY(t){return!t.isGroup}function pFe(t){return t.shape!=null}function cy(t,e,n){if(!t||!e)return;function r(a){var s={};return a.traverse(function(l){nY(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return pFe(a)&&(s.shape=he({},a.shape)),s}var o=r(t);e.traverse(function(a){if(nY(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Rt(a,l,n,Ke(a).dataIndex)}}})}function LD(t,e){return me(t,function(n){var r=n[0];r=AS(r,e.x),r=ES(r,e.x+e.width);var i=n[1];return i=AS(i,e.y),i=ES(i,e.y+e.height),[r,i]})}function rY(t,e){var n=AS(t.x,e.x),r=ES(t.x+t.width,e.x+e.width),i=AS(t.y,e.y),o=ES(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function vg(t,e,n){var r=he({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Ge(i,n),new Rr(r)):uy(t.replace("path://",""),r,n,"center")}function fy(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(iY(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function iY(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,d=BD(c,f,l,u);if(gFe(d))return!1;var p=t-i,g=e-o,v=BD(p,g,l,u)/d;if(v<0||v>1)return!1;var m=BD(p,g,c,f)/d;return!(m<0||m>1)}function BD(t,e,n,r){return t*r-n*e}function gFe(t){return t<=1e-6&&t>=-1e-6}function mg(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Ie(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&V(bt(l),function(c){ke(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ke(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Ge({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function oY(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function cc(t,e){if(t)if(ge(t))for(var n=0;n<t.length;n++)oY(t[n],e);else oY(t,e)}ca("circle",Zl),ca("ellipse",wS),ca("sector",Ci),ca("ring",ay),ca("polygon",Ti),ca("polyline",Pi),ca("rect",Pt),ca("line",br),ca("bezierCurve",sy),ca("arc",xS);const Od=Object.freeze(Object.defineProperty({__proto__:null,Arc:xS,BezierCurve:sy,BoundingRect:at,Circle:Zl,CompoundPath:CS,Ellipse:wS,Group:qe,Image:Rr,IncrementalDisplayable:YX,Line:br,LinearGradient:dg,OrientedBoundingRect:$S,Path:yt,Point:ot,Polygon:Ti,Polyline:Pi,RadialGradient:ID,Rect:Pt,Ring:ay,Sector:Ci,Text:$t,applyTransform:as,clipPointsByRect:LD,clipRectByRect:rY,createIcon:vg,extendPath:eY,extendShape:JX,getShapeClass:MS,getTransform:uc,groupTransition:cy,initProps:vn,isElementRemoved:pg,lineLineIntersect:iY,linePolygonIntersect:fy,makeImage:kD,makePath:uy,mergePath:To,registerShape:ca,removeElement:lc,removeElementWithFadeOut:ly,resizePath:ND,setTooltipConfig:mg,subPixelOptimize:IS,subPixelOptimizeLine:gg,subPixelOptimizeRect:hFe,transformDirection:DS,traverseElements:cc,updateProps:Rt},Symbol.toStringTag,{value:"Module"}));var RS={};function aY(t,e){for(var n=0;n<xi.length;n++){var r=xi[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function VD(t,e,n){var r=t.labelFetcher,i=t.labelDataIndex,o=t.labelDimIndex,a=e.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=ze(t.defaultText)?t.defaultText(i,t,n):t.defaultText);for(var l={normal:s},u=0;u<xi.length;u++){var c=xi[u],f=e[c];l[c]=Je(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function Gr(t,e,n,r){n=n||RS;for(var i=t instanceof $t,o=!1,a=0;a<ey.length;a++){var s=e[ey[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new $t,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=VD(n,e),c=e.normal,f=!!c.getShallow("show"),d=un(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(kS(c,n,!1));for(var a=0;a<xi.length;a++){var p=xi[a],s=e[p];if(s){var g=l.ensureState(p),v=!!Je(s.getShallow("show"),f);if(v!==f&&(g.ignore=!v),g.style=un(s,r&&r[p],n,!0,!i),g.style.text=u[p],!i){var m=t.ensureState(p);m.textConfig=kS(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(yg(l).setLabelText=function(y){var b=VD(n,e,y);aY(l,b)})}else l&&(l.ignore=!0);t.dirty()}function _r(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<xi.length;r++){var i=xi[r];n[i]=t.getModel([i,e])}return n}function un(t,e,n,r,i){var o={};return vFe(o,t,n,r,i),e&&he(o,e),o}function kS(t,e,n){e=e||{};var r={},i,o=t.getShallow("rotate"),a=Je(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function vFe(t,e,n,r,i){n=n||RS;var o=e.ecModel,a=o&&o.option.textStyle,s=mFe(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);cY(l[u]={},c,a,n,r,i,!1,!0)}}l&&(t.rich=l);var f=e.get("overflow");f&&(t.overflow=f);var d=e.get("minMargin");d!=null&&(t.margin=d),cY(t,e,a,n,r,i,!0,!1)}function mFe(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||RS).rich;if(n){e=e||{};for(var r=bt(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var sY=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lY=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],uY=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function cY(t,e,n,r,i,o,a,s){n=!i&&n||RS;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=Je(e.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Zn("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Zn("color: 'auto'","color: 'inherit'"),l?c=l:c=null),o||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var d=Je(e.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(t.lineWidth=d);var p=Je(e.getShallow("textBorderType"),n.textBorderType);p!=null&&(t.lineDash=p);var g=Je(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!i&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(t.opacity=f),!i&&!o&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var v=0;v<sY.length;v++){var m=sY[v],y=Je(e.getShallow(m),n[m]);y!=null&&(t[m]=y)}for(var v=0;v<lY.length;v++){var m=lY[v],y=e.getShallow(m);y!=null&&(t[m]=y)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!a||!r.disableBox){for(var v=0;v<uY.length;v++){var m=uY[v],y=e.getShallow(m);y!=null&&(t[m]=y)}var O=e.getShallow("borderType");O!=null&&(t.borderDash=O),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&Zn("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&Zn("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}function zD(t,e){var n=e&&e.getModel("textStyle");return na([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var yg=Tt();function fY(t,e,n,r){if(t){var i=yg(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function dY(t,e,n,r,i){var o=yg(t);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Je(o.interpolatedValue,o.prevValue),l=o.value;function u(c){var f=IZ(n,o.precision,s,l,c);o.interpolatedValue=c===1?null:f;var d=VD({labelDataIndex:e,labelFetcher:i,defaultText:a?a(f):f+""},o.statesModels,f);aY(t,d)}t.percent=0,(o.prevValue==null?vn:Rt)(t,{percent:1},r,e,null,u)}var yFe=["textStyle","color"],FD=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],WD=new $t,bFe=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(yFe):null)},t.prototype.getFont=function(){return zD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<FD.length;r++)n[FD[r]]=this.getShallow(FD[r]);return WD.useStyle(n),WD.update(),WD.getBoundingRect()},t}(),hY=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],_Fe=ad(hY),OFe=function(){function t(){}return t.prototype.getLineStyle=function(e){return _Fe(this,e)},t}(),pY=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wFe=ad(pY),SFe=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return wFe(this,e,n)},t}(),wd=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){it(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,i=r==null?r:r[e];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(e))}return i},t.prototype.getModel=function(e,n){var r=e!=null,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ue(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Ct.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var i=0;i<e.length&&!(e[i]&&(r=r&&typeof r=="object"?r[e[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();JI(wd),MVe(wd),Wn(wd,OFe),Wn(wd,SFe),Wn(wd,NVe),Wn(wd,bFe);const rn=wd;var xFe=Math.round(Math.random()*10);function bg(t){return[t||"",xFe++].join("_")}function CFe(t){var e={};t.registerSubTypeDefaulter=function(n,r){var i=Vs(n);e[i.main]=r},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=Vs(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function TFe(t,e){t.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,d={};for(V(o,function(b){d[b]=!0});f.length;){var p=f.pop(),g=c[p],v=!!d[p];v&&(s.call(l,p,g.originalDeps.slice()),delete d[p]),V(g.successor,v?y:m)}V(d,function(){var b="";throw process.env.NODE_ENV!=="production"&&(b=wi("Circular dependency may exists: ",d,o,a)),new Error(b)});function m(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function y(b){d[b]=!0,m(b)}};function n(o){var a={},s=[];return V(o,function(l){var u=r(a,l),c=u.originalDeps=e(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),V(f,function(d){st(u.predecessor,d)<0&&u.predecessor.push(d);var p=r(a,d);st(p.successor,d)<0&&p.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return V(o,function(l){st(a,l)>=0&&s.push(l)}),s}}function fc(t,e){return it(it({},t,!0),e,!0)}const PFe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$Fe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var NS="ZH",QD="EN",_g=QD,LS={},HD={},gY=Ct.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_g).toUpperCase();return t.indexOf(NS)>-1?NS:_g}():_g;function GD(t,e){t=t.toUpperCase(),HD[t]=new rn(e),LS[t]=e}function AFe(t){if(Ie(t)){var e=LS[t.toUpperCase()]||{};return t===NS||t===QD?Ue(e):it(Ue(e),Ue(LS[_g]),!1)}else return it(Ue(t),Ue(LS[_g]),!1)}function jD(t){return HD[t]}function EFe(){return HD[_g]}GD(QD,PFe),GD(NS,$Fe);var UD=1e3,ZD=UD*60,dy=ZD*60,fa=dy*24,vY=fa*365,hy={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},BS="{yyyy}-{MM}-{dd}",mY={year:"{yyyy}",month:"{yyyy}-{MM}",day:BS,hour:BS+" "+hy.hour,minute:BS+" "+hy.minute,second:BS+" "+hy.second,millisecond:hy.none},XD=["year","month","day","hour","minute","second","millisecond"],yY=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $i(t,e){return t+="","0000".substr(0,e-t.length)+t}function Og(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function MFe(t){return t===Og(t)}function IFe(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function py(t,e,n,r){var i=xo(t),o=i[YD(n)](),a=i[wg(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[VS(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[gy(n)](),f=(c-1)%12+1,d=i[zS(n)](),p=i[FS(n)](),g=i[WS(n)](),v=c>=12?"pm":"am",m=v.toUpperCase(),y=r instanceof rn?r:jD(r||gY)||EFe(),b=y.getModel("time"),O=b.get("month"),w=b.get("monthAbbr"),S=b.get("dayOfWeek"),x=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,$i(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,O[a-1]).replace(/{MMM}/g,w[a-1]).replace(/{MM}/g,$i(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,$i(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$i(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$i(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$i(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$i(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,$i(g,3)).replace(/{S}/g,g+"")}function DFe(t,e,n,r,i){var o=null;if(Ie(n))o=n;else if(ze(n))o=n(t.value,e,{level:t.level});else{var a=he({},hy);if(t.level>0)for(var s=0;s<XD.length;++s)a[XD[s]]="{primary|"+a[XD[s]]+"}";var l=n?n.inherit===!1?n:Ge(n,a):a,u=bY(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=yY.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ge(o)){var f=t.level==null?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return py(new Date(t.value),o,i,r)}function bY(t,e){var n=xo(t),r=n[wg(e)]()+1,i=n[VS(e)](),o=n[gy(e)](),a=n[zS(e)](),s=n[FS(e)](),l=n[WS(e)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,p=d&&i===1,g=p&&r===1;return g?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function _Y(t,e,n){var r=Et(t)?xo(t):t;switch(e=e||bY(t,n),e){case"year":return r[YD(n)]();case"half-year":return r[wg(n)]()>=6?1:0;case"quarter":return Math.floor((r[wg(n)]()+1)/4);case"month":return r[wg(n)]();case"day":return r[VS(n)]();case"half-day":return r[gy(n)]()/24;case"hour":return r[gy(n)]();case"minute":return r[zS(n)]();case"second":return r[FS(n)]();case"millisecond":return r[WS(n)]()}}function YD(t){return t?"getUTCFullYear":"getFullYear"}function wg(t){return t?"getUTCMonth":"getMonth"}function VS(t){return t?"getUTCDate":"getDate"}function gy(t){return t?"getUTCHours":"getHours"}function zS(t){return t?"getUTCMinutes":"getMinutes"}function FS(t){return t?"getUTCSeconds":"getSeconds"}function WS(t){return t?"getUTCMilliseconds":"getMilliseconds"}function RFe(t){return t?"setUTCFullYear":"setFullYear"}function OY(t){return t?"setUTCMonth":"setMonth"}function wY(t){return t?"setUTCDate":"setDate"}function SY(t){return t?"setUTCHours":"setHours"}function xY(t){return t?"setUTCMinutes":"setMinutes"}function CY(t){return t?"setUTCSeconds":"setSeconds"}function TY(t){return t?"setUTCMilliseconds":"setMilliseconds"}function kFe(t,e,n,r,i,o,a,s){var l=new $t({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function qD(t){if(!oS(t))return Ie(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function KD(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Sd=$w;function JD(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&na(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=e==="time",s=t instanceof Date;if(a||s){var l=a?xo(t):t;if(isNaN(+l)){if(s)return"-"}else return py(l,r,n)}if(e==="ordinal")return y0(t)?i(t):Et(t)&&o(t)?t+"":"-";var u=Bs(t);return o(u)?qD(u):y0(t)?i(t):typeof t=="boolean"?t+"":"-"}var PY=["a","b","c","d","e","f","g"],eR=function(t,e){return"{"+t+(e??"")+"}"};function tR(t,e,n){ge(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=PY[o];t=t.replace(eR(a),eR(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(eR(PY[l],s),n?_i(u):u)}return t}function NFe(t,e,n){return V(e,function(r,i){t=t.replace("{"+i+"}",r)}),t}function $Y(t,e){var n=Ie(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+_i(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+_i(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function LFe(t,e,n){process.env.NODE_ENV!=="production"&&Zn("echarts.format.formatTime","echarts.time.format"),(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
  335. yyyy`);var r=xo(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),f=r[i+"Milliseconds"]();return t=t.replace("MM",$i(a,2)).replace("M",a).replace("yyyy",o).replace("yy",$i(o%100+"",2)).replace("dd",$i(s,2)).replace("d",s).replace("hh",$i(l,2)).replace("h",l).replace("mm",$i(u,2)).replace("m",u).replace("ss",$i(c,2)).replace("s",c).replace("SSS",$i(f,3)),t}function BFe(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function xd(t,e){return e=e||"transparent",Ie(t)?t:Qe(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function QS(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var HS=V,AY=["left","right","top","bottom","width","height"],Cd=[["width","left","right"],["height","top","bottom"]];function nR(t,e,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),p,g;if(t==="horizontal"){var v=c.width+(d?-d.x+c.x:0);p=o+v,p>r||l.newline?(o=0,p=v,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(d?-d.y+c.y:0);g=a+m,g>i||l.newline?(o+=s+n,a=0,g=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),t==="horizontal"?o=p+n:a=g+n)})}var Td=nR;tt(nR,"vertical"),tt(nR,"horizontal");function VFe(t,e,n){var r=e.width,i=e.height,o=Ee(t.left,r),a=Ee(t.top,i),s=Ee(t.right,r),l=Ee(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=Sd(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function er(t,e,n){n=Sd(n||0);var r=e.width,i=e.height,o=Ee(t.left,r),a=Ee(t.top,i),s=Ee(t.right,r),l=Ee(t.bottom,i),u=Ee(t.width,r),c=Ee(t.height,i),f=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),p!=null&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-f),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var g=new at(o+n[3],a+n[0],u,c);return g.margin=n,g}function GS(t,e,n,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!a&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new at(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=er(Ge({width:u.width,height:u.height},e),n,r),d=a?f.x-u.x:0,p=s?f.y-u.y:0;return l==="raw"?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function zFe(t,e){return t[Cd[e][0]]!=null||t[Cd[e][1]]!=null&&t[Cd[e][2]]!=null}function vy(t){var e=t.layoutMode||t.constructor.layoutMode;return Qe(e)?e:e?{type:e}:null}function dc(t,e,n){var r=n&&n.ignoreSize;!ge(r)&&(r=[r,r]);var i=a(Cd[0],0),o=a(Cd[1],1);u(Cd[0],t,i),u(Cd[1],t,o);function a(c,f){var d={},p=0,g={},v=0,m=2;if(HS(c,function(O){g[O]=t[O]}),HS(c,function(O){s(e,O)&&(d[O]=g[O]=e[O]),l(d,O)&&p++,l(g,O)&&v++}),r[f])return l(e,c[1])?g[c[2]]=null:l(e,c[2])&&(g[c[1]]=null),g;if(v===m||!p)return g;if(p>=m)return d;for(var y=0;y<c.length;y++){var b=c[y];if(!s(d,b)&&s(t,b)){d[b]=t[b];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){HS(c,function(p){f[p]=d[p]})}}function Sg(t){return EY({},t)}function EY(t,e){return e&&t&&HS(AY,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var FFe=Tt(),dt=function(t){re(e,t);function e(n,r,i){var o=t.call(this,n,r,i)||this;return o.uid=bg("ec_cpt_model"),o}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=vy(this),o=i?Sg(n):{},a=r.getTheme();it(n,a.get(this.mainType)),it(n,this.getDefaultOption()),i&&dc(n,o,i)},e.prototype.mergeOption=function(n,r){it(this.option,n,!0);var i=vy(this);i&&dc(this.option,n,i)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!$Ve(n))return n.defaultOption;var r=FFe(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=it(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return Y0(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(rn);RZ(dt,rn),sS(dt),CFe(dt),TFe(dt,WFe);function WFe(t){var e=[];return V(dt.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=me(e,function(n){return Vs(n).main}),t!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}var MY="";typeof navigator<"u"&&(MY=navigator.platform||"");var xg="rgba(0, 0, 0, 0.2)";const QFe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xg,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xg,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:MY.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var rR=Le(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),da="original",si="arrayRows",ha="objectRows",Gs="keyedColumns",Xl="typedArray",IY="unknown",js="column",Cg="row",jr={Must:1,Might:2,Not:3},DY=Tt();function HFe(t){DY(t).datasetMap=Le()}function RY(t,e,n){var r={},i=oR(e);if(!i||!t)return r;var o=[],a=[],s=e.ecModel,l=DY(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),V(t,function(v,m){var y=Qe(v)?v:t[m]={name:v};y.type==="ordinal"&&c==null&&(c=m,f=g(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});V(t,function(v,m){var y=v.name,b=g(v);if(c==null){var O=d.valueWayDim;p(r[y],O,b),p(a,O,b),d.valueWayDim+=b}else if(c===m)p(r[y],0,b),p(o,0,b);else{var O=d.categoryWayDim;p(r[y],O,b),p(a,O,b),d.categoryWayDim+=b}});function p(v,m,y){for(var b=0;b<y;b++)v.push(m+b)}function g(v){var m=v.dimsDef;return m?m.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function iR(t,e,n){var r={},i=oR(t);if(!i)return r;var o=e.sourceFormat,a=e.dimensionsDefine,s;(o===ha||o===Gs)&&V(a,function(c,f){(Qe(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],p=0,g=Math.min(5,n);p<g;p++){var v=NY(e.data,o,e.seriesLayoutBy,a,e.startIndex,p);d.push(v);var m=v===jr.Not;if(m&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!m&&d[c.n]===jr.Not)&&(c.n=p),y(c)&&d[c.n]!==jr.Not)return c;m||(v===jr.Might&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v)&&(f.n=p))}function y(b){return b.v!=null&&b.n!=null}return y(c)?c:y(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function oR(t){var e=t.get("data",!0);if(!e)return Y0(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Jn).models[0]}function GFe(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Y0(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Jn).models}function kY(t,e){return NY(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function NY(t,e,n,r,i,o){var a,s=5;if(ii(t))return jr.Not;var l,u;if(r){var c=r[o];Qe(c)?(l=c.name,u=c.type):Ie(c)&&(l=c)}if(u!=null)return u==="ordinal"?jr.Must:jr.Not;if(e===si){var f=t;if(n===Cg){for(var d=f[o],p=0;p<(d||[]).length&&p<s;p++)if((a=w(d[i+p]))!=null)return a}else for(var p=0;p<f.length&&p<s;p++){var g=f[i+p];if(g&&(a=w(g[o]))!=null)return a}}else if(e===ha){var v=t;if(!l)return jr.Not;for(var p=0;p<v.length&&p<s;p++){var m=v[p];if(m&&(a=w(m[l]))!=null)return a}}else if(e===Gs){var y=t;if(!l)return jr.Not;var d=y[l];if(!d||ii(d))return jr.Not;for(var p=0;p<d.length&&p<s;p++)if((a=w(d[p]))!=null)return a}else if(e===da)for(var b=t,p=0;p<b.length&&p<s;p++){var m=b[p],O=ig(m);if(!ge(O))return jr.Not;if((a=w(O[o]))!=null)return a}function w(S){var x=Ie(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?jr.Might:jr.Not;if(x&&S!=="-")return jr.Must}return jr.Not}var aR=Le();function jFe(t,e){je(aR.get(t)==null&&e),aR.set(t,e)}function UFe(t,e,n){var r=aR.get(e);if(!r)return n;var i=r(t);if(!i)return n;if(process.env.NODE_ENV!=="production")for(var o=0;o<i.length;o++)je(og(i[o]));return n.concat(i)}var LY=Tt(),ZFe=Tt(),sR=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var i=nn(this.get("color",!0)),o=this.get("colorLayer",!0);return BY(this,LY,i,o,e,n,r)},t.prototype.clearColorPalette=function(){YFe(this,LY)},t}();function lR(t,e,n,r){var i=nn(t.get(["aria","decal","decals"]));return BY(t,ZFe,i,null,e,n,r)}function XFe(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function BY(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:XFe(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function YFe(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var jS,my,VY,uR="\0_ec_inner",zY=1,qFe={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},KFe={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},US={};function JFe(t){V(t,function(e,n){if(!dt.hasClass(n)){var r=qFe[n];r&&!US[r]&&(Qr("Component "+n+` is used but not imported.
  336. import { `+r+` } from 'echarts/components';
  337. echarts.use([`+r+"]);"),US[r]=!0)}})}var cR=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new rn(o),this._locale=new rn(a),this._optionManager=s},e.prototype.setOption=function(n,r,i){process.env.NODE_ENV!=="production"&&(je(n!=null,"option is null/undefined"),je(n[uR]!==zY,"please use chart.getOption()"));var o=QY(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},e.prototype.resetOption=function(n,r){return this._resetOption(n,QY(r))},e.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");process.env.NODE_ENV!=="production"&&JFe(a),!this.option||n==="recreate"?VY(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&V(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Le(),u=r&&r.replaceMergeMainTypeMap;HFe(this),V(n,function(f,d){f!=null&&(dt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ue(f):it(i[d],f,!0))}),u&&u.each(function(f,d){dt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),dt.topologicalTravel(s,dt.getAllClassMainTypes(),c,this);function c(f){var d=UFe(this,f,nn(n[f])),p=o.get(f),g=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=PZ(p,d,g);bVe(v,f,dt),i[f]=null,o.set(f,null),a.set(f,0);var m=[],y=[],b=0,O,w;V(v,function(S,x){var T=S.existing,$=S.newOption;if(!$)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=f==="series",P=dt.getClass(f,S.keyInfo.subType,!A);if(!P){if(process.env.NODE_ENV!=="production"){var M=S.keyInfo.subType,I=KFe[M];US[M]||(US[M]=!0,Qr(I?"Series "+M+` is used but not imported.
  338. import { `+I+` } from 'echarts/charts';
  339. echarts.use([`+I+"]);":"Unknown series "+M))}return}if(f==="tooltip"){if(O){process.env.NODE_ENV!=="production"&&(w||(En("Currently only one tooltip component is allowed."),w=!0));return}O=!0}if(T&&T.constructor===P)T.name=S.keyInfo.name,T.mergeOption($,this),T.optionUpdated($,!1);else{var R=he({componentIndex:x},S.keyInfo);T=new P($,this,this,R),he(T,R),S.brandNew&&(T.__requireNewView=!0),T.init($,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),y.push(T),b++):(m.push(void 0),y.push(void 0))},this),i[f]=m,o.set(f,y),a.set(f,b),f==="series"&&jS(this)}this._seriesIndices||jS(this)},e.prototype.getOption=function(){var n=Ue(this.option);return V(n,function(r,i){if(dt.hasClass(i)){for(var o=nn(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!og(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[uR],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],V(nn(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=FY("id",o,s):a!=null?l=FY("name",a,s):l=Yt(s,function(u){return!!u}),WY(l,n)},e.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Yt(this._componentsMap.get(i),function(u){return!!u});return l(WY(a,n));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?Yt(u,n.filter):u}},e.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(ze(n)){var a=r,s=n;o.each(function(f,d){for(var p=0;f&&p<f.length;p++){var g=f[p];g&&s.call(a,d,g,g.componentIndex)}})}else for(var l=Ie(n)?o.get(n):Qe(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=cr(n,null);return Yt(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Yt(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Yt(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){my(this),V(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},e.prototype.eachRawSeries=function(n,r){V(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,i){my(this),V(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},e.prototype.eachRawSeriesByType=function(n,r,i){return V(this.getSeriesByType(n),r,i)},e.prototype.isSeriesFiltered=function(n){return my(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){my(this);var i=[];V(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Le(i)},e.prototype.restoreData=function(n){jS(this);var r=this._componentsMap,i=[];r.each(function(o,a){dt.hasClass(a)&&i.push(a)}),dt.topologicalTravel(i,dt.getAllClassMainTypes(),function(o){V(r.get(o),function(a){a&&(o!=="series"||!eWe(a,n))&&a.restoreData()})})},e.internalField=function(){jS=function(n){var r=n._seriesIndices=[];V(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Le(r)},my=function(n){if(process.env.NODE_ENV!=="production"&&!n._seriesIndices)throw new Error("Option should contains series.")},VY=function(n,r){n.option={},n.option[uR]=zY,n._componentsMap=Le({series:[]}),n._componentsCount=Le();var i=r.aria;Qe(i)&&i.enabled==null&&(i.enabled=!0),tWe(r,n._theme.option),it(r,QFe,!1),n._mergeOption(r,null)}}(),e}(rn);function eWe(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||i!=null&&t.name!==i}}function tWe(t,e){var n=t.color&&!t.colorLayer;V(e,function(r,i){i==="colorLayer"&&n||dt.hasClass(i)||(typeof r=="object"?t[i]=t[i]?it(t[i],r,!1):Ue(r):t[i]==null&&(t[i]=r))})}function FY(t,e,n){if(ge(e)){var r=Le();return V(e,function(o){if(o!=null){var a=cr(o,null);a!=null&&r.set(o,!0)}}),Yt(n,function(o){return o&&r.get(o[t])})}else{var i=cr(e,null);return Yt(n,function(o){return o&&i!=null&&o[t]===i})}}function WY(t,e){return e.hasOwnProperty("subType")?Yt(t,function(n){return n&&n.subType===e.subType}):t}function QY(t){var e=Le();return t&&V(nn(t.replaceMerge),function(n){process.env.NODE_ENV!=="production"&&je(dt.hasClass(n),'"'+n+'" is not valid component main type in "replaceMerge"'),e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Wn(cR,sR);var nWe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],HY=function(){function t(e){V(nWe,function(n){this[n]=Re(e[n],e)},this)}return t}(),fR={},Pd=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];V(fR,function(i,o){var a=i.create(e,n);r=r.concat(a||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){V(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){fR[e]=n},t.get=function(e){return fR[e]},t}(),rWe=/^(min|max)?(.+)$/,iWe=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(V(nn(e.series),function(a){a&&a.data&&ii(a.data)&&_0(a.data)}),V(nn(e.dataset),function(a){a&&a.source&&ii(a.source)&&_0(a.source)})),e=Ue(e);var i=this._optionBackup,o=oWe(e,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Ue(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var i=e.getComponent("timeline");i&&(n=Ue(r[i.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)aWe(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!lWe(a,this._currentMediaIndices)&&(s=me(a,function(c){return Ue(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},t}();function oWe(t,e,n){var r=[],i,o,a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(t.options=t.media=null),o=t),c&&(ge(u)?V(u,function(p){process.env.NODE_ENV!=="production"&&p&&!p.option&&Qe(p.query)&&Qe(p.query.option)&&Qr("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),p&&p.option&&(p.query?r.push(p):i||(i=p))}):process.env.NODE_ENV!=="production"&&Qr("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),V(l,function(p){return d(p)}),V(r,function(p){return d(p.option)});function d(p){V(e,function(g){g(p,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function aWe(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return V(t,function(o,a){var s=a.match(rWe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();sWe(r[u],o,l)||(i=!1)}}),i}function sWe(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function lWe(t,e){return t.join(",")===e.join(",")}var pa=V,yy=Qe,GY=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function dR(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=GY.length;n<r;n++){var i=GY[n],o=e.normal,a=e.emphasis;o&&o[i]&&(process.env.NODE_ENV!=="production"&&Zn("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?it(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(process.env.NODE_ENV!=="production"&&Zn("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?it(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function li(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(process.env.NODE_ENV!=="production"&&sa("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Ge(t[e],r)):t[e]=r),i&&(process.env.NODE_ENV!=="production"&&sa(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function by(t){li(t,"itemStyle"),li(t,"lineStyle"),li(t,"areaStyle"),li(t,"label"),li(t,"labelLine"),li(t,"upperLabel"),li(t,"edgeLabel")}function tr(t,e){var n=yy(t)&&t[e],r=yy(n)&&n.textStyle;if(r){process.env.NODE_ENV!=="production"&&sa("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,o=TZ.length;i<o;i++){var a=TZ[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function ga(t){t&&(by(t),tr(t,"label"),t.emphasis&&tr(t.emphasis,"label"))}function uWe(t){if(yy(t)){dR(t),by(t),tr(t,"label"),tr(t,"upperLabel"),tr(t,"edgeLabel"),t.emphasis&&(tr(t.emphasis,"label"),tr(t.emphasis,"upperLabel"),tr(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(dR(e),ga(e));var n=t.markLine;n&&(dR(n),ga(n));var r=t.markArea;r&&ga(r);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var o=t.links||t.edges;if(o&&!ii(o))for(var a=0;a<o.length;a++)ga(o[a]);V(t.categories,function(u){by(u)})}if(i&&!ii(i))for(var a=0;a<i.length;a++)ga(i[a]);if(e=t.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)ga(s[a]);if(n=t.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)ge(l[a])?(ga(l[a][0]),ga(l[a][1])):ga(l[a]);t.type==="gauge"?(tr(t,"axisLabel"),tr(t,"title"),tr(t,"detail")):t.type==="treemap"?(li(t.breadcrumb,"itemStyle"),V(t.levels,function(u){by(u)})):t.type==="tree"&&by(t.leaves)}}function Yl(t){return ge(t)?t:t?[t]:[]}function jY(t){return(ge(t)?t[0]:t)||{}}function cWe(t,e){pa(Yl(t.series),function(r){yy(r)&&uWe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),pa(n,function(r){pa(Yl(t[r]),function(i){i&&(tr(i,"axisLabel"),tr(i.axisPointer,"label"))})}),pa(Yl(t.parallel),function(r){var i=r&&r.parallelAxisDefault;tr(i,"axisLabel"),tr(i&&i.axisPointer,"label")}),pa(Yl(t.calendar),function(r){li(r,"itemStyle"),tr(r,"dayLabel"),tr(r,"monthLabel"),tr(r,"yearLabel")}),pa(Yl(t.radar),function(r){tr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name,process.env.NODE_ENV!=="production"&&sa("name property in radar component has been changed to axisName")),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap,process.env.NODE_ENV!=="production"&&sa("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&pa(r.indicator,function(i){i.text&&Zn("text","name","radar.indicator")})}),pa(Yl(t.geo),function(r){yy(r)&&(ga(r),pa(Yl(r.regions),function(i){ga(i)}))}),pa(Yl(t.timeline),function(r){ga(r),li(r,"label"),li(r,"itemStyle"),li(r,"controlStyle",!0);var i=r.data;ge(i)&&V(i,function(o){Qe(o)&&(li(o,"label"),li(o,"itemStyle"))})}),pa(Yl(t.toolbox),function(r){li(r,"iconStyle"),pa(r.feature,function(i){li(i,"iconStyle")})}),tr(jY(t.axisPointer),"label"),tr(jY(t.tooltip).axisPointer,"label")}function fWe(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function dWe(t,e,n,r){for(var i=e.split(","),o=t,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function UY(t){t&&V(hWe,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var hWe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],pWe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],hR=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _y(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<hR.length;n++){var r=hR[n][1],i=hR[n][0];e[r]!=null&&(e[i]=e[r],process.env.NODE_ENV!=="production"&&Zn(r,i))}}function ZY(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Zn("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function XY(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&Zn("downplay","blur","sunburst"))}function gWe(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Zn("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function YY(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&YY(t[n].children,e)}function qY(t,e){cWe(t,e),t.series=nn(t.series),V(t.series,function(n){if(Qe(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow,process.env.NODE_ENV!=="production"&&Zn("clipOverflow","clip","line"));else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise,process.env.NODE_ENV!=="production"&&Zn("clockWise","clockwise")),ZY(n.label);var i=n.data;if(i&&!ii(i))for(var o=0;o<i.length;o++)ZY(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Zn("hoverOffset","emphasis.scaleSize"),n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=fWe(n,"pointer.color");a!=null&&dWe(n,"itemStyle.color",a)}else if(r==="bar"){_y(n),_y(n.backgroundStyle),_y(n.emphasis);var i=n.data;if(i&&!ii(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(_y(i[o]),_y(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s,process.env.NODE_ENV!=="production"&&Zn("highlightPolicy","emphasis.focus","sunburst"))),XY(n),YY(n.data,XY)}else r==="graph"||r==="sankey"?gWe(n):r==="map"&&(n.mapType&&!n.map&&(process.env.NODE_ENV!=="production"&&Zn("mapType","map","map"),n.map=n.mapType),n.mapLocation&&(process.env.NODE_ENV!=="production"&&sa("`mapLocation` is not used anymore."),Ge(n,n.mapLocation)));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Zn("hoverAnimation","emphasis.scale"),n.emphasis.scale=n.hoverAnimation)),UY(n)}}),t.dataRange&&(t.visualMap=t.dataRange),V(pWe,function(n){var r=t[n];r&&(ge(r)||(r=[r]),V(r,function(i){UY(i)}))})}function vWe(t){var e=Le();t.eachSeries(function(n){var r=n.get("stack");if(r){var i=e.get(r)||e.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),e.each(mWe)}function mWe(t){V(t,function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var d=a.get(e.stackedDimension,f);if(isNaN(d))return i;var p,g;s?g=a.getRawIndex(f):p=a.get(e.stackedByDimension,f);for(var v=NaN,m=n-1;m>=0;m--){var y=t[m];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,p)),g>=0){var b=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=aVe(d,b),v=b;break}}}return r[0]=d,r[1]=v,r})})}var ZS=function(){function t(e){this.data=e.data||(e.sourceFormat===Gs?{}:[]),this.sourceFormat=e.sourceFormat||IY,this.seriesLayoutBy=e.seriesLayoutBy||js,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&kY(this,r)===jr.Must&&(i.type="ordinal")}}return t}();function pR(t){return t instanceof ZS}function gR(t,e,n){n=n||KY(t);var r=e.seriesLayoutBy,i=bWe(t,n,r,e.sourceHeader,e.dimensions),o=new ZS({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ue(e)});return o}function vR(t){return new ZS({data:t,sourceFormat:ii(t)?Xl:da})}function yWe(t){return new ZS({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ue(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function KY(t){var e=IY;if(ii(t))e=Xl;else if(ge(t)){t.length===0&&(e=si);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i!=null){if(ge(i)||ii(i)){e=si;break}else if(Qe(i)){e=ha;break}}}}else if(Qe(t)){for(var o in t)if(ke(t,o)&&Wr(t[o])){e=Gs;break}}return e}function bWe(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:JY(i),startIndex:a,dimensionsDetectedCount:o};if(e===si){var s=t;r==="auto"||r==null?eq(function(u){u!=null&&u!=="-"&&(Ie(u)?a==null&&(a=1):a=0)},n,s,10):a=Et(r)?r:r?1:0,!i&&a===1&&(i=[],eq(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===Cg?s.length:s[0]?s[0].length:null}else if(e===ha)i||(i=_We(t));else if(e===Gs)i||(i=[],V(t,function(u,c){i.push(c)}));else if(e===da){var l=ig(t[0]);o=ge(l)&&l.length||1}else e===Xl&&process.env.NODE_ENV!=="production"&&je(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:JY(i),dimensionsDetectedCount:o}}function _We(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return bt(n)}function JY(t){if(t){var e=Le();return me(t,function(n,r){n=Qe(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i})}}function eq(t,e,n,r){if(e===Cg)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)t(o[i],i)}function tq(t){var e=t.sourceFormat;return e===ha||e===Gs}var $d,Ad,Ed,nq,rq,iq=function(){function t(e,n){var r=pR(e)?e:vR(e);this._source=r;var i=this._data=r.data;if(r.sourceFormat===Xl){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=n,this._data=i}rq(this,i,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;rq=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,p=nq[yR(u,c)];if(process.env.NODE_ENV!=="production"&&je(p,"Invalide sourceFormat: "+u),he(a,p),u===Xl)a.getItem=n,a.count=i,a.fillStorage=r;else{var g=aq(u,c);a.getItem=Re(g,null,s,f,d);var v=lq(u,c);a.count=Re(v,null,s,f,d)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var p=u[d],g=p[0]==null?1/0:p[0],v=p[1]==null?-1/0:p[1],m=s-a,y=l[d],b=0;b<m;b++){var O=c[b*f+d];y[a+b]=O,O<g&&(g=O),O>v&&(v=O)}p[0]=g,p[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};nq=(e={},e[si+"_"+js]={pure:!0,appendData:o},e[si+"_"+Cg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ha]={pure:!0,appendData:o},e[Gs]={pure:!0,appendData:function(a){var s=this._data;V(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[da]={appendData:o},e[Xl]={persistent:!1,pure:!0,appendData:function(a){process.env.NODE_ENV!=="production"&&je(ii(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),t}(),oq=function(t,e,n,r){return t[r]},OWe=($d={},$d[si+"_"+js]=function(t,e,n,r){return t[r+e]},$d[si+"_"+Cg]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},$d[ha]=oq,$d[Gs]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=t[s];o[a]=l?l[r]:null}return o},$d[da]=oq,$d);function aq(t,e){var n=OWe[yR(t,e)];return process.env.NODE_ENV!=="production"&&je(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var sq=function(t,e,n){return t.length},wWe=(Ad={},Ad[si+"_"+js]=function(t,e,n){return Math.max(0,t.length-e)},Ad[si+"_"+Cg]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Ad[ha]=sq,Ad[Gs]=function(t,e,n){var r=n[0].name;if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;var i=t[r];return i?i.length:0},Ad[da]=sq,Ad);function lq(t,e){var n=wWe[yR(t,e)];return process.env.NODE_ENV!=="production"&&je(n,'Do not support count on "'+t+'", "'+e+'".'),n}var mR=function(t,e,n){return t[e]},SWe=(Ed={},Ed[si]=mR,Ed[ha]=function(t,e,n){return t[n]},Ed[Gs]=mR,Ed[da]=function(t,e,n){var r=ig(t);return r instanceof Array?r[e]:r},Ed[Xl]=mR,Ed);function uq(t){var e=SWe[t];return process.env.NODE_ENV!=="production"&&je(e,'Do not support get value on "'+t+'".'),e}function yR(t,e){return t===si?t+"_"+e:t}function Tg(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var i=t.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return uq(o)(r,a,s)}else{var l=r;return o===da&&(l=ig(r)),l}}}}var xWe=/\{@(.+?)\}/g,XS=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),i=this.getRawValue(e,n),o=r.getRawIndex(e),a=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",p=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ge(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(e);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(ze(o))return l.status=n,l.dimensionIndex=i,o(l);if(Ie(o)){var c=tR(o,l);return c.replace(xWe,function(f,d){var p=d.length,g=d;g.charAt(0)==="["&&g.charAt(p-1)==="]"&&(g=+g.slice(1,p-1),process.env.NODE_ENV!=="production"&&isNaN(g)&&Qr("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var v=Tg(s,e,g);if(a&&ge(a.interpolatedValue)){var m=s.getDimensionIndex(g);m>=0&&(v=a.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return Tg(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function cq(t){var e,n;return Qe(t)?t.type?n=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+wi(t)):e=t,{text:e,frag:n}}function Oy(t){return new CWe(t)}var CWe=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?(process.env.NODE_ENV!=="production"&&je(n._outputDueEnd!=null),this._dueEnd=n._outputDueEnd):(process.env.NODE_ENV!=="production"&&je(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,g=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||p<g)){var v=this._progress;if(ge(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],p,g,l,u);else this._doProgress(v,p,g,l,u)}this._dueIndex=g;var y=this._settedOutputEnd!=null?this._settedOutputEnd:g;process.env.NODE_ENV!=="production"&&je(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,i,o){fq.reset(n,r,i,o),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:fq.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ge(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&je(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),fq=function(){var t,e,n,r,i,o={reset:function(l,u,c,f){e=l,t=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var l=e%i*n+Math.ceil(e/i),u=e>=t?null:l<r?l:e;return e++,u}}();function hc(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!Et(t)&&t!=null&&t!=="-"&&(t=+xo(t)),t==null||t===""?NaN:Number(t))}var TWe=Le({number:function(t){return parseFloat(t)},time:function(t){return+xo(t)},trim:function(t){return Ie(t)?na(t):t}});function dq(t){return TWe.get(t)}var hq={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},PWe=function(){function t(e,n){if(!Et(n)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Ht(r)}this._opFn=hq[e],this._rvalFloat=Bs(n)}return t.prototype.evaluate=function(e){return Et(e)?this._opFn(e,this._rvalFloat):this._opFn(Bs(e),this._rvalFloat)},t}(),pq=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=Et(e)?e:Bs(e),i=Et(n)?n:Bs(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=Ie(e),l=Ie(n);s&&(r=l?e:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},t}(),$We=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Bs(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Bs(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function AWe(t,e){return t==="eq"||t==="ne"?new $We(t==="eq",e):ke(hq,t)?new PWe(t,e):null}var EWe=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return hc(e,n)},t}();function MWe(t,e){var n=new EWe,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==js&&(process.env.NODE_ENV!=="production"&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Ht(a));var s=[],l={},u=t.dimensionsDefine;if(u)V(u,function(v,m){var y=v.name,b={index:m,name:y,displayName:v.displayName};if(s.push(b),y!=null){var O="";ke(l,y)&&(process.env.NODE_ENV!=="production"&&(O='dimension name "'+y+'" duplicated.'),Ht(O)),l[y]=b}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=aq(i,js);e.__isBuiltIn&&(n.getRawDataItem=function(v){return f(r,o,s,v)},n.getRawData=Re(IWe,null,t)),n.cloneRawData=Re(DWe,null,t);var d=lq(i,js);n.count=Re(d,null,r,o,s);var p=uq(i);n.retrieveValue=function(v,m){var y=f(r,o,s,v);return g(y,m)};var g=n.retrieveValueFromItem=function(v,m){if(v!=null){var y=s[m];if(y)return p(v,m,y.name)}};return n.getDimensionInfo=Re(RWe,null,s,l),n.cloneAllDimensionInfo=Re(kWe,null,s),n}function IWe(t){var e=t.sourceFormat;if(!bR(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`getRawData` is not supported in source format "+e),Ht(n)}return t.data}function DWe(t){var e=t.sourceFormat,n=t.data;if(!bR(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`cloneRawData` is not supported in source format "+e),Ht(r)}if(e===si){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(e===ha){for(var i=[],o=0,a=n.length;o<a;o++)i.push(he({},n[o]));return i}}function RWe(t,e,n){if(n!=null){if(Et(n)||!isNaN(n)&&!ke(e,n))return t[n];if(ke(e,n))return e[n]}}function kWe(t){return Ue(t)}var gq=Le();function NWe(t){t=Ue(t);var e=t.type,n="";e||(process.env.NODE_ENV!=="production"&&(n="Must have a `type` when `registerTransform`."),Ht(n));var r=e.split(":");r.length!==2&&(process.env.NODE_ENV!=="production"&&(n='Name must include namespace like "ns:regression".'),Ht(n));var i=!1;r[0]==="echarts"&&(e=r[1],i=!0),t.__isBuiltIn=i,gq.set(e,t)}function LWe(t,e,n){var r=nn(t),i=r.length,o="";i||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),Ht(o));for(var a=0,s=i;a<s;a++){var l=r[a];e=BWe(l,e,n,i===1?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function BWe(t,e,n,r){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Ht(i)),Qe(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),Ht(i));var o=t.type,a=gq.get(o);a||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+o+'".'),Ht(i));var s=me(e,function(c){return MWe(c,a)}),l=nn(a.transform({upstream:s[0],upstreamList:s,config:Ue(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=me(l,function(c){var f=r!=null?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+f+" ===","- transform result data:",wi(c.data),"- transform result dimensions:",wi(c.dimensions)].join(`
  340. `)}).join(`
  341. `);cVe(u)}return me(l,function(c,f){var d="";Qe(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),Ht(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),Ht(d));var p=KY(c.data);bR(p)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),Ht(d));var g,v=e[0];if(v&&f===0&&!c.dimensions){var m=v.startIndex;m&&(c.data=v.data.slice(0,m).concat(c.data)),g={seriesLayoutBy:js,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else g={seriesLayoutBy:js,sourceHeader:0,dimensions:c.dimensions};return gR(c.data,g,null)})}function bR(t){return t===si||t===ha}var YS="undefined",VWe=typeof Uint32Array===YS?Array:Uint32Array,zWe=typeof Uint16Array===YS?Array:Uint16Array,vq=typeof Int32Array===YS?Array:Int32Array,mq=typeof Float64Array===YS?Array:Float64Array,yq={float:mq,int:vq,ordinal:Array,number:Array,time:mq},_R;function wy(t){return t>65535?VWe:zWe}function Pg(){return[1/0,-1/0]}function FWe(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function bq(t,e,n,r,i){var o=yq[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var OR=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Le()}return t.prototype.initData=function(e,n,r){process.env.NODE_ENV!=="production"&&je(ze(e.getItem)&&ze(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),o=this.defaultDimValueGetter=_R[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[];var a=tq(i);this._dimensions=me(n,function(s){return process.env.NODE_ENV!=="production"&&a&&je(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(e);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(e,o),this._chunks[o]=new yq[n||"float"](this._rawCount),this._rawExtent[o]=Pg(),o},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],i=this._dimensions[e],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[e]=Pg());for(var l=o[e],u=a;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&je(!this._indices,"appendData can only be called on raw data.");var n=this._provider,r=this.count();n.appendData(e);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,n||0),u=0;u<o;u++){var c=i[u];bq(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var p=d-s,g=0;g<o;g++){var c=i[g],v=_R.arrayRows.call(this,e[p]||f,c.property,p,g);r[g][d]=v;var m=a[g];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=me(a,function(b){return b.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=Pg()),bq(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(e,n,o,l);else for(var d=[],p=e;p<n;p++){d=i.getItem(p,d);for(var g=0;g<s;g++){var v=o[g],m=this._dimValueGetter(d,u[g],p,g);v[p]=m;var y=l[g];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],i=[];if(n==null){n=e,e=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=e;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(e,i);isNaN(a)||(r+=a)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<e)i=a+1;else if(n[a]>e)o=a-1;else return a}return-1},t.prototype.indicesOfNearest=function(e,n,r){var i=this._chunks,o=i[e],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),p=n-o[d],g=Math.abs(p);g<=r&&((g<s||g===s&&p>=0&&l<0)&&(s=g,l=p,u=0),p===l&&(a[u++]=c))}return a.length=u,a},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){e=new r(i);for(var o=0;o<i;o++)e[o]=n[o]}else e=new r(n.buffer,0,i)}else{var r=wy(this._rawCount);e=new r(this.count());for(var o=0;o<e.length;o++)e[o]=o}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=wy(r._rawCount),a=new o(i),s=[],l=e.length,u=0,c=e[0],f=r._chunks,d=0;d<i;d++){var p=void 0,g=r.getRawIndex(d);if(l===0)p=n(d);else if(l===1){var v=f[c][g];p=n(v,d)}else{for(var m=0;m<l;m++)s[m]=f[e[m]][g];s[m]=d,p=n.apply(null,s)}p&&(a[u++]=g)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var i=bt(e),o=i.length;if(!o)return this;var a=n.count(),s=wy(n._rawCount),l=new s(a),u=0,c=i[0],f=e[c][0],d=e[c][1],p=n._chunks,g=!1;if(!n._indices){var v=0;if(o===1){for(var m=p[i[0]],y=0;y<r;y++){var b=m[y];(b>=f&&b<=d||isNaN(b))&&(l[u++]=v),v++}g=!0}else if(o===2){for(var m=p[i[0]],O=p[i[1]],w=e[i[1]][0],S=e[i[1]][1],y=0;y<r;y++){var b=m[y],x=O[y];(b>=f&&b<=d||isNaN(b))&&(x>=w&&x<=S||isNaN(x))&&(l[u++]=v),v++}g=!0}}if(!g)if(o===1)for(var y=0;y<a;y++){var T=n.getRawIndex(y),b=p[i[0]][T];(b>=f&&b<=d||isNaN(b))&&(l[u++]=T)}else for(var y=0;y<a;y++){for(var $=!0,T=n.getRawIndex(y),A=0;A<o;A++){var P=i[A],b=p[P][T];(b<e[P][0]||b>e[P][1])&&($=!1)}$&&(l[u++]=n.getRawIndex(y))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var i=e._chunks,o=[],a=n.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<n.length;c++)u[n[c]]=Pg();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),p=0;p<a;p++)l[p]=i[n[p]][d];l[a]=f;var g=r&&r.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var c=0;c<g.length;c++){var v=n[c],m=g[c],y=u[v],b=i[v];b&&(b[d]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),i=r._chunks,o=i[e],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,p=new(wy(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));p[s++]=u;for(var g=1;g<a-1;g+=l){for(var v=Math.min(g+l,a-1),m=Math.min(g+l*2,a),y=(m+v)/2,b=0,O=v;O<m;O++){var w=this.getRawIndex(O),S=o[w];isNaN(S)||(b+=S)}b/=m-v;var x=g,T=Math.min(g+l,a),$=g-1,A=o[u];c=-1,d=x;for(var P=-1,M=0,O=x;O<T;O++){var w=this.getRawIndex(O),S=o[w];if(isNaN(S)){M++,P<0&&(P=w);continue}f=Math.abs(($-y)*(S-A)-($-O)*(b-A)),f>c&&(c=f,d=w)}M>0&&M<T-x&&(p[s++]=Math.min(P,d),d=Math.max(P,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(a-1),r._count=s,r._indices=p,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,i){for(var o=this.clone([e],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[e],c=this.count(),f=o._rawExtent[e]=Pg(),d=new(wy(this._rawCount))(Math.ceil(c/l)),p=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(g+v);s[v]=u[m]}var y=r(s),b=this.getRawIndex(Math.min(g+i(s,y)||0,c-1));u[b]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[p++]=b}return o._count=p,o._indices=d,o._updateGetRawIdx(),o},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[e[0]][s],o);break;case 2:n(i[e[0]][s],i[e[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[e[l]][s];u[l]=o,n.apply(null,u)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=Pg();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=r;for(var s=a[0],l=a[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return a=[s,l],this._extent[e]=a,a},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&ta(e,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?FWe(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ue(this._extent),e._rawExtent=Ue(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,i,o){return hc(n[o],this._dimensions[o])}_R={arrayRows:e,objectRows:function(n,r,i,o){return hc(n[r],this._dimensions[o])},keyedColumns:e,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return hc(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),t}(),_q=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Sy(e)){var a=e,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=ii(s)?Xl:da,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Je(f.seriesLayoutBy,d.seriesLayoutBy)||null,g=Je(f.sourceHeader,d.sourceHeader),v=Je(f.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!g!=!!d.sourceHeader||v;i=m?[gR(s,{seriesLayoutBy:p,sourceHeader:g,dimensions:v},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var O=y.get("source",!0);i=[gR(O,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&je(i&&o),this._setLocalSource(i,o)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&je(i!=null||r!=null),i!=null){var o="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),wq(o))}var a,s=[],l=[];return V(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+i),wq(f)),s.push(c),l.push(u._getVersionSign())}),r?a=LWe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[yWe(s[0])]),{sourceList:a,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&je(Sy(this._sourceHost),"Can only call getDataStore on series source manager.");var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];Sy(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new OR,s.initData(new iq(n,e.length),e)),a[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Sy(e)){var n=oR(e);return n?[n.getSourceManager()]:[]}else return me(GFe(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,i;if(Sy(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=e;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},t}();function Oq(t){var e=t.option.transform;e&&_0(t.option.transform)}function Sy(t){return t.mainType==="series"}function wq(t){throw new Error(t)}var Sq="line-height:1";function xq(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+_i(r+"")+"px;color:"+_i(n)+";font-weight:"+_i(i+""),valueStyle:"font-size:"+_i(a+"")+"px;color:"+_i(o)+";font-weight:"+_i(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var WWe=[0,10,20,30],QWe=["",`
  342. `,`
  343. `,`
  344. `];function Or(t,e){return e.type=t,e}function wR(t){return t.type==="section"}function Cq(t){return wR(t)?HWe:GWe}function Tq(t){if(wR(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return V(t.blocks,function(i){var o=Tq(i);o>=e&&(e=o+ +(r&&(!o||wR(i)&&!i.noHeader)))}),e}return 0}function HWe(t,e,n,r){var i=e.noHeader,o=jWe(Tq(e)),a=[],s=e.blocks||[];je(!s||ge(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ke(u,l)){var c=new pq(u[l],null);s.sort(function(g,v){return c.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}V(s,function(g,v){var m=e.valueFormatter,y=Cq(g)(m?he(he({},t),{valueFormatter:m}):t,g,v>0?o.html:0,r);y!=null&&a.push(y)});var f=t.renderMode==="richText"?a.join(o.richText):SR(a.join(""),i?n:o.html);if(i)return f;var d=JD(e.header,"ordinal",t.useUTC),p=xq(r,t.renderMode).nameStyle;return t.renderMode==="richText"?$q(t,d,p)+o.richText+f:SR('<div style="'+p+";"+Sq+';">'+_i(d)+"</div>"+f,n)}function GWe(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(w){return w=ge(w)?w:[w],me(w,function(S,x){return JD(S,ge(p)?p[x]:p,u)})};if(!(o&&a)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":JD(l,"ordinal",u),p=e.valueType,g=a?[]:c(e.value,e.dataIndex),v=!s||!o,m=!s&&o,y=xq(r,i),b=y.nameStyle,O=y.valueStyle;return i==="richText"?(s?"":f)+(o?"":$q(t,d,b))+(a?"":XWe(t,g,v,m,O)):SR((s?"":f)+(o?"":UWe(d,!s,b))+(a?"":ZWe(g,v,m,O)),n)}}function Pq(t,e,n,r,i,o){if(t){var a=Cq(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function jWe(t){return{html:WWe[t],richText:QWe[t]}}function SR(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Sq+';">'+t+n+"</div>"}function UWe(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+_i(t)+"</span>"}function ZWe(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=ge(t)?t:[t],'<span style="'+o+";"+r+'">'+me(t,function(a){return _i(a)}).join("&nbsp;&nbsp;")+"</span>"}function $q(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function XWe(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ge(e)?e.join(" "):e,o)}function Aq(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return xd(r)}function Eq(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var xR=function(){function t(){this.richTextStyles={},this._nextStyleNameId=bZ()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var i=r==="richText"?this._generateStyleName():null,o=$Y({color:n,type:e,renderMode:r,markerId:i});return Ie(o)?o:(process.env.NODE_ENV!=="production"&&je(i),this.richTextStyles[i]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};ge(n)?V(n,function(o){return he(r,o)}):he(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},t}();function Mq(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,i=e.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=e.getRawValue(n),l=ge(s),u=Aq(e,n),c,f,d,p;if(a>1||l&&!a){var g=YWe(s,e,n,o,u);c=g.inlineValues,f=g.inlineValueTypes,d=g.blocks,p=g.inlineValues[0]}else if(a){var v=i.getDimensionInfo(o[0]);p=c=Tg(i,n,o[0]),f=v.type}else p=c=l?s[0]:s;var m=YI(e),y=m&&e.name||"",b=i.getName(n),O=r?y:b;return Or("section",{header:y,noHeader:r||!m,sortParam:p,blocks:[Or("nameValue",{markerType:"item",markerColor:u,name:O,noName:!na(O),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function YWe(t,e,n,r,i){var o=e.getData(),a=ta(t,function(f,d,p){var g=o.getDimensionInfo(p);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?V(r,function(f){c(Tg(o,n,f),f)}):V(t,c);function c(f,d){var p=o.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(a?u.push(Or("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var pc=Tt();function qS(t,e){return t.getName(e)||t.getId(e)}var KS="__universalTransitionEnabled",on=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Oy({count:KWe,reset:JWe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=pc(this).sourceManager=new _q(this);o.prepareSource();var a=this.getInitialData(n,i);Dq(a,this),this.dataTask.context.data=a,process.env.NODE_ENV!=="production"&&je(a,"getInitialData returned invalid data."),pc(this).dataBeforeProcessed=a,Iq(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=vy(this),o=i?Sg(n):{},a=this.subType;dt.hasClass(a)&&(a+="Series"),it(n,r.getTheme().get(this.subType)),it(n,this.getDefaultOption()),rd(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&dc(n,o,i)},e.prototype.mergeOption=function(n,r){n=it(this.option,n,!0),this.fillDataTextStyle(n.data);var i=vy(this);i&&dc(this.option,n,i);var o=pc(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);Dq(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,pc(this).dataBeforeProcessed=a,Iq(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(n){if(n&&!ii(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&rd(n[i],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=CR(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return pc(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=CR(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}pc(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Le(n)},e.prototype.getSourceManager=function(){return pc(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return pc(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,i){return Mq({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Ct.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=sR.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=qS(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=bt(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},e.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[qS(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[KS])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Qe(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var f=r[c],d=qS(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var p=r[l-1],d=qS(n,p);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(p),o)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return dt.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(dt);Wn(on,XS),Wn(on,sR),RZ(on,dt);function Iq(t){var e=t.name;YI(t)||(t.name=qWe(t)||e)}function qWe(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return V(n,function(i){var o=e.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function KWe(t){return t.model.getRawData().count()}function JWe(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),e7e}function e7e(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Dq(t,e){V(O0(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(t7e,e))})}function t7e(t,e){var n=CR(t);return n&&n.setOutputEnd((e||this).count()),e}function CR(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}var dn=function(){function t(){this.group=new qe,this.uid=bg("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){},t.prototype.updateLayout=function(e,n,r,i){},t.prototype.updateVisual=function(e,n,r,i){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();JI(dn),sS(dn);function $g(){var t=Tt();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var Rq=Tt(),n7e=$g(),Jt=function(){function t(){this.group=new qe,this.uid=bg("viewChart"),this.renderTask=Oy({plan:r7e,reset:i7e}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,n,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&Qr("Unknown dataType "+i.dataType);return}Nq(o,i,"emphasis")},t.prototype.downplay=function(e,n,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&Qr("Unknown dataType "+i.dataType);return}Nq(o,i,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateLayout=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateVisual=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.eachRendered=function(e){cc(this.group,e)},t.markUpdateMethod=function(e,n){Rq(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function kq(t,e,n){t&&sc(t)&&(e==="emphasis"?jl:Ul)(t,n)}function Nq(t,e,n){var r=id(t,e),i=e&&e.highlightKey!=null?kze(e.highlightKey):null;r!=null?V(nn(r),function(o){kq(t.getItemGraphicEl(o),n,i)}):t.eachItemGraphicEl(function(o){kq(o,n,i)})}JI(Jt,["dispose"]),sS(Jt);function r7e(t){return n7e(t.model)}function i7e(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Rq(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,n,r,i),o7e[l]}var o7e={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},JS="\0__throttleOriginMethod",Lq="\0__throttleRate",Bq="\0__throttleType";function ex(t,e,n){var r,i=0,o=0,a=null,s,l,u,c;e=e||0;function f(){o=new Date().getTime(),a=null,t.apply(l,u||[])}var d=function(){for(var p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];r=new Date().getTime(),l=this,u=p;var v=c||e,m=c||n;c=null,s=r-(m?i:o)-v,clearTimeout(a),m?a=setTimeout(f,v):s>=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(p){c=p},d}function Ag(t,e,n,r){var i=t[e];if(i){var o=i[JS]||i,a=i[Bq],s=i[Lq];if(s!==n||a!==r){if(n==null||!r)return t[e]=o;i=t[e]=ex(o,n,r==="debounce"),i[JS]=o,i[Bq]=r,i[Lq]=n}return i}}function xy(t,e){var n=t[e];n&&n[JS]&&(n.clear&&n.clear(),t[e]=n[JS])}var Vq=Tt(),zq={itemStyle:ad(pY,!0),lineStyle:ad(hY,!0)},a7e={lineStyle:"stroke",itemStyle:"fill"};function Fq(t,e){var n=t.visualStyleMapper||zq[e];return n||(console.warn("Unknown style type '"+e+"'."),zq.itemStyle)}function Wq(t,e){var n=t.visualDrawType||a7e[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var s7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Fq(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Wq(t,r),u=a[l],c=ze(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||ze(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||ze(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,g){var v=t.getDataParams(g),m=he({},a);m[l]=c(v),p.setItemVisual(g,"style",m)}}}},Cy=new rn,l7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Fq(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Cy.option=l[r];var u=i(Cy),c=a.ensureUniqueItemVisual(s,"style");he(c,u),Cy.option.decal&&(a.setItemVisual(s,"decal",Cy.option.decal),Cy.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},u7e={performRawSeries:!0,overallReset:function(t){var e=Le();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=e.get(i);o||(o={},e.set(i,o)),Vq(n).scope=o}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=Vq(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Wq(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),p=r.getName(u)||u+"",g=r.count();d[l]=n.getColorFromPalette(p,a,g)}})}})}},tx=Math.PI;function c7e(t,e){e=e||{},Ge(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new qe,r=new Pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new $t({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Pt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new xS({shape:{startAngle:-tx/2,endAngle:-tx/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:tx*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:tx*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Qq=function(){function t(e,n,r,i){this._stageTaskMap=Le(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),i=e.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=e.get("large")&&o>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?o:null;e.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Le();e.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;V(this._allHandlers,function(i){var o=e.get(i.uid)||e.set(i.uid,{}),a="";process.env.NODE_ENV!=="production"&&(a='"reset" and "overallReset" must not be both specified.'),je(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},t.prototype.prepareView=function(e,n,r,i){var o=e.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(n,o)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,i){i=i||{};var o=!1,a=this;V(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var p,g=d.agentStubMap;g.each(function(m){s(i,m)&&(m.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,r);var v=a.getPerformArgs(d,i.block);g.each(function(m){m.perform(v)}),d.perform(v)&&(o=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var b=a.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(m.context.model),a.updatePayload(m,r),m.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Le(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var d=f.uid,p=s.set(d,a&&a.get(d)||Oy({plan:g7e,reset:v7e,count:y7e}));p.context={model:f,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(f,p)}},t.prototype._createOverallStageTask=function(e,n,r,i){var o=this,a=n.overallTask=n.overallTask||Oy({reset:f7e});a.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Le(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,p="";process.env.NODE_ENV!=="production"&&(p='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),je(!e.createOnAllSeries,p),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(f=!1,V(r.getSeries(),g));function g(v){var m=v.uid,y=l.set(m,s&&s.get(m)||(d=!0,Oy({reset:d7e,onDirty:p7e})));y.context={model:v,overallProgress:f},y.agent=a,y.__block=f,o._pipe(v,y)}d&&a.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},t.wrapStageHandler=function(e,n){return ze(e)&&(e={overallReset:e,seriesType:b7e(e)}),e.uid=bg("stageHandler"),n&&(e.visualType=n),e},t}();function f7e(t){t.overallReset(t.ecModel,t.api,t.payload)}function d7e(t){return t.overallProgress&&h7e}function h7e(){this.agent.dirty(),this.getDownstream().dirty()}function p7e(){this.agent&&this.agent.dirty()}function g7e(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function v7e(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?me(e,function(n,r){return Hq(r)}):m7e}var m7e=Hq(0);function Hq(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function y7e(t){return t.data.count()}function b7e(t){nx=null;try{t(Ty,Gq)}catch{}return nx}var Ty={},Gq={},nx;jq(Ty,cR),jq(Gq,HY),Ty.eachSeriesByType=Ty.eachRawSeriesByType=function(t){nx=t},Ty.eachComponent=function(t){t.mainType==="series"&&t.subType&&(nx=t.subType)};function jq(t,e){for(var n in e.prototype)t[n]=Qn}var Uq=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _7e={color:Uq,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Uq]};var Ai="#B9B8CE",Zq="#100C2A",rx=function(){return{axisLine:{lineStyle:{color:Ai}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Xq=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Yq={darkMode:!0,color:Xq,backgroundColor:Zq,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ai}},textStyle:{color:Ai},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ai}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ai},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ai}},timeline:{lineStyle:{color:Ai},label:{color:Ai},controlStyle:{color:Ai,borderColor:Ai}},calendar:{itemStyle:{color:Zq},dayLabel:{color:Ai},monthLabel:{color:Ai},yearLabel:{color:Ai}},timeAxis:rx(),logAxis:rx(),valueAxis:rx(),categoryAxis:rx(),line:{symbol:"circle"},graph:{color:Xq},gauge:{title:{color:Ai},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ai},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Yq.categoryAxis.splitLine.show=!1;var O7e=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},i={};if(Ie(e)){var o=Vs(e);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};V(e,function(l,u){for(var c=!1,f=0;f<a.length;f++){var d=a[f],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var g=u.slice(0,p);g!=="data"&&(n.mainType=g,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,n.otherQuery,i,o));function c(f,d,p,g){return f[p]==null||d[g||p]===f[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),TR=["symbol","symbolSize","symbolRotate","symbolOffset"],qq=TR.concat(["symbolKeepAspect"]),w7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<TR.length;a++){var s=TR[a],l=t.get(s);ze(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(he({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=bt(i);function c(f,d){for(var p=t.getRawValue(d),g=t.getDataParams(d),v=0;v<u.length;v++){var m=u[v];f.setItemVisual(d,m,i[m](p,g))}}return{dataEach:o?c:null}}},S7e={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<qq.length;s++){var l=qq[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function PR(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+n)}}function Py(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function Kq(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+n)}}function Jq(t,e){function n(r,i){var o=[];return r.eachComponent({mainType:"series",subType:t,query:i},function(a){o.push(a.seriesIndex)}),o}V([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(i,o,a){i=he({},i),process.env.NODE_ENV!=="production"&&Zn(i.type,r[1]),a.dispatchAction(he(i,{type:r[1],seriesIndex:n(o,i)}))})})}function Eg(t,e,n,r,i){var o=t+e;n.isSilent(o)||(process.env.NODE_ENV!=="production"&&sa("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),d=id(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:ge(d)?f.getName(d[0]):f.getName(d),selected:Ie(l)?l:he({},l)})}}))}function x7e(t,e,n){t.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Eg("map","selectchanged",e,i,r),Eg("pie","selectchanged",e,i,r)):r.fromAction==="select"?(Eg("map","selected",e,i,r),Eg("pie","selected",e,i,r)):r.fromAction==="unselect"&&(Eg("map","unselected",e,i,r),Eg("pie","unselected",e,i,r))})}function Md(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var C7e=Math.round(Math.random()*9),T7e=typeof Object.defineProperty=="function",P7e=function(){function t(){this._id="__ec_inner_"+C7e++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return T7e?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),$7e=yt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),A7e=yt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),E7e=yt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),d=Math.cos(u),p=a*.6,g=a*.7;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(n+c-f*p,l+s+d*p,n,r-g,n,r),t.bezierCurveTo(n,r-g,n-c+f*p,l+s+d*p,n-c,l+s),t.closePath()}}),M7e=yt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),I7e={line:br,rect:Pt,roundRect:Pt,square:Pt,circle:Zl,diamond:A7e,pin:E7e,arrow:M7e,triangle:$7e},D7e={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},ix={};V(I7e,function(t,e){ix[e]=new t});var R7e=yt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=tS(t,e,n),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var i=ix[r];i||(r="rect",i=ix[r]),D7e[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function k7e(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function Xn(t,e,n,r,i,o,a){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=kD(t.slice(8),new at(e,n,r,i),a?"center":"cover"):t.indexOf("path://")===0?l=uy(t.slice(7),{},new at(e,n,r,i),a?"center":"cover"):l=new R7e({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=k7e,o&&l.setColor(o),l}function Mg(t){return ge(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Id(t,e){if(t!=null)return ge(t)||(t=[t,t]),[Ee(t[0],e[0])||0,Ee(Je(t[1],t[0]),e[1])||0]}function Dd(t){return isFinite(t)}function N7e(t,e,n){var r=e.x==null?0:e.x,i=e.x2==null?1:e.x2,o=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Dd(r)?r:0,i=Dd(i)?i:1,o=Dd(o)?o:0,a=Dd(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function L7e(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=Dd(a)?a:.5,s=Dd(s)?s:.5,l=l>=0&&Dd(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function $R(t,e,n){for(var r=e.type==="radial"?L7e(t,e,n):N7e(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function B7e(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function ox(t){return parseInt(t,10)}function Ig(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||ox(s[r])||ox(t.style[r]))-(ox(s[o])||0)-(ox(s[a])||0)|0}function V7e(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Et(t)?[t]:ge(t)?t:null}function AR(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&V7e(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(n=me(n,function(o){return o/i}),r/=i)}return[n,r]}var z7e=new Qs(!0);function ax(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function eK(t){return typeof t=="string"&&t!=="none"}function sx(t){var e=t.fill;return e!=null&&e!=="none"}function tK(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function nK(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function ER(t,e,n){var r=tD(e.image,e.__image,n);if(lS(r)){var i=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*S0),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function F7e(t,e,n,r){var i,o=ax(n),a=sx(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||z7e,f=e.__dirty;if(!r){var d=n.fill,p=n.stroke,g=a&&!!d.colorStops,v=o&&!!p.colorStops,m=a&&!!d.image,y=o&&!!p.image,b=void 0,O=void 0,w=void 0,S=void 0,x=void 0;(g||v)&&(x=e.getBoundingRect()),g&&(b=f?$R(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=b),v&&(O=f?$R(t,p,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=O),m&&(w=f||!e.__canvasFillPattern?ER(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(S=f||!e.__canvasStrokePattern?ER(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=b:m&&(w?t.fillStyle=w:a=!1),v?t.strokeStyle=O:y&&(S?t.strokeStyle=S:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var $,A;t.setLineDash&&n.lineDash&&(i=AR(e),$=i[0],A=i[1]);var P=!0;(u||f&Xp)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),P=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),P&&c.rebuildPath(t,l?s:1),$&&(t.setLineDash($),t.lineDashOffset=A),r||(n.strokeFirst?(o&&nK(t,n),a&&tK(t,n)):(a&&tK(t,n),o&&nK(t,n))),$&&t.setLineDash([])}function W7e(t,e,n){var r=e.__image=tD(n.image,e.__image,e,e.onload);if(!(!r||!lS(r))){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,d=s-c;t.drawImage(r,u,c,f,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Q7e(t,e,n){var r,i=n.text;if(i!=null&&(i+=""),i){t.font=n.font||Hu,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=AR(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(ax(n)&&t.strokeText(i,n.x,n.y),sx(n)&&t.fillText(i,n.x,n.y)):(sx(n)&&t.fillText(i,n.x,n.y),ax(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var rK=["shadowBlur","shadowOffsetX","shadowOffsetY"],iK=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function oK(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){qi(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?sd.opacity:a}(r||e.blend!==n.blend)&&(o||(qi(t,i),o=!0),t.globalCompositeOperation=e.blend||sd.blend);for(var s=0;s<rK.length;s++){var l=rK[s];(r||e[l]!==n[l])&&(o||(qi(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(qi(t,i),o=!0),t.shadowColor=e.shadowColor||sd.shadowColor),o}function aK(t,e,n,r,i){var o=$y(e,i.inHover),a=r?null:n&&$y(n,i.inHover)||{};if(o===a)return!1;var s=oK(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(qi(t,i),s=!0),eK(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(qi(t,i),s=!0),eK(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(qi(t,i),s=!0),t.globalAlpha=o.opacity==null?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(qi(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<iK.length;c++){var f=iK[c],d=f[0];(r||o[d]!==a[d])&&(s||(qi(t,i),s=!0),t[d]=o[d]||f[1])}return s}function H7e(t,e,n,r,i){return oK(t,$y(e,i.inHover),n&&$y(n,i.inHover),r,i)}function sK(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function G7e(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),sK(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function j7e(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var lK=1,uK=2,cK=3,fK=4;function U7e(t){var e=sx(t),n=ax(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function qi(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function $y(t,e){return e&&t.__hoverStyle||t.style}function MR(t,e){Rd(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rd(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~Oo,e.__isRendered=!1;return}var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||B7e(o,a))&&(a&&a.length&&(qi(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(qi(t,n),t.save(),G7e(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof yt&&e.autoBatch&&U7e(e.style);s||j7e(i,u.transform)?(qi(t,n),sK(t,e)):c||qi(t,n);var f=$y(e,n.inHover);e instanceof yt?(n.lastDrawType!==lK&&(l=!0,n.lastDrawType=lK),aK(t,e,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&t.beginPath(),F7e(t,e,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof ag?(n.lastDrawType!==cK&&(l=!0,n.lastDrawType=cK),aK(t,e,u,l,n),Q7e(t,e,f)):e instanceof Rr?(n.lastDrawType!==uK&&(l=!0,n.lastDrawType=uK),H7e(t,e,u,l,n),W7e(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==fK&&(l=!0,n.lastDrawType=fK),Z7e(t,e,n)),c&&r&&qi(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Z7e(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=e.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rd(t,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rd(t,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var IR=new P7e,dK=new k0(100),hK=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Dg(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i=r.painter.type==="svg";t.dirty&&IR.delete(t);var o=IR.get(t);if(o)return o;var a=Ge(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,IR.set(t,s),t.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<hK.length;++d){var p=a[hK[d]];if(p!=null&&!ge(p)&&!Ie(p)&&!Et(p)&&typeof p!="boolean"){f=!1;break}c.push(p)}var g;if(f){g=c.join(",")+(i?"-svg":"");var v=dK.get(g);v&&(i?u.svgElement=v:u.image=v)}var m=gK(a.dashArrayX),y=X7e(a.dashArrayY),b=pK(a.symbol),O=Y7e(m),w=vK(y),S=!i&&qa.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),$;S&&(S.width=T.width*n,S.height=T.height*n,$=S.getContext("2d")),P(),f&&dK.put(g,S||x),u.image=S,u.svgElement=x,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var M=1,I=0,R=O.length;I<R;++I)M=OZ(M,O[I]);for(var L=1,I=0,R=b.length;I<R;++I)L=OZ(L,b[I].length);M*=L;var D=w*O.length*b.length;if(process.env.NODE_ENV!=="production"){var B=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};M>a.maxTileWidth&&B("maxTileWidth"),D>a.maxTileHeight&&B("maxTileHeight")}return{width:Math.max(1,Math.min(M,a.maxTileWidth)),height:Math.max(1,Math.min(D,a.maxTileHeight))}}function P(){$&&($.clearRect(0,0,S.width,S.height),a.backgroundColor&&($.fillStyle=a.backgroundColor,$.fillRect(0,0,S.width,S.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var R=-w,L=0,D=0,B=0;R<T.height;){if(L%2===0){for(var F=D/2%b.length,z=0,W=0,j=0;z<T.width*2;){for(var H=0,I=0;I<m[B].length;++I)H+=m[B][I];if(H<=0)break;if(W%2===0){var Z=(1-a.symbolSize)*.5,J=z+m[B][W]*Z,se=R+y[L]*Z,oe=m[B][W]*a.symbolSize,de=y[L]*a.symbolSize,ie=j/2%b[F].length;ue(J,se,oe,de,b[F][ie])}z+=m[B][W],++j,++W,W===m[B].length&&(W=0)}++B,B===m.length&&(B=0)}R+=y[L],++D,++L,L===y.length&&(L=0)}function ue(ee,X,Y,le,ve){var ye=i?1:n,Ne=Xn(ve,ee*ye,X*ye,Y*ye,le*ye,a.color,a.symbolKeepAspect);if(i){var Be=r.painter.renderOneToVNode(Ne);Be&&x.children.push(Be)}else MR($,Ne)}}}}function pK(t){if(!t||t.length===0)return[["rect"]];if(Ie(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Ie(t[n])){e=!1;break}if(e)return pK([t]);for(var r=[],n=0;n<t.length;++n)Ie(t[n])?r.push([t[n]]):r.push(t[n]);return r}function gK(t){if(!t||t.length===0)return[[0,0]];if(Et(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Et(t[r])){n=!1;break}if(n)return gK([t]);for(var i=[],r=0;r<t.length;++r)if(Et(t[r])){var e=Math.ceil(t[r]);i.push([e,e])}else{var e=me(t[r],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function X7e(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Et(t)){var e=Math.ceil(t);return[e,e]}var n=me(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function Y7e(t){return me(t,function(e){return vK(e)})}function vK(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function q7e(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=Dg(s,e)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=Dg(i,e)}}})}var ss=new ra,lx={};function K7e(t,e){process.env.NODE_ENV!=="production"&&lx[t]&&Qr("Already has an implementation of "+t+"."),lx[t]=e}function mK(t){return process.env.NODE_ENV!=="production"&&(lx[t]||Qr("Implementation of "+t+" doesn't exists.")),lx[t]}var J7e="5.5.1",eQe={zrender:"5.6.0"},tQe=1,nQe=800,rQe=900,iQe=1e3,oQe=2e3,aQe=5e3,yK=1e3,sQe=1100,DR=2e3,bK=3e3,lQe=4e3,ux=4500,uQe=4600,cQe=5e3,fQe=6e3,_K=7e3,OK={PROCESSOR:{FILTER:iQe,SERIES_FILTER:nQe,STATISTIC:aQe},VISUAL:{LAYOUT:yK,PROGRESSIVE_LAYOUT:sQe,GLOBAL:DR,CHART:bK,POST_CHART_LAYOUT:uQe,COMPONENT:lQe,BRUSH:cQe,CHART_ITEM:ux,ARIA:fQe,DECAL:_K}},ui="__flagInMainProcess",Ki="__pendingUpdate",RR="__needsUpdateStatus",wK=/^[a-zA-Z0-9_]+$/,kR="__connectUpdateStatus",SK=0,dQe=1,hQe=2;function xK(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){Po(this.id);return}return TK(this,t,e)}}function CK(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return TK(this,t,e)}}function TK(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ra.prototype[e].apply(t,n)}var PK=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ra),$K=PK.prototype;$K.on=CK("on"),$K.off=CK("off");var Rg,NR,cx,gc,LR,BR,VR,Ay,Ey,AK,EK,zR,MK,fx,IK,DK,va,RK,dx=function(t){re(e,t);function e(n,r,i){var o=t.call(this,new O7e)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Ie(r)&&(r=kK[r]),o._dom=n;var a="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=Ct.hasGlobalWindow?window:global;u&&(a=Je(u.__ECHARTS__DEFAULT__RENDERER__,a),s=Je(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Je(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr&&pZ(function(p){var g=Ke(p),v=g.dataIndex;if(v!=null){var m=Le();return m.set("series_index",g.seriesIndex),m.set("data_index",v),g.ssrType&&m.set("ssr_type",g.ssrType),m}});var c=o._zr=QI(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Je(i.useDirtyRect,l),useCoarsePointer:Je(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=ex(Re(c.flush,c),17),r=Ue(r),r&&qY(r,!0),o._theme=r,o._locale=AFe(i.locale||gY),o._coordSysMgr=new Pd;var f=o._api=IK(o);function d(p,g){return p.__prio-g.__prio}return kw(px,d),kw(WR,d),o._scheduler=new Qq(o,f,WR,px),o._messageCenter=new PK,o._initEvents(),o.resize=Re(o.resize,o),c.animation.on("frame",o._onframe,o),AK(c,o),EK(c,o),_0(o),o}return e.prototype._onframe=function(){if(!this._disposed){RK(this);var n=this._scheduler;if(this[Ki]){var r=this[Ki].silent;this[ui]=!0;try{Rg(this),gc.update.call(this,null,this[Ki].updateParams)}catch(l){throw this[ui]=!1,this[Ki]=null,l}this._zr.flush(),this[ui]=!1,this[Ki]=null,Ay.call(this,r),Ey.call(this,r)}else if(n.unfinished){var i=tQe,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),BR(this,o),n.performVisualTasks(o),fx(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,i){if(this[ui]){process.env.NODE_ENV!=="production"&&Qr("`setOption` should not be called during main process.");return}if(this._disposed){Po(this.id);return}var o,a,s;if(Qe(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[ui]=!0,!this._model||r){var l=new iWe(this._api),u=this._theme,c=this._model=new cR;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},QR);var f={seriesTransition:s,optionChanged:!0};if(i)this[Ki]={silent:o,updateParams:f},this[ui]=!1,this.getZr().wakeUp();else{try{Rg(this),gc.update.call(this,null,f)}catch(d){throw this[Ki]=null,this[ui]=!1,d}this._ssr||this._zr.flush(),this[Ki]=null,this[ui]=!1,Ay.call(this,o),Ey.call(this,o)}},e.prototype.setTheme=function(){sa("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ct.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return process.env.NODE_ENV!=="production"&&Zn("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ct.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return V(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){Po(this.id);return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;V(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return V(o,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){Po(this.id);return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(gx[i]){var l=s,u=s,c=-s,f=-s,d=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();V(kd,function(O,w){if(O.group===i){var S=r?O.getZr().painter.getSvgDom().innerHTML:O.renderToCanvas(Ue(n)),x=O.getDom().getBoundingClientRect();l=o(x.left,l),u=o(x.top,u),c=a(x.right,c),f=a(x.bottom,f),d.push({dom:S,left:x.left,top:x.top})}}),l*=p,u*=p,c*=p,f*=p;var g=c-l,v=f-u,m=qa.createCanvas(),y=QI(m,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:v}),r){var b="";return V(d,function(O){var w=O.left-l,S=O.top-u;b+='<g transform="translate('+w+","+S+')">'+O.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new Pt({shape:{x:0,y:0,width:g,height:v},style:{fill:n.connectedBackgroundColor}})),V(d,function(O){var w=new Rr({style:{x:O.left*p-l,y:O.top*p-u,image:O.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return LR(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return LR(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){Po(this.id);return}var i=this._model,o,a=X0(i,n);return V(a,function(s,l){l.indexOf("Models")>=0&&V(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?o=o||f.containPoint(r,u):process.env.NODE_ENV!=="production"&&En(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&En(l+": containPoint is not supported")},this)},this),!!o},e.prototype.getVisual=function(n,r){var i=this._model,o=X0(i,n,{defaultMainType:"series"}),a=o.seriesModel;process.env.NODE_ENV!=="production"&&(a||En("There is no specified series model"));var s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?PR(s,l,r):Py(s,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;V(pQe,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Md(s,function(g){var v=Ke(g);if(v&&v.dataIndex!=null){var m=v.dataModel||a.getSeriesByIndex(v.seriesIndex);return l=m&&m.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=he({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),p=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&p)&&En("model or view can not be found by params"),l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),V(My,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),V(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),x7e(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Po(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Po(this.id);return}this._disposed=!0;var n=this.getDom();n&&MZ(this.getDom(),GR,"");var r=this,i=r._api,o=r._model;V(r._componentsViews,function(a){a.dispose(o,i)}),V(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete kd[r.id]},e.prototype.resize=function(n){if(this[ui]){process.env.NODE_ENV!=="production"&&Qr("`resize` should not be called during main process.");return}if(this._disposed){Po(this.id);return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[Ki]&&(o==null&&(o=this[Ki].silent),i=!0,this[Ki]=null),this[ui]=!0;try{i&&Rg(this),gc.update.call(this,{type:"resize",animation:he({duration:0},n&&n.animation)})}catch(a){throw this[ui]=!1,a}this[ui]=!1,Ay.call(this,o),Ey.call(this,o)}},e.prototype.showLoading=function(n,r){if(this._disposed){Po(this.id);return}if(Qe(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!HR[n]){process.env.NODE_ENV!=="production"&&En("Loading effects "+n+" not exists.");return}var i=HR[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)},e.prototype.hideLoading=function(){if(this._disposed){Po(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=he({},n);return r.type=My[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){Po(this.id);return}if(Qe(r)||(r={silent:!!r}),!!hx[n.type]&&this._model){if(this[ui]){this._pendingActions.push(n);return}var i=r.silent;VR.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),Ay.call(this,i),Ey.call(this,i)}},e.prototype.updateLabelLayout=function(){ss.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){Po(this.id);return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&je(n.data&&o),o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Rg=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),NR(f,!0),NR(f,!1),d.plan()},NR=function(f,d){for(var p=f._model,g=f._scheduler,v=d?f._componentsViews:f._chartsViews,m=d?f._componentsMap:f._chartsMap,y=f._zr,b=f._api,O=0;O<v.length;O++)v[O].__alive=!1;d?p.eachComponent(function(x,T){x!=="series"&&w(T)}):p.eachSeries(w);function w(x){var T=x.__requireNewView;x.__requireNewView=!1;var $="_ec_"+x.id+"_"+x.type,A=!T&&m[$];if(!A){var P=Vs(x.type),M=d?dn.getClass(P.main,P.sub):Jt.getClass(P.sub);process.env.NODE_ENV!=="production"&&je(M,P.sub+" does not exist."),A=new M,A.init(p,b),m[$]=A,v.push(A),y.add(A.group)}x.__viewId=A.__id=$,A.__alive=!0,A.__model=x,A.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!d&&g.prepareView(A,x,p,b)}for(var O=0;O<v.length;){var S=v[O];S.__alive?O++:(!d&&S.renderTask.dispose(),y.remove(S.group),S.dispose(p,b),v.splice(O,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},cx=function(f,d,p,g,v){var m=f._model;if(m.setUpdatePayload(p),!g){V([].concat(f._componentsViews).concat(f._chartsViews),S);return}var y={};y[g+"Id"]=p[g+"Id"],y[g+"Index"]=p[g+"Index"],y[g+"Name"]=p[g+"Name"];var b={mainType:g,query:y};v&&(b.subType=v);var O=p.excludeSeriesId,w;O!=null&&(w=Le(),V(nn(O),function(x){var T=cr(x,null);T!=null&&w.set(T,!0)})),m&&m.eachComponent(b,function(x){var T=w&&w.get(x.id)!=null;if(!T)if(TX(p))if(x instanceof on)p.type===gd&&!p.notBlur&&!x.get(["emphasis","disabled"])&&Pze(x,p,f._api);else{var $=CD(x.mainType,x.componentIndex,p.name,f._api),A=$.focusSelf,P=$.dispatchers;p.type===gd&&A&&!p.notBlur&&xD(x.mainType,x.componentIndex,f._api),P&&V(P,function(M){p.type===gd?jl(M):Ul(M)})}else PD(p)&&x instanceof on&&(Eze(x,p,f._api),xX(x),va(f))},f),m&&m.eachComponent(b,function(x){var T=w&&w.get(x.id)!=null;T||S(f[g==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function S(x){x&&x.__alive&&x[d]&&x[d](x.__model,m,f._api,p)}},gc={prepareAndUpdate:function(f){Rg(this),gc.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var p=this._model,g=this._api,v=this._zr,m=this._coordSysMgr,y=this._scheduler;if(p){p.setUpdatePayload(f),y.restoreData(p,f),y.performSeriesTasks(p),m.create(p,g),y.performDataProcessorTasks(p,f),BR(this,p),m.update(p,g),n(p),y.performVisualTasks(p,f),zR(this,p,g,f,d);var b=p.get("backgroundColor")||"transparent",O=p.get("darkMode");v.setBackgroundColor(b),O!=null&&O!=="auto"&&v.setDarkMode(O),ss.trigger("afterupdate",p,g)}},updateTransform:function(f){var d=this,p=this._model,g=this._api;if(p){p.setUpdatePayload(f);var v=[];p.eachComponent(function(y,b){if(y!=="series"){var O=d.getViewOfComponentModel(b);if(O&&O.__alive)if(O.updateTransform){var w=O.updateTransform(b,p,g,f);w&&w.update&&v.push(O)}else v.push(O)}});var m=Le();p.eachSeries(function(y){var b=d._chartsMap[y.__viewId];if(b.updateTransform){var O=b.updateTransform(y,p,g,f);O&&O.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),n(p),this._scheduler.performVisualTasks(p,f,{setDirty:!0,dirtyMap:m}),fx(this,p,g,f,{},m),ss.trigger("afterupdate",p,g)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Jt.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),zR(this,d,this._api,f,{}),ss.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,p=this._model;p&&(p.setUpdatePayload(f),p.eachSeries(function(g){g.getData().clearAllVisual()}),Jt.markUpdateMethod(f,"updateVisual"),n(p),this._scheduler.performVisualTasks(p,f,{visualType:"visual",setDirty:!0}),p.eachComponent(function(g,v){if(g!=="series"){var m=d.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,p,d._api,f)}}),p.eachSeries(function(g){var v=d._chartsMap[g.__viewId];v.updateVisual(g,p,d._api,f)}),ss.trigger("afterupdate",p,this._api))},updateLayout:function(f){gc.update.call(this,f)}},LR=function(f,d,p,g){if(f._disposed){Po(f.id);return}for(var v=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,b=X0(v,p),O=0;O<m.length;O++){var w=m[O];if(w[d]&&(y=w[d](v,b,g))!=null)return y}process.env.NODE_ENV!=="production"&&En("No coordinate system that supports "+d+" found by the given finder.")},BR=function(f,d){var p=f._chartsMap,g=f._scheduler;d.eachSeries(function(v){g.updateStreamModes(v,p[v.__viewId])})},VR=function(f,d){var p=this,g=this.getModel(),v=f.type,m=f.escapeConnect,y=hx[v],b=y.actionInfo,O=(b.update||"update").split(":"),w=O.pop(),S=O[0]!=null&&Vs(O[0]);this[ui]=!0;var x=[f],T=!1;f.batch&&(T=!0,x=me(f.batch,function(L){return L=Ge(he({},L),f),L.batch=null,L}));var $=[],A,P=PD(f),M=TX(f);if(M&&SX(this._api),V(x,function(L){if(A=y.action(L,p._model,p._api),A=A||he({},L),A.type=b.event||A.type,$.push(A),M){var D=qI(f),B=D.queryOptionMap,F=D.mainTypeSpecified,z=F?B.keys()[0]:"series";cx(p,w,L,z),va(p)}else P?(cx(p,w,L,"series"),va(p)):S&&cx(p,w,L,S.main,S.sub)}),w!=="none"&&!M&&!P&&!S)try{this[Ki]?(Rg(this),gc.update.call(this,f),this[Ki]=null):gc[w].call(this,f)}catch(L){throw this[ui]=!1,L}if(T?A={type:b.event||v,escapeConnect:m,batch:$}:A=$[0],this[ui]=!1,!d){var I=this._messageCenter;if(I.trigger(A.type,A),P){var R={type:"selectchanged",escapeConnect:m,selected:Mze(g),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(R.type,R)}}},Ay=function(f){for(var d=this._pendingActions;d.length;){var p=d.shift();VR.call(this,p,f)}},Ey=function(f){!f&&this.trigger("updated")},AK=function(f,d){f.on("rendered",function(p){d.trigger("rendered",p),f.animation.isFinished()&&!d[Ki]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},EK=function(f,d){f.on("mouseover",function(p){var g=p.target,v=Md(g,sc);v&&($ze(v,p,d._api),va(d))}).on("mouseout",function(p){var g=p.target,v=Md(g,sc);v&&(Aze(v,p,d._api),va(d))}).on("click",function(p){var g=p.target,v=Md(g,function(b){return Ke(b).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",y=Ke(v);d._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],p=[],g=!1;if(f.eachComponent(function(b,O){var w=O.get("zlevel")||0,S=O.get("z")||0,x=O.getZLevelKey();g=g||!!x,(b==="series"?p:d).push({zlevel:w,z:S,idx:O.componentIndex,type:b,key:x})}),g){var v=d.concat(p),m,y;kw(v,function(b,O){return b.zlevel===O.zlevel?b.z-O.z:b.zlevel-O.zlevel}),V(v,function(b){var O=f.getComponent(b.type,b.idx),w=b.zlevel,S=b.key;m!=null&&(w=Math.max(m,w)),S?(w===m&&S!==y&&w++,y=S):y&&(w===m&&w++,y=""),m=w,O.setZLevel(w)})}}zR=function(f,d,p,g,v){r(d),MK(f,d,p,g,v),V(f._chartsViews,function(m){m.__alive=!1}),fx(f,d,p,g,v),V(f._chartsViews,function(m){m.__alive||m.remove(d,p)})},MK=function(f,d,p,g,v,m){V(m||f._componentsViews,function(y){var b=y.__model;u(b,y),y.render(b,d,p,g),s(b,y),c(b,y)})},fx=function(f,d,p,g,v,m){var y=f._scheduler;v=he(v||{},{updatedSeries:d.getSeries()}),ss.trigger("series:beforeupdate",d,p,v);var b=!1;d.eachSeries(function(O){var w=f._chartsMap[O.__viewId];w.__alive=!0;var S=w.renderTask;y.updatePayload(S,g),u(O,w),m&&m.get(O.uid)&&S.dirty(),S.perform(y.getPerformArgs(S))&&(b=!0),w.group.silent=!!O.get("silent"),a(O,w),xX(O)}),y.unfinished=b||y.unfinished,ss.trigger("series:layoutlabels",d,p,v),ss.trigger("series:transition",d,p,v),d.eachSeries(function(O){var w=f._chartsMap[O.__viewId];s(O,w),c(O,w)}),o(f,d),ss.trigger("series:afterupdate",d,p,v)},va=function(f){f[RR]=!0,f.getZr().wakeUp()},RK=function(f){f[RR]&&(f.getZr().storage.traverse(function(d){pg(d)||i(d)}),f[RR]=!1)};function i(f){for(var d=[],p=f.currentStates,g=0;g<p.length;g++){var v=p[g];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===gS&&f.states.emphasis?d.push("emphasis"):f.hoverState===J0&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var p=f._zr,g=p.storage,v=0;g.traverse(function(m){m.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!Ct.node&&!Ct.worker&&d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(g){g.isGroup||(g.style.blend=p)})}function s(f,d){if(!f.preventAutoZ){var p=f.get("z")||0,g=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,p,g,-1/0),!0})}}function l(f,d,p,g){var v=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var b=f.childrenRef(),O=0;O<b.length;O++)g=Math.max(l(b[O],d,p,g),g);else f.z=d,f.zlevel=p,g=Math.max(f.z2,g);if(v&&(v.z=d,v.zlevel=p,isFinite(g)&&(v.z2=g+2)),m){var w=f.textGuideLineConfig;m.z=d,m.zlevel=p,isFinite(g)&&(m.z2=g+(w&&w.showAbove?1:-1))}return g}function u(f,d){d.eachRendered(function(p){if(!pg(p)){var g=p.getTextContent(),v=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,d){var p=f.getModel("stateAnimation"),g=f.isAnimationEnabled(),v=p.get("duration"),m=v>0?{duration:v,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(pg(y))return;if(y instanceof yt&&Nze(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(g){y.stateTransition=m;var O=y.getTextContent(),w=y.getTextGuideLine();O&&(O.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}IK=function(f){return new(function(d){re(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(g){for(;g;){var v=g.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);g=g.parent}},p.prototype.enterEmphasis=function(g,v){jl(g,v),va(f)},p.prototype.leaveEmphasis=function(g,v){Ul(g,v),va(f)},p.prototype.enterBlur=function(g){bX(g),va(f)},p.prototype.leaveBlur=function(g){wD(g),va(f)},p.prototype.enterSelect=function(g){_X(g),va(f)},p.prototype.leaveSelect=function(g){OX(g),va(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},p.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},p}(HY))(f)},DK=function(f){function d(p,g){for(var v=0;v<p.length;v++){var m=p[v];m[kR]=g}}V(My,function(p,g){f._messageCenter.on(g,function(v){if(gx[f.group]&&f[kR]!==SK){if(v&&v.escapeConnect)return;var m=f.makeActionFromEvent(v),y=[];V(kd,function(b){b!==f&&b.group===f.group&&y.push(b)}),d(y,SK),V(y,function(b){b[kR]!==dQe&&b.dispatchAction(m)}),d(y,hQe)}})})}}(),e}(ra),FR=dx.prototype;FR.on=xK("on"),FR.off=xK("off"),FR.one=function(t,e,n){var r=this;sa("ECharts#one is deprecated.");function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];e&&e.apply&&e.apply(this,o),r.off(t,i)}this.on.call(this,t,i,n)};var pQe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Po(t){process.env.NODE_ENV!=="production"&&En("Instance "+t+" has been disposed")}var hx={},My={},WR=[],QR=[],px=[],kK={},HR={},kd={},gx={},gQe=+new Date-0,vQe=+new Date-0,GR="_echarts_instance_";function NK(t,e,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var i=jR(t);if(i)return process.env.NODE_ENV!=="production"&&En("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Gu(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!n||n.width==null)||!t.clientHeight&&(!n||n.height==null))&&En("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new dx(t,e,n);return o.id="ec_"+gQe++,kd[o.id]=o,r&&MZ(t,GR,o.id),DK(o),ss.trigger("afterinit",o),o}function mQe(t){if(ge(t)){var e=t;t=null,V(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+vQe++,V(e,function(n){n.group=t})}return gx[t]=!0,t}function LK(t){gx[t]=!1}var yQe=LK;function bQe(t){Ie(t)?t=kd[t]:t instanceof dx||(t=jR(t)),t instanceof dx&&!t.isDisposed()&&t.dispose()}function jR(t){return kd[xVe(t,GR)]}function _Qe(t){return kd[t]}function UR(t,e){kK[t]=e}function ZR(t){st(QR,t)<0&&QR.push(t)}function XR(t,e){YR(WR,t,e,oQe)}function BK(t){vx("afterinit",t)}function VK(t){vx("afterupdate",t)}function vx(t,e){ss.on(t,e)}function ls(t,e,n){ze(e)&&(n=e,e="");var r=Qe(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!My[e]&&(je(wK.test(r)&&wK.test(e)),hx[r]||(hx[r]={action:n,actionInfo:t}),My[e]=r)}function zK(t,e){Pd.register(t,e)}function OQe(t){var e=Pd.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function FK(t,e){YR(px,t,e,yK,"layout")}function vc(t,e){YR(px,t,e,bK,"visual")}var WK=[];function YR(t,e,n,r,i){if((ze(e)||Qe(e))&&(n=e,e=r),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");V(t,function(a){je(a.__raw!==n)})}if(!(st(WK,n)>=0)){WK.push(n);var o=Qq.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function qR(t,e){HR[t]=e}function wQe(t){process.env.NODE_ENV!=="production"&&sa("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),iU({createCanvas:t})}function QK(t,e,n){var r=mK("registerMap");r&&r(t,e,n)}function SQe(t){var e=mK("getMap");return e&&e(t)}var HK=NWe;vc(DR,s7e),vc(ux,l7e),vc(ux,u7e),vc(DR,w7e),vc(ux,S7e),vc(_K,q7e),ZR(qY),XR(rQe,vWe),qR("default",c7e),ls({type:gd,event:gd,update:gd},Qn),ls({type:vS,event:vS,update:vS},Qn),ls({type:ty,event:ty,update:ty},Qn),ls({type:mS,event:mS,update:mS},Qn),ls({type:ny,event:ny,update:ny},Qn),UR("light",_7e),UR("dark",Yq);var xQe={},GK=[],CQe={registerPreprocessor:ZR,registerProcessor:XR,registerPostInit:BK,registerPostUpdate:VK,registerUpdateLifecycle:vx,registerAction:ls,registerCoordinateSystem:zK,registerLayout:FK,registerVisual:vc,registerTransform:HK,registerLoading:qR,registerMap:QK,registerImpl:K7e,PRIORITY:OK,ComponentModel:dt,ComponentView:dn,SeriesModel:on,ChartView:Jt,registerComponentModel:function(t){dt.registerClass(t)},registerComponentView:function(t){dn.registerClass(t)},registerSeriesModel:function(t){on.registerClass(t)},registerChartView:function(t){Jt.registerClass(t)},registerSubTypeDefaulter:function(t,e){dt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){dZ(t,e)}};function ht(t){if(ge(t)){V(t,function(e){ht(e)});return}st(GK,t)>=0||(GK.push(t),ze(t)&&(t={install:t}),t.install(CQe))}function Iy(t){return t==null?0:t.length||1}function jK(t){return t}var ql=function(){function t(e,n,r,i,o,a){this._old=e,this._new=n,this._oldKeyGetter=r||jK,this._newKeyGetter=i||jK,this.context=o,this._diffModeMultiple=a==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},i=new Array(e.length),o=new Array(n.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=i[a],l=r[s],u=Iy(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(e,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=i[l],f=Iy(u),d=Iy(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var p=0;p<f;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var i=e[r],o=n[i],a=Iy(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},t.prototype._initIndexMap=function(e,n,r,i){for(var o=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[i](e[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=Iy(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},t}(),TQe=function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function PQe(t,e){var n={},r=n.encode={},i=Le(),o=[],a=[],s={};V(t.dimensions,function(d){var p=t.getDimensionInfo(d),g=p.coordDim;if(g){process.env.NODE_ENV!=="production"&&je(rR.get(g)==null);var v=p.coordDimIndex;KR(r,g)[v]=d,p.isExtraCoord||(i.set(g,1),$Qe(p.type)&&(o[0]=d),KR(s,g)[v]=t.getDimensionIndex(p.name)),p.defaultTooltip&&a.push(d)}rR.each(function(m,y){var b=KR(r,y),O=p.otherDims[y];O!=null&&O!==!1&&(b[O]=p.name)})});var l=[],u={};i.each(function(d,p){var g=r[p];u[p]=g[0],l=l.concat(g)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=me(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new TQe(s,e),n}function KR(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function mx(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function $Qe(t){return!(t==="ordinal"||t==="time")}var yx=function(){function t(e){this.otherDims={},e!=null&&he(this,e)}return t}(),AQe=Tt(),EQe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},UK=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=YK(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Je(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=tq(this.source),r=!qK(e),i="",o=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=EQe[u]||"f",c&&(i+=c.uid),i+="$"}var p=this.source,g=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:o,hash:g}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function ZK(t){return t instanceof UK}function XK(t){for(var e=Le(),n=0;n<(t||[]).length;n++){var r=t[n],i=Qe(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,n)}return e}function YK(t){var e=AQe(t);return e.dimNameMap||(e.dimNameMap=XK(t.dimensionsDefine))}function qK(t){return t>30}var Dy=Qe,mc=me,MQe=typeof Int32Array>"u"?Array:Int32Array,IQe="e\0\0",KK=-1,DQe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],RQe=["_approximateExtent"],JK,bx,Ry,kg,JR,_x,ek,kQe=function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;ZK(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=Ie(f)?new yx({name:f}):f instanceof yx?f:new yx(f),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var g=d.otherDims=d.otherDims||{};a.push(p),o[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),g.itemName===0&&(this._nameDimIdx=c),g.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&je(i||d.storeDimIndex>=0),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=Le();V(a,function(m){v.set(o[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Et(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Unknown dimension "+e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var i=r.encode[e];return i?i[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var i=this,o;if(e instanceof OR&&(o=e),!o){var a=this.dimensions,s=pR(e)||Wr(e)?new iq(e,a.length):e;o=new OR;var l=mc(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=PQe(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&ek(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Xl&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===da;if(l&&!i.pure)for(var u=[],c=e;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&fVe(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=cr(d,null));var p=f.id;a[c]==null&&p!=null&&(a[c]=cr(p,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<n;c++)ek(this,c);JK(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){Dy(e)?he(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Ry(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),i=this._store.getOrdinalMeta(e);return i?i.categories[r]:r},t.prototype.getId=function(e){return bx(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.get(i.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.getByRawIndex(i.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,i=this._store;return ge(e)?i.getValues(mc(e,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Do not supported yet");var i=r[n];return i==null||isNaN(i)?KK:i},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){ze(e)&&(r=n,n=e,e=[]);var i=r||this,o=mc(kg(e),this._getStoreDimIndex,this);this._store.each(o,i?Re(n,i):n)},t.prototype.filterSelf=function(e,n,r){ze(e)&&(r=n,n=e,e=[]);var i=r||this,o=mc(kg(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Re(n,i):n),this},t.prototype.selectRange=function(e){var n=this,r={},i=bt(e);return V(i,function(o){var a=n._getStoreDimIndex(o);r[a]=e[o]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){ze(e)&&(r=n,n=e,e=[]),r=r||this;var i=[];return this.each(e,function(){i.push(n&&n.apply(this,arguments))},r),i},t.prototype.map=function(e,n,r,i){var o=r||i||this,a=mc(kg(e),this._getStoreDimIndex,this),s=_x(this);return s._store=this._store.map(a,o?Re(n,o):n),s},t.prototype.modify=function(e,n,r,i){var o=this,a=r||i||this;process.env.NODE_ENV!=="production"&&V(kg(e),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=mc(kg(e),this._getStoreDimIndex,this);this._store.modify(s,a?Re(n,a):n)},t.prototype.downSample=function(e,n,r,i){var o=_x(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),n,r,i),o},t.prototype.lttbDownSample=function(e,n){var r=_x(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new rn(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new ql(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return bx(e,r)},function(r){return bx(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},Dy(e)?he(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],i=r&&r[n];return i??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var o=i[n];return o==null&&(o=this.getVisual(n),ge(o)?o=o.slice():Dy(o)&&(o=he({},o)),i[n]=o),o},t.prototype.setItemVisual=function(e,n,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Dy(n)?he(i,n):i[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Dy(e)?he(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?he(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;mD(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){V(this._graphicEls,function(r,i){r&&e&&e.call(n,r,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:mc(this.dimensions,this._getDimInfo,this),this.hostModel)),JR(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];ze(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Pw(arguments)))})},t.internalField=function(){JK=function(e){var n=e._invertedIndicesMap;V(n,function(r,i){var o=e._dimInfos[i],a=o.ordinalMeta,s=e._store;if(a){r=n[i]=new MQe(a.categories.length);for(var l=0;l<r.length;l++)r[l]=KK;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},Ry=function(e,n,r){return cr(e._getCategory(n,r),null)},bx=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Ry(e,e._idDimIdx,n)),r==null&&(r=IQe+n),r},kg=function(e){return ge(e)||(e=e!=null?[e]:[]),e},_x=function(e){var n=new t(e._schema?e._schema:mc(e.dimensions,e._getDimInfo,e),e.hostModel);return JR(n,e),n},JR=function(e,n){V(DQe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,V(RQe,function(r){e[r]=Ue(n[r])}),e._calculationInfo=he({},n._calculationInfo)},ek=function(e,n){var r=e._nameList,i=e._idList,o=e._nameDimIdx,a=e._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=Ry(e,o,n)),l==null&&a!=null&&(i[n]=l=Ry(e,a,n)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}}(),t}();const ci=kQe;function NQe(t,e){return Ng(t,e).dimensions}function Ng(t,e){pR(t)||(t=vR(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Le(),o=[],a=BQe(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&qK(a),l=r===t.dimensionsDefine,u=l?YK(t):XK(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var f=Le(c),d=new vq(a),p=0;p<d.length;p++)d[p]=-1;function g(A){var P=d[A];if(P<0){var M=r[A],I=Qe(M)?M:{name:M},R=new yx,L=I.name;L!=null&&u.get(L)!=null&&(R.name=R.displayName=L),I.type!=null&&(R.type=I.type),I.displayName!=null&&(R.displayName=I.displayName);var D=o.length;return d[A]=D,R.storeDimIndex=A,o.push(R),R}return o[P]}if(!s)for(var p=0;p<a;p++)g(p);f.each(function(A,P){var M=nn(A).slice();if(M.length===1&&!Ie(M[0])&&M[0]<0){f.set(P,!1);return}var I=f.set(P,[]);V(M,function(R,L){var D=Ie(R)?u.get(R):R;D!=null&&D<a&&(I[L]=D,m(g(D),P,L))})});var v=0;V(n,function(A){var P,M,I,R;if(Ie(A))P=A,R={};else{R=A,P=R.name;var L=R.ordinalMeta;R.ordinalMeta=null,R=he({},R),R.ordinalMeta=L,M=R.dimsDef,I=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var D=f.get(P);if(D!==!1){if(D=nn(D),!D.length)for(var B=0;B<(M&&M.length||1);B++){for(;v<a&&g(v).coordDim!=null;)v++;v<a&&D.push(v++)}V(D,function(F,z){var W=g(F);if(l&&R.type!=null&&(W.type=R.type),m(Ge(W,R),P,z),W.name==null&&M){var j=M[z];!Qe(j)&&(j={name:j}),W.name=W.displayName=j.name,W.defaultTooltip=j.defaultTooltip}I&&Ge(W.otherDims,I)})}});function m(A,P,M){rR.get(P)!=null?A.otherDims[P]=M:(A.coordDim=P,A.coordDimIndex=M,i.set(P,!0))}var y=e.generateCoord,b=e.generateCoordCount,O=b!=null;b=y?b||1:0;var w=y||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)V(o,function(A){S(A)}),o.sort(function(A,P){return A.storeDimIndex-P.storeDimIndex});else for(var x=0;x<a;x++){var T=g(x),$=T.coordDim;$==null&&(T.coordDim=VQe(w,i,O),T.coordDimIndex=0,(!y||b<=0)&&(T.isExtraCoord=!0),b--),S(T),T.type==null&&(kY(t,x)===jr.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return LQe(o),new UK({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function LQe(t){for(var e=Le(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function BQe(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return V(e,function(o){var a;Qe(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function VQe(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var zQe=function(){function t(e){this.coordSysDims=[],this.axisMap=Le(),this.categoryAxisMap=Le(),this.coordSysName=e}return t}();function FQe(t){var e=t.get("coordinateSystem"),n=new zQe(e),r=WQe[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var WQe={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Jn).models[0],o=t.getReferringComponents("yAxis",Jn).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Un(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Un(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Lg(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Lg(o)&&(r.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Jn).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),Lg(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Jn).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Lg(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Lg(a)&&(r.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();V(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Lg(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Lg(t){return t.get("type")==="category"}function eJ(t,e,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;QQe(e)?o=e:(a=e.schema,o=a.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(V(o,function(b,O){Ie(b)&&(o[O]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,g=c.type,v=0;V(o,function(b){b.coordDim===p&&v++});var m={name:f,coordDim:p,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,g),y.storeDimIndex=s.ensureCalculationDimension(f,g)),a.appendCalculationDimension(m),a.appendCalculationDimension(y)):(o.push(m),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function QQe(t){return!ZK(t.schema)}function Kl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function tk(t,e){return Kl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function HQe(t,e){var n=t.get("coordinateSystem"),r=Pd.get(n),i;return e&&e.coordSysDims&&(i=me(e.coordSysDims,function(o){var a={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");a.type=mx(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function GQe(t,e,n){var r,i;return n&&V(t,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(t[r].otherDims.itemName=0),r}function Us(t,e,n){n=n||{};var r=e.getSourceManager(),i,o=!1;t?(o=!0,i=vR(t)):(i=r.getSource(),o=i.sourceFormat===da);var a=FQe(e),s=HQe(e,a),l=n.useEncodeDefaulter,u=ze(l)?l:l?tt(RY,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Ng(i,c),d=GQe(f.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(f),g=eJ(e,{schema:f,store:p}),v=new ci(f,e);v.setCalculationInfo(g);var m=d!=null&&jQe(i)?function(y,b,O,w){return w===d?O:this.defaultDimValueGetter(y,b,O,w)}:null;return v.hasItemOption=!1,v.initData(o?i:p,null,m),v}function jQe(t){if(t.sourceFormat===da){var e=UQe(t.data||[]);return!ge(ig(e))}}function UQe(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Zs=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();sS(Zs);var ZQe=0,nk=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++ZQe}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&me(r,XQe);return new t({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!Ie(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var i=this._getOrCreateMap();return n=i.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,i.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Le(this.categories))},t}();function XQe(t){return Qe(t)&&t.value!=null?t.value:t+""}function YQe(t){var e=Math.pow(10,U0(Math.abs(t))),n=Math.abs(t/e);return n===0||n===1||n===2||n===3||n===5}function rk(t){return t.type==="interval"||t.type==="log"}function qQe(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=ZI(o/e,!0);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=tJ(a),l=i.niceTickExtent=[Nn(Math.ceil(t[0]/a)*a,s),Nn(Math.floor(t[1]/a)*a,s)];return KQe(l,t),i}function ik(t){var e=Math.pow(10,U0(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Nn(n*e)}function tJ(t){return rs(t)+2}function nJ(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function KQe(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),nJ(t,0,e),nJ(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Ox(t,e){return t>=e[0]&&t<=e[1]}function Sx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function xx(t,e){return t*(e[1]-e[0])+e[0]}var Cx=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new nk({})),ge(i)&&(i=new nk({categories:me(i,function(o){return Qe(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:Ie(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),Ox(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),Sx(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(xx(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var u=r[a];i[a]=u,o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i.push(c),o[c]=a}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Zs);Zs.registerClass(Cx);var Nd=Nn,Jl=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return Ox(n,this._extent)},e.prototype.normalize=function(n){return Sx(n,this._extent)},e.prototype.scale=function(n){return xx(n,this._extent)},e.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=tJ(n)},e.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<o[0]&&(n?s.push({value:Nd(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Nd(u+r,a),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:Nd(c+r,a)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<r.length;a++){for(var s=r[a],l=r[a-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var p=Nd(l.value+(u+1)*d);p>o[0]&&p<o[1]&&c.push(p),u++}i.push(c)}return i},e.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=rs(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=Nd(n.value,i,!0);return qD(o)},e.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=qQe(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval;n.fixMin||(r[0]=Nd(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=Nd(Math.ceil(r[1]/a)*a))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(Zs);Zs.registerClass(Jl);var rJ=typeof Float32Array<"u",JQe=rJ?Float32Array:Array;function Xs(t){return ge(t)?rJ?new Float32Array(t):t:new JQe(t)}var ok="__ec_stack_";function ak(t){return t.get("stack")||ok+t.seriesIndex}function sk(t){return t.dim+t.index}function e9e(t){var e=[],n=t.axis,r="axis0";if(n.type==="category"){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Ge({bandWidth:i,axisKey:r,stackId:ok+o},t));for(var a=aJ(e),s=[],o=0;o<t.count;o++){var l=a[r][ok+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function iJ(t,e){var n=[];return e.eachSeriesByType(t,function(r){uJ(r)&&n.push(r)}),n}function t9e(t){var e={};V(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,p=f.getDimensionIndex(f.mapDimension(c.dim)),g=f.getStore(),v=0,m=g.count();v<m;++v){var y=g.get(p,v);e[d]?e[d].push(y):e[d]=[y]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function oJ(t){var e=t9e(t),n=[];return V(t,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=e[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var p=r.getData();s=Math.abs(a[1]-a[0])/p.count()}var g=Ee(r.get("barWidth"),s),v=Ee(r.get("barMaxWidth"),s),m=Ee(r.get("barMinWidth")||(cJ(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:sk(o),stackId:ak(r)})}),aJ(n)}function aJ(t){var e={};V(t,function(r,i){var o=r.axisKey,a=r.bandWidth,s=e[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var p=r.barGap;p!=null&&(s.gap=p);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return V(e,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=bt(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ee(s,a),c=Ee(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,p=(f-u)/(d+(d-1)*c);p=Math.max(p,0),V(o,function(y){var b=y.maxWidth,O=y.minWidth;if(y.width){var w=y.width;b&&(w=Math.min(w,b)),O&&(w=Math.max(w,O)),y.width=w,f-=w+c*w,d--}else{var w=p;b&&b<w&&(w=Math.min(b,f)),O&&O>w&&(w=O),w!==p&&(y.width=w,f-=w+c*w,d--)}}),p=(f-u)/(d+(d-1)*c),p=Math.max(p,0);var g=0,v;V(o,function(y,b){y.width||(y.width=p),v=y,g+=y.width*(1+c)}),v&&(g-=v.width*c);var m=-g/2;V(o,function(y,b){n[i][b]=n[i][b]||{bandWidth:a,offset:m,width:y.width},m+=y.width*(1+c)})}),n}function n9e(t,e,n){if(t&&e){var r=t[sk(e)];return r!=null&&n!=null?r[ak(n)]:r}}function sJ(t,e){var n=iJ(t,e),r=oJ(n);V(n,function(i){var o=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=ak(i),u=r[sk(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function lJ(t){return{seriesType:t,plan:$g(),reset:function(e){if(uJ(e)){var n=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=e.get("showBackground",!0),u=n.mapDimension(o.dim),c=n.getCalculationInfo("stackResultDimension"),f=Kl(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),p=r9e(i,o),g=cJ(e),v=e.get("barMinHeight")||0,m=c&&n.getDimensionIndex(c),y=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(O,w){for(var S=O.count,x=g&&Xs(S*3),T=g&&l&&Xs(S*3),$=g&&Xs(S),A=r.master.getRect(),P=d?A.width:A.height,M,I=w.getStore(),R=0;(M=O.next())!=null;){var L=I.get(f?m:a,M),D=I.get(s,M),B=p,F=void 0;f&&(F=+L-I.get(a,M));var z=void 0,W=void 0,j=void 0,H=void 0;if(d){var Z=r.dataToPoint([L,D]);if(f){var J=r.dataToPoint([F,D]);B=J[0]}z=B,W=Z[1]+b,j=Z[0]-B,H=y,Math.abs(j)<v&&(j=(j<0?-1:1)*v)}else{var Z=r.dataToPoint([D,L]);if(f){var J=r.dataToPoint([D,F]);B=J[1]}z=Z[0]+b,W=B,j=y,H=Z[1]-B,Math.abs(H)<v&&(H=(H<=0?-1:1)*v)}g?(x[R]=z,x[R+1]=W,x[R+2]=d?j:H,T&&(T[R]=d?A.x:z,T[R+1]=d?W:A.y,T[R+2]=P),$[M]=M):w.setItemLayout(M,{x:z,y:W,width:j,height:H}),R+=3}g&&w.setLayout({largePoints:x,largeDataIndices:$,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function uJ(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function cJ(t){return t.pipelineContext&&t.pipelineContext.large}function r9e(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?n>0?n:1:n))}var i9e=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},lk=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return py(n.value,mY[IFe(Og(this._minLevelUnit))]||mY.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return DFe(n,r,i,a,o)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=f9e(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=fa,r[1]+=fa),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-fa}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Tx.length,l=Math.min(i9e(Tx,this._approxInterval,0,s),s-1);this._interval=Tx[l][1],this._minLevelUnit=Tx[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return Et(n)?n:+xo(n)},e.prototype.contain=function(n){return Ox(this.parse(n),this._extent)},e.prototype.normalize=function(n){return Sx(this.parse(n),this._extent)},e.prototype.scale=function(n){return xx(n,this._extent)},e.type="time",e}(Jl),Tx=[["second",UD],["minute",ZD],["hour",dy],["quarter-day",dy*6],["half-day",dy*12],["day",fa*1.2],["half-week",fa*3.5],["week",fa*7],["month",fa*31],["quarter",fa*95],["half-year",vY/2],["year",vY]];function o9e(t,e,n,r){var i=xo(e),o=xo(n),a=function(g){return _Y(i,g,r)===_Y(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return p()}}function a9e(t,e){return t/=fa,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function s9e(t){var e=30*fa;return t/=e,t>6?6:t>3?3:t>2?2:1}function l9e(t){return t/=dy,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function fJ(t,e){return t/=e?ZD:UD,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function u9e(t){return ZI(t,!0)}function c9e(t,e,n){var r=new Date(t);switch(Og(e)){case"year":case"month":r[OY(n)](0);case"day":r[wY(n)](1);case"hour":r[SY(n)](0);case"minute":r[xY(n)](0);case"second":r[CY(n)](0),r[TY(n)](0)}return r.getTime()}function f9e(t,e,n,r){var i=1e4,o=yY,a=0;function s(P,M,I,R,L,D,B){for(var F=new Date(M),z=M,W=F[R]();z<I&&z<=r[1];)B.push({value:z}),W+=P,F[L](W),z=F.getTime();B.push({value:z,notAdd:!0})}function l(P,M,I){var R=[],L=!M.length;if(!o9e(Og(P),r[0],r[1],n)){L&&(M=[{value:c9e(new Date(r[0]),P,n)},{value:r[1]}]);for(var D=0;D<M.length-1;D++){var B=M[D].value,F=M[D+1].value;if(B!==F){var z=void 0,W=void 0,j=void 0,H=!1;switch(P){case"year":z=Math.max(1,Math.round(e/fa/365)),W=YD(n),j=RFe(n);break;case"half-year":case"quarter":case"month":z=s9e(e),W=wg(n),j=OY(n);break;case"week":case"half-week":case"day":z=a9e(e),W=VS(n),j=wY(n),H=!0;break;case"half-day":case"quarter-day":case"hour":z=l9e(e),W=gy(n),j=SY(n);break;case"minute":z=fJ(e,!0),W=zS(n),j=xY(n);break;case"second":z=fJ(e,!1),W=FS(n),j=CY(n);break;case"millisecond":z=u9e(e),W=WS(n),j=TY(n);break}s(z,B,F,W,j,H,R),P==="year"&&I.length>1&&D===0&&I.unshift({value:I[0].value-z})}}for(var D=0;D<R.length;D++)I.push(R[D]);return R}}for(var u=[],c=[],f=0,d=0,p=0;p<o.length&&a++<i;++p){var g=Og(o[p]);if(MFe(o[p])){l(o[p],u[u.length-1]||[],c);var v=o[p+1]?Og(o[p+1]):null;if(g!==v){if(c.length){d=f,c.sort(function(P,M){return P.value-M.value});for(var m=[],y=0;y<c.length;++y){var b=c[y].value;(y===0||c[y-1].value!==b)&&(m.push(c[y]),b>=r[0]&&b<=r[1]&&f++)}var O=(r[1]-r[0])/e;if(f>O*1.5&&d>O/1.5||(u.push(m),f>O||t===o[p]))break}c=[]}}}process.env.NODE_ENV!=="production"&&a>=i&&En("Exceed safe limit.");for(var w=Yt(me(u,function(P){return Yt(P,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(P){return P.length>0}),S=[],x=w.length-1,p=0;p<w.length;++p)for(var T=w[p],$=0;$<T.length;++$)S.push({value:T[$].value,level:x-p});S.sort(function(P,M){return P.value-M.value});for(var A=[],p=0;p<S.length;++p)(p===0||S[p].value!==S[p-1].value)&&A.push(S[p]);return A}Zs.registerClass(lk);var dJ=Zs.prototype,ky=Jl.prototype,d9e=Nn,h9e=Math.floor,p9e=Math.ceil,Px=Math.pow,us=Math.log,uk=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Jl,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=ky.getTicks.call(this,n);return me(a,function(s){var l=s.value,u=Nn(Px(this.base,l));return u=l===i[0]&&this._fixMin?$x(u,o[0]):u,u=l===i[1]&&this._fixMax?$x(u,o[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var i=us(this.base);n=us(Math.max(0,n))/i,r=us(Math.max(0,r))/i,ky.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=dJ.getExtent.call(this);r[0]=Px(n,r[0]),r[1]=Px(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=$x(r[0],o[0])),this._fixMax&&(r[1]=$x(r[1],o[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=us(n[0])/us(r),n[1]=us(n[1])/us(r),dJ.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=yZ(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Nn(p9e(r[0]/o)*o),Nn(h9e(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){ky.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=us(n)/us(this.base),Ox(n,this._extent)},e.prototype.normalize=function(n){return n=us(n)/us(this.base),Sx(n,this._extent)},e.prototype.scale=function(n){return n=xx(n,this._extent),Px(this.base,n)},e.type="log",e}(Zs),hJ=uk.prototype;hJ.getMinorTicks=ky.getMinorTicks,hJ.getLabel=ky.getLabel;function $x(t,e){return d9e(t,rs(e))}Zs.registerClass(uk);var g9e=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;ze(a)?this._modelMinNum=Ax(e,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=Ax(e,a));var s=this._modelMaxRaw=n.get("max",!0);if(ze(s)?this._modelMaxNum=Ax(e,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=Ax(e,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=ge(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[ns(u[0],1),ns(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=e?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?i?0:NaN:n-o[0]*a),l==null&&(l=e?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=ju(s)||ju(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,n){process.env.NODE_ENV!=="production"&&je(!this.frozen),this[m9e[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=v9e[e];process.env.NODE_ENV!=="production"&&je(!this.frozen&&this[r]==null),this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),v9e={min:"_determinedMin",max:"_determinedMax"},m9e={min:"_dataMin",max:"_dataMax"};function pJ(t,e,n){var r=t.rawExtentInfo;return r||(r=new g9e(t,e,n),t.rawExtentInfo=r,r)}function Ax(t,e){return e==null?null:ju(e)?NaN:t.parse(e)}function gJ(t,e){var n=t.type,r=pJ(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&n==="time"){var s=iJ("bar",a),l=!1;if(V(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=oJ(s),c=y9e(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function y9e(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=n9e(r,n.axis);if(a===void 0)return{min:t,max:e};var s=1/0;V(a,function(p){s=Math.min(p.offset,s)});var l=-1/0;V(a,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/o,d=c/f-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function Ld(t,e){var n=e,r=gJ(t,n),i=r.extent,o=n.get("splitNumber");t instanceof uk&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l=a==="interval"||a==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function Ny(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Cx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new lk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Zs.getClass(e)||Jl)}}function b9e(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Bg(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(i,o){return t.scale.getFormattedLabel(i,o,r)}}(e):Ie(e)?function(r){return function(i){var o=t.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(e):ze(e)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(ck(t,i),o,i.level!=null?{level:i.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function ck(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function _9e(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof Cx?i=n.count():(r=n.getTicks(),i=r.length);var a=t.getLabelModel(),s=Bg(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=r?r[c]:{value:o[0]+c},d=s(f,c),p=a.getTextRect(d),g=O9e(p,a.get("rotate")||0);l?l.union(g):l=g}return l}}function O9e(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new at(t.x,t.y,o,a);return s}function fk(t){var e=t.get("interval");return e??"auto"}function vJ(t){return t.type==="category"&&fk(t.getLabelModel())===0}function Ex(t,e){var n={};return V(t.mapDimensionsAll(e),function(r){n[tk(t,r)]=!0}),bt(n)}function w9e(t,e,n){e&&V(Ex(e,n),function(r){var i=e.getApproximateExtent(r);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}var Vg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function S9e(t){return Us(null,t)}var x9e={isDimensionStacked:Kl,enableDataStack:eJ,getStackedDimension:tk};function C9e(t,e){var n=e;e instanceof rn||(n=new rn(e));var r=Ny(n);return r.setExtent(t[0],t[1]),Ld(r,n),r}function T9e(t){Wn(t,Vg)}function P9e(t,e){return e=e||{},un(t,null,null,e.state!=="normal")}const $9e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:NQe,createList:S9e,createScale:C9e,createSymbol:Xn,createTextStyle:P9e,dataStack:x9e,enableHoverEmphasis:ac,getECData:Ke,getLayoutRect:er,mixinAxisModelCommonMethods:T9e},Symbol.toStringTag,{value:"Module"}));var A9e=1e-8;function mJ(t,e){return Math.abs(t-e)<A9e}function Bd(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Hl(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return(!mJ(i[0],s[0])||!mJ(i[1],s[1]))&&(r+=Hl(i[0],i[1],s[0],s[1],e,n)),r!==0}var E9e=[];function dk(t,e){for(var n=0;n<t.length;n++)Ir(t[n],t[n],e)}function yJ(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Bl(e,e,o),Vl(n,n,o))}}function M9e(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var bJ=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),_J=function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t}(),OJ=function(){function t(e){this.type="linestring",this.points=e}return t}(),wJ=function(t){re(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.type="geoJSON",o.geometries=r,o._center=i&&[i[0],i[1]],o}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,i=0,o=0;o<n.length;o++){var a=n[o],s=a.exterior,l=s&&s.length;l>i&&(r=a,i=l)}if(r)return M9e(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var i=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return V(a,function(s){s.type==="polygon"?yJ(s.exterior,i,o,n):V(s.points,function(l){yJ(l,i,o,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),r=new at(i[0],i[1],o[0]-i[0],o[1]-i[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Bd(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Bd(u[c],n[0],n[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=a.width/a.height;i?o||(o=i/s):i=s*o;for(var l=new at(n,r,i,o),u=a.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(dk(d.exterior,u),V(d.interiors,function(p){dk(p,u)})):V(d.points,function(p){dk(p,u)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(bJ),I9e=function(t){re(e,t);function e(n,r){var i=t.call(this,n)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],o=P0(E9e),a=n;a&&!a.isGeoSVGGraphicRoot;)ks(o,a.getLocalTransform(),o),a=a.parent;return Zf(o,o),Ir(i,i,o),i},e}(bJ);function D9e(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return V(r,function(i){var o=i.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=SJ(s,a,n);break;case"Polygon":hk(s,a,n);break;case"MultiLineString":hk(s,a,n);break;case"MultiPolygon":V(s,function(l,u){return hk(l,a[u],n)})}}),e.UTF8Encoding=!1,e}function hk(t,e,n){for(var r=0;r<t.length;r++)t[r]=SJ(t[r],e[r],n)}function SJ(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function pk(t,e){return t=D9e(t),me(Yt(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new _J(a[0],a.slice(1)));break;case"MultiPolygon":V(i.coordinates,function(l){l[0]&&o.push(new _J(l[0],l.slice(1)))});break;case"LineString":o.push(new OJ([i.coordinates]));break;case"MultiLineString":o.push(new OJ(i.coordinates))}var s=new wJ(r[e||"name"],o,r.cp);return s.properties=r,s})}const R9e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:jI,asc:So,getPercentWithPrecision:oVe,getPixelPrecision:GI,getPrecision:rs,getPrecisionSafe:rS,isNumeric:oS,isRadianAroundZero:rg,linearMap:qt,nice:ZI,numericToNumber:Bs,parseDate:xo,quantile:iS,quantity:yZ,quantityExponent:U0,reformIntervals:XI,remRadian:UI,round:Nn},Symbol.toStringTag,{value:"Module"})),k9e=Object.freeze(Object.defineProperty({__proto__:null,format:py,parse:xo},Symbol.toStringTag,{value:"Module"})),N9e=Object.freeze(Object.defineProperty({__proto__:null,Arc:xS,BezierCurve:sy,BoundingRect:at,Circle:Zl,CompoundPath:CS,Ellipse:wS,Group:qe,Image:Rr,IncrementalDisplayable:YX,Line:br,LinearGradient:dg,Polygon:Ti,Polyline:Pi,RadialGradient:ID,Rect:Pt,Ring:ay,Sector:Ci,Text:$t,clipPointsByRect:LD,clipRectByRect:rY,createIcon:vg,extendPath:eY,extendShape:JX,getShapeClass:MS,getTransform:uc,initProps:vn,makeImage:kD,makePath:uy,mergePath:To,registerShape:ca,resizePath:ND,updateProps:Rt},Symbol.toStringTag,{value:"Module"})),L9e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:qD,capitalFirst:BFe,encodeHTML:_i,formatTime:LFe,formatTpl:tR,getTextRect:kFe,getTooltipMarker:$Y,normalizeCssArray:Sd,toCamelCase:KD,truncateText:NZ},Symbol.toStringTag,{value:"Module"})),B9e=Object.freeze(Object.defineProperty({__proto__:null,bind:Re,clone:Ue,curry:tt,defaults:Ge,each:V,extend:he,filter:Yt,indexOf:st,inherits:YM,isArray:ge,isFunction:ze,isObject:Qe,isString:Ie,map:me,merge:it,reduce:ta},Symbol.toStringTag,{value:"Module"}));var Ly=Tt();function xJ(t,e){var n=me(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function V9e(t){var e=t.getLabelModel().get("customValues");if(e){var n=Bg(t);return{labels:xJ(t,e).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:r}})}}return t.type==="category"?F9e(t):Q9e(t)}function z9e(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:xJ(t,n)}:t.type==="category"?W9e(t,e):{ticks:me(t.scale.getTicks(),function(r){return r.value})}}function F9e(t){var e=t.getLabelModel(),n=CJ(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function CJ(t,e){var n=TJ(t,"labels"),r=fk(e),i=PJ(n,r);if(i)return i;var o,a;return ze(r)?o=EJ(t,r):(a=r==="auto"?H9e(t):r,o=AJ(t,a)),$J(n,r,{labels:o,labelCategoryInterval:a})}function W9e(t,e){var n=TJ(t,"ticks"),r=fk(e),i=PJ(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),ze(r))o=EJ(t,r,!0);else if(r==="auto"){var s=CJ(t,t.getLabelModel());a=s.labelCategoryInterval,o=me(s.labels,function(l){return l.tickValue})}else a=r,o=AJ(t,a,!0);return $J(n,r,{ticks:o,tickCategoryInterval:a})}function Q9e(t){var e=t.scale.getTicks(),n=Bg(t);return{labels:me(e,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function TJ(t,e){return Ly(t)[e]||(Ly(t)[e]=[])}function PJ(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function $J(t,e,n){return t.push({key:e,value:n}),n}function H9e(t){var e=Ly(t).autoInterval;return e??(Ly(t).autoInterval=t.calculateCategoryInterval())}function G9e(t){var e=j9e(t),n=Bg(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,p=0;l<=o[1];l+=s){var g=0,v=0,m=H0(n({value:l}),e.font,"center","top");g=m.width*1.3,v=m.height*1.3,d=Math.max(d,g,7),p=Math.max(p,v,7)}var y=d/c,b=p/f;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var O=Math.max(0,Math.floor(Math.min(y,b))),w=Ly(t.model),S=t.getExtent(),x=w.lastAutoInterval,T=w.lastTickCount;return x!=null&&T!=null&&Math.abs(x-O)<=1&&Math.abs(T-a)<=1&&x>O&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?O=x:(w.lastTickCount=a,w.lastAutoInterval=O,w.axisExtent0=S[0],w.axisExtent1=S[1]),O}function j9e(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function AJ(t,e,n){var r=Bg(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=vJ(t),d=a.get("showMinLabel")||f,p=a.get("showMaxLabel")||f;d&&u!==o[0]&&v(o[0]);for(var g=u;g<=o[1];g+=l)v(g);p&&g-l!==o[1]&&v(o[1]);function v(m){var y={value:m};s.push(n?m:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function EJ(t,e,n){var r=t.scale,i=Bg(t),o=[];return V(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;e(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var MJ=[0,1],U9e=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return e>=r&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return GI(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),IJ(r,i.count())),qt(e,MJ,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),IJ(r,i.count()));var o=qt(e,r,MJ,n);return this.scale.scale(o)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=z9e(this,n),i=r.ticks,o=me(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Z9e(this,o,a,e.clamp),o},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=me(r,function(o){return me(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},t.prototype.getViewLabels=function(){return V9e(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},t.prototype.calculateCategoryInterval=function(){return G9e(this)},t}();function IJ(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function Z9e(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o=t.getExtent(),a,s;if(i===1)e[0].coord=o[0],a=e[1]={coord:o[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;V(e,function(p){p.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,a={coord:e[i-1].coord+u*s},e.push(a)}var f=o[0]>o[1];d(e[0].coord,o[0])&&(r?e[0].coord=o[0]:e.shift()),r&&d(o[0],e[0].coord)&&e.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:e.pop()),r&&d(a.coord,o[1])&&e.push({coord:o[1]});function d(p,g){return p=Nn(p),g=Nn(g),f?p>g:p<g}}const ma=U9e;function X9e(t){var e=dt.extend(t);return dt.registerClass(e),e}function Y9e(t){var e=dn.extend(t);return dn.registerClass(e),e}function q9e(t){var e=on.extend(t);return on.registerClass(e),e}function K9e(t){var e=Jt.extend(t);return Jt.registerClass(e),e}var By=Math.PI*2,Vd=Qs.CMD,J9e=["top","right","bottom","left"];function eHe(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0);break}}function tHe(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,f=s*n+e;if(Math.abs(r-i)%By<1e-4)return l[0]=c,l[1]=f,u-n;if(o){var d=r;r=Co(i),i=Co(d)}else r=Co(r),i=Co(i);r>i&&(i+=By);var p=Math.atan2(s,a);if(p<0&&(p+=By),p>=r&&p<=i||p+By>=r&&p+By<=i)return l[0]=c,l[1]=f,u-n;var g=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=n*Math.cos(i)+t,y=n*Math.sin(i)+e,b=(g-a)*(g-a)+(v-s)*(v-s),O=(m-a)*(m-a)+(y-s)*(y-s);return b<O?(l[0]=g,l[1]=v,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(O))}function Mx(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,f=r-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var p=l*c+u*f,g=p/d;s&&(g=Math.min(Math.max(g,0),1)),g*=d;var v=a[0]=t+g*c,m=a[1]=e+g*f;return Math.sqrt((v-i)*(v-i)+(m-o)*(m-o))}function DJ(t,e,n,r,i,o,a){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var cs=[];function nHe(t,e,n){var r=DJ(e.x,e.y,e.width,e.height,t.x,t.y,cs);return n.set(cs[0],cs[1]),r}function rHe(t,e,n){for(var r=0,i=0,o=0,a=0,s,l,u=1/0,c=e.data,f=t.x,d=t.y,p=0;p<c.length;){var g=c[p++];p===1&&(r=c[p],i=c[p+1],o=r,a=i);var v=u;switch(g){case Vd.M:o=c[p++],a=c[p++],r=o,i=a;break;case Vd.L:v=Mx(r,i,c[p],c[p+1],f,d,cs,!0),r=c[p++],i=c[p++];break;case Vd.C:v=NU(r,i,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],f,d,cs),r=c[p++],i=c[p++];break;case Vd.Q:v=BU(r,i,c[p++],c[p++],c[p],c[p+1],f,d,cs),r=c[p++],i=c[p++];break;case Vd.A:var m=c[p++],y=c[p++],b=c[p++],O=c[p++],w=c[p++],S=c[p++];p+=1;var x=!!(1-c[p++]);s=Math.cos(w)*b+m,l=Math.sin(w)*O+y,p<=1&&(o=s,a=l);var T=(f-m)*O/b+m;v=tHe(m,y,O,w,w+S,x,T,d,cs),r=Math.cos(w+S)*b+m,i=Math.sin(w+S)*O+y;break;case Vd.R:o=r=c[p++],a=i=c[p++];var $=c[p++],A=c[p++];v=DJ(o,a,$,A,f,d,cs);break;case Vd.Z:v=Mx(r,i,o,a,f,d,cs,!0),r=o,i=a;break}v<u&&(u=v,n.set(cs[0],cs[1]))}return u}var fs=new ot,hn=new ot,Yn=new ot,Ys=new ot,qs=new ot;function RJ(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||J9e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),f=c&&Zf([],c),d=e.get("length2")||0;u&&Yn.copy(u);for(var p=0;p<a.length;p++){var g=a[p];eHe(g,0,s,fs,Ys),ot.scaleAndAdd(hn,fs,Ys,d),hn.transform(f);var v=t.getBoundingRect(),m=u?u.distance(hn):t instanceof yt?rHe(hn,t.path,Yn):nHe(hn,v,Yn);m<l&&(l=m,hn.transform(c),Yn.transform(c),Yn.toArray(o[0]),hn.toArray(o[1]),fs.toArray(o[2]))}kJ(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var Ix=[],Ei=new ot;function kJ(t,e){if(e<=180&&e>0){e=e/180*Math.PI,fs.fromArray(t[0]),hn.fromArray(t[1]),Yn.fromArray(t[2]),ot.sub(Ys,fs,hn),ot.sub(qs,Yn,hn);var n=Ys.len(),r=qs.len();if(!(n<.001||r<.001)){Ys.scale(1/n),qs.scale(1/r);var i=Ys.dot(qs),o=Math.cos(e);if(o<i){var a=Mx(hn.x,hn.y,Yn.x,Yn.y,fs.x,fs.y,Ix,!1);Ei.fromArray(Ix),Ei.scaleAndAdd(qs,a/Math.tan(Math.PI-e));var s=Yn.x!==hn.x?(Ei.x-hn.x)/(Yn.x-hn.x):(Ei.y-hn.y)/(Yn.y-hn.y);if(isNaN(s))return;s<0?ot.copy(Ei,hn):s>1&&ot.copy(Ei,Yn),Ei.toArray(t[1])}}}}function iHe(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,fs.fromArray(t[0]),hn.fromArray(t[1]),Yn.fromArray(t[2]),ot.sub(Ys,hn,fs),ot.sub(qs,Yn,hn);var r=Ys.len(),i=qs.len();if(!(r<.001||i<.001)){Ys.scale(1/r),qs.scale(1/i);var o=Ys.dot(e),a=Math.cos(n);if(o<a){var s=Mx(hn.x,hn.y,Yn.x,Yn.y,fs.x,fs.y,Ix,!1);Ei.fromArray(Ix);var l=Math.PI/2,u=Math.acos(qs.dot(e)),c=l+u-n;if(c>=l)ot.copy(Ei,Yn);else{Ei.scaleAndAdd(qs,s/Math.tan(Math.PI/2-c));var f=Yn.x!==hn.x?(Ei.x-hn.x)/(Yn.x-hn.x):(Ei.y-hn.y)/(Yn.y-hn.y);if(isNaN(f))return;f<0?ot.copy(Ei,hn):f>1&&ot.copy(Ei,Yn)}Ei.toArray(t[1])}}}}function gk(t,e,n,r){var i=n==="normal",o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function oHe(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ll(r[0],r[1]),o=Ll(r[1],r[2]);if(!i||!o){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=T0([],r[1],r[0],a/i),l=T0([],r[1],r[2],a/o),u=T0([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function vk(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<ey.length;l++){var u=ey[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),p=f?s:Je(i.states[u]&&i.states[u].ignore,s);if(p||!Je(d,a)){var g=f?r:r&&r.states[u];g&&(g.ignore=!0),r&&gk(r,!0,u,c);continue}r||(r=new Pi,t.setTextGuideLine(r),!f&&(s||!a)&&gk(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),gk(r,!1,u,c)}}if(r){Ge(r.style,n),r.style.fill=null;var v=o.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,r.buildPath=oHe}}function mk(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<xi.length;r++){var i=xi[r];n[i]=t.getModel([i,e])}return n}function NJ(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new $S(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function LJ(t,e,n,r,i,o){var a=t.length;if(a<2)return;t.sort(function($,A){return $.rect[e]-A.rect[e]});for(var s=0,l,u=!1,c=0,f=0;f<a;f++){var d=t[f],p=d.rect;l=p[e]-s,l<0&&(p[e]-=l,d.label[e]-=l,u=!0);var g=Math.max(-l,0);c+=g,s=p[e]+p[n]}c>0&&o&&S(-c/a,0,a);var v=t[0],m=t[a-1],y,b;O(),y<0&&x(-y,.8),b<0&&x(b,.8),O(),w(y,b,1),w(b,y,-1),O(),y<0&&T(-y),b<0&&T(b);function O(){y=v.rect[e]-r,b=i-m.rect[e]-m.rect[n]}function w($,A,P){if($<0){var M=Math.min(A,-$);if(M>0){S(M*P,0,a);var I=M+$;I<0&&x(-I*P,1)}else x(-$*P,1)}}function S($,A,P){$!==0&&(u=!0);for(var M=A;M<P;M++){var I=t[M],R=I.rect;R[e]+=$,I.label[e]+=$}}function x($,A){for(var P=[],M=0,I=1;I<a;I++){var R=t[I-1].rect,L=Math.max(t[I].rect[e]-R[e]-R[n],0);P.push(L),M+=L}if(M){var D=Math.min(Math.abs($)/M,A);if($>0)for(var I=0;I<a-1;I++){var B=P[I]*D;S(B,0,I+1)}else for(var I=a-1;I>0;I--){var B=P[I-1]*D;S(-B,I,a)}}}function T($){var A=$<0?-1:1;$=Math.abs($);for(var P=Math.ceil($/(a-1)),M=0;M<a-1;M++)if(A>0?S(P,0,M+1):S(-P,a-M-1,a),$-=P,$<=0)return}return u}function aHe(t,e,n,r){return LJ(t,"x","width",e,n,r)}function BJ(t,e,n,r){return LJ(t,"y","height",e,n,r)}function VJ(t){var e=[];t.sort(function(v,m){return m.priority-v.priority});var n=new at(0,0,0,0);function r(v){if(!v.ignore){var m=v.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}v.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,p=0;p<e.length;p++){var g=e[p];if(n.intersect(g.rect)){if(a&&g.axisAligned){d=!0;break}if(g.obb||(g.obb=new $S(g.localRect,g.transform)),f||(f=new $S(s,l)),f.intersect(g.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function sHe(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function lHe(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:sHe(r&&r.shape.points)}}var zJ=["align","verticalAlign","width","height","fontSize"],Mi=new Wl,yk=Tt(),uHe=Tt();function Dx(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&(t[i]=e[i])}}var Rx=["x","y","rotation"],cHe=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,i,o){var a=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();at.applyTransform(c,c,u),u?Mi.setLocalTransform(u):(Mi.x=Mi.y=Mi.rotation=Mi.originX=Mi.originY=0,Mi.scaleX=Mi.scaleY=1),Mi.rotation=Co(Mi.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var p=f.getComputedTransform();at.applyTransform(d,d,p)}var g=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:r,dataIndex:e,dataType:n,layoutOption:o,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:Mi.x,y:Mi.y,scaleX:Mi.scaleX,scaleY:Mi.scaleY,rotation:Mi.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,i=r.get("labelLayout");(ze(i)||bt(i).length)&&e.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=Ke(o);a&&!a.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,a,i)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function i(O,w){return function(){RJ(O,w)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,c=void 0;ze(a.layoutOption)?c=a.layoutOption(lHe(a,l)):c=a.layoutOption,c=c||{},a.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=Ee(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Ee(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var g=yk(s);g.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<zJ.length;v++){var m=zJ[v];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;if(a.dataIndex!=null){var b=a.seriesModel.getData(a.dataType);y=b.getItemModel(a.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),i=NJ(this._labelList),o=Yt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Yt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});aHe(o,0,n),BJ(a,0,r);var s=Yt(i,function(l){return l.layoutOption.hideOverlap});VJ(s)},t.prototype.processLabelsOverall=function(){var e=this;V(this._chartViewList,function(n){var r=n.__model,i=n.ignoreLabelLineUpdate,o=r.isAnimationEnabled();n.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!i,l=a.getTextContent();!s&&l&&(s=yk(l).needsUpdateLabelLine),s&&e._updateLabelLine(a,r),o&&e._animateLabels(a,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),i=Ke(e),o=i.dataIndex;if(r&&o!=null){var a=n.getData(i.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var c=a.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");vk(e,mk(s),l),RJ(e,f)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),i=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!pg(e))){var o=yk(r),a=o.oldLayout,s=Ke(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(a){r.attr(a);var d=e.prevStates;d&&(st(d,"select")>=0&&r.attr(o.oldLayoutSelect),st(d,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),Rt(r,u,n,l)}else if(r.attr(u),!yg(r).valueAnimation){var f=Je(r.style.opacity,1);r.style.opacity=0,vn(r,{style:{opacity:f}},n,l)}if(o.oldLayout=u,r.states.select){var p=o.oldLayoutSelect={};Dx(p,u,Rx),Dx(p,r.states.select,Rx)}if(r.states.emphasis){var g=o.oldLayoutEmphasis={};Dx(g,u,Rx),Dx(g,r.states.emphasis,Rx)}dY(r,l,c,n,n)}if(i&&!i.ignore&&!i.invisible){var o=uHe(i),a=o.oldLayout,v={points:i.shape.points};a?(i.attr({shape:a}),Rt(i,{shape:v},n)):(i.setShape(v),i.style.strokePercent=0,vn(i,{style:{strokePercent:1}},n)),o.oldLayout=v}},t}(),bk=Tt();function fHe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var i=bk(n).labelManager;i||(i=bk(n).labelManager=new cHe),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var i=bk(n).labelManager;r.updatedSeries.forEach(function(o){i.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),i.updateLayoutConfig(n),i.layout(n),i.processLabelsOverall()})}var _k=Math.sin,Ok=Math.cos,FJ=Math.PI,zd=Math.PI*2,dHe=180/FJ,WJ=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,i,o,a){this._add("C",e,n,r,i,o,a)},t.prototype.quadraticCurveTo=function(e,n,r,i){this._add("Q",e,n,r,i)},t.prototype.arc=function(e,n,r,i,o,a){this.ellipse(e,n,r,r,0,i,o,a)},t.prototype.ellipse=function(e,n,r,i,o,a,s,l){var u=s-a,c=!l,f=Math.abs(u),d=tc(f-zd)||(c?u>=zd:-u>=zd),p=u>0?u%zd:u%zd+zd,g=!1;d?g=!0:tc(f)?g=!1:g=p>=FJ==!!c;var v=e+r*Ok(a),m=n+i*_k(a);this._start&&this._add("M",v,m);var y=Math.round(o*dHe);if(d){var b=1/this._p,O=(c?1:-1)*(zd-b);this._add("A",r,i,y,1,+c,e+r*Ok(a+O),n+i*_k(a+O)),b>.01&&this._add("A",r,i,y,0,+c,v,m)}else{var w=e+r*Ok(s),S=n+i*_k(s);this._add("A",r,i,y,+g,+c,w,S)}},t.prototype.rect=function(e,n,r,i){this._add("M",e,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,i,o,a,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),wk="none",hHe=Math.round;function pHe(t){var e=t.fill;return e!=null&&e!==wk}function gHe(t){var e=t.stroke;return e!=null&&e!==wk}var Sk=["lineCap","miterLimit","lineJoin"],vHe=me(Sk,function(t){return"stroke-"+t.toLowerCase()});function mHe(t,e,n,r){var i=e.opacity==null?1:e.opacity;if(n instanceof Rr){t("opacity",i);return}if(pHe(e)){var o=z0(e.fill);t("fill",o.color);var a=e.fillOpacity!=null?e.fillOpacity*o.opacity*i:o.opacity*i;a<1&&t("fill-opacity",a)}else t("fill",wk);if(gHe(e)){var s=z0(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,f=e.strokeFirst;if(u!==1&&t("stroke-width",u),f&&t("paint-order",f?"stroke":"fill"),c<1&&t("stroke-opacity",c),e.lineDash){var d=AR(n),p=d[0],g=d[1];p&&(g=hHe(g||0),t("stroke-dasharray",p.join(",")),(g||r)&&t("stroke-dashoffset",g))}for(var v=0;v<Sk.length;v++){var m=Sk[v];if(e[m]!==pS[m]){var y=e[m]||pS[m];y&&t(vHe[v],y)}}}}var QJ="http://www.w3.org/2000/svg",HJ="http://www.w3.org/1999/xlink",yHe="http://www.w3.org/2000/xmlns/",bHe="http://www.w3.org/XML/1998/namespace",GJ="ecmeta_";function jJ(t){return document.createElementNS(QJ,t)}function wr(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function _He(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;i!==!1&&(i!==!0&&i!=null&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}function OHe(t){return"</"+t+">"}function xk(t,e){e=e||{};var n=e.newline?`
  345. `:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return _He(a,s)+(a!=="style"?_i(l):l||"")+(o?""+n+me(o,function(u){return r(u)}).join(n)+n:"")+OHe(a)}return r(t)}function wHe(t,e,n){n=n||{};var r=n.newline?`
  346. `:"",i=" {"+r,o=r+"}",a=me(bt(t),function(l){return l+i+me(bt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+o}).join(r),s=me(bt(e),function(l){return"@keyframes "+l+i+me(bt(e[l]),function(u){return u+i+me(bt(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(r)}function Ck(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function UJ(t,e,n,r){return wr("svg","root",{width:t,height:e,xmlns:QJ,"xmlns:xlink":HJ,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var SHe=0;function ZJ(){return SHe++}var XJ={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Fd="transform-origin";function xHe(t,e,n){var r=he({},t.shape);he(r,e),t.buildPath(n,r);var i=new WJ;return i.reset(ZU(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function CHe(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[Fd]=n+"px "+r+"px")}var THe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function YJ(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function PHe(t,e,n){var r=t.shape.paths,i={},o,a;if(V(r,function(l){var u=Ck(n.zrId);u.animation=!0,kx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=bt(c),p=d.length;if(p){a=d[p-1];var g=c[a];for(var v in g){var m=g[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var y in f){var b=f[y].animation;b.indexOf(a)>=0&&(o=b)}}}),!!o){e.d=!1;var s=YJ(i,n);return o.replace(a,s)}}function qJ(t){return Ie(t)?XJ[t]?"cubic-bezier("+XJ[t]+")":gI(t)?t:"":""}function kx(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof CS){var s=PHe(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=qJ(c.getClip().easing),p=c.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),c.getLoop()&&f.push("infinite");var g=f.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function v(b){var O=b[1],w=O.length,S={},x={},T={},$="animation-timing-function";function A(ue,ee,X){for(var Y=ue.getTracks(),le=ue.getMaxTime(),ve=0;ve<Y.length;ve++){var ye=Y[ve];if(ye.needsAnimate()){var Ne=ye.keyframes,Be=ye.propName;if(X&&(Be=X(Be)),Be)for(var Me=0;Me<Ne.length;Me++){var $e=Ne[Me],_e=Math.round($e.time/le*100)+"%",De=qJ($e.easing),Fe=$e.rawValue;(Ie(Fe)||Et(Fe))&&(ee[_e]=ee[_e]||{},ee[_e][Be]=$e.rawValue,De&&(ee[_e][$]=De))}}}}for(var P=0;P<w;P++){var M=O[P],I=M.targetName;I?I==="shape"&&A(M,x):!r&&A(M,S)}for(var R in S){var L={};sZ(L,t),he(L,S[R]);var D=XU(L),B=S[R][$];T[R]=D?{transform:D}:{},CHe(T[R],L),B&&(T[R][$]=B)}var F,z=!0;for(var R in x){T[R]=T[R]||{};var W=!F,B=x[R][$];W&&(F=new Qs);var j=F.len();F.reset(),T[R].d=xHe(t,x[R],F);var H=F.len();if(!W&&j!==H){z=!1;break}B&&(T[R][$]=B)}if(!z)for(var R in T)delete T[R].d;if(!r)for(var P=0;P<w;P++){var M=O[P],I=M.targetName;I==="style"&&A(M,T,function(Y){return THe[Y]})}for(var Z=bt(T),J=!0,se,P=1;P<Z.length;P++){var oe=Z[P-1],de=Z[P];if(T[oe][Fd]!==T[de][Fd]){J=!1;break}se=T[oe][Fd]}if(J&&se){for(var R in T)T[R][Fd]&&delete T[R][Fd];e[Fd]=se}if(Yt(Z,function(ue){return bt(T[ue]).length>0}).length){var ie=YJ(T,n);return ie+" "+b[0]+" both"}}for(var m in l){var s=v(l[m]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+ZJ();n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function $He(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};KJ(r,e,n)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=i.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=Qw(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),KJ(r,e,n)}}function KJ(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+ZJ(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var Vy=Math.round;function JJ(t){return t&&Ie(t.src)}function eee(t){return t&&ze(t.toDataURL)}function Tk(t,e,n,r){mHe(function(i,o){var a=i==="fill"||i==="stroke";a&&UU(o)?aee(e,t,i,r):a&&wI(o)?see(n,t,i,r):a&&o==="none"?t[i]="transparent":t[i]=o},e,n,!1),kHe(n,t,r)}function Pk(t,e){var n=hZ(e);n&&(n.each(function(r,i){r!=null&&(t[(GJ+i).toLowerCase()]=r+"")}),e.isSilent()&&(t[GJ+"silent"]="true"))}function tee(t){return tc(t[0]-1)&&tc(t[1])&&tc(t[2])&&tc(t[3]-1)}function AHe(t){return tc(t[4])&&tc(t[5])}function $k(t,e,n){if(e&&!(AHe(e)&&tee(e))){var r=1e4;t.transform=tee(e)?"translate("+Vy(e[4]*r)/r+" "+Vy(e[5]*r)/r+")":w6e(e)}}function nee(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(Vy(r[o][0]*n)/n),i.push(Vy(r[o][1]*n)/n);e.points=i.join(" ")}function ree(t){return!t.smooth}function EHe(t){var e=me(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,i){for(var o=0;o<e.length;o++){var a=e[o],s=n[a[0]];s!=null&&(r[a[1]]=Vy(s*i)/i)}}}var MHe={circle:[EHe(["cx","cy","r"])],polyline:[nee,ree],polygon:[nee,ree]};function IHe(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function iee(t,e){var n=t.style,r=t.shape,i=MHe[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&ZU(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](r))&&!(a&&IHe(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);i[0](r,o,c)}else{var f=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;f&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var p=d.getVersion(),g=t,v=g.__svgPathBuilder;(g.__svgPathVersion!==p||!v||l!==g.__svgPathStrokePercent)&&(v||(v=g.__svgPathBuilder=new WJ),v.reset(u),d.rebuildPath(v,l),v.generateStr(),g.__svgPathVersion=p,g.__svgPathStrokePercent=l),o.d=v.getStr()}return $k(o,t.transform),Tk(o,n,t,e),Pk(o,t),e.animation&&kx(t,o,e),e.emphasis&&$He(t,o,e),wr(s,t.id+"",o)}function DHe(t,e){var n=t.style,r=n.image;if(r&&!Ie(r)&&(JJ(r)?r=r.src:eee(r)&&(r=r.toDataURL())),!!r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),$k(l,t.transform),Tk(l,n,t,e),Pk(l,t),e.animation&&kx(t,l,e),wr("image",t.id+"",l)}}function RHe(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||Hu,o=n.x||0,a=x6e(n.y||0,eS(i),n.textBaseline),s=S6e[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(iX(n)){var u="",c=n.fontStyle,f=nX(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||rU,p=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),$k(l,t.transform),Tk(l,n,t,e),Pk(l,t),e.animation&&kx(t,l,e),wr("text",t.id+"",l,void 0,r)}}function oee(t,e){if(t instanceof yt)return iee(t,e);if(t instanceof Rr)return DHe(t,e);if(t instanceof ag)return RHe(t,e)}function kHe(t,e,n){var r=t.style;if(C6e(r)){var i=T6e(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,p=z0(r.shadowColor),g=p.opacity,v=p.color,m=d/2/l,y=d/2/u,b=m+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=wr("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[wr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":v,"flood-opacity":g})]),o[i]=a}e.filter=jw(a)}}function aee(t,e,n,r){var i=t[n],o,a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(GU(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else if(jU(i))o="radialGradient",a.cx=Je(i.x,.5),a.cy=Je(i.y,.5),a.r=Je(i.r,.5);else{process.env.NODE_ENV!=="production"&&ea("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=OI(s[u].offset)*100+"%",d=s[u].color,p=z0(d),g=p.color,v=p.opacity,m={offset:f};m["stop-color"]=g,v<1&&(m["stop-opacity"]=v),l.push(wr("stop",u+"",m))}var y=wr(o,"",a,l),b=xk(y),O=r.gradientCache,w=O[b];w||(w=r.zrId+"-g"+r.gradientIdx++,O[b]=w,a.id=w,r.defs[w]=wr(o,w,a,l)),e[n]=jw(w)}function see(t,e,n,r){var i=t.style[n],o=t.getBoundingRect(),a={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(HU(i)){var d=i.imageWidth,p=i.imageHeight,g=void 0,v=i.image;if(Ie(v)?g=v:JJ(v)?g=v.src:eee(v)&&(g=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";je(d,m),je(p,m)}else if(d==null||p==null){var y=function(P,M){if(P){var I=P.elm,R=d||M.width,L=p||M.height;P.tag==="pattern"&&(u?(L=1,R/=o.width):c&&(R=1,L/=o.height)),P.attrs.width=R,P.attrs.height=L,I&&(I.setAttribute("width",R),I.setAttribute("height",L))}},b=tD(g,null,t,function(P){l||y(x,P),y(f,P)});b&&b.width&&b.height&&(d=d||b.width,p=p||b.height)}f=wr("image","img",{href:g,width:d,height:p}),a.width=d,a.height=p}else i.svgElement&&(f=Ue(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var O,w;l?O=w=1:u?(w=1,O=a.width/o.width):c?(O=1,w=a.height/o.height):a.patternUnits="userSpaceOnUse",O!=null&&!isNaN(O)&&(a.width=O),w!=null&&!isNaN(w)&&(a.height=w);var S=XU(i);S&&(a.patternTransform=S);var x=wr("pattern","",a,[f]),T=xk(x),$=r.patternCache,A=$[T];A||(A=r.zrId+"-p"+r.patternIdx++,$[T]=A,a.id=A,x=r.defs[A]=wr("pattern",A,a,[f])),e[n]=jw(A)}}function NHe(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[t.id]=o,i[o]=wr("clipPath",o,a,[iee(t,n)])}e["clip-path"]=jw(o)}function lee(t){return document.createTextNode(t)}function Wd(t,e,n){t.insertBefore(e,n)}function uee(t,e){t.removeChild(e)}function cee(t,e){t.appendChild(e)}function fee(t){return t.parentNode}function dee(t){return t.nextSibling}function Ak(t,e){t.textContent=e}var hee=58,LHe=120,BHe=wr("","");function Ek(t){return t===void 0}function Ks(t){return t!==void 0}function VHe(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;o!==void 0&&(process.env.NODE_ENV!=="production"&&r[o]!=null&&console.error("Duplicate key "+o),r[o]=i)}return r}function zy(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function Fy(t){var e,n=t.children,r=t.tag;if(Ks(r)){var i=t.elm=jJ(r);if(Mk(BHe,t),ge(n))for(e=0;e<n.length;++e){var o=n[e];o!=null&&cee(i,Fy(o))}else Ks(t.text)&&!Qe(t.text)&&cee(i,lee(t.text))}else t.elm=lee(t.text);return t.elm}function pee(t,e,n,r,i){for(;r<=i;++r){var o=n[r];o!=null&&Wd(t,Fy(o),e)}}function Nx(t,e,n,r){for(;n<=r;++n){var i=e[n];if(i!=null)if(Ks(i.tag)){var o=fee(i.elm);uee(o,i.elm)}else uee(t,i.elm)}}function Mk(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n==="style"?r.style.cssText=a:n.charCodeAt(0)!==LHe?r.setAttribute(n,a):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(yHe,n,a):n.charCodeAt(3)===hee?r.setAttributeNS(bHe,n,a):n.charCodeAt(5)===hee?r.setAttributeNS(HJ,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function zHe(t,e,n){for(var r=0,i=0,o=e.length-1,a=e[0],s=e[o],l=n.length-1,u=n[0],c=n[l],f,d,p,g;r<=o&&i<=l;)a==null?a=e[++r]:s==null?s=e[--o]:u==null?u=n[++i]:c==null?c=n[--l]:zy(a,u)?(zg(a,u),a=e[++r],u=n[++i]):zy(s,c)?(zg(s,c),s=e[--o],c=n[--l]):zy(a,c)?(zg(a,c),Wd(t,a.elm,dee(s.elm)),a=e[++r],c=n[--l]):zy(s,u)?(zg(s,u),Wd(t,s.elm,a.elm),s=e[--o],u=n[++i]):(Ek(f)&&(f=VHe(e,r,o)),d=f[u.key],Ek(d)?Wd(t,Fy(u),a.elm):(p=e[d],p.tag!==u.tag?Wd(t,Fy(u),a.elm):(zg(p,u),e[d]=void 0,Wd(t,p.elm,a.elm))),u=n[++i]);(r<=o||i<=l)&&(r>o?(g=n[l+1]==null?null:n[l+1].elm,pee(t,g,n,i,l)):Nx(t,e,r,o))}function zg(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Mk(t,e),Ek(e.text)?Ks(r)&&Ks(i)?r!==i&&zHe(n,r,i):Ks(i)?(Ks(t.text)&&Ak(n,""),pee(n,null,i,0,i.length-1)):Ks(r)?Nx(n,r,0,r.length-1):Ks(t.text)&&Ak(n,""):t.text!==e.text&&(Ks(r)&&Nx(n,r,0,r.length-1),Ak(n,e.text)))}function FHe(t,e){if(zy(t,e))zg(t,e);else{var n=t.elm,r=fee(n);Fy(e),r!==null&&(Wd(r,e.elm,dee(n)),Nx(r,[t],0,0))}return e}var WHe=0,QHe=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=gee("refreshHover"),this.configLayer=gee("configLayer"),this.storage=n,this._opts=r=he({},r),this.root=e,this._id="zr"+WHe++,this._oldVNode=UJ(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=jJ("svg");Mk(null,this._oldVNode),i.appendChild(o),e.appendChild(i)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",FHe(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return oee(e,Ck(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=Ck(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var a=[],s=this._bgVNode=HHe(r,i,this._backgroundColor,o);s&&a.push(s);var l=e.compress?null:this._mainVNode=wr("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=me(bt(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(wr("defs","defs",{},u)),e.animation){var c=wHe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=wr("style","stl",{},[],c);a.push(f)}}return UJ(r,i,a,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},xk(this.renderToVNode({animation:Je(e.cssAnimation,!0),emphasis:Je(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Je(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var i=e.length,o=[],a=0,s,l,u=0,c=0;c<i;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,p=d&&d.length||0,g=l&&l.length||0,v=void 0;for(v=Math.max(p-1,g-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var m=g-1;m>v;m--)a--,s=o[a-1];for(var y=v+1;y<p;y++){var b={};NHe(d[y],b,n);var O=wr("g","clip-g-"+u++,b,[]);(s?s.children:r).push(O),o[a++]=O,s=O}l=d;var w=oee(f,n);w&&(s?s.children:r).push(w)}}},t.prototype.resize=function(e,n){var r=this._opts,i=this.root,o=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),i&&o&&(o.style.display="none",e=Ig(i,0,r),n=Ig(i,1,r),o.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,o){var a=o.style;a.width=e+"px",a.height=n+"px"}if(wI(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var n=this.renderToString(),r="data:image/svg+xml;";return e?(n=$6e(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function gee(t){return function(){process.env.NODE_ENV!=="production"&&ea('In SVG mode painter not support method "'+t+'"')}}function HHe(t,e,n,r){var i;if(n&&n!=="none")if(i=wr("rect","bg",{width:t,height:e,x:"0",y:"0"}),UU(n))aee({fill:n},i.attrs,"fill",r);else if(wI(n))see({style:{fill:n},dirty:Qn,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=z0(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}function GHe(t){t.registerPainter("svg",QHe)}function vee(t,e,n){var r=qa.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var Ik=function(t){re(e,t);function e(n,r,i){var o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||Jw,typeof n=="string"?a=vee(n,r,i):Qe(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(JM(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=vee("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new at(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var O=new at(0,0,0,0);O.copy(b),a.push(O)}else{for(var w=!1,S=1/0,x=0,T=0;T<a.length;++T){var $=a[T];if($.intersect(b)){var A=new at(0,0,0,0);A.copy($),A.union(b),a[T]=A,w=!0;break}else if(l){u.copy(b),u.union($);var P=b.width*b.height,M=$.width*$.height,I=u.width*u.height,R=I-P-M;R<S&&(S=R,x=T)}}if(l&&(a[x].union(b),w=!0),!w){var O=new at(0,0,0,0);O.copy(b),a.push(O)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var p=d.shouldBePainted(i,o,!0,!0),g=d.__isRendered&&(d.__dirty&Oo||!p)?d.getPrevPaintRect():null;g&&c(g);var v=p&&(d.__dirty&Oo||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],p=d&&d.shouldBePainted(i,o,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered){var g=d.getPrevPaintRect();g&&c(g)}}var m;do{m=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var y=f+1;y<a.length;)a[f].intersect(a[y])?(m=!0,a[f].union(a[y]),a.splice(y,1)):y++;f++}}while(m);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var p=this.domBack;function g(v,m,y,b){if(a.clearRect(v,m,y,b),r&&r!=="transparent"){var O=void 0;if(b0(r)){var w=r.global||r.__width===y&&r.__height===b;O=w&&r.__canvasGradient||$R(a,r,{x:0,y:0,width:y,height:b}),r.__canvasGradient=O,r.__width=y,r.__height=b}else uU(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,O=ER(a,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=O||r,a.fillRect(v,m,y,b),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(p,v,m,y,b),a.restore())}!i||u?g(0,0,s,l):i.length&&V(i,function(v){g(v.x*f,v.y*f,v.width*f,v.height*f)})},e}(ra),mee=1e5,Qd=314159,Lx=.01,jHe=.001;function UHe(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function ZHe(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var XHe=function(){function t(e,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=he({},r||{}),this.dpr=r.devicePixelRatio||Jw,this._singleCanvas=o,this.root=e;var a=e.style;a&&(JM(e),e.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=e,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var p=new Ik(c,this,this.dpr);p.__builtin__=!0,p.initContext(),l[Qd]=p,p.zlevel=Qd,s.push(Qd),this._domRoot=e}else{this._width=Ig(e,0,r),this._height=Ig(e,1,r);var u=this._domRoot=ZHe(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=e[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(mee)),o||(o=r.ctx,o.save()),Rd(o,s,i,a===n-1))}o&&o.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(mee)},t.prototype.paintOne=function(e,n){MR(e,n)},t.prototype._paintList=function(e,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Nw(function(){l._paintList(e,n,r,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Qd).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,d=function(v){var m=o[v],y=m.ctx,b=a&&m.createRepaintRects(e,n,p._width,p._height),O=r?m.__startIndex:m.__drawIndex,w=!r&&m.incremental&&Date.now,S=w&&Date.now(),x=m.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,x,b);else if(O===m.__startIndex){var T=e[O];(!T.incremental||!T.notClear||r)&&m.clear(!1,x,b)}O===-1&&(console.error("For some unknown reason. drawIndex is -1"),O=m.__startIndex);var $,A=function(R){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for($=O;$<m.__endIndex;$++){var D=e[$];if(D.__inHover&&(f=!0),i._doPaintEl(D,m,a,R,L,$===m.__endIndex-1),w){var B=Date.now()-S;if(B>15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)$=m.__endIndex;else for(var P=p.dpr,M=0;M<b.length;++M){var I=b[M];y.save(),y.beginPath(),y.rect(I.x*P,I.y*P,I.width*P,I.height*P),y.clip(),A(I),y.restore()}else y.save(),A(),y.restore();m.__drawIndex=$,m.__drawIndex<m.__endIndex&&(c=!1)},p=this,g=0;g<o.length;g++)d(g);return Ct.wxa&&V(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,n,r,i,o,a){var s=n.ctx;if(r){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Rd(s,e,o,a),e.setPrevPaintRect(l))}else Rd(s,e,o,a)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Qd);var r=this._layers[e];return r||(r=new Ik("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?it(r,this._layerConfig[e],!0):this._layerConfig[e-Lx]&&it(r,this._layerConfig[e-Lx],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(r[e]){process.env.NODE_ENV!=="production"&&ea("ZLevel "+e+" has been used already");return}if(!UHe(n)){process.env.NODE_ENV!=="production"&&ea("Layer of zlevel "+e+" is not valid");return}if(o>0&&e>i[0]){for(l=0;l<o-1&&!(i[l]<e&&i[l+1]>e);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];e.call(n,this._layers[o],o)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&e.call(n,a,o)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||e.call(n,a,o)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+jHe,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?Lx:0),this._needsManuallyCompositing),c.__builtin__||ea("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&Oo&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,V(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?it(r[e],n,!0):r[e]=n;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+Lx){var a=this._layers[o];it(a,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,i=n[e];i&&(i.dom.parentNode.removeChild(i.dom),delete n[e],r.splice(st(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(e!=null&&(i.width=e),n!=null&&(i.height=n),e=Ig(o,0,i),n=Ig(o,1,i),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Qd).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Qd].dom;var n=new Ik("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,i,o):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Rd(r,c,a,l===u-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function YHe(t){t.registerPainter("canvas",XHe)}var qHe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){if(process.env.NODE_ENV!=="production"){var r=n.coordinateSystem;if(r!=="polar"&&r!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Us(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new qe,i=Xn("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=Xn(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(on);function Fg(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Tg(t,e,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(Tg(t,e,n[a]));return o.join(" ")}}function yee(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ge(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var Wy=function(t){re(e,t);function e(n,r,i,o){var a=t.call(this)||this;return a.updateData(n,r,i,o),a}return e.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=Xn(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=KHe,this._symbolType=n,this.add(s)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){jl(this.childAt(0))},e.prototype.downplay=function(){Ul(this.childAt(0))},e.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},e.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},e.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):Rt(d,p,s,r),os(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,vn(d,p,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,d,p,g,v,m,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,p=o.blurScope,v=o.labelStatesModels,m=o.hoverScale,y=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),O=b.getModel("emphasis");u=O.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=O.get("focus"),p=O.get("blurScope"),g=O.get("disabled"),v=_r(b),m=O.getShallow("scale"),y=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var S=Id(n.getItemVisual(r,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),y&&s.attr("cursor",y);var x=n.getItemVisual(r,"style"),T=x.fill;if(s instanceof Rr){var $=s.style;s.useStyle(he({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},x))}else s.__isEmptyBrush?s.useStyle(he({},x)):s.useStyle(x),s.style.decal=null,s.setColor(T,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var A=n.getItemVisual(r,"liftZ"),P=this._z2;A!=null?P==null&&(this._z2=s.z2,s.z2+=A):P!=null&&(s.z2=P,this._z2=null);var M=a&&a.useNameLabel;Gr(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:I,inheritColor:T,defaultOpacity:x.opacity});function I(D){return M?n.getName(D):Fg(n,D)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),Ln(this,d,p,g)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Ke(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&lc(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();lc(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return Mg(n.getItemVisual(r,"symbolSize"))},e}(qe);function KHe(t,e){this.parent.drift(t,e)}function Dk(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function bee(t){return t!=null&&!Qe(t)&&(t={isIgnore:t}),t||{}}function _ee(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:_r(e),cursorStyle:e.get("cursor")}}var Qy=function(){function t(e){this.group=new qe,this._SymbolCtor=e||Wy}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=bee(n);var r=this.group,i=e.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=_ee(e),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return e.getItemLayout(f)};o||r.removeAll(),e.diff(o).add(function(f){var d=c(f);if(Dk(e,d,f,n)){var p=new a(e,f,l,u);p.setPosition(d),e.setItemGraphicEl(f,p),r.add(p)}}).update(function(f,d){var p=o.getItemGraphicEl(d),g=c(f);if(!Dk(e,g,f,n)){r.remove(p);return}var v=e.getItemVisual(f,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)r.remove(p),p=new a(e,f,l,u),p.setPosition(g);else{p.updateData(e,f,l,u);var y={x:g[0],y:g[1]};s?p.attr(y):Rt(p,y,i)}r.add(p),e.setItemGraphicEl(f,p)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=e._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_ee(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=bee(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o<e.end;o++){var a=n.getItemLayout(o);if(Dk(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){cc(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},t}();function Oee(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=JHe(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=me(t.dimensions,function(g){return e.mapDimension(g)}),d=!1,p=e.getCalculationInfo("stackResultDimension");return Kl(e,f[0])&&(d=!0,f[0]=p),Kl(e,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function JHe(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:Et(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function wee(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function eGe(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function tGe(t,e,n,r,i,o,a,s){for(var l=eGe(t,e),u=[],c=[],f=[],d=[],p=[],g=[],v=[],m=Oee(i,e,a),y=t.getLayout("points")||[],b=e.getLayout("points")||[],O=0;O<l.length;O++){var w=l[O],S=!0,x=void 0,T=void 0;switch(w.cmd){case"=":x=w.idx*2,T=w.idx1*2;var $=y[x],A=y[x+1],P=b[T],M=b[T+1];(isNaN($)||isNaN(A))&&($=P,A=M),u.push($,A),c.push(P,M),f.push(n[x],n[x+1]),d.push(r[T],r[T+1]),v.push(e.getRawIndex(w.idx1));break;case"+":var I=w.idx,R=m.dataDimsForPoint,L=i.dataToPoint([e.get(R[0],I),e.get(R[1],I)]);T=I*2,u.push(L[0],L[1]),c.push(b[T],b[T+1]);var D=wee(m,i,e,I);f.push(D[0],D[1]),d.push(r[T],r[T+1]),v.push(e.getRawIndex(I));break;case"-":S=!1}S&&(p.push(w),g.push(g.length))}g.sort(function(oe,de){return v[oe]-v[de]});for(var B=u.length,F=Xs(B),z=Xs(B),W=Xs(B),j=Xs(B),H=[],O=0;O<g.length;O++){var Z=g[O],J=O*2,se=Z*2;F[J]=u[se],F[J+1]=u[se+1],z[J]=c[se],z[J+1]=c[se+1],W[J]=f[se],W[J+1]=f[se+1],j[J]=d[se],j[J+1]=d[se+1],H[O]=p[Z]}return{current:F,next:z,stackedOnCurrent:W,stackedOnNext:j,status:H}}var yc=Math.min,bc=Math.max;function Hd(t,e){return isNaN(t)||isNaN(e)}function Rk(t,e,n,r,i,o,a,s,l){for(var u,c,f,d,p,g,v=n,m=0;m<r;m++){var y=e[v*2],b=e[v*2+1];if(v>=i||v<0)break;if(Hd(y,b)){if(l){v+=o;continue}break}if(v===n)t[o>0?"moveTo":"lineTo"](y,b),f=y,d=b;else{var O=y-u,w=b-c;if(O*O+w*w<.5){v+=o;continue}if(a>0){for(var S=v+o,x=e[S*2],T=e[S*2+1];x===y&&T===b&&m<r;)m++,S+=o,v+=o,x=e[S*2],T=e[S*2+1],y=e[v*2],b=e[v*2+1],O=y-u,w=b-c;var $=m+1;if(l)for(;Hd(x,T)&&$<r;)$++,S+=o,x=e[S*2],T=e[S*2+1];var A=.5,P=0,M=0,I=void 0,R=void 0;if($>=r||Hd(x,T))p=y,g=b;else{P=x-u,M=T-c;var L=y-u,D=x-y,B=b-c,F=T-b,z=void 0,W=void 0;if(s==="x"){z=Math.abs(L),W=Math.abs(D);var j=P>0?1:-1;p=y-j*z*a,g=b,I=y+j*W*a,R=b}else if(s==="y"){z=Math.abs(B),W=Math.abs(F);var H=M>0?1:-1;p=y,g=b-H*z*a,I=y,R=b+H*W*a}else z=Math.sqrt(L*L+B*B),W=Math.sqrt(D*D+F*F),A=W/(W+z),p=y-P*a*(1-A),g=b-M*a*(1-A),I=y+P*a*A,R=b+M*a*A,I=yc(I,bc(x,y)),R=yc(R,bc(T,b)),I=bc(I,yc(x,y)),R=bc(R,yc(T,b)),P=I-y,M=R-b,p=y-P*z/W,g=b-M*z/W,p=yc(p,bc(u,y)),g=yc(g,bc(c,b)),p=bc(p,yc(u,y)),g=bc(g,yc(c,b)),P=y-p,M=b-g,I=y+P*W/z,R=b+M*W/z}t.bezierCurveTo(f,d,p,g,y,b),f=I,d=R}else t.lineTo(y,b)}u=y,c=b,v+=o}return m}var See=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),nGe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new See},e.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&Hd(i[a*2-2],i[a*2-1]);a--);for(;o<a&&Hd(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=Rk(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Qs.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,b=void 0,O=void 0;switch(d){case a.M:s=o[f++],l=o[f++];break;case a.L:if(p=o[f++],g=o[f++],O=u?(n-s)/(p-s):(n-l)/(g-l),O<=1&&O>=0){var w=u?(g-l)*O+l:(p-s)*O+s;return u?[n,w]:[w,n]}s=p,l=g;break;case a.C:p=o[f++],g=o[f++],v=o[f++],m=o[f++],y=o[f++],b=o[f++];var S=u?zw(s,p,v,y,n,c):zw(l,g,m,b,n,c);if(S>0)for(var x=0;x<S;x++){var T=c[x];if(T<=1&&T>=0){var w=u?yr(l,g,m,b,T):yr(s,p,v,y,T);return u?[n,w]:[w,n]}}s=y,l=b;break}}},e}(yt),rGe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(See),xee=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new rGe},e.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Hd(i[s*2-2],i[s*2-1]);s--);for(;a<s&&Hd(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=Rk(n,i,a,s,s,1,r.smooth,l,r.connectNulls);Rk(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},e}(yt);function Cee(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new Pt({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),g=d.inverse;p?(g&&(f.shape.x+=l),f.shape.width=0):(g||(f.shape.y+=u),f.shape.height=0);var v=ze(i)?function(m){i(m,f)}:null;vn(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,v)}return f}function Tee(t,e,n){var r=t.getArea(),i=Nn(r.r0,1),o=Nn(r.r,1),a=new Ci({shape:{cx:Nn(t.cx,1),cy:Nn(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,vn(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function Hy(t,e,n,r,i){if(t){if(t.type==="polar")return Tee(t,e,n);if(t.type==="cartesian2d")return Cee(t,e,n,r,i)}else return null;return null}function Gd(t,e){return t.type===e}function Pee(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function $ee(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Aee(t,e){var n=$ee(t),r=n[0],i=n[1],o=$ee(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Eee(t){return Et(t)?t:t?.5:0}function iGe(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Xs(r*2),o=0;o<r;o++){var a=wee(n,t,e,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function _c(t,e,n,r){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,a=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<t.length;s+=2)!isNaN(t[s])&&!isNaN(t[s+1])&&f.push(t[s],t[s+1]);t=f}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function oGe(t,e){var n=[],r=t.length,i,o;function a(c,f,d){var p=c.coord,g=(d-p)/(f.coord-p),v=_I(g,[c.color,f.color]);return{coord:d,color:v}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){o?n.push(a(o,l,e)):i&&n.push(a(i,l,0),a(i,l,e));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function aGe(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(!o){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=me(o.stops,function(O){return{coord:l.toGlobalCoord(l.dataToCoord(O.value)),color:O.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=oGe(u,i==="x"?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var g=10,v=d[0].coord-g,m=d[p-1].coord+g,y=m-v;if(y<.001)return"transparent";V(d,function(O){O.offset=(O.coord-v)/y}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var b=new dg(0,0,0,0,d,!0);return b[i]=v,b[i+"2"]=m,b}}function sGe(t,e,n){var r=t.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&lGe(o,e))){var a=e.mapDimension(o.dim),s={};return V(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function lGe(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(Wy.getSymbolSize(e,a)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function uGe(t,e){return isNaN(t)||isNaN(e)}function cGe(t){for(var e=t.length/2;e>0&&uGe(t[e*2-2],t[e*2-1]);e--);return e-1}function Mee(t,e){return[t[e*2],t[e*2+1]]}function fGe(t,e,n){for(var r=t.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=t[u*2+i],!(isNaN(a)||isNaN(t[u*2+1-i]))){if(u===0){o=a;continue}if(o<=e&&a>=e||o>=e&&a<=e){l=u;break}s=u,o=a}return{range:[s,l],t:(e-o)/(a-o)}}function Iee(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<xi.length;e++)if(t.get([xi[e],"endLabel","show"]))return!0;return!1}function kk(t,e,n,r){if(Gd(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Iee(r)?function(p,g){t._endLabelOnDuring(p,g,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Cee(e,n,r,function(){var p=t._endLabel;p&&n&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Tee(e,n,r)}function dGe(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var hGe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new qe,r=new Qy;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=a.type==="polar",p=this._coordSys,g=this._symbolDraw,v=this._polyline,m=this._polygon,y=this._lineGroup,b=!r.ssr&&n.get("animation"),O=!c.isEmpty(),w=c.get("origin"),S=Oee(a,l,w),x=O&&iGe(a,l,S),T=n.get("showSymbol"),$=n.get("connectNulls"),A=T&&!d&&sGe(n,l,a),P=this._data;P&&P.eachItemGraphicEl(function(de,ie){de.__temp&&(s.remove(de),P.setItemGraphicEl(ie,null))}),T||g.remove(),s.add(y);var M=d?!1:n.get("step"),I;a&&a.getArea&&n.get("clip",!0)&&(I=a.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var R=aGe(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&p.type===a.type&&M===this._step))T&&g.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),b&&this._initSymbolLabelAnimation(l,a,I),M&&(f=_c(f,a,M,$),x&&(x=_c(x,a,M,$))),v=this._newPolyline(f),O?m=this._newPolygon(f,x):m&&(y.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,a,xd(R)),y.setClipPath(kk(this,a,!0,n));else{O&&!m?m=this._newPolygon(f,x):m&&!O&&(y.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,a,xd(R));var L=y.getClipPath();if(L){var D=kk(this,a,!1,n);vn(L,{shape:D.shape},n)}else y.setClipPath(kk(this,a,!0,n));T&&g.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),(!Pee(this._stackedOnPoints,x)||!Pee(this._points,f))&&(b?this._doUpdateAnimation(l,x,a,i,M,w,$):(M&&(f=_c(f,a,M,$),x&&(x=_c(x,a,M,$))),v.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:x})))}var B=n.getModel("emphasis"),F=B.get("focus"),z=B.get("blurScope"),W=B.get("disabled");if(v.useStyle(Ge(u.getLineStyle(),{fill:"none",stroke:R,lineJoin:"bevel"})),Hr(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var j=v.getState("emphasis").style;j.lineWidth=+v.style.lineWidth+1}Ke(v).seriesIndex=n.seriesIndex,Ln(v,F,z,W);var H=Eee(n.get("smooth")),Z=n.get("smoothMonotone");if(v.setShape({smooth:H,smoothMonotone:Z,connectNulls:$}),m){var J=l.getCalculationInfo("stackedOnSeries"),se=0;m.useStyle(Ge(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(se=Eee(J.get("smooth"))),m.setShape({smooth:H,stackedOnSmooth:se,smoothMonotone:Z,connectNulls:$}),Hr(m,n,"areaStyle"),Ke(m).seriesIndex=n.seriesIndex,Ln(m,F,z,W)}var oe=function(de){o._changePolyState(de)};l.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},e.prototype.packEventData=function(n,r){Ke(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=id(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,p=n.get("z")||0;u=new Wy(a,s),u.x=c,u.y=f,u.setZ(d,p);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=d,g.z=p,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Jt.prototype.highlight.call(this,n,r,i,o)},e.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=id(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Jt.prototype.downplay.call(this,n,r,i,o)},e.prototype._changePolyState=function(n){var r=this._polygon;bS(this._polyline,n),r&&bS(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new nGe({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new xee({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");ze(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ze(f)?f(null):f;n.eachItemGraphicEl(function(p,g){var v=p;if(v){var m=[p.x,p.y],y=void 0,b=void 0,O=void 0;if(i)if(a){var w=i,S=r.pointToCoord(m);o?(y=w.startAngle,b=w.endAngle,O=-S[1]/180*Math.PI):(y=w.r0,b=w.r,O=S[0])}else{var x=i;o?(y=x.x,b=x.x+x.width,O=p.x):(y=x.y+x.height,b=x.y,O=p.y)}var T=b===y?0:(O-y)/(b-y);l&&(T=1-T);var $=ze(f)?f(g):c*T+d,A=v.getSymbolPath(),P=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:$}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:$}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(Iee(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new $t({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=cGe(l);c>=0&&(Gr(s,_r(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?yee(a,p):Fg(a,f)},enableTextSetter:!0},dGe(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,p=d.get("connectNulls"),g=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,O=r.shape,w=b?y?O.x:O.y+O.height:y?O.x+O.width:O.y,S=(y?v:0)*(b?-1:1),x=(y?0:-v)*(b?-1:1),T=y?"x":"y",$=fGe(f,w,T),A=$.range,P=A[1]-A[0],M=void 0;if(P>=1){if(P>1&&!p){var I=Mee(f,A[0]);u.attr({x:I[0]+S,y:I[1]+x}),a&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(w,T);I&&u.attr({x:I[0]+S,y:I[1]+x});var R=d.getRawValue(A[0]),L=d.getRawValue(A[1]);a&&(M=IZ(i,g,R,L,$.t))}o.lastFrameIndex=A[0]}else{var D=n===1||o.lastFrameIndex>0?A[0]:0,I=Mee(f,D);a&&(M=d.getRawValue(D)),u.attr({x:I[0]+S,y:I[1]+x})}if(a){var B=yg(u);typeof B.setLabelText=="function"&&B.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=tGe(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=d.current,g=d.stackedOnCurrent,v=d.next,m=d.stackedOnNext;if(a&&(p=_c(d.current,i,a,l),g=_c(d.stackedOnCurrent,i,a,l),v=_c(d.next,i,a,l),m=_c(d.stackedOnNext,i,a,l)),Aee(p,v)>3e3||c&&Aee(g,m)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:v}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),Rt(u,y,f),c&&(c.setShape({points:p,stackedOnPoints:g}),c.stopAnimation(),Rt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],O=d.status,w=0;w<O.length;w++){var S=O[w].cmd;if(S==="="){var x=n.getItemGraphicEl(O[w].idx1);x&&b.push({el:x,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,$=0;$<b.length;$++){var A=b[$].el,P=b[$].ptIdx*2;A.x=T[P],A.y=T[P+1],A.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Jt);function Gy(t,e){return{seriesType:t,plan:$g(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,o=n.pipelineContext,a=e||o.large;if(i){var s=me(i.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Kl(r,s[0])&&(s[0]=u),Kl(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(p,g){for(var v=p.end-p.start,m=a&&Xs(v*l),y=[],b=[],O=p.start,w=0;O<p.end;O++){var S=void 0;if(l===1){var x=c.get(f,O);S=i.dataToPoint(x,null,b)}else y[0]=c.get(f,O),y[1]=c.get(d,O),S=i.dataToPoint(y,null,b);a?(m[w++]=S[0],m[w++]=S[1]):g.setItemLayout(O,S.slice())}a&&g.setLayout("points",m)}}}}}}var pGe={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var i=t[r],o=Math.abs(i);o>e&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},gGe=function(t){return Math.round(t.length/2)};function Dee(t){return{seriesType:t,reset:function(e,n,r){var i=e.getData(),o=e.get("sampling"),a=e.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),p=Math.round(s/d);if(isFinite(p)&&p>1){o==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p));var g=void 0;Ie(o)?g=pGe[o]:ze(o)&&(g=o),g&&e.setData(i.downSample(i.mapDimension(u.dim),1/p,g,gGe))}}}}}function vGe(t){t.registerChartView(hGe),t.registerSeriesModel(qHe),t.registerLayout(Gy("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dee("line"))}var jy=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(i)V(o.getAxes(),function(d,p){if(d.type==="category"&&r!=null){var g=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),m=a[p],y=r[p]==="x1"||r[p]==="y1";if(y&&!v&&(m+=1),g.length<2)return;if(g.length===2){s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var b=void 0,O=void 0,w=1,S=0;S<g.length;S++){var x=g[S].coord,T=S===g.length-1?g[S-1].tickValue+w:g[S].tickValue;if(T===m){O=x;break}else if(T<m)b=x;else if(b!=null&&T>m){O=(x+b)/2;break}S===1&&(w=T-g[0].tickValue)}O==null&&(b?b&&(O=g[g.length-1].coord):O=g[0].coord),s[p]=d.toGlobalCoord(O)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(on);on.registerClass(jy);var mGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return Us(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=fc(jy.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(jy),yGe=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Bx=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new yGe},e.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,u=a+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,p=Math.PI*2,g=d?f-c<p:c-f<p;g||(c=f-(d?p:-p));var v=Math.cos(c),m=Math.sin(c),y=Math.cos(f),b=Math.sin(f);g?(n.moveTo(v*a+i,m*a+o),n.arc(v*u+i,m*u+o,l,-Math.PI+c,c,!d)):n.moveTo(v*s+i,m*s+o),n.arc(i,o,s,c,f,!d),n.arc(y*u+i,b*u+o,l,f-Math.PI*2,f-Math.PI,!d),a!==0&&n.arc(i,o,a,f,c,d)},e}(yt);function bGe(t,e){e=e||{};var n=e.isRoundCap;return function(r,i,o){var a=i.position;if(!a||a instanceof Array)return tS(r,i,o);var s=t(a),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,p=u.r0,g=(d+p)/2,v=u.startAngle,m=u.endAngle,y=(v+m)/2,b=n?Math.abs(d-p)/2:0,O=Math.cos,w=Math.sin,S=c+d*O(v),x=f+d*w(v),T="left",$="top";switch(s){case"startArc":S=c+(p-l)*O(y),x=f+(p-l)*w(y),T="center",$="top";break;case"insideStartArc":S=c+(p+l)*O(y),x=f+(p+l)*w(y),T="center",$="bottom";break;case"startAngle":S=c+g*O(v)+Vx(v,l+b,!1),x=f+g*w(v)+zx(v,l+b,!1),T="right",$="middle";break;case"insideStartAngle":S=c+g*O(v)+Vx(v,-l+b,!1),x=f+g*w(v)+zx(v,-l+b,!1),T="left",$="middle";break;case"middle":S=c+g*O(y),x=f+g*w(y),T="center",$="middle";break;case"endArc":S=c+(d+l)*O(y),x=f+(d+l)*w(y),T="center",$="bottom";break;case"insideEndArc":S=c+(d-l)*O(y),x=f+(d-l)*w(y),T="center",$="top";break;case"endAngle":S=c+g*O(m)+Vx(m,l+b,!0),x=f+g*w(m)+zx(m,l+b,!0),T="left",$="middle";break;case"insideEndAngle":S=c+g*O(m)+Vx(m,-l+b,!0),x=f+g*w(m)+zx(m,-l+b,!0),T="right",$="middle";break;default:return tS(r,i,o)}return r=r||{},r.x=S,r.y=x,r.align=T,r.verticalAlign=$,r}}function _Ge(t,e,n,r){if(Et(r)){t.setTextConfig({rotation:r});return}else if(ge(e)){t.setTextConfig({rotation:0});return}var i=t.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,l,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function Vx(t,e,n){return e*Math.sin(t)*(n?-1:1)}function zx(t,e,n){return e*Math.cos(t)*(n?1:-1)}function jd(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;ge(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:me(r,function(o){return ns(o,i)})}}var Nk=Math.max,Lk=Math.min;function OGe(t,e){var n=t.getArea&&t.getArea();if(Gd(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var wGe=function(t){re(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,i,o){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var a=n.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,o)):process.env.NODE_ENV!=="production"&&En("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){cc(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,i,o){var a=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,p=SGe(n,u);p&&this._enableRealtimeSort(p,s,i);var g=n.get("clip",!0)||p,v=OGe(u,s);a.removeClipPath();var m=n.get("roundCap",!0),y=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),O=b.get("borderRadius")||0,w=[],S=this._backgroundEls,x=o&&o.isInitSort,T=o&&o.type==="changeAxisOrder";function $(M){var I=Fx[u.type](s,M),R=EGe(u,f,I);return R.useStyle(b.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",O):R.setShape("cornerRadius",O),w[M]=R,R}s.diff(l).add(function(M){var I=s.getItemModel(M),R=Fx[u.type](s,M,I);if(y&&$(M),!(!s.hasValue(M)||!Bee[u.type](R))){var L=!1;g&&(L=Ree[u.type](v,R));var D=kee[u.type](n,s,M,R,f,d,c.model,!1,m);p&&(D.forceLabelAnimation=!0),zee(D,s,M,I,R,n,f,u.type==="polar"),x?D.attr({shape:R}):p?Nee(p,d,D,R,M,f,!1,!1):vn(D,{shape:R},n,M),s.setItemGraphicEl(M,D),a.add(D),D.ignore=L}}).update(function(M,I){var R=s.getItemModel(M),L=Fx[u.type](s,M,R);if(y){var D=void 0;S.length===0?D=$(I):(D=S[I],D.useStyle(b.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",O):D.setShape("cornerRadius",O),w[M]=D);var B=Fx[u.type](s,M),F=Hee(f,B,u);Rt(D,{shape:F},d,M)}var z=l.getItemGraphicEl(I);if(!s.hasValue(M)||!Bee[u.type](L)){a.remove(z);return}var W=!1;if(g&&(W=Ree[u.type](v,L),W&&a.remove(z)),z?os(z):z=kee[u.type](n,s,M,L,f,d,c.model,!!z,m),p&&(z.forceLabelAnimation=!0),T){var j=z.getTextContent();if(j){var H=yg(j);H.prevValue!=null&&(H.prevValue=H.value)}}else zee(z,s,M,R,L,n,f,u.type==="polar");x?z.attr({shape:L}):p?Nee(p,d,z,L,M,f,!0,T):Rt(z,{shape:L},n,M,null),s.setItemGraphicEl(M,z),z.ignore=W,a.add(z)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&ly(I,n,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new qe);A.removeAll();for(var P=0;P<w.length;++P)A.add(w[P]);a.add(A),this._backgroundEls=w,this._data=s},e.prototype._renderLarge=function(n,r,i){this._clear(),Wee(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),Wee(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&Hy(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,i){var o=this;if(r.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,i){var o=[];return n.each(n.mapDimension(r.dim),function(a,s){var l=i(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:me(o,function(a){return a.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var o=i.scale,a=n.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(n,r,i,o){if(this._isOrderChangedWithinSameData(n,r,i)){var a=this._dataSort(n,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(n,r,i){var o=r.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){ly(o,n,Ke(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Jt),Ree={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=Nk(e.x,t.x),s=Lk(e.x+e.width,i),l=Nk(e.y,t.y),u=Lk(e.y+e.height,o),c=s<a,f=u<l;return e.x=c&&a>i?s:a,e.y=f&&l>o?u:l,e.width=c?0:s-a,e.height=f?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=Lk(e.r,t.r),o=Nk(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return a}},kee={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Pt({shape:he({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?Bx:Ci,c=new u({shape:r,z2:1});c.name="item";var f=Vee(i);if(c.calculateTextPosition=bGe(f,{isRoundCap:u===Bx}),o){var d=c.shape,p=i?"r":"endAngle",g={};d[p]=i?r.r0:r.startAngle,g[p]=r[p],(s?Rt:vn)(c,{shape:g},o)}return c}};function SGe(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&n&&(r.type!=="category"&&En("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&En("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Nee(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Rt:vn)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?Rt:vn)(n,{shape:u},c,i)}function Lee(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var xGe=["x","y","width","height"],CGe=["cx","cy","r","startAngle","endAngle"],Bee={cartesian2d:function(t){return!Lee(t,xGe)},polar:function(t){return!Lee(t,CGe)}},Fx={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?PGe(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function TGe(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Vee(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function zee(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=t.shape,f=jd(r.getModel("itemStyle"),c,!0);he(c,f),t.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=_r(r);Gr(t,g,{labelFetcher:o,labelDataIndex:n,defaultText:Fg(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var v=t.getTextContent();if(s&&v){var m=r.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,_Ge(t,m==="outside"?p:m,Vee(a),r.get(["label","rotate"]))}fY(v,g,o.getRawValue(n),function(b){return yee(e,b)});var y=r.getModel(["emphasis"]);Ln(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Hr(t,r),TGe(i)&&(t.style.fill="none",t.style.stroke="none",V(t.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function PGe(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var $Ge=function(){function t(){}return t}(),Fee=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new $Ge},e.prototype.buildPath=function(n,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[o]=u,l[a]=i[c+2],s[o]=i[c+o],s[a]=i[c+a],n.rect(s[0],s[1],l[0],l[1])},e}(yt);function Wee(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Fee({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var f=new Fee({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),Ke(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",Qee),f.on("mousemove",Qee)),n&&n.push(f)}var Qee=ex(function(t){var e=this,n=AGe(e,t.offsetX,t.offsetY);Ke(e).dataIndex=n>=0?n:null},30,!1);function AGe(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function Hee(t,e,n){if(Gd(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}else{var i=n.getArea(),o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:Math.PI*2}}}function EGe(t,e,n){var r=t.type==="polar"?Ci:Pt;return new r({shape:Hee(e,n,t),silent:!0,z2:0})}function MGe(t){t.registerChartView(wGe),t.registerSeriesModel(mGe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tt(sJ,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lJ("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dee("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Gee=Math.PI*2,Wx=Math.PI/180;function jee(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Uee(t,e){var n=jee(t,e),r=t.get("center"),i=t.get("radius");ge(i)||(i=[0,i]);var o=Ee(n.width,e.getWidth()),a=Ee(n.height,e.getHeight()),s=Math.min(o,a),l=Ee(i[0],s/2),u=Ee(i[1],s/2),c,f,d=t.coordinateSystem;if(d){var p=d.dataToPoint(r);c=p[0]||0,f=p[1]||0}else ge(r)||(r=[r,r]),c=Ee(r[0],o)+n.x,f=Ee(r[1],a)+n.y;return{cx:c,cy:f,r0:l,r:u}}function IGe(t,e,n){e.eachSeriesByType(t,function(r){var i=r.getData(),o=i.mapDimension("value"),a=jee(r,n),s=Uee(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*Wx,p=r.get("endAngle"),g=r.get("padAngle")*Wx;p=p==="auto"?d-Gee:-p*Wx;var v=r.get("minAngle")*Wx,m=v+g,y=0;i.each(o,function(F){!isNaN(F)&&y++});var b=i.getSum(o),O=Math.PI/(b||y)*2,w=r.get("clockwise"),S=r.get("roseType"),x=r.get("stillShowZeroSum"),T=i.getDataExtent(o);T[0]=0;var $=w?1:-1,A=[d,p],P=$*g/2;pD(A,!w),d=A[0],p=A[1];var M=Zee(r);M.startAngle=d,M.endAngle=p,M.clockwise=w;var I=Math.abs(p-d),R=I,L=0,D=d;if(i.setLayout({viewRect:a,r:c}),i.each(o,function(F,z){var W;if(isNaN(F)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?W=b===0&&x?O:F*O:W=I/y,W<m?(W=m,R-=m):L+=F;var j=D+$*W,H=0,Z=0;g>W?(H=D+$*W/2,Z=H):(H=D+P,Z=j-P),i.setItemLayout(z,{angle:W,startAngle:H,endAngle:Z,clockwise:w,cx:l,cy:u,r0:f,r:S?qt(F,T,[f,c]):c}),D=j}),R<Gee&&y)if(R<=.001){var B=I/y;i.each(o,function(F,z){if(!isNaN(F)){var W=i.getItemLayout(z);W.angle=B;var j=0,H=0;B<g?(j=d+$*(z+1/2)*B,H=j):(j=d+$*z*B+P,H=d+$*(z+1)*B-P),W.startAngle=j,W.endAngle=H}})}else O=R/L,D=d,i.each(o,function(F,z){if(!isNaN(F)){var W=i.getItemLayout(z),j=W.angle===m?m:F*O,H=0,Z=0;j<g?(H=D+$*j/2,Z=H):(H=D+P,Z=D+$*j-P),W.startAngle=H,W.endAngle=Z,D+=$*j}})})}var Zee=Tt();function Uy(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=e.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s<r.length;s++)if(!r[s].isSelected(a))return!1;return!0})}}}}var DGe=Math.PI/180;function Xee(t,e,n,r,i,o,a,s,l,u){if(t.length<2)return;function c(v){for(var m=v.rB,y=m*m,b=0;b<v.list.length;b++){var O=v.list[b],w=Math.abs(O.label.y-n),S=r+O.len,x=S*S,T=Math.sqrt((1-Math.abs(w*w/y))*x),$=e+(T+O.len2)*i,A=$-O.label.x,P=O.targetTextWidth-A*i;Yee(O,P,!0),O.label.x=$}}function f(v){for(var m={list:[],maxY:0},y={list:[],maxY:0},b=0;b<v.length;b++)if(v[b].labelAlignTo==="none"){var O=v[b],w=O.label.y>n?y:m,S=Math.abs(O.label.y-n);if(S>=w.maxY){var x=O.label.x-e-O.len2*i,T=r+O.len,$=Math.abs(x)<T?Math.sqrt(S*S/(1-x*x/T/T)):T;w.rB=$,w.maxY=S}w.list.push(O)}c(m),c(y)}for(var d=t.length,p=0;p<d;p++)if(t[p].position==="outer"&&t[p].labelAlignTo==="labelLine"){var g=t[p].label.x-u;t[p].linePoints[1][0]+=g,t[p].label.x=u}BJ(t,l,l+a)&&f(t)}function RGe(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;Bk(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(f=Math.max(f,p.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var g=t[d];if(!Bk(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var p=g.label,v=g.linePoints,m=void 0;g.labelAlignTo==="edge"?p.x<e?m=v[2][0]-g.labelDistance-a-g.edgeDistance:m=a+i-g.edgeDistance-v[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?p.x<e?m=c-a-g.bleedMargin:m=a+i-f-g.bleedMargin:p.x<e?m=p.x-a-g.bleedMargin:m=a+i-p.x-g.bleedMargin,g.targetTextWidth=m,Yee(g,m)}}Xee(u,e,n,r,1,i,o,a,s,f),Xee(l,e,n,r,-1,i,o,a,s,c);for(var d=0;d<t.length;d++){var g=t[d];if(!Bk(g)&&g.linePoints){var p=g.label,v=g.linePoints,y=g.labelAlignTo==="edge",b=p.style.padding,O=b?b[1]+b[3]:0,w=p.style.backgroundColor?0:O,S=g.rect.width+w,x=v[1][0]-v[2][0];y?p.x<e?v[2][0]=a+g.edgeDistance+S+g.labelDistance:v[2][0]=a+i-g.edgeDistance-S-g.labelDistance:(p.x<e?v[2][0]=p.x+g.labelDistance:v[2][0]=p.x-g.labelDistance,v[1][0]=v[2][0]+x),v[1][1]=v[2][1]=p.y}}}function Yee(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var f=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,g=e<c?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",g)}var v=r.getBoundingRect();o.width=v.width;var m=(r.style.margin||0)+2.1;o.height=v.height+m,o.y-=(o.height-f)/2}}}function Bk(t){return t.position==="center"}function kGe(t){var e=t.getData(),n=[],r,i,o=!1,a=(t.get("minShowLabelAngle")||0)*DGe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function p(x){x.ignore=!0}function g(x){if(!x.ignore)return!0;for(var T in x.states)if(x.states[T].ignore===!1)return!0;return!1}e.each(function(x){var T=e.getItemGraphicEl(x),$=T.shape,A=T.getTextContent(),P=T.getTextGuideLine(),M=e.getItemModel(x),I=M.getModel("label"),R=I.get("position")||M.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),D=I.get("alignTo"),B=Ee(I.get("edgeDistance"),u),F=I.get("bleedMargin"),z=M.getModel("labelLine"),W=z.get("length");W=Ee(W,u);var j=z.get("length2");if(j=Ee(j,u),Math.abs($.endAngle-$.startAngle)<a){V(A.states,p),A.ignore=!0,P&&(V(P.states,p),P.ignore=!0);return}if(g(A)){var H=($.startAngle+$.endAngle)/2,Z=Math.cos(H),J=Math.sin(H),se,oe,de,ie;r=$.cx,i=$.cy;var ue=R==="inside"||R==="inner";if(R==="center")se=$.cx,oe=$.cy,ie="center";else{var ee=(ue?($.r+$.r0)/2*Z:$.r*Z)+r,X=(ue?($.r+$.r0)/2*J:$.r*J)+i;if(se=ee+Z*3,oe=X+J*3,!ue){var Y=ee+Z*(W+l-$.r),le=X+J*(W+l-$.r),ve=Y+(Z<0?-1:1)*j,ye=le;D==="edge"?se=Z<0?c+B:c+u-B:se=ve+(Z<0?-L:L),oe=ye,de=[[ee,X],[Y,le],[ve,ye]]}ie=ue?"center":D==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Ne=Math.PI,Be=0,Me=I.get("rotate");if(Et(Me))Be=Me*(Ne/180);else if(R==="center")Be=0;else if(Me==="radial"||Me===!0){var $e=Z<0?-H+Ne:-H;Be=$e}else if(Me==="tangential"&&R!=="outside"&&R!=="outer"){var _e=Math.atan2(Z,J);_e<0&&(_e=Ne*2+_e);var De=J>0;De&&(_e=Ne+_e),Be=_e-Ne}if(o=!!Be,A.x=se,A.y=oe,A.rotation=Be,A.setStyle({verticalAlign:"middle"}),ue){A.setStyle({align:ie});var vt=A.states.select;vt&&(vt.x+=A.x,vt.y+=A.y)}else{var Fe=A.getBoundingRect().clone();Fe.applyTransform(A.getComputedTransform());var ct=(A.style.margin||0)+2.1;Fe.y-=ct/2,Fe.height+=ct,n.push({label:A,labelLine:P,position:R,len:W,len2:j,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new ot(Z,J),linePoints:de,textAlign:ie,labelDistance:L,labelAlignTo:D,edgeDistance:B,bleedMargin:F,rect:Fe,unconstrainedWidth:Fe.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:ue})}}),!o&&t.get("avoidLabelOverlap")&&RGe(n,r,i,l,u,d,c,f);for(var v=0;v<n.length;v++){var m=n[v],y=m.label,b=m.labelLine,O=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),O&&(V(y.states,p),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(b){var S=m.linePoints;O||!S?(V(b.states,p),b.ignore=!0):(kJ(S,m.minTurnAngle),iHe(S,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:S}),y.__hostTarget.textGuideLineConfig={anchor:new ot(S[0][0],S[0][1])})}}}var NGe=function(t){re(e,t);function e(n,r,i){var o=t.call(this)||this;o.z2=2;var a=new $t;return o.setTextContent(a),o.updateData(n,r,i,!0),o}return e.prototype.updateData=function(n,r,i,o){var a=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=he(jd(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){a.setShape(f);return}if(o){a.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(vn(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=f.cx,a.originY=f.cy):d==="scale"?(a.shape.r=c.r0,vn(a,{shape:{r:c.r}},s,r)):i!=null?(a.setShape({startAngle:i,endAngle:i}),vn(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(a.shape.endAngle=c.startAngle,Rt(a,{shape:{endAngle:c.endAngle}},s,r))}else os(a),Rt(a,{shape:f},s,r);a.useStyle(n.getItemVisual(r,"style")),Hr(a,l);var p=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),v=Math.cos(p)*g,m=Math.sin(p)*g,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,n,r),a.ensureState("emphasis").shape=he({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},jd(u.getModel("itemStyle"),c)),he(a.ensureState("select"),{x:v,y:m,shape:jd(l.getModel(["select","itemStyle"]),c)}),he(a.ensureState("blur"),{shape:jd(l.getModel(["blur","itemStyle"]),c)});var b=a.getTextGuideLine(),O=a.getTextContent();b&&he(b.ensureState("select"),{x:v,y:m}),he(O.ensureState("select"),{x:v,y:m}),Ln(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r,i){var o=this,a=r.getItemModel(i),s=a.getModel("labelLine"),l=r.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Gr(o,_r(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var f=o.getTextContent();o.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Pi,this.setTextGuideLine(p)),vk(this,mk(a),{stroke:u,opacity:_o(s.get(["lineStyle","opacity"]),c,1)})}},e}(Ci),LGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i,o){var a=n.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var c=a.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<a.count();++f)c=a.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&n.get("showEmptyCircle")){var d=Zee(n),p=new Ci({shape:he(Uee(n,i),d)});p.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}a.diff(s).add(function(g){var v=new NGe(a,g,u);a.setItemGraphicEl(g,v),l.add(v)}).update(function(g,v){var m=s.getItemGraphicEl(v);m.updateData(a,g,u),m.off("click"),l.add(m),a.setItemGraphicEl(g,m)}).remove(function(g){var v=s.getItemGraphicEl(g);ly(v,n,g)}).execute(),kGe(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="pie",e}(Jt);function Wg(t,e,n){e=ge(e)&&{coordDimensions:e}||he({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Ng(r,e).dimensions,o=new ci(i,t);return o.initData(r,n),o}var Zy=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}(),BGe=Tt(),VGe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zy(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Wg(this,{coordDimensions:["value"],encodeDefaulter:tt(iR,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),i=BGe(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=mZ(a,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){rd(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(on);function zGe(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(i){var o=r.mapDimension("value"),a=r.get(o,i);return!(Et(a)&&!isNaN(a)&&a<0)})}}}function FGe(t){t.registerChartView(LGe),t.registerSeriesModel(VGe),Jq("pie",t.registerAction),t.registerLayout(tt(IGe,"pie")),t.registerProcessor(Uy("pie")),t.registerProcessor(zGe("pie"))}var WGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(on),qee=4,QGe=function(){function t(){}return t}(),HGe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new QGe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var i=r.points,o=r.size,a=this.symbolProxy,s=a.shape,l=n.getContext?n.getContext():n,u=l&&o[0]<qee,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],p=i[f++];isNaN(d)||isNaN(p)||c&&!c.contain(d,p)||(s.x=d-o[0]/2,s.y=p-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,i=n.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||a&&!a.contain(l,u)||o.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var i=this.shape,o=i.points,a=i.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=o.length/2-1;u>=0;u--){var c=u*2,f=o[c]-s/2,d=o[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,o=r.size,a=o[0],s=o[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var p=i[d++],g=i[d++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(g,u),f=Math.max(g,f)}n=this._rect=new at(l-a/2,u-s/2,c-l+a,f-u+s)}return n},e}(yt),GGe=function(){function t(){this.group=new qe}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var i=this._newAdded[0],o=n.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:o}),this._setCommon(u,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new HGe({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var i=n.hostModel;r=r||{};var o=n.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=r.clipShape||null,e.symbolProxy=Xn(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<qee;e.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Ke(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),jGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,i){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=Gy("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(n,r){var i=this._symbolDraw,o=r.pipelineContext,a=o.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new GGe:new Qy,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Jt),UGe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(dt),Vk=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jn).models[0]},e.type="cartesian2dAxis",e}(dt);Wn(Vk,Vg);var Kee={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ZGe=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Kee),zk=it({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Kee),XGe=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},zk),YGe=Ge({logBase:10},zk);const Jee={category:ZGe,value:zk,time:XGe,log:YGe};var qGe={value:1,category:1,time:1,log:1};function Qg(t,e,n,r){V(qGe,function(i,o){var a=it(it({},Jee[o],!0),r,!0),s=function(l){re(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=vy(this),p=d?Sg(c):{},g=f.getTheme();it(c,g.get(o+"Axis")),it(c,this.getDefaultOption()),c.type=ete(c),d&&dc(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=nk.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+o,u.defaultOption=a,u}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ete)}function ete(t){return t.type||(t.data?"category":"value")}var KGe=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return me(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Yt(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}(),Fk=["x","y"];function tte(t){return t.type==="interval"||t.type==="time"}var JGe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Fk,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!tte(n)||!tte(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,p=a[1]-o[0]*f,g=this._transform=[c,0,0,f,d,p];this._invTransform=Zf([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new at(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},e.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Ir(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},e.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Ir(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new at(o,a,s,l)},e}(KGe),eje=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(ma);function Wk(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g=u==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=[u==="y"?g[d[l]]:f[0],u==="x"?g[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?g[d[s]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Un(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function nte(t){return t.get("coordinateSystem")==="cartesian2d"}function rte(t){var e={xAxisModel:null,yAxisModel:null};return V(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Jn).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(i+' "'+_o(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=o}),e}var Qk=Math.log;function ite(t,e,n){var r=Jl.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=gJ(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=Qk(t.base);u=[Qk(u[0])/d,Qk(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var p=r.getExtent.call(t);c&&(u[0]=p[0]),f&&(u[1]=p[1]);var g=r.getInterval.call(t),v=u[0],m=u[1];if(c&&f)g=(m-v)/a;else if(c)for(m=u[0]+g*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)g=ik(g),m=u[0]+g*a;else if(f)for(v=u[1]-g*a;v>u[0]&&isFinite(v)&&isFinite(u[0]);)g=ik(g),v=u[1]-g*a;else{var y=t.getTicks().length-1;y>a&&(g=ik(g));var b=g*a;m=Math.ceil(u[1]/g)*g,v=Nn(m-b),v<0&&u[0]>=0?(v=0,m=Nn(b)):m>0&&u[1]<=0&&(m=0,v=-Nn(b))}var O=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;if(r.setExtent.call(t,v+g*O,m+g*w),r.setInterval.call(t,g),(O||w)&&r.setNiceExtent.call(t,v+g,m-g),process.env.NODE_ENV!=="production"){var S=r.getTicks.call(t);S[1]&&(!YQe(g)||rS(S[1].value)>rS(g))&&En("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var tje=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fk,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function i(a){var s,l=bt(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],p=a[d],g=p.model,v=p.scale;rk(v)&&g.get("alignTicks")&&g.get("interval")==null?c.push(p):(Ld(v,g),rk(v)&&(s=p))}c.length&&(s||(s=c.pop(),Ld(s.scale,s.model)),V(c,function(m){ite(m.scale,m.model,s.scale)}))}}i(r.x),i(r.y);var o={};V(r.x,function(a){ote(r,"y",a,o)}),V(r.y,function(a){ote(r,"x",a,o)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var i=e.getBoxLayoutParams(),o=!r&&e.get("containLabel"),a=er(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(V(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=_9e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),V(this._coordsList,function(u){u.calcAffineTransform()});function l(){V(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),nje(u,c?a.x:a.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}Qe(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===e||o[i].getAxis("y").index===n)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",Jn).models[0],i=e.yAxisModel||n&&n.getReferringComponents("yAxis",Jn).models[0],o=e.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,st(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,V(s.x,function(c,f){V(s.y,function(d,p){var g="x"+f+"y"+p,v=new JGe(g);v.master=i,v.model=e,i._coordsMap[g]=v,i._coordsList.push(v),v.addAxis(c),v.addAxis(d)})});function u(c){return function(f,d){if(Hk(f,e)){var p=f.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=a.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=a.left?"right":"left"),a[p]=!0;var g=new eje(c,Ny(f),[0,0],f.get("type"),p),v=g.type==="category";g.onBand=v&&f.get("boundaryGap"),g.inverse=f.get("inverse"),f.axis=g,g.model=f,g.grid=o,g.index=d,o._axesList.push(g),s[c][d]=g,l[c]++}}}},t.prototype._updateScale=function(e,n){V(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),e.eachSeries(function(i){if(nte(i)){var o=rte(i),a=o.xAxisModel,s=o.yAxisModel;if(!Hk(a,n)||!Hk(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(i,o){V(Ex(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return V(this.getCartesians(),function(i){var o=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),a=i.getOtherAxis(o);st(n,o)<0&&n.push(o),st(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(i){if(nte(i)){var o=rte(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+_o(a.get("gridIndex"),a.get("gridId"),0)+'" not found');if(a.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},t.dimensions=Fk,t}();function Hk(t,e){return t.getCoordSysModel()===e}function ote(t,e,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=t[e],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)ate(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&ate(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function ate(t){return t&&t.type!=="category"&&t.type!=="time"&&b9e(t)}function nje(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return r-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}var Oc=Math.PI,Ii=function(){function t(e,n){this.group=new qe,this.opt=n,this.axisModel=e,Ge(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new qe({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!ste[e]},t.prototype.add=function(e){ste[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var i=UI(n-e),o,a;return rg(i)?(a=r>0?"top":"bottom",o="center"):rg(i-Oc)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<Oc?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),ste={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Ir(s,s,a),Ir(l,l,a));var c=he({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new br({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});gg(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);Ie(d)&&(d=[d,d]),(Ie(p)||Et(p))&&(p=[p,p]);var g=Id(e.get(["axisLine","symbolOffset"])||0,p),v=p[0],m=p[1];V([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(d[b]!=="none"&&d[b]!=null){var O=Xn(d[b],-v/2,-m/2,v,m,c.stroke,!0),w=y.r+y.offset,S=u?l:s;O.attr({rotation:y.rotate,x:S[0]+w*Math.cos(t.rotation),y:S[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),n.add(O)}})}}},axisTickLabel:function(t,e,n,r){var i=oje(n,r,e,t),o=sje(n,r,e,t);if(ije(e,o,i),aje(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=NJ(me(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));VJ(a)}},axisName:function(t,e,n,r){var i=Un(t.axisName,e.get("name"));if(i){var o=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,ute(o)?t.labelOffset+a*l:0],d,p=e.get("nameRotate");p!=null&&(p=p*Oc/180);var g;ute(o)?d=Ii.innerTextLayout(t.rotation,p??t.rotation,a):(d=rje(t.rotation,o,p||0,u),g=t.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(d.rotation)),!isFinite(g)&&(g=null)));var v=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Un(t.nameTruncateMaxWidth,m.maxWidth,g),O=new $t({x:f[0],y:f[1],rotation:d.rotation,silent:Ii.isLabelSilent(e),style:un(s,{text:i,font:v,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(mg({el:O,componentModel:e,itemName:i}),O.__fullText=i,O.anid="name",e.get("triggerEvent")){var w=Ii.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Ke(O).eventData=w}r.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function rje(t,e,n,r){var i=UI(n-t),o,a,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return rg(i-Oc/2)?(a=l?"bottom":"top",o="center"):rg(i-Oc*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<Oc*1.5&&i>Oc/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function ije(t,e,n){if(!vJ(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(ya(o),ya(u)):lte(o,a)&&(r?(ya(a),ya(c)):(ya(o),ya(u))),i===!1?(ya(s),ya(f)):lte(l,s)&&(i?(ya(l),ya(d)):(ya(s),ya(f)))}}function ya(t){t&&(t.ignore=!0)}function lte(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var i=P0([]);return Yu(i,i,-t.rotation),n.applyTransform(ks([],i,t.getLocalTransform())),r.applyTransform(ks([],i,e.getLocalTransform())),n.intersect(r)}}function ute(t){return t==="middle"||t==="center"}function cte(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Ir(a,a,e),Ir(s,s,e));var c=new br({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});gg(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function oje(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=cte(u,e.transform,l,Ge(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function aje(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Ge(s.getLineStyle(),Ge(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=cte(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)t.add(f[d])}}function sje(t,e,n,r){var i=n.axis,o=Un(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Un(r.labelRotate,a.get("rotate"))||0)*Oc/180,c=Ii.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],p=Ii.isLabelSilent(n),g=n.get("triggerEvent");return V(l,function(v,m){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,b=v.formattedLabel,O=v.rawLabel,w=a;if(f&&f[y]){var S=f[y];Qe(S)&&S.textStyle&&(w=new rn(S.textStyle,a,n.ecModel))}var x=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(y),$=w.getShallow("align",!0)||c.textAlign,A=Je(w.getShallow("alignMinLabel",!0),$),P=Je(w.getShallow("alignMaxLabel",!0),$),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,I=Je(w.getShallow("verticalAlignMinLabel",!0),M),R=Je(w.getShallow("verticalAlignMaxLabel",!0),M),L=new $t({x:T,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(v.level||0),style:un(w,{text:b,align:m===0?A:m===l.length-1?P:$,verticalAlign:m===0?I:m===l.length-1?R:M,fill:ze(x)?x(i.type==="category"?O:i.type==="value"?y+"":y,m):x})});if(L.anid="label_"+y,g){var D=Ii.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=O,D.tickIndex=m,i.type==="category"&&(D.dataIndex=y),Ke(L).eventData=D}e.add(L),L.updateTransform(),d.push(L),t.add(L),L.decomposeTransform()}),d}}function lje(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return uje(n,t,e),n.seriesInvolved&&fje(n,t),n}function uje(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];V(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Xy(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(V(s.getAxes(),tt(v,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||p)&&V(g.baseAxes,tt(v,p?"cross":!0,d)),p&&V(g.otherAxes,tt(v,"cross",!1))}function v(m,y,b){var O=b.model.getModel("axisPointer",i),w=O.get("show");if(!(!w||w==="auto"&&!m&&!Uk(O))){y==null&&(y=O.get("triggerTooltip")),O=m?cje(b,f,i,e,m,y):O;var S=O.get("snap"),x=O.get("triggerEmphasis"),T=Xy(b.model),$=y||S||b.type==="category",A=t.axesInfo[T]={key:T,axis:b,coordSys:s,axisPointerModel:O,triggerTooltip:y,triggerEmphasis:x,involveSeries:$,snap:S,useHandle:Uk(O),seriesModels:[],linkGroup:null};u[T]=A,t.seriesInvolved=t.seriesInvolved||$;var P=dje(o,b);if(P!=null){var M=a[P]||(a[P]={axesInfo:{}});M.axesInfo[T]=A,M.mapper=o[P].mapper,A.linkGroup=M}}}})}function cje(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};V(s,function(d){l[d]=Ue(a.get(d))}),l.snap=t.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=a.get("crossStyle");f&&Ge(u,f.textStyle)}}return t.model.getModel("axisPointer",new rn(l,n,r))}function fje(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||V(t.coordSysAxesInfo[Xy(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function dje(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(Gk(o[r+"AxisId"],n.id)||Gk(o[r+"AxisIndex"],n.componentIndex)||Gk(o[r+"AxisName"],n.name))return i}}function Gk(t,e){return t==="all"||ge(t)&&st(t,e)>=0||t===e}function hje(t){var e=jk(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=Uk(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function jk(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Xy(t)]}function pje(t){var e=jk(t);return e&&e.axisPointerModel}function Uk(t){return!!t.get(["handle","show"])}function Xy(t){return t.type+"||"+t.id}var Zk={},Ud=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){this.axisPointerClass&&hje(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},e.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},e.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=pje(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){if(process.env.NODE_ENV!=="production"&&Zk[n])throw new Error("axisPointer "+n+" exists");Zk[n]=r},e.getAxisPointerClass=function(n){return n&&Zk[n]},e.type="axis",e}(dn),Xk=Tt();function fte(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=Xk(t).splitAreaColors,d=Le(),p=0;if(f)for(var g=0;g<u.length;g++){var v=f.get(u[g].tickValue);if(v!=null){p=(v+(c-1)*g)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=ge(s)?s:[s];for(var g=1;g<u.length;g++){var b=i.toGlobalCoord(u[g].coord),O=void 0,w=void 0,S=void 0,x=void 0;i.isHorizontal()?(O=m,w=l.y,S=b-O,x=l.height,m=O+S):(O=l.x,w=m,S=l.width,x=b-w,m=w+x);var T=u[g-1].tickValue;T!=null&&d.set(T,p),e.add(new Pt({anid:T!=null?"area_"+T:null,shape:{x:O,y:w,width:S,height:x},style:Ge({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}Xk(t).splitAreaColors=d}}}function dte(t){Xk(t).splitAreaColors=null}var gje=["axisLine","axisTickLabel","axisName"],vje=["splitArea","splitLine","minorSplitLine"],hte=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=Wk(s,n),u=new Ii(n,he({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(rk(d[p].getOtherAxis(n.axis).scale))return!0;return!1}},l));V(gje,u.add,u),this._axisGroup.add(u.getGroup()),V(vje,function(f){n.get([f,"show"])&&mje[f](this,this._axisGroup,n,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||cy(a,this._axisGroup,n),t.prototype.render.call(this,n,r,i,o)}},e.prototype.remove=function(){dte(this)},e.type="cartesianAxis",e}(Ud),mje={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=ge(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:o}),d=[],p=[],g=a.getLineStyle(),v=0;v<f.length;v++){var m=i.toGlobalCoord(f[v].coord);u?(d[0]=m,d[1]=l.y,p[0]=m,p[1]=l.y+l.height):(d[0]=l.x,d[1]=m,p[0]=l.x+l.width,p[1]=m);var y=c++%s.length,b=f[v].tickValue,O=new br({anid:b!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Ge({stroke:s[y]},g),silent:!0});gg(O.shape,g.lineWidth),e.add(O)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var g=0;g<u[p].length;g++){var v=i.toGlobalCoord(u[p][g].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var m=new br({anid:"minor_line_"+u[p][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});gg(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r){fte(t,e,n,r)}},pte=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(hte),yje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=pte.type,n}return e.type="yAxis",e}(hte),bje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Pt({shape:n.coordinateSystem.getRect(),style:Ge({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(dn),gte={offset:0};function vte(t){t.registerComponentView(bje),t.registerComponentModel(UGe),t.registerCoordinateSystem("cartesian2d",tje),Qg(t,"x",Vk,gte),Qg(t,"y",Vk,gte),t.registerComponentView(pte),t.registerComponentView(yje),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function _je(t){ht(vte),t.registerSeriesModel(WGe),t.registerChartView(jGe),t.registerLayout(Gy("scatter"))}function Oje(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],i=e.coordinateSystem;if(i){var o=i.getIndicatorAxes();V(o,function(a,s){n.each(n.mapDimension(o[s].dim),function(l,u){r[u]=r[u]||[];var c=i.dataToPoint(l,s);r[u][s]=mte(c)?c:yte(i)})}),n.each(function(a){var s=lU(r[a],function(l){return mte(l)})||yte(i);r[a].push(s.slice()),n.setItemLayout(a,r[a])})}})}function mte(t){return!isNaN(t[0])&&!isNaN(t[1])}function yte(t){return[t.cx,t.cy]}function wje(t){var e=t.polar;if(e){ge(e)||(e=[e]);var n=[];V(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],ge(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}V(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var Sje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=this._data;function u(d,p){var g=d.getItemVisual(p,"symbol")||"circle";if(g!=="none"){var v=Mg(d.getItemVisual(p,"symbolSize")),m=Xn(g,-1,-1,2,2),y=d.getItemVisual(p,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:y*Math.PI/180||0}),m}}function c(d,p,g,v,m,y){g.removeAll();for(var b=0;b<p.length-1;b++){var O=u(v,m);O&&(O.__dimIdx=b,d[b]?(O.setPosition(d[b]),Od[y?"initProps":"updateProps"](O,{x:p[b][0],y:p[b][1]},n,m)):O.setPosition(p[b]),g.add(O))}}function f(d){return me(d,function(p){return[o.cx,o.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var g=new Ti,v=new Pi,m={shape:{points:p}};g.shape.points=f(p),v.shape.points=f(p),vn(g,m,n,d),vn(v,m,n,d);var y=new qe,b=new qe;y.add(v),y.add(g),y.add(b),c(v.shape.points,p,b,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,p){var g=l.getItemGraphicEl(p),v=g.childAt(0),m=g.childAt(1),y=g.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(v.shape.points,b.shape.points,y,s,d,!1),os(m),os(v),Rt(v,b,n),Rt(m,b,n),s.setItemGraphicEl(d,g))}).remove(function(d){a.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var g=s.getItemModel(p),v=d.childAt(0),m=d.childAt(1),y=d.childAt(2),b=s.getItemVisual(p,"style"),O=b.fill;a.add(d),v.useStyle(Ge(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:O})),Hr(v,g,"lineStyle"),Hr(m,g,"areaStyle");var w=g.getModel("areaStyle"),S=w.isEmpty()&&w.parentModel.isEmpty();m.ignore=S,V(["emphasis","select","blur"],function($){var A=g.getModel([$,"areaStyle"]),P=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState($).ignore=P&&S}),m.useStyle(Ge(w.getAreaStyle(),{fill:O,opacity:.7,decal:b.decal}));var x=g.getModel("emphasis"),T=x.getModel("itemStyle").getItemStyle();y.eachChild(function($){if($ instanceof Rr){var A=$.style;$.useStyle(he({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else $.useStyle(b),$.setColor(O),$.style.strokeNoScale=!0;var P=$.ensureState("emphasis");P.style=Ue(T);var M=s.getStore().get(s.getDimensionIndex($.__dimIdx),p);(M==null||isNaN(M))&&(M=""),Gr($,_r(g),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:$.__dimIdx,defaultText:M,inheritColor:O,defaultOpacity:b.opacity})}),Ln(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Jt),xje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zy(Re(this.getData,this),Re(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return Wg(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=Aq(this,n);return Or("section",{header:u,sortBlocks:!0,blocks:me(s,function(f){var d=o.get(o.mapDimension(f.dim),n);return Or("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),i=this.coordinateSystem,o=r.getValues(me(i.dimensions,function(u){return r.mapDimension(u)}),n),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=i.getIndicatorAxes();return i.coordToPoint(l[a].dataToCoord(o[a]),a)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(on),Yy=Jee.value;function Qx(t,e){return Ge({show:e},t)}var Cje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),p=me(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var v=l;g.color!=null&&(v=Ge({color:g.color},l));var m=it(Ue(g),{boundaryGap:n,splitNumber:r,scale:i,axisLine:o,axisTick:a,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(Ie(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else ze(c)&&(m.name=c(m.name,m));var b=new rn(m,null,this.ecModel);return Wn(b,Vg.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:it({lineStyle:{color:"#bbb"}},Yy.axisLine),axisLabel:Qx(Yy.axisLabel,!1),axisTick:Qx(Yy.axisTick,!1),splitLine:Qx(Yy.splitLine,!0),splitArea:Qx(Yy.splitArea,!0),indicator:[]},e}(dt),Tje=["axisLine","axisTickLabel","axisName"],Pje=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group;o.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes(),o=me(i,function(a){var s=a.model.get("showName")?a.name:"",l=new Ii(a.model,{axisName:s,position:[r.cx,r.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});V(o,function(a){V(Tje,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var o=n.get("shape"),a=n.getModel("splitLine"),s=n.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),f=s.get("show"),d=l.get("color"),p=u.get("color"),g=ge(d)?d:[d],v=ge(p)?p:[p],m=[],y=[];function b(D,B,F){var z=F%B.length;return D[z]=D[z]||[],z}if(o==="circle")for(var O=i[0].getTicksCoords(),w=r.cx,S=r.cy,x=0;x<O.length;x++){if(c){var T=b(m,g,x);m[T].push(new Zl({shape:{cx:w,cy:S,r:O[x].coord}}))}if(f&&x<O.length-1){var T=b(y,v,x);y[T].push(new ay({shape:{cx:w,cy:S,r0:O[x].coord,r:O[x+1].coord}}))}}else for(var $,A=me(i,function(D,B){var F=D.getTicksCoords();return $=$==null?F.length-1:Math.min(F.length-1,$),me(F,function(z){return r.coordToPoint(z.coord,B)})}),P=[],x=0;x<=$;x++){for(var M=[],I=0;I<i.length;I++)M.push(A[I][x]);if(M[0]?M.push(M[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),c){var T=b(m,g,x);m[T].push(new Pi({shape:{points:M}}))}if(f&&P){var T=b(y,v,x-1);y[T].push(new Ti({shape:{points:M.concat(P)}}))}P=M.slice().reverse()}var R=l.getLineStyle(),L=u.getAreaStyle();V(y,function(D,B){this.group.add(To(D,{style:Ge({stroke:"none",fill:v[B%v.length]},L),silent:!0}))},this),V(m,function(D,B){this.group.add(To(D,{style:Ge({fill:"none",stroke:g[B%g.length]},R),silent:!0}))},this)},e.type="radar",e}(dn),$je=function(t){re(e,t);function e(n,r,i){var o=t.call(this,n,r,i)||this;return o.type="value",o.angle=0,o.name="",o}return e}(ma),Aje=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=me(e.getIndicatorModels(),function(i,o){var a="indicator_"+o,s=new $je(a,new Jl);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(a),s},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],i=r.angle,o=this.cx+e*Math.cos(i),a=this.cy-e*Math.sin(i);return[o,a]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(n*n+r*r);n/=i,r/=i;for(var o=Math.atan2(-r,n),a=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(o-c.angle);f<a&&(s=c,l=u,a=f)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o)/2;this.cx=Ee(r[0],i),this.cy=Ee(r[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Ie(s)||Et(s))&&(s=[0,s]),this.r0=Ee(s[0],a),this.r=Ee(s[1],a),V(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,i=this._model;V(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();V(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var o=i.get("splitNumber"),a=new Jl;a.setExtent(0,o),a.setInterval(1),V(r,function(s,l){ite(s.scale,s.model,a)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},t.dimensions=[],t}();function Eje(t){t.registerCoordinateSystem("radar",Aje),t.registerComponentModel(Cje),t.registerComponentView(Pje),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function Mje(t){ht(Eje),t.registerChartView(Sje),t.registerSeriesModel(xje),t.registerLayout(Oje),t.registerProcessor(Uy("radar")),t.registerPreprocessor(wje)}var bte="\0_ec_interaction_mutex";function Ije(t,e,n){var r=Yk(t);r[e]=n}function Dje(t,e,n){var r=Yk(t),i=r[e];i===n&&(r[e]=null)}function _te(t,e){return!!Yk(t)[e]}function Yk(t){return t[bte]||(t[bte]={})}ls({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Qn);var qy=function(t){re(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var i=Re(r._mousedownHandler,r),o=Re(r._mousemoveHandler,r),a=Re(r._mouseupHandler,r),s=Re(r._mousewheelHandler,r),l=Re(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Ge(Ue(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",a)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",a),n.off("mousewheel",s),n.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!bU(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,o=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,o)&&(this._x=i,this._y=o,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!Hx("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||_te(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,o=this._x,a=this._y,s=r-o,l=i-a;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&zl(n.event),Ote(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:o,oldY:a,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){bU(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=Hx("zoomOnMouseWheel",n,this._opt),i=Hx("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,a=Math.abs(o),s=n.offsetX,l=n.offsetY;if(!(o===0||!r&&!i)){if(r){var u=a>3?1.4:a>1?1.2:1.1,c=o>0?u:1/u;qk(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);qk(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!_te(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;qk(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(ra);function qk(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(zl(r.event),Ote(t,e,n,r,i))}function Ote(t,e,n,r,i){i.isAvailableBehavior=Re(Hx,null,n,r),t.trigger(e,i)}function Hx(t,e,n){var r=n[t];return!t||r&&(!Ie(r)||e.event[r+"Key"])}function Kk(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function Jk(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Rje={axisPointer:1,tooltip:1,brush:1};function Gx(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Rje.hasOwnProperty(r.mainType)&&i&&i.model!==n}function wte(t){if(Ie(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var eN,jx={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Ste=bt(jx),Ux={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xte=bt(Ux),kje=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=wte(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Illegal svg");this._defsUsePending=[];var i=new qe;this._root=i;var o=[],a=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),$o(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;Bje(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(a){var d=Zx(a);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=Ite(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var p=i;i=new qe,i.add(p),p.scaleX=p.scaleY=f.scale,p.x=f.x,p.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:o}},t.prototype._parseNode=function(e,n,r,i,o,a){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(o=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=n;else{if(!o){var c=eN[s];if(c&&ke(eN,s)){l=c.call(this,e,n);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});n.add(l)}}var p=Cte[s];if(p&&ke(Cte,s)){var g=p.call(this,e),v=e.getAttribute("id");v&&(this._defs[v]=g)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,o,a):m.nodeType===3&&a&&this._parseText(m,l),m=m.nextSibling},t.prototype._parseText=function(e,n){var r=new ag({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ba(n,r),$o(e,r,this._defsUsePending,!1,!1),Nje(r,n);var i=r.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},t.internalField=function(){eN={g:function(e,n){var r=new qe;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new Pt;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,n){var r=new Zl;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,n){var r=new br;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,n){var r=new wS;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,n){var r=e.getAttribute("points"),i;r&&(i=$te(r));var o=new Ti({shape:{points:i||[]},silent:!0});return ba(n,o),$o(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,n){var r=e.getAttribute("points"),i;r&&(i=$te(r));var o=new Pi({shape:{points:i||[]},silent:!0});return ba(n,o),$o(e,o,this._defsUsePending,!1,!1),o},image:function(e,n){var r=new Rr;return ba(n,r),$o(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,n){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new qe;return ba(n,s),$o(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,n){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new qe;return ba(n,s),$o(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(e,n){var r=e.getAttribute("d")||"",i=kX(r);return ba(n,i),$o(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),Cte={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new dg(e,n,r,i);return Tte(t,o),Pte(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new ID(e,n,r);return Tte(t,i),Pte(t,i),i}};function Tte(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function Pte(t,e){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var o={};Mte(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function ba(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ge(e.__inheritedStyle,t.__inheritedStyle))}function $te(t){for(var e=Zx(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function $o(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};t.nodeType===1&&(Fje(t,e),Mte(t,a,s),r||Wje(t,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=Ate(o,"fill",a.fill,n)),a.stroke!=null&&(o.style.stroke=Ate(o,"stroke",a.stroke,n)),V(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),V(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=me(Zx(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}function Nje(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&(a==="middle"&&(s="center"),t.style.textAlign=s)}}var Lje=/^url\(\s*#(.*?)\)/;function Ate(t,e,n,r){var i=n&&n.match(Lje);if(i){var o=na(i[1]);r.push([t,e,o]);return}return n==="none"&&(n=null),n}function Bje(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var Vje=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zx(t){return t.match(Vje)||[]}var zje=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,tN=Math.PI/180;function Fje(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(zje,function(f,d,p){return r.push(d,p),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=Zx(a);switch(i=i||Ui(),s){case"translate":Ka(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Iw(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yu(i,i,-parseFloat(l[0])*tN,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*tN);ks(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*tN);ks(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Ete=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Mte(t,e,n){var r=t.getAttribute("style");if(r){Ete.lastIndex=0;for(var i;(i=Ete.exec(r))!=null;){var o=i[1],a=ke(jx,o)?jx[o]:null;a&&(e[a]=i[2]);var s=ke(Ux,o)?Ux[o]:null;s&&(n[s]=i[2])}}}function Wje(t,e,n){for(var r=0;r<Ste.length;r++){var i=Ste[r],o=t.getAttribute(i);o!=null&&(e[jx[i]]=o)}for(var r=0;r<xte.length;r++){var i=xte[r],o=t.getAttribute(i);o!=null&&(n[Ux[i]]=o)}}function Ite(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function Qje(t,e){var n=new kje;return n.parse(t,e)}var Hje=Le(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Gje=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=Le(),this._freedGraphics=[],this._mapName=e,this._parsedXML=wte(n)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=Uje(e.named),r=n.regions,i=n.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var n,r;try{n=e&&Qje(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,je(r!=null)}catch(m){throw new Error(`Invalid svg format
  347. `+m.message)}var i=new qe;i.add(r),i.isGeoSVGGraphicRoot=!0;var o=n.width,a=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(o!=null?(u=0,f=o):s&&(u=s.x,f=s.width),a!=null?(c=0,d=a):s&&(c=s.y,d=s.height),u==null||c==null){var p=r.getBoundingRect();u==null&&(u=p.x,f=p.width),c==null&&(c=p.y,d=p.height)}l=this._boundingRect=new at(u,c,f,d)}if(s){var g=Ite(s,l);r.scaleX=r.scaleY=g.scale,r.x=g.x,r.y=g.y}i.setClipPath(new Pt({shape:l.plain()}));var v=[];return V(n.named,function(m){Hje.get(m.svgNodeTagLower)!=null&&(v.push(m),jje(m.el))}),{root:i,boundingRect:l,named:v}},t.prototype.useGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(e,r),r)},t.prototype.freeGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);r&&(n.removeKey(e),this._freedGraphics.push(r))},t}();function jje(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function Uje(t){var e=[],n=Le();return V(t,function(r){if(r.namedFrom==null){var i=new I9e(r.name,r.el);e.push(i),n.set(r.name,i)}}),{regions:e,regionsMap:n}}for(var nN=[126,25],Dte="南海诸岛",Zd=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Xd=0;Xd<Zd.length;Xd++)for(var Hg=0;Hg<Zd[Xd].length;Hg++)Zd[Xd][Hg][0]/=10.5,Zd[Xd][Hg][1]/=-10.5/.75,Zd[Xd][Hg][0]+=nN[0],Zd[Xd][Hg][1]+=nN[1];function Zje(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===Dte)return;e.push(new wJ(Dte,me(Zd,function(r){return{type:"polygon",exterior:r}}),nN))}}var Xje={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Yje(t,e){if(t==="china"){var n=Xje[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),e.setCenter(r)}}}var qje=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Kje(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:qje[0]})}var Jje="name",eUe=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=Le(),this._mapName=e,this._specialAreas=r,this._geoJSON=nUe(n)}return t.prototype.load=function(e,n){n=n||Jje;var r=this._parsedMap.get(n);if(!r){var i=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:i,boundingRect:tUe(i)})}var o=Le(),a=[];return V(r.regions,function(s){var l=s.name;e&&ke(e,l)&&(s=s.cloneShallow(l=e[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:r.boundingRect||new at(0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,i;try{i=r?pk(r,e):[]}catch(o){throw new Error(`Invalid geoJson format
  348. `+o.message)}return Zje(n,i),V(i,function(o){var a=o.name;Yje(n,o),Kje(n,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),i},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function tUe(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function nUe(t){return Ie(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Ky=Le();const eu={registerMap:function(t,e,n){if(e.svg){var r=new Gje(t,e.svg);Ky.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;var r=new eUe(t,i,n);Ky.set(t,r)}},getGeoResource:function(t){return Ky.get(t)},getMapForUser:function(t){var e=Ky.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=Ky.get(t);if(!r){process.env.NODE_ENV!=="production"&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.");return}return r.load(e,n)}};var rN=["rect","circle","line","ellipse","polygon","polyline","path"],rUe=Le(rN),iUe=Le(rN.concat(["g"])),oUe=Le(rN.concat(["g"])),Rte=Tt();function Xx(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function kte(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Nte=function(){function t(e){var n=new qe;this.uid=bg("ec_map_draw"),this._controller=new qy(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new qe),n.add(this._svgGroup=new qe)}return t.prototype.draw=function(e,n,r,i,o){var a=e.mainType==="geo",s=e.getData&&e.getData();a&&n.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,p=f.roam,g=!u.childAt(0)||o;g?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):Rt(c,p,e);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:v,isGeo:a,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,i)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=Le(),r=Le(),i=this._regionsGroup,o=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(p,g){return g&&(p=g(p)),p&&[p[0]*o.scaleX+o.x,p[1]*o.scaleY+o.y]}function f(p){for(var g=[],v=!u&&l&&l.project,m=0;m<p.length;++m){var y=c(p[m],v);y&&g.push(y)}return g}function d(p){return{shape:{points:f(p)}}}i.removeAll(),V(e.geo.regions,function(p){var g=p.name,v=n.get(g),m=r.get(g)||{},y=m.dataIdx,b=m.regionModel;v||(v=n.set(g,new qe),i.add(v),y=s?s.indexOfName(g):null,b=e.isGeo?a.getRegionModel(g):s?s.getItemModel(y):null,r.set(g,{dataIdx:y,regionModel:b}));var O=[],w=[];V(p.geometries,function(T){if(T.type==="polygon"){var $=[T.exterior].concat(T.interiors||[]);u&&($=Wte($,u)),V($,function(P){O.push(new Ti(d(P)))})}else{var A=T.points;u&&(A=Wte(A,u,!0)),V(A,function(P){w.push(new Pi(d(P)))})}});var S=c(p.getCenter(),l&&l.project);function x(T,$){if(T.length){var A=new CS({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});v.add(A),Lte(e,A,y,b),Bte(e,A,g,b,a,y,S),$&&(kte(A),V(A.states,kte))}}x(O),x(w,!0)}),n.each(function(p,g){var v=r.get(g),m=v.dataIdx,y=v.regionModel;Vte(e,p,g,y,a,m),zte(e,p,g,y,a),Fte(e,p,g,y,a)},this)},t.prototype._buildSVG=function(e){var n=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var i=this._svgDispatcherMap=Le(),o=!1;V(this._svgGraphicRecord.named,function(a){var s=a.name,l=e.mapOrGeoModel,u=e.data,c=a.svgNodeTagLower,f=a.el,d=u?u.indexOfName(s):null,p=l.getRegionModel(s);if(rUe.get(c)!=null&&f instanceof la&&Lte(e,f,d,p),f instanceof la&&(f.culling=!0),f.z2EmphasisLift=0,!a.namedFrom&&(oUe.get(c)!=null&&Bte(e,f,s,p,l,d,null),Vte(e,f,s,p,l,d),zte(e,f,s,p,l),iUe.get(c)!=null)){var g=Fte(e,f,s,p,l);g==="self"&&(o=!0);var v=i.get(s)||i.set(s,[]);v.push(f)}},this),this._enableBlurEntireSVG(o,e)},t.prototype._enableBlurEntireSVG=function(e,n){if(e&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){vd(o);var a=o.ensureState("blur").style||{};a.opacity==null&&i!=null&&(a.opacity=i),o.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,n){if(e==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var o=i.get(e);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var n=eu.getGeoResource(e);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var n=eu.getGeoResource(e);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,n,r){var i=e.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Kk(a,u.dx,u.dy),r.dispatchAction(he(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Jk(a,u.scale,u.originX,u.originY),r.dispatchAction(he(l(),{totalZoom:a.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!Gx(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=Rte(n).ignore)})},t.prototype._updateMapSelectHandler=function(e,n,r,i){var o=this;n.off("mousedown"),n.off("click"),e.get("selectedMode")&&(n.on("mousedown",function(){o._mouseDownFlag=!0}),n.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},t}();function Lte(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Xx(i),u=Xx(o),c=Xx(s),f=Xx(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),g=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=Dg(g,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,vd(e)}function Bte(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var f=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Gr(e,_r(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},p);var g=e.getTextContent();if(g&&(Rte(g).ignore=g.ignore,e.textConfig&&a)){var v=e.getBoundingRect().clone();e.textConfig.layoutRect=v,e.textConfig.position=[(a[0]-v.x)/v.width*100+"%",(a[1]-v.y)/v.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Vte(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Ke(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function zte(t,e,n,r,i){t.data||mg({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function Fte(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ln(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Rze(e,i,n),a}function Wte(t,e,n){var r=[],i;function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),V(t,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var aUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var a=this.group;if(a.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===n.id){var s=this._mapDraw;s&&a.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new Nte(i);a.add(s.group),s.draw(n,r,i,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(n,r,i){var o=n.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=o.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new Zl({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:lg+1)});if(!f){var p=n.mainSeries.getData(),g=o.getName(l),v=p.indexOfName(g),m=o.getItemModel(l),y=m.getModel("label"),b=p.getItemGraphicEl(v);Gr(d,_r(m),{labelFetcher:{getFormattedLabel:function(O,w){return n.getFormattedLabel(v,w)}},defaultText:g}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(O){bS(d,O)}}a.add(d)}}})},e.type="map",e}(Jt),sUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),o=this.coordinateSystem,a=o.getRegion(i);return a&&o.dataToPoint(a.getCenter())}},n}return e.prototype.getInitialData=function(n){for(var r=Wg(this,{coordDimensions:["value"],encodeDefaulter:tt(iR,this)}),i=Le(),o=[],a=0,s=r.count();a<s;a++){var l=r.getName(a);i.set(l,!0)}var u=eu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return V(u.regions,function(c){var f=c.name;i.get(f)||o.push(f)}),r.appendValues([],o),r},e.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},e.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},e.prototype.formatTooltip=function(n,r,i){for(var o=this.getData(),a=this.getRawValue(n),s=o.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=o.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Or("section",{header:u.join(", "),noHeader:!u.length,blocks:[Or("nameValue",{name:s,value:a})]})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",i=Xn(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return i.setStyle(n.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(on);function lUe(t,e){var n={};return V(t,function(r){r.each(r.mapDimension("value"),function(i,o){var a="ec-"+r.getName(o);n[a]=n[a]||[],isNaN(i)||n[a].push(i)})}),t[0].map(t[0].mapDimension("value"),function(r,i){for(var o="ec-"+t[0].getName(i),a=0,s=1/0,l=-1/0,u=n[o].length,c=0;c<u;c++)s=Math.min(s,n[o][c]),l=Math.max(l,n[o][c]),a+=n[o][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=a/u:f=a,u===0?NaN:f})}function uUe(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),i=r?"o"+r.id:"i"+n.getMapType();(e[i]=e[i]||[]).push(n)}),V(e,function(n,r){for(var i=lUe(me(n,function(a){return a.getData()}),n[0].get("mapValueCalculation")),o=0;o<n.length;o++)n[o].originalData=n[o].getData();for(var o=0;o<n.length;o++)n[o].seriesGroup=n,n[o].needsDrawMap=o===0&&!n[o].getHostGeoModel(),n[o].setData(i.cloneShallow()),n[o].mainSeries=n[0]})}function cUe(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var i={};V(n.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&t.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var p=i[f]||0,g=s.dataToPoint(d.getCenter());i[f]=p+1,l.setItemLayout(c,{point:g,offset:p})}})});var o=n.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!i[s],o.setItemLayout(a,l)}),e[r]=!0}})}var Qte=Ir,Jy=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Wl,r._rawTransformable=new Wl,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,i,o){return this._rect=new at(n,r,i,o),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,i,o){this._transformTo(n,r,i,o),this._viewRect=new at(n,r,i,o)},e.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new at(n,r,i,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(n,r){n&&(this._center=[Ee(n[0],r.getWidth()),Ee(n[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,i=n.y+n.height/2;return[r,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=Ir([],o,n),i=Ir([],i,n),r.originX=o[0],r.originY=o[1],r.x=i[0]-o[0],r.y=i[1]-o[1],r.scaleX=r.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),Mw(this.transform||(this.transform=[]),r.transform||Ui()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Zf(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new Wl;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},e.prototype.dataToPoint=function(n,r,i){var o=r?this._rawTransform:this.transform;return i=i||[],o?Qte(i,n,o):oi(i,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?Qte([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,i){var o=Hte(r);return o===this?o.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var o=Hte(r);return o===this?o.pointToData(i):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e}(Wl);function Hte(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var fUe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Gte=["lng","lat"],jte=function(t){re(e,t);function e(n,r,i){var o=t.call(this,n)||this;o.dimensions=Gte,o.type="geo",o._nameCoordMap=Le(),o.map=r;var a=i.projection,s=eu.load(r,i.nameMap,i.nameProperty),l=eu.getGeoResource(r),u=o.resourceType=l?l.type:null,c=o.regions=s.regions,f=fUe[l.type];o._regionsMap=s.regionsMap,o.regions=s.regions,process.env.NODE_ENV!=="production"&&a&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&En("Map "+r+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||(process.env.NODE_ENV!=="production"&&En("project and unproject must be both provided in the projeciton."),a=null)),o.projection=a;var d;if(a)for(var p=0;p<c.length;p++){var g=c[p].getBoundingRect(a);d=d||g.clone(),d.union(g)}else d=s.boundingRect;return o.setBoundingRect(d.x,d.y,d.width,d.height),o.aspectScale=a?1:Je(i.aspectScale,f.aspectScale),o._invertLongitute=a?!1:f.invertLongitute,o}return e.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new at(n,r,i,o));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(n){return this._regionsMap.get(n)},e.prototype.getRegionByCoord=function(n){for(var r=this.regions,i=0;i<r.length;i++){var o=r[i];if(o.type==="geoJSON"&&o.contain(n))return r[i]}},e.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},e.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},e.prototype.dataToPoint=function(n,r,i){if(Ie(n)&&(n=this.getGeoCoord(n)),n){var o=this.projection;return o&&(n=o.project(n)),n&&this.projectedToPoint(n,r,i)}},e.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},e.prototype.pointToProjected=function(n){return t.prototype.pointToData.call(this,n)},e.prototype.projectedToPoint=function(n,r,i){return t.prototype.dataToPoint.call(this,n,r,i)},e.prototype.convertToPixel=function(n,r,i){var o=Ute(r);return o===this?o.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var o=Ute(r);return o===this?o.pointToData(i):null},e}(Jy);Wn(jte,Jy);function Ute(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Jn).models[0]||{}).coordinateSystem:null}const Zte=jte;function Xte(t,e){var n=t.get("boundingCoords");if(n!=null){var r=n[0],i=n[1];if(!(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(x,T,$,A){for(var P=$-x,M=A-T,I=0;I<=100;I++){var R=I/100,L=o.project([x+P*R,T+M*R]);Bl(r,r,L),Vl(i,i,L)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var f=this.getBoundingRect(),d=t.get("layoutCenter"),p=t.get("layoutSize"),g=e.getWidth(),v=e.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,b,O;d&&p&&(b=[Ee(d[0],g),Ee(d[1],v)],O=Ee(p,Math.min(g,v)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(O)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var w;if(y)w={},m>1?(w.width=O,w.height=O/m):(w.height=O,w.width=O*m),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var S=t.getBoxLayoutParams();S.aspect=m,w=er(S,{width:g,height:v})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function dUe(t,e){V(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var hUe=function(){function t(){this.dimensions=Gte}return t.prototype.create=function(e,n){var r=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new Zte(l+s,l,he({nameMap:a.get("nameMap")},i(a)));u.zoomLimit=a.get("scaleLimit"),r.push(u),a.coordinateSystem=u,u.model=a,u.resize=Xte,u.resize(a,n)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=r[l]}});var o={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),V(o,function(a,s){var l=me(a,function(c){return c.get("nameMap")}),u=new Zte(s,s,he({nameMap:Tw(l)},i(a[0])));u.zoomLimit=Un.apply(null,me(a,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xte,u.resize(a[0],n),V(a,function(c){c.coordinateSystem=u,dUe(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,i){for(var o=(e||[]).slice(),a=Le(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);var l=eu.load(n,r,i);return V(l.regions,function(u){var c=u.name;!a.get(c)&&o.push({name:c})}),o},t}(),Yte=new hUe,pUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,i){var o=eu.getGeoResource(n.map);if(o&&o.type==="geoJSON"){var a=n.itemStyle=n.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(n,i),rd(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=Yte.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=ta(r.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new rn(a,n,n.ecModel)),a.selected&&(i[s]=!0)),o},Le()),r.selectedMap||(r.selectedMap=i)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new rn(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(n,r){var i=this.getRegionModel(n),o=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),a={name:n};if(ze(o))return a.status=r,o(a);if(Ie(o))return o.replace("{a}",n??"")},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.select=function(n){var r=this.option,i=r.selectedMode;if(i){i!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[n]=!0}},e.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},e.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},e.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(dt);function qte(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function iN(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(qte(t,s),r)),a!=null){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),f=(e.originY-t.y)*(a-1);t.x-=c,t.y-=f,t.updateTransform(),t.setCenter(qte(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var gUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return e.prototype.init=function(n,r){this._api=r},e.prototype.render=function(n,r,i,o){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Nte(i));var a=this._mapDraw;a.draw(n,r,i,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=n.get("silent"),this.group.add(a.group),this.updateSelectStatus(n,r,i)},e.prototype._handleRegionClick=function(n){var r;Md(n.target,function(i){return(r=Ke(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(n,r,i){var o=this;this._mapDraw.group.traverse(function(a){var s=Ke(a).eventData;if(s)return o._model.isSelected(s.name)?i.enterSelect(a):i.leaveSelect(a),!0})},e.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(dn);function vUe(t,e,n){eu.registerMap(t,e,n)}function Kte(t){t.registerCoordinateSystem("geo",Yte),t.registerComponentModel(pUe),t.registerComponentView(gUe),t.registerImpl("registerMap",vUe),t.registerImpl("getMap",function(n){return eu.getMapForUser(n)});function e(n,r){r.update="geo:updateSelectStatus",t.registerAction(r,function(i,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:i},function(l){l[n](i.name);var u=l.coordinateSystem;V(u.regions,function(f){a[f.name]=l.isSelected(f.name)||!1});var c=[];V(a,function(f,d){a[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:a,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,i){var o=n.componentType||"series";r.eachComponent({mainType:o,query:n},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=iN(s,n,a.get("scaleLimit"),i);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&V(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function mUe(t){ht(Kte),t.registerChartView(aUe),t.registerSeriesModel(sUe),t.registerLayout(cUe),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,uUe),Jq("map",t.registerAction)}function yUe(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[e],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(s)}}function bUe(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){wUe(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=SUe(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function _Ue(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Jte(t){return arguments.length?t:TUe}function eb(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function OUe(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wUe(t){for(var e=t.children,n=e.length,r=0,i=0;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function SUe(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,f=s.hierNode.modifier;s=oN(s),o=aN(o),s&&o;){i=oN(i),a=aN(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+f-o.hierNode.prelim-u+r(s,o);d>0&&(CUe(xUe(s,t,n),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!oN(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),o&&!aN(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function oN(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aN(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function xUe(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function CUe(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function TUe(t,e){return t.parentNode===e.parentNode?1:2}var PUe=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),$Ue=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new PUe},e.prototype.buildPath=function(n,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){n.moveTo(a[0],a[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Ee(r.forkPosition,1),p=[];p[c]=a[c],p[f]=a[f]+(l[f]-a[f])*d,n.moveTo(a[0],a[1]),n.lineTo(p[0],p[1]),n.moveTo(s[0],s[1]),p[c]=s[c],n.lineTo(p[0],p[1]),p[c]=l[c],n.lineTo(p[0],p[1]),n.lineTo(l[0],l[1]);for(var g=1;g<o-1;g++){var v=i[g];n.moveTo(v[0],v[1]),p[c]=v[c],n.lineTo(p[0],p[1])}},e}(yt),AUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new qe,n}return e.prototype.init=function(n,r){this._controller=new qy(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,i){var o=n.getData(),a=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(n,i),this._updateController(n,r,i);var u=this._data;o.diff(u).add(function(c){ene(o,c)&&tne(o,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!ene(o,c)){d&&ine(u,f,d,s,n);return}tne(o,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&ine(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=o},e.prototype._updateViewCoordSys=function(n,r){var i=n.getData(),o=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&o.push([+d.x,+d.y])});var a=[],s=[];hS(o,a,s);var l=this._min,u=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new Jy;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),c.setCenter(n.get("center"),r),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=a,this._max=s},e.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Gx(u,i,n)}),a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Kk(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Jk(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(n),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),i=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,a){o.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,o=r.scaleX||1,a=r.getZoom(),s=(a-1)*i+1;return s/o},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Jt);function ene(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function tne(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",c=t.tree.root,f=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(f.dataIndex),p=f.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,v=a.getLayout();o?(n=new Wy(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Rt(n,{x:v.x,y:v.y},i);var m=n.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],b=y.getLayout(),O=y.children.length,w=void 0,S=void 0;if(v.x===b.x&&a.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[O-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[O-1].getLayout().y)/2};w=Math.atan2(x.y-b.y,x.x-b.x),w<0&&(w=Math.PI*2+w),S=x.x<b.x,S&&(w=w-Math.PI)}else w=Math.atan2(v.y-b.y,v.x-b.x),w<0&&(w=Math.PI*2+w),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(S=v.x<b.x,S&&(w=w-Math.PI)):(S=v.x>b.x,S||(w=w-Math.PI));var T=S?"left":"right",$=s.getModel("label"),A=$.get("rotate"),P=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:$.get("position")||T,rotation:A==null?-w:P,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),R=I==="relative"?O0(a.getAncestorsIndices(),a.getDescendantIndices()):I==="ancestor"?a.getAncestorsIndices():I==="descendant"?a.getDescendantIndices():null;R&&(Ke(n).focus=R),EUe(i,a,c,n,g,p,v,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var D=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);D&&D.hoverState===J0||bS(n.__edge,L)}})}function EUe(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new sy({shape:sN(c,f,d,i,i)})),Rt(v,{shape:sN(c,f,d,o,a)},t));else if(u==="polyline"){if(c==="orthogonal"){if(e!==n&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;b<m.length;b++){var O=m[b].getLayout();y.push([O.x,O.y])}v||(v=r.__edge=new $Ue({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:f,forkPosition:p}})),Rt(v,{shape:{parentPoint:[a.x,a.y],childPoints:y}},t)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}v&&!(u==="polyline"&&!e.isExpand)&&(v.useStyle(Ge({strokeNoScale:!0,fill:null},g)),Hr(v,l,"lineStyle"),vd(v),s.add(v))}function nne(t,e,n,r,i){var o=e.tree.root,a=rne(o,t),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),p=r.get("edgeShape"),g=r.get("layout"),v=r.get("orient"),m=r.get(["lineStyle","curveness"]);d&&(p==="curve"?lc(d,{shape:sN(g,v,m,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):p==="polyline"&&r.get("layout")==="orthogonal"&&lc(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function rne(t,e){for(var n=e.parentNode===t?e:e.parentNode||e,r;r=n.getLayout(),r==null;)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:r}}function ine(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=rne(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};lc(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(u){nne(u,t,r,i,l)}),nne(o,t,r,i,l)}function sN(t,e,n,r,i){var o,a,s,l,u,c,f,d;if(t==="radial"){u=r.rawX,f=r.rawY,c=i.rawX,d=i.rawY;var p=eb(u,f),g=eb(u,f+(d-f)*n),v=eb(c,d+(f-d)*n),m=eb(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=r.x,f=r.y,c=i.x,d=i.y,(e==="LR"||e==="RL")&&(o=u+(c-u)*n,a=f,s=c+(u-c)*n,l=d),(e==="TB"||e==="BT")&&(o=u,a=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var _a=Tt();function one(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,ane(e,n,t),V(n,function(r){V(e.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,tt(MUe,t))})}),e.wrapMethod("cloneShallow",tt(DUe,t)),V(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,tt(IUe,t))}),je(n[e.dataType]===e)}function MUe(t,e){if(NUe(this)){var n=he({},_a(this).datas);n[this.dataType]=e,ane(e,n,t)}else lN(e,this.dataType,_a(this).mainData,t);return e}function IUe(t,e){return t.struct&&t.struct.update(),e}function DUe(t,e){return V(_a(e).datas,function(n,r){n!==e&&lN(n.cloneShallow(),r,e,t)}),e}function RUe(t){var e=_a(this).mainData;return t==null||e==null?e:_a(e).datas[t]}function kUe(){var t=_a(this).mainData;return t==null?[{data:t}]:me(bt(_a(t).datas),function(e){return{type:e,data:_a(t).datas[e]}})}function NUe(t){return _a(t).mainData===t}function ane(t,e,n){_a(t).datas={},V(e,function(r,i){lN(r,i,t,n)})}function lN(t,e,n,r){_a(n).datas[e]=t,_a(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=RUe,t.getLinkedDataAll=kUe}var LUe=function(){function t(e,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,n,r){ze(e)&&(r=n,n=e,e=null),e=e||{},Ie(e)&&(e={order:e});var i=e.order||"preorder",o=this[e.attr||"children"],a;i==="preorder"&&(a=n.call(r,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(e,n,r);i==="postorder"&&n.call(r,this)},t.prototype.updateDepthAndHeight=function(e){var n=0;this.depth=e;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(e+1),i.height>n&&(n=i.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].getNodeById(e);if(o)return o}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].contains(e);if(o)return o}},t.prototype.getAncestors=function(e){for(var n=[],r=e?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var e=[],n=this;n;)e.push(n.dataIndex),n=n.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(n){e.push(n.dataIndex)}),e},t.prototype.getValue=function(e){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n<e.length;++n)if(e[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var n=e.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),uN=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,n,r){this.root.eachNode(e,n,r)},t.prototype.getNodeByDataIndex=function(e){var n=this.data.getRawIndex(e);return this._nodes[n]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,n=this._nodes,r=0,i=n.length;r<i;r++)n[r].dataIndex=-1;for(var r=0,i=e.count();r<i;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;s(e);function s(c,f){var d=c.value;a=Math.max(a,ge(d)?d.length:1),o.push(c);var p=new LUe(cr(c.name,""),i);f?BUe(p,f):i.root=p,i._nodes.push(p);var g=c.children;if(g)for(var v=0;v<g.length;v++)s(g[v],p)}i.root.updateDepthAndHeight(0);var l=Ng(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new ci(l,n);return u.initData(o),r&&r(u),one({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function BUe(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}function tb(t,e,n){if(t&&st(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(Ie(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(o!=null&&(i=r.getNodeById(o)))return{node:i}}}function sne(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function cN(t,e){var n=sne(t);return st(n,e)>=0}function Yx(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var VUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},i=n.leaves||{},o=new rn(i,this,this.ecModel),a=uN.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,p){var g=a.getNodeByDataIndex(p);return g&&g.children.length&&g.isExpand||(d.parentModel=o),d})}var l=0;a.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return a.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),a.data},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Or("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Yx(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(on);function zUe(t,e,n){for(var r=[t],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;o=i.pop();)e(o,n)}function nb(t,e){for(var n=[t],r;r=n.pop();)if(e(r),r.isExpand){var i=r.children;if(i.length)for(var o=i.length-1;o>=0;o--)n.push(i[o])}}function FUe(t,e){t.eachSeriesByType("tree",function(n){WUe(n,e)})}function WUe(t,e){var n=OUe(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;r==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=Jte(function(O,w){return(O.parentNode===w.parentNode?1:2)/O.depth})):(i=n.width,o=n.height,a=Jte());var s=t.getData().tree.root,l=s.children[0];if(l){yUe(s),zUe(l,bUe,a),s.hierNode.modifier=-l.hierNode.prelim,nb(l,_Ue);var u=l,c=l,f=l;nb(l,function(O){var w=O.getLayout().x;w<u.getLayout().x&&(u=O),w>c.getLayout().x&&(c=O),O.depth>f.depth&&(f=O)});var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,g=0,v=0,m=0,y=0;if(r==="radial")g=i/(c.getLayout().x+d+p),v=o/(f.depth-1||1),nb(l,function(O){m=(O.getLayout().x+p)*g,y=(O.depth-1)*v;var w=eb(m,y);O.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var b=t.getOrient();b==="RL"||b==="LR"?(v=o/(c.getLayout().x+d+p),g=i/(f.depth-1||1),nb(l,function(O){y=(O.getLayout().x+p)*v,m=b==="LR"?(O.depth-1)*g:i-(O.depth-1)*g,O.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(g=i/(c.getLayout().x+d+p),v=o/(f.depth-1||1),nb(l,function(O){m=(O.getLayout().x+p)*g,y=b==="TB"?(O.depth-1)*v:o-(O.depth-1)*v,O.setLayout({x:m,y},!0)}))}}}function QUe(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");he(s,a)})})}function HUe(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=i.coordinateSystem,a=iN(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function GUe(t){t.registerChartView(AUe),t.registerSeriesModel(VUe),t.registerLayout(FUe),t.registerVisual(QUe),HUe(t)}var lne=["treemapZoomToNode","treemapRender","treemapMove"];function jUe(t){for(var e=0;e<lne.length;e++)t.registerAction({type:lne[e],update:"updateView"},Qn);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},i);function i(o,a){var s=["treemapZoomToNode","treemapRootToNode"],l=tb(n,s,o);if(l){var u=o.getViewRoot();u&&(n.direction=cN(u,l.node)?"rollUp":"drillDown"),o.resetViewRoot(l.node)}}})}function une(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(i){for(var o=i;o&&o.depth>1;)o=o.parentNode;var a=lR(t.ecModel,o.name||o.dataIndex+"",r);i.setVisual("decal",a)})}var UUe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};cne(i);var o=n.levels||[],a=this.designatedVisualItemStyle={},s=new rn({itemStyle:a},this,r);o=n.levels=ZUe(o,r);var l=me(o||[],function(f){return new rn(f,s,r)},this),u=uN.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,p){var g=u.getNodeByDataIndex(p),v=g?l[g.depth]:null;return d.parentModel=v||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Or("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Yx(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},he(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Le(),this._idIndexMapCount=0);var i=r.get(n);return i==null&&r.set(n,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){une(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(on);function cne(t){var e=0;V(t.children,function(r){cne(r);var i=r.value;ge(i)&&(i=i[0]),e+=i});var n=t.value;ge(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),ge(t.value)?t.value[0]=n:t.value=n}function ZUe(t,e){var n=nn(e.get("color")),r=nn(e.get(["aria","decal","decals"]));if(n){t=t||[];var i,o;V(t,function(s){var l=new rn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(o=!0)});var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var XUe=8,fne=8,fN=5,YUe=function(){function t(e){this.group=new qe,e.add(this.group)}return t.prototype.render=function(e,n,r,i){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(e,f,s,l,u,c,i),GS(a,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var i=e;i;i=i.parentNode){var o=cr(i.getModel().get("name"),""),a=r.getTextRect(o),s=Math.max(a.width+XUe*2,n.emptyItemWidth);n.totalWidth+=s+fne,n.renderList.push({node:i,text:o,width:s})}},t.prototype._renderContent=function(e,n,r,i,o,a,s){for(var l=0,u=n.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=VFe(n.pos,n.box),d=n.totalWidth,p=n.renderList,g=i.getModel("itemStyle").getItemStyle(),v=p.length-1;v>=0;v--){var m=p[v],y=m.node,b=m.width,O=m.text;d>f.width&&(d-=b-u,b=u,O=null);var w=new Ti({shape:{points:qUe(l,0,b,c,v===p.length-1,v===0)},style:Ge(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new $t({style:un(o,{text:O})}),textConfig:{position:"inside"},z2:lg*1e4,onclick:tt(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=un(a,{text:O}),w.ensureState("emphasis").style=g,Ln(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),KUe(w,e,y),l+=b+fne}},t.prototype.remove=function(){this.group.removeAll()},t}();function qUe(t,e,n,r,i,o){var a=[[i?t:t-fN,e],[t+n,e],[t+n,e+r],[i?t:t-fN,e+r]];return!o&&a.splice(2,0,[t+n+fN,e+r/2]),!i&&a.push([t,e+r/2]),a}function KUe(t,e,n){Ke(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Yx(n,e)}}var JUe=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,i,o){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:i,easing:o}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:r,aborted:r})}return this},t}();function eZe(){return new JUe}var dN=qe,dne=Pt,hne=3,pne="label",gne="upperLabel",tZe=lg*10,nZe=lg*2,rZe=lg*3,Yd=ad([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),vne=function(t){var e=Yd(t);return e.stroke=e.fill=e.lineWidth=null,e},qx=Tt(),iZe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=rb(),n}return e.prototype.render=function(n,r,i,o){var a=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(st(a,n)<0)){this.seriesModel=n,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=tb(o,s,n),u=o&&o.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,p=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,g=this._giveContainerGroup(c),v=n.get("animation"),m=this._doRender(g,n,p);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,m,n,p):m.renderFinally(),this._resetController(i),this._renderBreadcrumb(n,i,l)}},e.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new dN,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,i){var o=r.getData().tree,a=this._oldTree,s=rb(),l=rb(),u=this._storage,c=[];function f(b,O,w,S){return oZe(r,l,u,i,s,c,b,O,w,S)}v(o.root?[o.root]:[],a&&a.root?[a.root]:[],n,o===a||!a,0);var d=m(u);if(this._oldTree=o,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,g=o.root.getLayout();g.width===p.width&&g.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:y};function v(b,O,w,S,x){S?(O=b,V(b,function(A,P){!A.isRemoved()&&$(P,P)})):new ql(O,b,T,T).add($).update($).remove(tt($,null)).execute();function T(A){return A.getId()}function $(A,P){var M=A!=null?b[A]:null,I=P!=null?O[P]:null,R=f(M,I,w,x);R&&v(M&&M.viewChildren||[],I&&I.viewChildren||[],R,S,x+1)}}function m(b){var O=rb();return b&&V(b,function(w,S){var x=O[S];V(w,function(T){T&&(x.push(T),qx(T).willDelete=!0)})}),O}function y(){V(d,function(b){V(b,function(O){O.parent&&O.parent.remove(O)})}),V(c,function(b){b.invisible=!0,b.dirty()})}},e.prototype._doAnimation=function(n,r,i,o){var a=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(ze(a)?0:a)||0,u=(ze(s)?null:s)||"cubicOut",c=eZe();V(r.willDeleteEls,function(f,d){V(f,function(p,g){if(!p.invisible){var v=p.parent,m,y=qx(v);if(o&&o.direction==="drillDown")m=v===o.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,O=0;y.willDelete||(b=y.nodeWidth/2,O=y.nodeHeight/2),m=d==="nodeGroup"?{x:b,y:O,style:{opacity:0}}:{shape:{x:b,y:O,width:0,height:0},style:{opacity:0}}}m&&c.add(p,m,l,0,u)}})}),V(this._storage,function(f,d){V(f,function(p,g){var v=r.lastsForAnimation[d][g],m={};v&&(p instanceof qe?v.oldX!=null&&(m.x=p.x,m.y=p.y,p.x=v.oldX,p.y=v.oldY):(v.oldShape&&(m.shape=he({},p.shape),p.setShape(v.oldShape)),v.fadein?(p.setStyle("opacity",0),m.style={opacity:1}):p.style.opacity!==1&&(m.style={opacity:1})),c.add(p,m,l,0,u))})},this),this._state="animating",c.finished(Re(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),r||(r=this._controller=new qy(n.getZr()),r.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),r.on("pan",Re(this._onPan,this)),r.on("zoom",Re(this._onZoom,this)));var o=new at(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(a,s,l){return o.contain(s,l)})},e.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},e.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>hne||Math.abs(n.dy)>hne)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+n.dx,y:i.y+n.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(n){var r=n.originX,i=n.originY,o=n.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=o,u){var d=u.min||0,p=u.max||1/0;f=Math.max(Math.min(p,f),d)}var g=f/c.zoom;c.zoom=f;var v=this.seriesModel.layoutInfo;r-=v.x,i-=v.y;var m=Ui();Ka(m,m,[-r,-i]),Iw(m,m,[g,g]),Ka(m,m,[r,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(n){var r=this;n.on("click",function(i){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var a=r.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)r._rootToNode(a);else if(o==="zoomToNode")r._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&QS(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,i){var o=this;i||(i=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new YUe(this.group))).render(n,r,i.node,function(a){o._state!=="animating"&&(cN(n.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=rb(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Jt);function rb(){return{nodeGroup:[],background:[],content:[]}}function oZe(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),f=t.getData(),d=a.getModel();if(f.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var p=c.width,g=c.height,v=c.borderWidth,m=c.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),O=a.viewChildren,w=c.upperHeight,S=O&&O.length,x=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),$=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),P=x.get("borderRadius")||0,M=se("nodeGroup",dN);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),qx(M).nodeWidth=p,qx(M).nodeHeight=g,c.isAboveViewRoot)return M;var I=se("background",dne,u,nZe);I&&W(M,I,S&&c.upperLabelHeight);var R=d.getModel("emphasis"),L=R.get("focus"),D=R.get("blurScope"),B=R.get("disabled"),F=L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():L;if(S)sc(M)&&md(M,!1),I&&(md(I,!B),f.setItemGraphicEl(a.dataIndex,I),TD(I,F,D));else{var z=se("content",dne,u,rZe);z&&j(M,z),I.disableMorphing=!0,I&&sc(I)&&md(I,!1),md(M,!B),f.setItemGraphicEl(a.dataIndex,M),TD(M,F,D)}return M;function W(ie,ue,ee){var X=Ke(ue);if(X.dataIndex=a.dataIndex,X.seriesIndex=t.seriesIndex,ue.setShape({x:0,y:0,width:p,height:g,r:P}),m)H(ue);else{ue.invisible=!1;var Y=a.getVisual("style"),le=Y.stroke,ve=vne(x);ve.fill=le;var ye=Yd(T);ye.fill=T.get("borderColor");var Ne=Yd($);Ne.fill=$.get("borderColor");var Be=Yd(A);if(Be.fill=A.get("borderColor"),ee){var Me=p-2*v;Z(ue,le,Y.opacity,{x:v,y:0,width:Me,height:w})}else ue.removeTextContent();ue.setStyle(ve),ue.ensureState("emphasis").style=ye,ue.ensureState("blur").style=Ne,ue.ensureState("select").style=Be,vd(ue)}ie.add(ue)}function j(ie,ue){var ee=Ke(ue);ee.dataIndex=a.dataIndex,ee.seriesIndex=t.seriesIndex;var X=Math.max(p-2*v,0),Y=Math.max(g-2*v,0);if(ue.culling=!0,ue.setShape({x:v,y:v,width:X,height:Y,r:P}),m)H(ue);else{ue.invisible=!1;var le=a.getVisual("style"),ve=le.fill,ye=vne(x);ye.fill=ve,ye.decal=le.decal;var Ne=Yd(T),Be=Yd($),Me=Yd(A);Z(ue,ve,le.opacity,null),ue.setStyle(ye),ue.ensureState("emphasis").style=Ne,ue.ensureState("blur").style=Be,ue.ensureState("select").style=Me,vd(ue)}ie.add(ue)}function H(ie){!ie.invisible&&o.push(ie)}function Z(ie,ue,ee,X){var Y=d.getModel(X?gne:pne),le=cr(d.get("name"),null),ve=Y.getShallow("show");Gr(ie,_r(d,X?gne:pne),{defaultText:ve?le:null,inheritColor:ue,defaultOpacity:ee,labelFetcher:t,labelDataIndex:a.dataIndex});var ye=ie.getTextContent();if(ye){var Ne=ye.style,Be=$w(Ne.padding||0);X&&(ie.setTextConfig({layoutRect:X}),ye.disableLabelLayout=!0),ye.beforeUpdate=function(){var $e=Math.max((X?X.width:ie.shape.width)-Be[1]-Be[3],0),_e=Math.max((X?X.height:ie.shape.height)-Be[0]-Be[2],0);(Ne.width!==$e||Ne.height!==_e)&&ye.setStyle({width:$e,height:_e})},Ne.truncateMinChar=2,Ne.lineOverflow="truncate",J(Ne,X,c);var Me=ye.getState("emphasis");J(Me?Me.style:null,X,c)}}function J(ie,ue,ee){var X=ie?ie.text:null;if(!ue&&ee.isLeafRoot&&X!=null){var Y=t.get("drillDownIcon",!0);ie.text=Y?Y+" "+X:X}}function se(ie,ue,ee,X){var Y=b!=null&&n[ie][b],le=i[ie];return Y?(n[ie][b]=null,oe(le,Y)):m||(Y=new ue,Y instanceof la&&(Y.z2=aZe(ee,X)),de(le,Y)),e[ie][y]=Y}function oe(ie,ue){var ee=ie[y]={};ue instanceof dN?(ee.oldX=ue.x,ee.oldY=ue.y):ee.oldShape=he({},ue.shape)}function de(ie,ue){var ee=ie[y]={},X=a.parentNode,Y=ue instanceof qe;if(X&&(!r||r.direction==="drillDown")){var le=0,ve=0,ye=i.background[X.getRawIndex()];!r&&ye&&ye.oldShape&&(le=ye.oldShape.width,ve=ye.oldShape.height),Y?(ee.oldX=0,ee.oldY=ve):ee.oldShape={x:le,y:ve,width:0,height:0}}ee.fadein=!Y}}function aZe(t,e){return t*tZe+e}var ib=V,sZe=Qe,Kx=-1,Sr=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=Ue(e);this.type=r,this.mappingMethod=n,this._normalizeData=cZe[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(hN(i),lZe(i)):n==="category"?i.categories?uZe(i):hN(i,!0):(je(n!=="linear"||i.dataExtent),hN(i))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Re(this._normalizeData,this)},t.listVisualTypes=function(){return bt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){Qe(e)?V(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var i,o=ge(e)?[]:Qe(e)?{}:(i=!0,null);return t.eachVisual(e,function(a,s){var l=n.call(r,a,s);i?o=l:o[s]=l}),o},t.retrieveVisuals=function(e){var n={},r;return e&&ib(t.visualHandlers,function(i,o){e.hasOwnProperty(o)&&(n[o]=e[o],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(ge(e))e=e.slice();else if(sZe(e)){var n=[];ib(e,function(r,i){n.push(i)}),e=n}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var i,o=1/0,a=0,s=n.length;a<s;a++){var l=n[a].value;if(l!=null){if(l===e||Ie(l)&&l===e+"")return a;r&&d(l,a)}}for(var a=0,s=n.length;a<s;a++){var u=n[a],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(eC(f[1],e,c[1]))return a}else if(c[1]===1/0){if(eC(f[0],c[0],e))return a}else if(eC(f[0],c[0],e)&&eC(f[1],e,c[1]))return a;r&&d(c[0],a),r&&d(c[1],a)}}if(r)return e===1/0?n.length-1:e===-1/0?0:i;function d(p,g){var v=Math.abs(p-e);v<o&&(o=v,i=g)}},t.visualHandlers={color:{applyVisual:ob("color"),getColorMapper:function(){var e=this.option;return Re(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),ab.call(this,n)}:function(n,r,i){var o=!!i;return!r&&(n=this._normalizeData(n)),i=L0(n,e.parsedVisual,i),o?i:es(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return es(L0(e,this.option.parsedVisual),"rgba")},category:ab,piecewise:function(e,n){var r=gN.call(this,n);return r==null&&(r=es(L0(e,this.option.parsedVisual),"rgba")),r},fixed:qd}},colorHue:Jx(function(e,n){return Kp(e,n)}),colorSaturation:Jx(function(e,n){return Kp(e,null,n)}),colorLightness:Jx(function(e,n){return Kp(e,null,null,n)}),colorAlpha:Jx(function(e,n){return B0(e,n)}),decal:{applyVisual:ob("decal"),_normalizedToVisual:{linear:null,category:ab,piecewise:null,fixed:null}},opacity:{applyVisual:ob("opacity"),_normalizedToVisual:pN([0,1])},liftZ:{applyVisual:ob("liftZ"),_normalizedToVisual:{linear:qd,category:qd,piecewise:qd,fixed:qd}},symbol:{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:mne,category:ab,piecewise:function(e,n){var r=gN.call(this,n);return r==null&&(r=mne.call(this,e)),r},fixed:qd}},symbolSize:{applyVisual:ob("symbolSize"),_normalizedToVisual:pN([0,1])}},t}();function lZe(t){var e=t.pieceList;t.hasSpecialVisual=!1,V(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function uZe(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(ib(e,function(a,s){n[a]=s}),!ge(r)){var i=[];Qe(r)?ib(r,function(a,s){var l=n[s];i[l??Kx]=a}):i[Kx]=r,r=yne(t,i)}for(var o=e.length-1;o>=0;o--)r[o]==null&&(delete n[e[o]],e.pop())}function hN(t,e){var n=t.visual,r=[];Qe(n)?ib(n,function(o){r.push(o)}):n!=null&&r.push(n);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(t.type)&&(r[1]=r[0]),yne(t,r)}function Jx(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:pN([0,1])}}function mne(t){var e=this.option.visual;return e[Math.round(qt(t,[0,1],[0,e.length-1],!0))]||{}}function ob(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function ab(t){var e=this.option.visual;return e[this.option.loop&&t!==Kx?t%e.length:t]}function qd(){return this.option.visual[0]}function pN(t){return{linear:function(e){return qt(e,t,this.option.visual,!0)},category:ab,piecewise:function(e,n){var r=gN.call(this,n);return r==null&&(r=qt(e,t,this.option.visual,!0)),r},fixed:qd}}function gN(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=Sr.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function yne(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=me(e,function(n){var r=Oi(n);return!r&&process.env.NODE_ENV!=="production"&&En("'"+n+"' is an illegal color, fallback to '#000000'",!0),r||[0,0,0,1]})),e}var cZe={linear:function(t){return qt(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Sr.findPieceIndex(t,e,!0);if(n!=null)return qt(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Kx},fixed:Qn};function eC(t,e,n){return t?e<=n:e<n}var fZe="itemStyle",bne=Tt();const dZe={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||_ne(n,{},t.getViewRoot().getAncestors(),t)}};function _ne(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var s=i.getModel(fZe),l=hZe(s,e,r),u=a.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=One(l),c=pZe(f,d)),u.stroke=c;var p=t.viewChildren;if(!p||!p.length)d=One(l),u.fill=d;else{var g=gZe(t,i,o,s,l,p);V(p,function(v,m){if(v.depth>=n.length||v===n[v.depth]){var y=vZe(i,l,v,m,g,r);_ne(v,y,n,r)}})}}}function hZe(t,e,n){var r=he({},e),i=n.designatedVisualItemStyle;return V(["color","colorAlpha","colorSaturation"],function(o){i[o]=e[o];var a=t.get(o);i[o]=null,a!=null&&(r[o]=a)}),r}function One(t){var e=vN(t,"color");if(e){var n=vN(t,"colorAlpha"),r=vN(t,"colorSaturation");return r&&(e=Kp(e,null,null,r)),n&&(e=B0(e,n)),e}}function pZe(t,e){return e!=null?Kp(e,null,null,t):null}function vN(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function gZe(t,e,n,r,i,o){if(!(!o||!o.length)){var a=mN(e,"color")||i.color!=null&&i.color!=="none"&&(mN(e,"colorAlpha")||mN(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:a.name,dataExtent:u,visual:a.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Sr(f);return bne(d).drColorMappingBy=c,d}}}function mN(t,e){var n=t.get(e);return ge(n)&&n.length?{name:e,range:n}:null}function vZe(t,e,n,r,i,o){var a=he({},e);if(i){var s=i.type,l=s==="color"&&bne(i).drColorMappingBy,u=l==="index"?r:l==="id"?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var sb=Math.max,tC=Math.min,wne=Un,yN=V,Sne=["itemStyle","borderWidth"],mZe=["itemStyle","gapWidth"],yZe=["upperLabel","show"],bZe=["upperLabel","height"];const _Ze={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=er(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Ee(wne(s.width,l[0]),i),c=Ee(wne(s.height,l[1]),o),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],p=tb(r,d,t),g=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=t.getViewRoot(),m=sne(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?TZe(t,p,v,u,c):g?[g.width,g.height]:[u,c],b=a.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var O={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(w),xne(v,O,!1,0),w=v.getLayout(),yN(m,function(x,T){var $=(m[T+1]||v).getValue();x.setLayout(he({dataExtent:[$,$],borderWidth:0,upperHeight:0},w))})}var S=t.getData().tree.root;S.setLayout(PZe(s,g,p),!0),t.setLayoutInfo(s),Tne(S,new at(-s.x,-s.y,i,o),m,v,0)}};function xne(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(Sne),u=s.get(mZe)/2,c=Pne(s),f=Math.max(l,c),d=l-u,p=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=sb(i-2*d,0),o=sb(o-d-p,0);var g=i*o,v=OZe(t,s,g,e,n,r);if(v.length){var m={x:d,y:p,width:i,height:o},y=tC(i,o),b=1/0,O=[];O.area=0;for(var w=0,S=v.length;w<S;){var x=v[w];O.push(x),O.area+=x.getLayout().area;var T=CZe(O,y,e.squareRatio);T<=b?(w++,b=T):(O.area-=O.pop().getLayout().area,Cne(O,y,m,u,!1),y=tC(m.width,m.height),O.length=O.area=0,b=1/0)}if(O.length&&Cne(O,y,m,u,!0),!n){var $=s.get("childrenVisibleMin");$!=null&&g<$&&(n=!0)}for(var w=0,S=v.length;w<S;w++)xne(v[w],e,n,r+1)}}}function OZe(t,e,n,r,i,o){var a=t.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=Yt(a,function(p){return!p.isRemoved()}),SZe(a,s);var u=xZe(e,a,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=wZe(e,n,u.sum,s,a),u.sum===0)return t.viewChildren=[];for(var c=0,f=a.length;c<f;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function wZe(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i[r==="asc"?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return r==="asc"?i.splice(0,a-s):i.splice(s,a-s),n}function SZe(t,e){return e&&t.sort(function(n,r){var i=e==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return i===0?e==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:i}),t}function xZe(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:a==="value"&&n?(s=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],yN(e,function(l){var u=l.getValue(a);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function CZe(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?sb(u*r/l,l/(u*i)):1/0}function Cne(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var f=0,d=t.length;f<d;f++){var p=t[f],g={},v=c?p.getLayout().area/c:0,m=g[l[a]]=sb(c-2*r,0),y=n[s[o]]+n[l[o]]-u,b=f===d-1||y<v?y:v,O=g[l[o]]=sb(b-2*r,0);g[s[a]]=n[s[a]]+tC(r,m/2),g[s[o]]=u+tC(r,O/2),u+=b,p.setLayout(g,!0)}n[s[a]]+=c,n[l[a]]-=c}function TZe(t,e,n,r,i){var o=(e||{}).node,a=[r,i];if(!o||o===n)return a;for(var s,l=r*i,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,f=s.children,d=0,p=f.length;d<p;d++)c+=f[d].getValue();var g=o.getValue();if(g===0)return a;u*=c/g;var v=s.getModel(),m=v.get(Sne),y=Math.max(m,Pne(v));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>jI&&(u=jI),o=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,i*b]}function PZe(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;for(var a=[o.width/2,o.height/2],s=i;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function Tne(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new at(e.x-o.x,e.y-o.y,e.width,e.height);yN(t.viewChildren||[],function(u){Tne(u,l,n,r,i+1)})}}function Pne(t){return t.get(yZe)?t.get(bZe):0}function $Ze(t){t.registerSeriesModel(UUe),t.registerChartView(iZe),t.registerVisual(dZe),t.registerLayout(_Ze),jUe(t)}function AZe(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getGraph(),o=i.data,a=r.mapArray(r.getName);o.filterSelf(function(s){var l=o.getItemModel(s),u=l.getShallow("category");if(u!=null){Et(u)&&(u=a[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function EZe(t){var e={};t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getData(),o={};r.each(function(a){var s=r.getName(a);o["ec-"+s]=a;var l=r.getItemModel(a),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,e)),r.setItemVisual(a,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(a,c[f],d)}}),r.count()&&i.each(function(a){var s=i.getItemModel(a),l=s.getShallow("category");if(l!=null){Ie(l)&&(l=o["ec-"+l]);var u=r.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(a,"style");he(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(a,f[d],r.getItemVisual(l,f[d]))}})})}function nC(t){return t instanceof Array||(t=[t,t]),t}function MZe(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),i=nC(e.get("edgeSymbol")),o=nC(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(a){var s=r.getItemModel(a),l=n.getEdgeByIndex(a),u=nC(s.getShallow("symbol",!0)),c=nC(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(a,"style");switch(he(d,f),d.stroke){case"source":{var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");d.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var bN="-->",rC=function(t){return t.get("autoCurveness")||null},$ne=function(t,e){var n=rC(t),r=20,i=[];if(Et(n))r=n;else if(ge(n)){t.__curvenessList=n;return}e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},lb=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(bN)},Ane=function(t){var e=t.split(bN);return[e[0],e[2],e[1]].join(bN)},IZe=function(t,e){var n=lb(t.node1,t.node2,e);return e.__edgeMap[n]},DZe=function(t,e){var n=_N(lb(t.node1,t.node2,e),e),r=_N(lb(t.node2,t.node1,e),e);return n+r},_N=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function RZe(t){rC(t)&&(t.__curvenessList=[],t.__edgeMap={},$ne(t))}function kZe(t,e,n,r){if(rC(n)){var i=lb(t,e,n),o=n.__edgeMap,a=o[Ane(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function ON(t,e,n,r){var i=rC(e),o=ge(i);if(!i)return null;var a=IZe(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=DZe(t,e);$ne(e,u),t.lineStyle=t.lineStyle||{};var c=lb(t.node1,t.node2,e),f=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return f[d+s];var p=Ane(c),g=_N(p,e),v=f[s+g+d];return r?o?i&&i[0]===0?(g+d)%2?v:-v:((g%2?0:1)+d)%2?v:-v:(g+d)%2?v:-v:f[s+g+d]}function Ene(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var n=t.getGraph();n.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),wN(n,t)}}function wN(t,e){t.eachEdge(function(n,r){var i=_o(n.getModel().get(["lineStyle","curveness"]),-ON(n,e,r,!0),0),o=Rs(n.node1.getLayout()),a=Rs(n.node2.getLayout()),s=[o,a];+i&&s.push([(o[0]+a[0])/2-(o[1]-a[1])*i,(o[1]+a[1])/2-(a[0]-o[0])*i]),n.setLayout(s)})}function NZe(t,e){t.eachSeriesByType("graph",function(n){var r=n.get("layout"),i=n.coordinateSystem;if(i&&i.type!=="view"){var o=n.getData(),a=[];V(i.dimensions,function(d){a=a.concat(o.mapDimensionsAll(d))});for(var s=0;s<o.count();s++){for(var l=[],u=!1,c=0;c<a.length;c++){var f=o.get(a[c],s);isNaN(f)||(u=!0),l.push(f)}u?o.setItemLayout(s,i.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}wN(o.graph,n)}else(!r||r==="none")&&Ene(n)})}function ub(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),o=(i-1)*n+1;return o/r}function cb(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Mne=Math.PI,SN=[];function xN(t,e,n,r){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,f=a.count();if(a.setLayout({cx:l,cy:u}),!!f){if(n){var d=i.pointToData(r),p=d[0],g=d[1],v=[p-l,g-u];Uf(v,v),C0(v,v,c),n.setLayout([l+v[0],u+v[1]],!0);var m=t.get(["circular","rotateLabel"]);Ine(n,m,l,u)}LZe[e](t,s,a,c,l,u,f),s.eachEdge(function(y,b){var O=_o(y.getModel().get(["lineStyle","curveness"]),ON(y,t,b),0),w=Rs(y.node1.getLayout()),S=Rs(y.node2.getLayout()),x,T=(w[0]+S[0])/2,$=(w[1]+S[1])/2;+O&&(O*=3,x=[l*O+T*(1-O),u*O+$*(1-O)]),y.setLayout([w,S,x])})}}}var LZe={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||a);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=d})},symbolSize:function(t,e,n,r,i,o,a){var s=0;SN.length=a;var l=ub(t);e.eachNode(function(f){var d=cb(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/r);isNaN(p)&&(p=Mne/2),SN[f.dataIndex]=p,s+=p*2});var u=(2*Mne-s)/a/2,c=0;e.eachNode(function(f){var d=u+SN[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=d})}};function Ine(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");he(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function BZe(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&xN(e,"symbolSize")})}var Gg=Aw;function VZe(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=Uu(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Rs(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,p=d,g,v;return{warmUp:function(){p=d*.8},setFixed:function(m){r[m].fixed=!0},setUnfixed:function(m){r[m].fixed=!1},beforeStep:function(m){g=m},afterStep:function(m){v=m},step:function(m){g&&g(r,i);for(var y=[],b=r.length,O=0;O<i.length;O++){var w=i[O];if(!w.ignoreForceLayout){var S=w.n1,x=w.n2;Zu(y,x.p,S.p);var T=x0(y)-w.d,$=x.w/(S.w+x.w);isNaN($)&&($=0),Uf(y,y),!S.fixed&&Gg(S.p,S.p,y,$*T*p),!x.fixed&&Gg(x.p,x.p,y,-(1-$)*T*p)}}for(var O=0;O<b;O++){var A=r[O];A.fixed||(Zu(y,l,A.p),Gg(A.p,A.p,y,u*p))}for(var O=0;O<b;O++)for(var S=r[O],P=O+1;P<b;P++){var x=r[P];Zu(y,x.p,S.p);var T=x0(y);T===0&&(hU(y,Math.random()-.5,Math.random()-.5),T=1);var M=(S.rep+x.rep)/T/T;!S.fixed&&Gg(S.pp,S.pp,y,M),!x.fixed&&Gg(x.pp,x.pp,y,-M)}for(var I=[],O=0;O<b;O++){var A=r[O];A.fixed||(Zu(I,A.p,A.pp),Gg(A.p,A.p,I,p),oi(A.pp,A.p))}p=p*.992;var R=p<.01;v&&v(r,i,R),m&&m(R)}}}function zZe(t){t.eachSeriesByType("graph",function(e){var n=e.coordinateSystem;if(!(n&&n.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},i=e.getGraph(),o=i.data,a=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?o.each(function(O){var w=o.getId(O);o.setItemLayout(O,r[w]||[NaN,NaN])}):!l||l==="none"?Ene(e):l==="circular"&&xN(e,"value");var u=o.getDataExtent("value"),c=a.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),p=ge(f)?f:[f,f],g=ge(d)?d:[d,d];g=[g[1],g[0]];var v=o.mapArray("value",function(O,w){var S=o.getItemLayout(w),x=qt(O,u,p);return isNaN(x)&&(x=(p[0]+p[1])/2),{w:x,rep:x,fixed:o.getItemModel(w).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),m=a.mapArray("value",function(O,w){var S=i.getEdgeByIndex(w),x=qt(O,c,g);isNaN(x)&&(x=(g[0]+g[1])/2);var T=S.getModel(),$=_o(S.getModel().get(["lineStyle","curveness"]),-ON(S,e,w,!0),0);return{n1:v[S.node1.dataIndex],n2:v[S.node2.dataIndex],d:x,curveness:$,ignoreForceLayout:T.get("ignoreForceLayout")}}),y=n.getBoundingRect(),b=VZe(v,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(O,w){for(var S=0,x=O.length;S<x;S++)O[S].fixed&&oi(O[S].p,i.getNodeByIndex(S).getLayout())}),b.afterStep(function(O,w,S){for(var x=0,T=O.length;x<T;x++)O[x].fixed||i.getNodeByIndex(x).setLayout(O[x].p),r[o.getId(x)]=O[x].p;for(var x=0,T=w.length;x<T;x++){var $=w[x],A=i.getEdgeByIndex(x),P=$.n1.p,M=$.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],oi(I[0],P),oi(I[1],M),+$.curveness&&(I[2]=[(P[0]+M[0])/2-(P[1]-M[1])*$.curveness,(P[1]+M[1])/2-(M[0]-P[0])*$.curveness]),A.setLayout(I)}}),e.forceLayout=b,e.preservedPoints=r,b.step()}else e.forceLayout=null})}function FZe(t,e,n){var r=he(t.getBoxLayoutParams(),{aspect:n});return er(r,{width:e.getWidth(),height:e.getHeight()})}function WZe(t,e){var n=[];return t.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var o=r.getData(),a=o.mapArray(function(m){var y=o.getItemModel(m);return[+y.get("x"),+y.get("y")]}),s=[],l=[];hS(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=FZe(r,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],p=c.width,g=c.height,v=r.coordinateSystem=new Jy;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,p,g),v.setCenter(r.get("center"),e),v.setZoom(r.get("zoom")),n.push(v)}}),n}var Dne=br.prototype,CN=sy.prototype,Rne=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Rne);function TN(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var QZe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Rne},e.prototype.buildPath=function(n,r){TN(r)?Dne.buildPath.call(this,n,r):CN.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return TN(this.shape)?Dne.pointAt.call(this,n):CN.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,i=TN(r)?[r.x2-r.x1,r.y2-r.y1]:CN.tangentAt.call(this,n);return Uf(i,i)},e}(yt),PN=["fromSymbol","toSymbol"];function kne(t){return"_"+t+"Type"}function Nne(t,e,n){var r=e.getItemVisual(n,t);if(!r||r==="none")return r;var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Mg(i),u=Id(a||0,l);return r+l+u+(o||"")+(s||"")}function Lne(t,e,n){var r=e.getItemVisual(n,t);if(!(!r||r==="none")){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Mg(i),u=Id(a||0,l),c=Xn(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function HZe(t){var e=new QZe({name:"line",subPixelOptimize:!0});return $N(e.shape,t),e}function $N(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var AN=function(t){re(e,t);function e(n,r,i){var o=t.call(this)||this;return o._createLine(n,r,i),o}return e.prototype._createLine=function(n,r,i){var o=n.hostModel,a=n.getItemLayout(r),s=HZe(a);s.shape.percent=0,vn(s,{shape:{percent:1}},o,r),this.add(s),V(PN,function(l){var u=Lne(l,n,r);this.add(u),this[kne(l)]=Nne(l,n,r)},this),this._updateCommonStl(n,r,i)},e.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};$N(l.shape,s),Rt(a,l,o,r),V(PN,function(u){var c=Nne(u,n,r),f=kne(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Lne(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,d=i&&i.focus,p=i&&i.blurScope;if(!i||n.hasItemOption){var g=n.getItemModel(r),v=g.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),d=v.get("focus"),p=v.get("blurScope"),c=_r(g)}var m=n.getItemVisual(r,"style"),y=m.stroke;a.useStyle(m),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,V(PN,function(x){var T=this.childOfName(x);if(T){T.setColor(y),T.style.opacity=m.opacity;for(var $=0;$<xi.length;$++){var A=xi[$],P=a.getState(A);if(P){var M=P.style||{},I=T.ensureState(A),R=I.style||(I.style={});M.stroke!=null&&(R[T.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(R.opacity=M.opacity)}}T.markRedraw()}},this);var b=o.getRawValue(r);Gr(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(x,T){return o.getFormattedLabel(x,T,n.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Nn(b):b)+""});var O=this.getTextContent();if(O){var w=c.normal;O.__align=O.style.align,O.__verticalAlign=O.style.verticalAlign,O.__position=w.get("position")||"middle";var S=w.get("distance");ge(S)||(S=[S,S]),O.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Ln(this,d,p,f)},e.prototype.highlight=function(){jl(this)},e.prototype.downplay=function(){Ul(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");$N(r.shape,n),r.dirty()},e.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),i=n.childOfName("toSymbol"),o=n.getTextContent();if(!r&&!i&&(!o||o.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Zu([],f,c);Uf(d,d);function p(P,M){var I=P.__specifiedRotation;if(I==null){var R=l.tangentAt(M);P.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else P.attr("rotation",I)}if(r&&(r.setPosition(c),p(r,0),r.scaleX=r.scaleY=a*u,r.markRedraw()),i&&(i.setPosition(f),p(i,1),i.scaleX=i.scaleY=a*u,i.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var g=void 0,v=void 0,m=o.__labelDistance,y=m[0]*a,b=m[1]*a,O=u/2,w=l.tangentAt(O),S=[w[1],-w[0]],x=l.pointAt(O);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var T=w[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var $=-Math.atan2(w[1],w[0]);f[0]<c[0]&&($=Math.PI+$),o.rotation=$}var A=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-b,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=b,v="top";break;default:A=0,v="middle"}switch(o.__position){case"end":o.x=d[0]*y+f[0],o.y=d[1]*b+f[1],g=d[0]>.8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*y+c[0],o.y=-d[1]*b+c[1],g=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*T+c[0],o.y=c[1]+A,g=w[0]<0?"right":"left",o.originX=-y*T,o.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=x[0],o.y=x[1]+A,g="center",o.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*T+f[0],o.y=f[1]+A,g=w[0]>=0?"right":"left",o.originX=y*T,o.originY=-A;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||v,align:o.__align||g})}},e}(qe),EN=function(){function t(e){this.group=new qe,this._LineCtor=e||AN}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,i=r.group,o=r._lineData;r._lineData=e,o||i.removeAll();var a=Bne(e);e.diff(o).add(function(s){n._doAdd(e,s,a)}).update(function(s,l){n._doUpdate(o,e,l,s,a)}).remove(function(s){i.remove(o.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(n,r){n.updateLayout(e,r)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Bne(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!GZe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(MN(o)){var a=new this._LineCtor(n,i,this._seriesScope);a.traverse(r),this.group.add(a),n.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){cc(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var i=e.getItemLayout(n);if(MN(i)){var o=new this._LineCtor(e,n,r);e.setItemGraphicEl(n,o),this.group.add(o)}},t.prototype._doUpdate=function(e,n,r,i,o){var a=e.getItemGraphicEl(r);if(!MN(n.getItemLayout(i))){this.group.remove(a);return}a?a.updateData(n,i,o):a=new this._LineCtor(n,i,o),n.setItemGraphicEl(i,a),this.group.add(a)},t}();function GZe(t){return t.animators&&t.animators.length>0}function Bne(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:_r(e)}}function Vne(t){return isNaN(t[0])||isNaN(t[1])}function MN(t){return t&&!Vne(t[0])&&!Vne(t[1])}var IN=[],DN=[],RN=[],jg=Dr,kN=Xu,zne=Math.abs;function Fne(t,e,n){for(var r=t[0],i=t[1],o=t[2],a=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){IN[0]=jg(r[0],i[0],o[0],c),IN[1]=jg(r[1],i[1],o[1],c);var f=zne(kN(IN,e)-l);f<a&&(a=f,s=c)}for(var d=0;d<32;d++){var p=s+u;DN[0]=jg(r[0],i[0],o[0],s),DN[1]=jg(r[1],i[1],o[1],s),RN[0]=jg(r[0],i[0],o[0],p),RN[1]=jg(r[1],i[1],o[1],p);var f=kN(DN,e)-l;if(zne(f)<.01)break;var g=kN(RN,e)-l;u/=2,f<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function NN(t,e){var n=[],r=R0,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Rs(u[0]),Rs(u[1])],u[2]&&u.__original.push(Rs(u[2])));var d=u.__original;if(u[2]!=null){if(oi(i[0],d[0]),oi(i[1],d[2]),oi(i[2],d[1]),c&&c!=="none"){var p=cb(s.node1),g=Fne(i,d[0],p*e);r(i[0][0],i[1][0],i[2][0],g,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],g,n),i[0][1]=n[3],i[1][1]=n[4]}if(f&&f!=="none"){var p=cb(s.node2),g=Fne(i,d[1],p*e);r(i[0][0],i[1][0],i[2][0],g,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],g,n),i[1][1]=n[1],i[2][1]=n[2]}oi(u[0],i[0]),oi(u[1],i[2]),oi(u[2],i[1])}else{if(oi(o[0],d[0]),oi(o[1],d[1]),Zu(a,o[1],o[0]),Uf(a,a),c&&c!=="none"){var p=cb(s.node1);Aw(o[0],o[0],a,p*e)}if(f&&f!=="none"){var p=cb(s.node2);Aw(o[1],o[1],a,-p*e)}oi(u[0],o[0]),oi(u[1],o[1])}})}function Wne(t){return t.type==="view"}var jZe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){var i=new Qy,o=new EN,a=this.group;this._controller=new qy(r.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},e.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Wne(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(c):Rt(u,c,n)}NN(n.getGraph(),ub(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,i),clearTimeout(this._layoutTimeout);var p=n.forceLayout,g=n.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,g);var v=n.get("layout");f.graph.eachNode(function(O){var w=O.dataIndex,S=O.getGraphicEl(),x=O.getModel();if(S){S.off("drag").off("dragend");var T=x.get("draggable");T&&S.on("drag",function(A){switch(v){case"force":p.warmUp(),!o._layouting&&o._startForceLayoutIteration(p,g),p.setFixed(w),f.setItemLayout(w,[S.x,S.y]);break;case"circular":f.setItemLayout(w,[S.x,S.y]),O.setLayout({fixed:!0},!0),xN(n,"symbolSize",O,[A.offsetX,A.offsetY]),o.updateLayout(n);break;case"none":default:f.setItemLayout(w,[S.x,S.y]),wN(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){p&&p.setUnfixed(w)}),S.setDraggable(T,!!x.get("cursor"));var $=x.get(["emphasis","focus"]);$==="adjacency"&&(Ke(S).focus=O.getAdjacentDataIndices())}}),f.graph.eachEdge(function(O){var w=O.getGraphicEl(),S=O.getModel().get(["emphasis","focus"]);w&&S==="adjacency"&&(Ke(w).focus={edge:[O.dataIndex],node:[O.node1.dataIndex,O.node2.dataIndex]})});var m=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(O){Ine(O,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var i=this;(function o(){n.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(r?i._layoutTimeout=setTimeout(o,16):o())})})()},e.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Gx(u,i,n)}),!Wne(n.coordinateSystem)){a.disable();return}a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Kk(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Jk(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(),NN(n.getGraph(),ub(n)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),i=ub(n);r.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(i)})},e.prototype.updateLayout=function(n){NN(n.getGraph(),ub(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Jt);function Ug(t){return"_EC_"+t}var UZe=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(r[Ug(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new Kd(e,n);return i.hostGraph=this,this.nodes.push(i),r[Ug(e)]=i,i},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[Ug(e)]},t.prototype.addEdge=function(e,n,r){var i=this._nodesMap,o=this._edgesMap;if(Et(e)&&(e=this.nodes[e]),Et(n)&&(n=this.nodes[n]),e instanceof Kd||(e=i[Ug(e)]),n instanceof Kd||(n=i[Ug(n)]),!(!e||!n)){var a=e.id+"-"+n.id,s=new Qne(e,n,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),n.inEdges.push(s)),e.edges.push(s),e!==n&&n.edges.push(s),this.edges.push(s),o[a]=s,s}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof Kd&&(e=e.id),n instanceof Kd&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&e.call(n,r[o],o)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&e.call(n,r[o],o)},t.prototype.breadthFirstTraverse=function(e,n,r,i){if(n instanceof Kd||(n=this._nodesMap[Ug(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(i,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[o],a=0;a<u.length;a++){var c=u[a],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(i,f,l))return;s.push(f),f.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,n=this.edgeData,r=this.nodes,i=this.edges,o=0,a=r.length;o<a;o++)r[o].dataIndex=-1;for(var o=0,a=e.count();o<a;o++)r[e.getRawIndex(o)].dataIndex=o;n.filterSelf(function(s){var l=i[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(var o=0,a=n.count();o<a;o++)i[n.getRawIndex(o)].dataIndex=o},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),Kd=function(){function t(e,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=n??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=Le(),n=Le(),r=0;r<this.edges.length;r++){var i=this.edges[r];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],a=[i.node2],s=0;s<o.length;){var l=o[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),o.push(l.inEdges[u].node1)}for(s=0;s<a.length;){var c=a[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),a.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:n.keys()}},t}(),Qne=function(){function t(e,n,r){this.dataIndex=-1,this.node1=e,this.node2=n,this.dataIndex=r??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=Le(),n=Le();e.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],o=0;o<r.length;){var a=r[o];o++,n.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)e.set(a.inEdges[s].dataIndex,!0),r.push(a.inEdges[s].node1)}for(o=0;o<i.length;){var l=i[o];o++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:n.keys()}},t}();function Hne(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Wn(Kd,Hne("hostGraph","data")),Wn(Qne,Hne("hostGraph","edgeData"));function Gne(t,e,n,r,i){for(var o=new UZe(r),a=0;a<t.length;a++)o.addNode(Un(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var c=e[a],f=c.source,d=c.target;o.addEdge(f,d,u)&&(l.push(c),s.push(Un(cr(c.id,null),f+" > "+d)),u++)}var p=n.get("coordinateSystem"),g;if(p==="cartesian2d"||p==="polar")g=Us(t,n);else{var v=Pd.get(p),m=v?v.dimensions||[]:[];st(m,"value")<0&&m.concat(["value"]);var y=Ng(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;g=new ci(y,n),g.initData(t)}var b=new ci(["value"],n);return b.initData(l,s),i&&i(g,b),one({mainData:g,struct:o,structAttr:"graph",datas:{node:g,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var ZZe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new Zy(i,i),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),rd(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=this;if(o&&i){RZe(this);var s=Gne(o,i,this,!0,l);return V(s.edges,function(u){kZe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var v=a._categoriesModels,m=g.getShallow("category"),y=v[m];return y&&(y.parentModel=g.parentModel,g.parentModel=y),g});var f=rn.prototype.getModel;function d(g,v){var m=f.call(this,g,v);return m.resolveParentPath=p,m}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=p,g.getModel=d,g});function p(g){if(g&&(g[0]==="label"||g[1]==="label")){var v=g.slice();return g[0]==="label"?v[0]="edgeLabel":g[1]==="label"&&(v[1]="edgeLabel"),v}return g}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(n,r,i){if(i==="edge"){var o=this.getData(),a=this.getDataParams(n,i),s=o.graph.getEdgeByIndex(n),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Or("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var f=Mq({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=me(this.option.categories||[],function(i){return i.value!=null?i:he({value:0},i)}),r=new ci(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(on),XZe={type:"graphRoam",event:"graphRoam",update:"none"};function YZe(t){t.registerChartView(jZe),t.registerSeriesModel(ZZe),t.registerProcessor(AZe),t.registerVisual(EZe),t.registerVisual(MZe),t.registerLayout(NZe),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,BZe),t.registerLayout(zZe),t.registerCoordinateSystem("graphView",{dimensions:Jy.dimensions,create:WZe}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Qn),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Qn),t.registerAction(XZe,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(i){var o=i.coordinateSystem,a=iN(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var qZe=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),KZe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new qZe},e.prototype.buildPath=function(n,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=a/3?1:2),c=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+i(l)*s,r.y+o(l)*s),n.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),n.lineTo(r.x-i(l)*s,r.y-o(l)*s),n.lineTo(u,c)},e}(yt);function JZe(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Ee(n[0],e.getWidth()),s=Ee(n[1],e.getHeight()),l=Ee(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function iC(t,e){var n=t==null?"":t+"";return e&&(Ie(e)?n=e.replace("{value}",n):ze(e)&&(n=e(t))),n}var eXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),a=JZe(n,i);this._renderMain(n,r,i,o,a),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,i,o,a){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),p=d?Bx:Ci,g=f.get("show"),v=f.getModel("lineStyle"),m=v.get("width"),y=[u,c];pD(y,!l),u=y[0],c=y[1];for(var b=c-u,O=u,w=[],S=0;g&&S<o.length;S++){var x=Math.min(Math.max(o[S][0],0),1);c=u+b*x;var T=new p({shape:{startAngle:O,endAngle:c,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-m,r:a.r},silent:!0});T.setStyle({fill:o[S][1]}),T.setStyle(v.getLineStyle(["color","width"])),w.push(T),O=c}w.reverse(),V(w,function(A){return s.add(A)});var $=function(A){if(A<=0)return o[0][1];var P;for(P=0;P<o.length;P++)if(o[P][0]>=A&&(P===0?0:o[P-1][0])<A)return o[P][1];return o[P-1][1]};this._renderTicks(n,r,i,$,a,u,c,l,m),this._renderTitleAndDetail(n,r,i,$,a),this._renderAnchor(n,a),this._renderPointer(n,r,i,$,a,u,c,l,m)},e.prototype._renderTicks=function(n,r,i,o,a,s,l,u,c){for(var f=this.group,d=a.cx,p=a.cy,g=a.r,v=+n.get("min"),m=+n.get("max"),y=n.getModel("splitLine"),b=n.getModel("axisTick"),O=n.getModel("axisLabel"),w=n.get("splitNumber"),S=b.get("splitNumber"),x=Ee(y.get("length"),g),T=Ee(b.get("length"),g),$=s,A=(l-s)/w,P=A/S,M=y.getModel("lineStyle").getLineStyle(),I=b.getModel("lineStyle").getLineStyle(),R=y.get("distance"),L,D,B=0;B<=w;B++){if(L=Math.cos($),D=Math.sin($),y.get("show")){var F=R?R+c:c,z=new br({shape:{x1:L*(g-F)+d,y1:D*(g-F)+p,x2:L*(g-x-F)+d,y2:D*(g-x-F)+p},style:M,silent:!0});M.stroke==="auto"&&z.setStyle({stroke:o(B/w)}),f.add(z)}if(O.get("show")){var F=O.get("distance")+R,W=iC(Nn(B/w*(m-v)+v),O.get("formatter")),j=o(B/w),H=L*(g-x-F)+d,Z=D*(g-x-F)+p,J=O.get("rotate"),se=0;J==="radial"?(se=-$+2*Math.PI,se>Math.PI/2&&(se+=Math.PI)):J==="tangential"?se=-$-Math.PI/2:Et(J)&&(se=J*Math.PI/180),se===0?f.add(new $t({style:un(O,{text:W,x:H,y:Z,verticalAlign:D<-.8?"top":D>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:j}),silent:!0})):f.add(new $t({style:un(O,{text:W,x:H,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:H,originY:Z,rotation:se}))}if(b.get("show")&&B!==w){var F=b.get("distance");F=F?F+c:c;for(var oe=0;oe<=S;oe++){L=Math.cos($),D=Math.sin($);var de=new br({shape:{x1:L*(g-F)+d,y1:D*(g-F)+p,x2:L*(g-T-F)+d,y2:D*(g-T-F)+p},silent:!0,style:I});I.stroke==="auto"&&de.setStyle({stroke:o((B+oe/S)/w)}),f.add(de),$+=P}$-=P}else $+=A}},e.prototype._renderPointer=function(n,r,i,o,a,s,l,u,c){var f=this.group,d=this._data,p=this._progressEls,g=[],v=n.get(["pointer","show"]),m=n.getModel("progress"),y=m.get("show"),b=n.getData(),O=b.mapDimension("value"),w=+n.get("min"),S=+n.get("max"),x=[w,S],T=[s,l];function $(P,M){var I=b.getItemModel(P),R=I.getModel("pointer"),L=Ee(R.get("width"),a.r),D=Ee(R.get("length"),a.r),B=n.get(["pointer","icon"]),F=R.get("offsetCenter"),z=Ee(F[0],a.r),W=Ee(F[1],a.r),j=R.get("keepAspect"),H;return B?H=Xn(B,z-L/2,W-D,L,D,null,j):H=new KZe({shape:{angle:-Math.PI/2,width:L,r:D,x:z,y:W}}),H.rotation=-(M+Math.PI/2),H.x=a.cx,H.y=a.cy,H}function A(P,M){var I=m.get("roundCap"),R=I?Bx:Ci,L=m.get("overlap"),D=L?m.get("width"):c/b.count(),B=L?a.r-D:a.r-(P+1)*D,F=L?a.r:a.r-P*D,z=new R({shape:{startAngle:s,endAngle:M,cx:a.cx,cy:a.cy,clockwise:u,r0:B,r:F}});return L&&(z.z2=S-b.get(O,P)%S),z}(y||v)&&(b.diff(d).add(function(P){var M=b.get(O,P);if(v){var I=$(P,s);vn(I,{rotation:-((isNaN(+M)?T[0]:qt(M,x,T,!0))+Math.PI/2)},n),f.add(I),b.setItemGraphicEl(P,I)}if(y){var R=A(P,s),L=m.get("clip");vn(R,{shape:{endAngle:qt(M,x,T,L)}},n),f.add(R),mD(n.seriesIndex,b.dataType,P,R),g[P]=R}}).update(function(P,M){var I=b.get(O,P);if(v){var R=d.getItemGraphicEl(M),L=R?R.rotation:s,D=$(P,L);D.rotation=L,Rt(D,{rotation:-((isNaN(+I)?T[0]:qt(I,x,T,!0))+Math.PI/2)},n),f.add(D),b.setItemGraphicEl(P,D)}if(y){var B=p[M],F=B?B.shape.endAngle:s,z=A(P,F),W=m.get("clip");Rt(z,{shape:{endAngle:qt(I,x,T,W)}},n),f.add(z),mD(n.seriesIndex,b.dataType,P,z),g[P]=z}}).execute(),b.each(function(P){var M=b.getItemModel(P),I=M.getModel("emphasis"),R=I.get("focus"),L=I.get("blurScope"),D=I.get("disabled");if(v){var B=b.getItemGraphicEl(P),F=b.getItemVisual(P,"style"),z=F.fill;if(B instanceof Rr){var W=B.style;B.useStyle(he({image:W.image,x:W.x,y:W.y,width:W.width,height:W.height},F))}else B.useStyle(F),B.type!=="pointer"&&B.setColor(z);B.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",o(qt(b.get(O,P),x,[0,1],!0))),B.z2EmphasisLift=0,Hr(B,M),Ln(B,R,L,D)}if(y){var j=g[P];j.useStyle(b.getItemVisual(P,"style")),j.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),j.z2EmphasisLift=0,Hr(j,M),Ln(j,R,L,D)}}),this._progressEls=g)},e.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Xn(s,r.cx-a/2+Ee(l[0],r.r),r.cy-a/2+Ee(l[1],r.r),a,a,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(n,r,i,o,a){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new qe,p=[],g=[],v=n.isAnimationEnabled(),m=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new $t({silent:!0}),g[y]=new $t({silent:!0})}).update(function(y,b){p[y]=s._titleEls[b],g[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),O=l.get(u,y),w=new qe,S=o(qt(O,[c,f],[0,1],!0)),x=b.getModel("title");if(x.get("show")){var T=x.get("offsetCenter"),$=a.cx+Ee(T[0],a.r),A=a.cy+Ee(T[1],a.r),P=p[y];P.attr({z2:m?0:2,style:un(x,{x:$,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:S})}),w.add(P)}var M=b.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),R=a.cx+Ee(I[0],a.r),L=a.cy+Ee(I[1],a.r),D=Ee(M.get("width"),a.r),B=Ee(M.get("height"),a.r),F=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:S,P=g[y],z=M.get("formatter");P.attr({z2:m?0:2,style:un(M,{x:R,y:L,text:iC(O,z),width:isNaN(D)?null:D,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:F})}),fY(P,{normal:M},O,function(j){return iC(j,z)}),v&&dY(P,y,l,n,{getFormattedLabel:function(j,H,Z,J,se,oe){return iC(oe?oe.interpolatedValue:O,z)}}),w.add(P)}d.add(w)}),this.group.add(d),this._titleEls=p,this._detailEls=g},e.type="gauge",e}(Jt),tXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return Wg(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(on);function nXe(t){t.registerChartView(eXe),t.registerSeriesModel(tXe)}var rXe=["itemStyle","opacity"],iXe=function(t){re(e,t);function e(n,r){var i=t.call(this)||this,o=i,a=new Pi,s=new $t;return o.setTextContent(s),i.setTextGuideLine(a),i.updateData(n,r,!0),i}return e.prototype.updateData=function(n,r,i){var o=this,a=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(rXe);c=c??1,i||os(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",i?(o.setShape({points:l.points}),o.style.opacity=0,vn(o,{style:{opacity:c}},a,r)):Rt(o,{style:{opacity:c},shape:{points:l.points}},a,r),Hr(o,s),this._updateLabel(n,r),Ln(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var i=this,o=this.getTextGuideLine(),a=i.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Gr(a,_r(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var p=c.linePoints;o.setShape({points:p}),i.textGuideLineConfig={anchor:p?new ot(p[0][0],p[0][1]):null},Rt(a,{style:{x:c.x,y:c.y}},s,r),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),vk(i,mk(l),{stroke:d})},e}(Ti),oXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var u=new iXe(o,l);o.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(o,l),s.add(c),o.setItemGraphicEl(l,c)}).remove(function(l){var u=a.getItemGraphicEl(l);ly(u,n,l)}).execute(),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Jt),aXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zy(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return Wg(this,{coordDimensions:["value"],encodeDefaulter:tt(iR,this)})},e.prototype._defaultLabelLine=function(n){rd(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),i=t.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),a=r.getSum(o);return i.percent=a?+(r.get(o,n)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(on);function sXe(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lXe(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(l){return l}),i=[],o=e==="ascending",a=0,s=t.count();a<s;a++)i[a]=a;return ze(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return o?r[l]-r[u]:r[u]-r[l]}),i}function uXe(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var i=t.getItemModel(r),o=i.getModel("label"),a=o.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(r),u=l.points,c=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",f,d,p,g;if(c)a==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,f="left"):a==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),g=[[d,p],[d,p]];else{var v=void 0,m=void 0,y=void 0,b=void 0,O=s.get("length");process.env.NODE_ENV!=="production"&&(n==="vertical"&&["top","bottom"].indexOf(a)>-1&&(a="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),n==="horizontal"&&["left","right"].indexOf(a)>-1&&(a="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),a==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=v-O,d=y-5,f="right"):a==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=v+O,d=y+5,f="left"):a==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,b=m-O,p=b-5,f="center"):a==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,b=m+O,p=b+5,f="center"):a==="rightTop"?(v=n==="horizontal"?u[3][0]:u[1][0],m=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(b=m-O,p=b-5,f="center"):(y=v+O,d=y+5,f="top")):a==="rightBottom"?(v=u[2][0],m=u[2][1],n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=v+O,d=y+5,f="bottom")):a==="leftTop"?(v=u[0][0],m=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=m-O,p=b-5,f="center"):(y=v-O,d=y-5,f="right")):a==="leftBottom"?(v=n==="horizontal"?u[1][0]:u[3][0],m=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=v-O,d=y-5,f="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=v+O,d=y+5,f="left")),n==="horizontal"?(y=v,d=y):(b=m,p=b),g=[[v,m],[y,b]]}l.label={linePoints:g,x:d,y:p,verticalAlign:"middle",textAlign:f,inside:c}})}function cXe(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),o=n.get("sort"),a=sXe(n,e),s=n.get("orient"),l=a.width,u=a.height,c=lXe(r,o),f=a.x,d=a.y,p=s==="horizontal"?[Ee(n.get("minSize"),u),Ee(n.get("maxSize"),u)]:[Ee(n.get("minSize"),l),Ee(n.get("maxSize"),l)],g=r.getDataExtent(i),v=n.get("min"),m=n.get("max");v==null&&(v=Math.min(g[0],0)),m==null&&(m=g[1]);var y=n.get("funnelAlign"),b=n.get("gap"),O=s==="horizontal"?l:u,w=(O-b*(r.count()-1))/r.count(),S=function(L,D){if(s==="horizontal"){var B=r.get(i,L)||0,F=qt(B,[v,m],p,!0),z=void 0;switch(y){case"top":z=d;break;case"center":z=d+(u-F)/2;break;case"bottom":z=d+(u-F);break}return[[D,z],[D,z+F]]}var W=r.get(i,L)||0,j=qt(W,[v,m],p,!0),H;switch(y){case"left":H=f;break;case"center":H=f+(l-j)/2;break;case"right":H=f+l-j;break}return[[H,D],[H+j,D]]};o==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var x=0;x<c.length;x++){var T=c[x],$=c[x+1],A=r.getItemModel(T);if(s==="horizontal"){var P=A.get(["itemStyle","width"]);P==null?P=w:(P=Ee(P,l),o==="ascending"&&(P=-P));var M=S(T,f),I=S($,f+P);f+=P+b,r.setItemLayout(T,{points:M.concat(I.slice().reverse())})}else{var R=A.get(["itemStyle","height"]);R==null?R=w:(R=Ee(R,u),o==="ascending"&&(R=-R));var M=S(T,d),I=S($,d+R);d+=R+b,r.setItemLayout(T,{points:M.concat(I.slice().reverse())})}}uXe(r)})}function fXe(t){t.registerChartView(oXe),t.registerSeriesModel(aXe),t.registerLayout(cXe),t.registerProcessor(Uy("funnel"))}var dXe=.3,hXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new qe,n._initialized=!1,n}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=Zne(n);s.diff(l).add(d).update(p).remove(g).execute();function d(m){var y=Une(s,a,m,c,u);LN(y,s,m,f)}function p(m,y){var b=l.getItemGraphicEl(y),O=jne(s,m,c,u);s.setItemGraphicEl(m,b),Rt(b,{shape:{points:O}},n,m),os(b),LN(b,s,m,f)}function g(m){var y=l.getItemGraphicEl(m);a.remove(y)}if(!this._initialized){this._initialized=!0;var v=pXe(u,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(v)}this._data=s},e.prototype.incrementalPrepareRender=function(n,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(n,r,i){for(var o=r.getData(),a=r.coordinateSystem,s=a.dimensions,l=Zne(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=Une(o,this._dataGroup,c,s,a);f.incremental=!0,LN(f,o,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Jt);function pXe(t,e,n){var r=t.model,i=t.getRect(),o=new Pt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a=r.get("layout")==="horizontal"?"width":"height";return o.setShape(a,0),vn(o,{shape:{width:i.width,height:i.height}},e,n),o}function jne(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);gXe(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function Une(t,e,n,r,i){var o=jne(t,n,r,i),a=new Pi({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function Zne(t){var e=t.get("smooth",!0);return e===!0&&(e=dXe),e=Bs(e),ju(e)&&(e=0),{smooth:e}}function LN(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");Hr(t,i,"lineStyle"),Ln(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function gXe(t,e){return e==="category"?t==null:t==null||isNaN(t)}var vXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{useEncodeDefaulter:Re(mXe,null,this)})},e.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,i=this.getData(),o=[];return r.eachActiveState(i,function(a,s){n===a&&o.push(i.getRawIndex(s))}),o},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(on);function mXe(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return V(e.dimensions,function(r){var i=yXe(r);n[r]=i}),n}}function yXe(t){return+t.replace("dim","")}var bXe=["lineStyle","opacity"],_Xe={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(i,o){n.eachActiveState(o,function(a,s){var l=r[a];if(a==="normal"&&o.hasItemOption){var u=o.getItemModel(s).get(bXe,!0);u!=null&&(l=u)}var c=o.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function OXe(t){wXe(t),SXe(t)}function wXe(t){if(!t.parallel){var e=!1;V(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function SXe(t){var e=nn(t.parallelAxis);V(e,function(n){if(Qe(n)){var r=n.parallelIndex||0,i=nn(t.parallel)[r];i&&i.parallelAxisDefault&&it(n,i.parallelAxisDefault,!1)}})}var xXe=5,CXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this._model=n,this._api=i,this._handlers||(this._handlers={},V(TXe,function(o,a){i.getZr().on(a,this._handlers[a]=Re(o,this))},this)),Ag(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){xy(this,"_throttledDispatchExpand"),V(this._handlers,function(i,o){r.getZr().off(o,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},e.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(he({type:"parallelAxisExpand"},n))},e.type="parallel",e}(dn),TXe={mousedown:function(t){BN(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(BN(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>xXe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!BN(this,"mousemove"))){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function BN(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var PXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(n){var r=this.option;n&&it(r,n,!0),this._initDimensions()},e.prototype.contains=function(n,r){var i=n.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(n){V(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},e.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],i=Yt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);V(i,function(o){n.push("dim"+o.get("dim")),r.push(o.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(dt),$Xe=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.type=o||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ma);function Jd(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(i!=null&&(i=Zg(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Zg(s,[0,a]),i=o=Zg(s,[i,o]),r=0}e[0]=Zg(e[0],n),e[1]=Zg(e[1],n);var l=VN(e,r);e[r]+=t;var u=i||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Zg(e[r],c);var f;return f=VN(e,r),i!=null&&(f.sign!==l.sign||f.span<i)&&(e[1-r]=e[r]+l.sign*i),f=VN(e,r),o!=null&&f.span>o&&(e[1-r]=e[r]+f.sign*o),e}function VN(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Zg(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var zN=V,Xne=Math.min,Yne=Math.max,qne=Math.floor,AXe=Math.ceil,Kne=Nn,EXe=Math.PI,MXe=function(){function t(e,n,r){this.type="parallel",this._axesMap=Le(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var i=e.dimensions,o=e.parallelAxisIndex;zN(i,function(a,s){var l=o[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(a,new $Xe(a,Ny(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,n){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var n=this._makeLayoutInfo(),r=n.axisBase,i=n.layoutBase,o=n.pixelDimIndex,a=e[1-o],s=e[o];return a>=r&&a<=r+n.axisLength&&s>=i&&s<=i+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,n){n.eachSeries(function(r){if(e.contains(r,n)){var i=r.getData();zN(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(i,i.mapDimension(o)),Ld(a.scale,a.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=er(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a=o==="horizontal"?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=oC(e.get("axisExpandWidth"),l),f=oC(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,p=e.get("axisExpandWindow"),g;if(p)g=oC(p[1]-p[0],l),p[1]=p[0]+g;else{g=oC(c*(f-1),l);var v=e.get("axisExpandCenter")||qne(u/2);p=[c*v-g/2],p[1]=p[0]+g}var m=(s-g)/(u-f);m<3&&(m=0);var y=[qne(Kne(p[0]/c,1))+1,AXe(Kne(p[1]/c,1))-1],b=m/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;n.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),zN(r,function(a,s){var l=(i.axisExpandable?DXe:IXe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:EXe/2,vertical:0},f=[u[o].x+e.x,u[o].y+e.y],d=c[o],p=Ui();Yu(p,p,d),Ka(p,p,f),this._axesLayout[a]={position:f,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e),n)},t.prototype.eachActiveState=function(e,n,r,i){r==null&&(r=0),i==null&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];V(a,function(m){s.push(e.mapDimension(m)),l.push(o.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),p=0,g=a.length;p<g;p++){var v=l[p].getActiveState(d[p]);if(v==="inactive"){f="inactive";break}}}n(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,n=this._axesMap,r=!1,i=0,o=e.length;i<o;i++)n.get(e[i]).model.getActiveState()!=="normal"&&(r=!0);return r},t.prototype.axisCoordToPoint=function(e,n){var r=this._axesLayout[n];return as([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return Ue(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,i=n.axisExpandWindow.slice(),o=i[1]-i[0],a=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<o*f[0]?(u="jump",l=s-o*f[2]):d&&c&&s>o*(1-f[0])?(u="jump",l=s-o*(1-f[2])):(l=s-o*f[1])>=0&&(l=s-o*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Jd(l,i,a,"all"):u="none";else{var p=i[1]-i[0],g=a[1]*s/p;i=[Yne(0,g-p/2)],i[1]=Xne(a[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:u}},t}();function oC(t,e){return Xne(Yne(t,e[0]),e[1])}function IXe(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function DXe(t,e){var n=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,o=e.axisCollapseWidth,a=e.winInnerIndices,s,l=o,u=!1,c;return t<a[0]?(s=t*o,c=o):t<=a[1]?(s=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],l=r,u=!0):(s=n-(i-1-t)*o,c=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function RXe(t,e){var n=[];return t.eachComponent("parallel",function(r,i){var o=new MXe(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",Jn).models[0];r.coordinateSystem=i.coordinateSystem}}),n}var kXe={create:RXe},FN=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return e.prototype.getAreaSelectStyle=function(){return ad([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Ue(n);if(r)for(var i=r.length-1;i>=0;i--)So(r[i])},e.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=n&&n<=i[1])return"active"}else for(var o=0,a=r.length;o<a;o++)if(r[o][0]<=n&&n<=r[o][1])return"active";return"inactive"},e}(dt);Wn(FN,Vg);var eh=!0,fb=Math.min,Xg=Math.max,NXe=Math.pow,LXe=1e4,BXe=6,VXe=6,Jne="globalPan",zXe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},FXe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ere={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},WXe=0,WN=function(t){re(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},process.env.NODE_ENV!=="production"&&je(n),r._zr=n,r.group=new qe,r._uid="brushController_"+WXe++,V(XXe,function(i,o){this._handlers[o]=Re(i,this)},r),r}return e.prototype.enableBrush=function(n){return process.env.NODE_ENV!=="production"&&je(this._mounted),this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||Ije(r,Jne,this._uid),V(this._handlers,function(i,o){r.on(o,i)}),this._brushType=n.brushType,this._brushOption=it(Ue(ere),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;Dje(n,Jne,this._uid),V(this._handlers,function(r,i){n.off(i,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};V(n,function(i){r[i.panelId]=Ue(i)})}else this._panels=null;return this},e.prototype.mount=function(n){n=n||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(n){process.env.NODE_ENV!=="production"&&je(this._mounted),n=me(n,function(d){return it(Ue(ere),d,!0)});var r="\0-brush-index-",i=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new ql(i,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,p){return(d.id!=null?d.id:r+p)+"-"+d.brushType}function u(d,p){return l(d.__brushOption,p)}function c(d,p){var g=n[d];if(p!=null&&i[p]===s)o[d]=i[p];else{var v=o[d]=p!=null?(i[p].__brushOption=g,i[p]):nre(a,tre(a,g));QN(a,v)}}function f(d){i[d]!==s&&a.group.remove(i[d])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),jN(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(ra);function tre(t,e){var n=aC[e.brushType].createCover(t,e);return n.__brushOption=e,ire(n,e),t.group.add(n),n}function nre(t,e){var n=HN(e);return n.endCreating&&(n.endCreating(t,e),ire(e,e.__brushOption)),e}function rre(t,e){var n=e.__brushOption;HN(e).updateCoverShape(t,e,n.range,n)}function ire(t,e){var n=e.z;n==null&&(n=LXe),t.traverse(function(r){r.z=n,r.z2=n})}function QN(t,e){HN(e).updateCommon(t,e),rre(t,e)}function HN(t){return aC[t.__brushOption.brushType]}function GN(t,e,n){var r=t._panels;if(!r)return eh;var i,o=t._transform;return V(r,function(a){a.isTargetByCursor(e,n,o)&&(i=a)}),i}function ore(t,e){var n=t._panels;if(!n)return eh;var r=e.__brushOption.panelId;return r!=null?n[r]:eh}function jN(t){var e=t._covers,n=e.length;return V(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function th(t,e){var n=me(t._covers,function(r){var i=r.__brushOption,o=Ue(i.range);return{brushType:i.brushType,panelId:i.panelId,range:o}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function QXe(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1],a=NXe(i*i+o*o,.5);return a>BXe}function are(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function sre(t,e,n,r){var i=new qe;return i.add(new Pt({name:"main",style:ZN(n),silent:!0,draggable:!0,cursor:"move",drift:tt(cre,t,e,i,["n","s","w","e"]),ondragend:tt(th,e,{isEnd:!0})})),V(r,function(o){i.add(new Pt({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(cre,t,e,i,o),ondragend:tt(th,e,{isEnd:!0})}))}),i}function lre(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=Xg(i,VXe),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],f=n[1][1],d=c-o+i/2,p=f-o+i/2,g=c-a,v=f-s,m=g+i,y=v+i;tu(t,e,"main",a,s,g,v),r.transformable&&(tu(t,e,"w",l,u,o,y),tu(t,e,"e",d,u,o,y),tu(t,e,"n",l,u,m,o),tu(t,e,"s",l,p,m,o),tu(t,e,"nw",l,u,o,o),tu(t,e,"ne",d,u,o,o),tu(t,e,"sw",l,p,o,o),tu(t,e,"se",d,p,o,o))}function UN(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(ZN(n)),i.attr({silent:!r,cursor:r?"move":"default"}),V([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=e.childOfName(o.join("")),s=o.length===1?XN(t,o[0]):GXe(t,o);a&&a.attr({silent:!r,invisible:!r,cursor:r?FXe[s]+"-resize":null})})}function tu(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(UXe(YN(t,e,[[r,i],[r+o,i+a]])))}function ZN(t){return Ge({strokeNoScale:!0},t.brushStyle)}function ure(t,e,n,r){var i=[fb(t,n),fb(e,r)],o=[Xg(t,n),Xg(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function HXe(t){return uc(t.group)}function XN(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=DS(n[e],HXe(t));return r[i]}function GXe(t,e){var n=[XN(t,e[0]),XN(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function cre(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=fre(e,i,o);V(r,function(u){var c=zXe[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=t.fromRectRange(ure(s[0][0],s[1][0],s[0][1],s[1][1])),QN(e,n),th(e,{isEnd:!1})}function jXe(t,e,n,r){var i=e.__brushOption.range,o=fre(t,n,r);V(i,function(a){a[0]+=o[0],a[1]+=o[1]}),QN(t,e),th(t,{isEnd:!1})}function fre(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function YN(t,e,n){var r=ore(t,e);return r&&r!==eh?r.clipPath(n,t._transform):Ue(n)}function UXe(t){var e=fb(t[0][0],t[1][0]),n=fb(t[0][1],t[1][1]),r=Xg(t[0][0],t[1][0]),i=Xg(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function ZXe(t,e,n){if(!(!t._brushType||YXe(t,e.offsetX,e.offsetY))){var r=t._zr,i=t._covers,o=GN(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===eh||s.panelId===o.panelId)&&aC[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function qN(t){var e=t.event;e.preventDefault&&e.preventDefault()}function KN(t,e,n){return t.childOfName("main").contain(e,n)}function dre(t,e,n,r){var i=t._creatingCover,o=t._creatingPanel,a=t._brushOption,s;if(t._track.push(n.slice()),QXe(t)||i){if(o&&!i){a.brushMode==="single"&&jN(t);var l=Ue(a);l.brushType=hre(l.brushType,o),l.panelId=o===eh?null:o.panelId,i=t._creatingCover=tre(t,l),t._covers.push(i)}if(i){var u=aC[hre(t._brushType,o)],c=i.__brushOption;c.range=u.getCreatingRange(YN(t,i,t._track)),r&&(nre(t,i),u.updateCommon(t,i)),rre(t,i),s={isEnd:r}}}else r&&a.brushMode==="single"&&a.removeOnClick&&GN(t,e,n)&&jN(t)&&(s={isEnd:r,removeOnClick:!0});return s}function hre(t,e){return t==="auto"?(process.env.NODE_ENV!=="production"&&je(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}var XXe={mousedown:function(t){if(this._dragging)pre(this,t);else if(!t.target||!t.target.draggable){qN(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=GN(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(ZXe(this,t,r),this._dragging){qN(t);var i=dre(this,t,r,!1);i&&th(this,i)}},mouseup:function(t){pre(this,t)}};function pre(t,e){if(t._dragging){qN(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=dre(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&th(t,o)}}function YXe(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var aC={lineX:gre(0),lineY:gre(1),rect:{createCover:function(t,e){function n(r){return r}return sre({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=are(t);return ure(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){lre(t,e,n,r)},updateCommon:UN,contain:KN},polygon:{createCover:function(t,e){var n=new qe;return n.add(new Pi({name:"main",style:ZN(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ti({name:"main",draggable:!0,drift:tt(jXe,t,e),ondragend:tt(th,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:YN(t,e,n)})},updateCommon:UN,contain:KN}};function gre(t){return{createCover:function(e,n){return sre({toRectRange:function(r){var i=[r,[0,100]];return t&&i.reverse(),i},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=are(e),r=fb(n[0][t],n[1][t]),i=Xg(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=ore(e,n);if(a!==eh&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),lre(e,n,l,i)},updateCommon:UN,contain:KN}}function vre(t){return t=JN(t),function(e){return LD(e,t)}}function mre(t,e){return t=JN(t),function(n){var r=e??n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function yre(t,e,n){var r=JN(t);return function(i,o){return r.contain(o[0],o[1])&&!Gx(i,e,n)}}function JN(t){return at.create(t)}var qXe=["axisLine","axisTickLabel","axisName"],KXe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){t.prototype.init.apply(this,arguments),(this._brushController=new WN(r.getZr())).on("brush",Re(this._onBrush,this))},e.prototype.render=function(n,r,i,o){if(!JXe(n,r,o)){this.axisModel=n,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!n.get("show")){var s=tYe(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),p=he({strokeContainThreshold:c},d),g=new Ii(n,p);V(qXe,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(p,u,n,s,c,i),cy(a,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,i,o,a,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=at.create({x:l[0],y:-a/2,width:u,height:a});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:vre(f),isTargetByCursor:yre(f,s,o),getLinearBrushOtherExtent:mre(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(eYe(i))},e.prototype._onBrush=function(n){var r=n.areas,i=this.axisModel,o=i.axis,a=me(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(dn);function JXe(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function eYe(t){var e=t.axis;return me(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function tYe(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var nYe={type:"axisAreaSelect",event:"axisAreaSelected"};function rYe(t){t.registerAction(nYe,function(e,n){n.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,n){n.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var iYe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bre(t){t.registerComponentView(CXe),t.registerComponentModel(PXe),t.registerCoordinateSystem("parallel",kXe),t.registerPreprocessor(OXe),t.registerComponentModel(FN),t.registerComponentView(KXe),Qg(t,"parallel",FN,iYe),rYe(t)}function oYe(t){ht(bre),t.registerChartView(hXe),t.registerSeriesModel(vXe),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,_Xe)}var aYe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),sYe=function(t){re(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new aYe},e.prototype.buildPath=function(n,r){var i=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+i,r.y2),n.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(n.lineTo(r.x2,r.y2+i),n.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),n.closePath()},e.prototype.highlight=function(){jl(this)},e.prototype.downplay=function(){Ul(this)},e}(yt),lYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,i){var o=this,a=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),p=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(g){var v=new sYe,m=Ke(v);m.dataIndex=g.dataIndex,m.seriesIndex=n.seriesIndex,m.dataType="edge";var y=g.getModel(),b=y.getModel("lineStyle"),O=b.get("curveness"),w=g.node1.getLayout(),S=g.node1.getModel(),x=S.get("localX"),T=S.get("localY"),$=g.node2.getLayout(),A=g.node2.getModel(),P=A.get("localX"),M=A.get("localY"),I=g.getLayout(),R,L,D,B,F,z,W,j;v.shape.extent=Math.max(1,I.dy),v.shape.orient=p,p==="vertical"?(R=(x!=null?x*u:w.x)+I.sy,L=(T!=null?T*c:w.y)+w.dy,D=(P!=null?P*u:$.x)+I.ty,B=M!=null?M*c:$.y,F=R,z=L*(1-O)+B*O,W=D,j=L*O+B*(1-O)):(R=(x!=null?x*u:w.x)+w.dx,L=(T!=null?T*c:w.y)+I.sy,D=P!=null?P*u:$.x,B=(M!=null?M*c:$.y)+I.ty,F=R*(1-O)+D*O,z=L,W=R*O+D*(1-O),j=B),v.setShape({x1:R,y1:L,x2:D,y2:B,cpx1:F,cpy1:z,cpx2:W,cpy2:j}),v.useStyle(b.getItemStyle()),_re(v.style,p,g);var H=""+y.get("value"),Z=_r(y,"edgeLabel");Gr(v,Z,{labelFetcher:{getFormattedLabel:function(oe,de,ie,ue,ee,X){return n.getFormattedLabel(oe,de,"edge",ue,_o(ee,Z.normal&&Z.normal.get("formatter"),H),X)}},labelDataIndex:g.dataIndex,defaultText:H}),v.setTextConfig({position:"inside"});var J=y.getModel("emphasis");Hr(v,y,"lineStyle",function(oe){var de=oe.getItemStyle();return _re(de,p,g),de}),s.add(v),d.setItemGraphicEl(g.dataIndex,v);var se=J.get("focus");Ln(v,se==="adjacency"?g.getAdjacentDataIndices():se==="trajectory"?g.getTrajectoryDataIndices():se,J.get("blurScope"),J.get("disabled"))}),a.eachNode(function(g){var v=g.getLayout(),m=g.getModel(),y=m.get("localX"),b=m.get("localY"),O=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,S=new Pt({shape:{x:y!=null?y*u:v.x,y:b!=null?b*c:v.y,width:v.dx,height:v.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Gr(S,_r(m),{labelFetcher:{getFormattedLabel:function(T,$){return n.getFormattedLabel(T,$,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),S.disableLabelAnimation=!0,S.setStyle("fill",g.getVisual("color")),S.setStyle("decal",g.getVisual("style").decal),Hr(S,m),s.add(S),f.setItemGraphicEl(g.dataIndex,S),Ke(S).dataType="node";var x=O.get("focus");Ln(S,x==="adjacency"?g.getAdjacentDataIndices():x==="trajectory"?g.getTrajectoryDataIndices():x,O.get("blurScope"),O.get("disabled"))}),f.eachItemGraphicEl(function(g,v){var m=f.getItemModel(v);m.get("draggable")&&(g.drift=function(y,b){o._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){o._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(uYe(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Jt);function _re(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Ie(r)&&Ie(i)&&(t.fill=new dg(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function uYe(t,e,n){var r=new Pt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return vn(r,{shape:{width:t.width+20}},e,n),r}var cYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var i=n.edges||n.links,o=n.data||n.nodes,a=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)if(a[l].depth!=null&&a[l].depth>=0)s[a[l].depth]=new rn(a[l],this,r);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(o&&i){var u=Gne(o,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(p,g){var v=p.parentModel,m=v.getData().getItemLayout(g);if(m){var y=m.depth,b=v.levelModels[y];b&&(p.parentModel=b)}return p}),d.wrapMethod("getItemModel",function(p,g){var v=p.parentModel,m=v.getGraph().getEdgeByIndex(g),y=m.node1.getLayout();if(y){var b=y.depth,O=v.levelModels[b];O&&(p.parentModel=O)}return p})}},e.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,o=i[n];o.localX=r[0],o.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,i){function o(p){return isNaN(p)||p==null}if(i==="edge"){var a=this.getDataParams(n,i),s=a.data,l=a.value,u=s.source+" -- "+s.target;return Or("nameValue",{name:u,value:l,noValue:o(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,i).data.name;return Or("nameValue",{name:d!=null?d+"":null,value:f,noValue:o(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var i=t.prototype.getDataParams.call(this,n,r);if(i.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),a=o.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(on);function fYe(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),o=dYe(n,e);n.layoutInfo=o;var a=o.width,s=o.height,l=n.getGraph(),u=l.nodes,c=l.edges;pYe(u);var f=Yt(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),p=n.get("orient"),g=n.get("nodeAlign");hYe(u,c,r,i,a,s,d,p,g)})}function dYe(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hYe(t,e,n,r,i,o,a,s,l){gYe(t,e,n,i,o,s,l),bYe(t,e,o,i,r,a,s),$Ye(t,s)}function pYe(t){V(t,function(e){var n=Sc(e.outEdges,sC),r=Sc(e.inEdges,sC),i=e.getValue()||0,o=Math.max(n,r,i);e.setLayout({value:o},!0)})}function gYe(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<t.length;d++)l[d]=t[d].inEdges.length,l[d]===0&&u.push(t[d]);for(var p=-1;u.length;){for(var g=0;g<u.length;g++){var v=u[g],m=v.hostGraph.data.getRawDataItem(v.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>p&&(p=m.depth),v.setLayout({depth:y?m.depth:f},!0),o==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var b=0;b<v.outEdges.length;b++){var O=v.outEdges[b],w=e.indexOf(O);s[w]=0;var S=O.node2,x=t.indexOf(S);--l[x]===0&&c.indexOf(S)<0&&c.push(S)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var T=p>f-1?p:f-1;a&&a!=="left"&&vYe(t,a,o,T);var $=o==="vertical"?(i-n)/T:(r-n)/T;yYe(t,$,o)}function Ore(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function vYe(t,e,n,r){if(e==="right"){for(var i=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}V(t,function(f){Ore(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&mYe(t,r)}function mYe(t,e){V(t,function(n){!Ore(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function yYe(t,e,n){V(t,function(r){var i=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function bYe(t,e,n,r,i,o,a){var s=_Ye(t,a);OYe(s,e,n,r,i,a),eL(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,wYe(s,l,a),eL(s,i,n,r,a),PYe(s,l,a),eL(s,i,n,r,a)}function _Ye(t,e){var n=[],r=e==="vertical"?"y":"x",i=KI(t,function(o){return o.getLayout()[r]});return i.keys.sort(function(o,a){return o-a}),V(i.keys,function(o){n.push(i.buckets.get(o))}),n}function OYe(t,e,n,r,i,o){var a=1/0;V(t,function(s){var l=s.length,u=0;V(s,function(f){u+=f.getLayout().value});var c=o==="vertical"?(r-(l-1)*i)/u:(n-(l-1)*i)/u;c<a&&(a=c)}),V(t,function(s){V(s,function(l,u){var c=l.getLayout().value*a;o==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),V(e,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function eL(t,e,n,r,i){var o=i==="vertical"?"x":"y";V(t,function(a){a.sort(function(v,m){return v.getLayout()[o]-m.getLayout()[o]});for(var s,l,u,c=0,f=a.length,d=i==="vertical"?"dx":"dy",p=0;p<f;p++)l=a[p],u=c-l.getLayout()[o],u>0&&(s=l.getLayout()[o]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]+l.getLayout()[d]+e;var g=i==="vertical"?r:n;if(u=c-e-g,u>0){s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var p=f-2;p>=0;--p)l=a[p],u=l.getLayout()[o]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]}})}function wYe(t,e,n){V(t.slice().reverse(),function(r){V(r,function(i){if(i.outEdges.length){var o=Sc(i.outEdges,SYe,n)/Sc(i.outEdges,sC);if(isNaN(o)){var a=i.outEdges.length;o=a?Sc(i.outEdges,xYe,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-wc(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-wc(i,n))*e;i.setLayout({y:l},!0)}}})})}function SYe(t,e){return wc(t.node2,e)*t.getValue()}function xYe(t,e){return wc(t.node2,e)}function CYe(t,e){return wc(t.node1,e)*t.getValue()}function TYe(t,e){return wc(t.node1,e)}function wc(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function sC(t){return t.getValue()}function Sc(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function PYe(t,e,n){V(t,function(r){V(r,function(i){if(i.inEdges.length){var o=Sc(i.inEdges,CYe,n)/Sc(i.inEdges,sC);if(isNaN(o)){var a=i.inEdges.length;o=a?Sc(i.inEdges,TYe,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-wc(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-wc(i,n))*e;i.setLayout({y:l},!0)}}})})}function $Ye(t,e){var n=e==="vertical"?"x":"y";V(t,function(r){r.outEdges.sort(function(i,o){return i.node2.getLayout()[n]-o.node2.getLayout()[n]}),r.inEdges.sort(function(i,o){return i.node1.getLayout()[n]-o.node1.getLayout()[n]})}),V(t,function(r){var i=0,o=0;V(r.outEdges,function(a){a.setLayout({sy:i},!0),i+=a.getLayout().dy}),V(r.inEdges,function(a){a.setLayout({ty:o},!0),o+=a.getLayout().dy})})}function AYe(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,i=n.edges;if(r.length){var o=1/0,a=-1/0;V(r,function(s){var l=s.getLayout().value;l<o&&(o=l),l>a&&(a=l)}),V(r,function(s){var l=new Sr({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&V(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function EYe(t){t.registerChartView(lYe),t.registerSeriesModel(cYe),t.registerLayout(fYe),t.registerVisual(AYe),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var wre=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type"),l;a==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=o.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],p=[i,o],g=p[c].get("type"),v=p[1-c].get("type"),m=e.data;if(m&&l){var y=[];V(m,function(w,S){var x;ge(w)?(x=w.slice(),w.unshift(S)):ge(w.value)?(x=he({},w),x.value=x.value.slice(),w.value.unshift(S)):x=w,y.push(x)}),e.data=y}var b=this.defaultValueDimensions,O=[{name:f,type:mx(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:mx(v),dimsDef:b.slice()}];return Wg(this,{coordDimensions:O,dimensionsCount:b.length+1,encodeDefaulter:tt(RY,O,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Sre=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(on);Wn(Sre,wre,!0);var MYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=n.get("layout")==="horizontal"?1:0;o.diff(s).add(function(u){if(o.hasValue(u)){var c=o.getItemLayout(u),f=xre(c,o,u,l,!0);o.setItemGraphicEl(u,f),a.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!o.hasValue(u)){a.remove(f);return}var d=o.getItemLayout(u);f?(os(f),Cre(d,f,o,u)):f=xre(d,o,u,l),a.add(f),o.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&a.remove(c)}).execute(),this._data=o},e.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&r.remove(o)})},e.type="boxplot",e}(Jt),IYe=function(){function t(){}return t}(),DYe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new IYe},e.prototype.buildPath=function(n,r){var i=r.points,o=0;for(n.moveTo(i[o][0],i[o][1]),o++;o<4;o++)n.lineTo(i[o][0],i[o][1]);for(n.closePath();o<i.length;o++)n.moveTo(i[o][0],i[o][1]),o++,n.lineTo(i[o][0],i[o][1])},e}(yt);function xre(t,e,n,r,i){var o=t.ends,a=new DYe({shape:{points:i?RYe(o,r,t):o}});return Cre(t,a,e,n,i),a}function Cre(t,e,n,r,i){var o=n.hostModel,a=Od[i?"initProps":"updateProps"];a(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Hr(e,s),Ln(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function RYe(t,e,n){return me(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}var db=V;function kYe(t){var e=NYe(t);db(e,function(n){var r=n.seriesModels;r.length&&(LYe(n),db(r,function(i,o){BYe(i,n.boxOffsetList[o],n.boxWidthList[o])}))})}function NYe(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),o=st(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(r)}),e}function LYe(t){var e=t.axis,n=t.seriesModels,r=n.length,i=t.boxWidthList=[],o=t.boxOffsetList=[],a=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;db(n,function(g){l=Math.max(l,g.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}db(n,function(g){var v=g.get("boxWidth");ge(v)||(v=[v,v]),a.push([Ee(v[0],s)||0,Ee(v[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,p=d/2-c/2;db(n,function(g,v){o.push(p),p+=f+d,i.push(Math.min(Math.max(d,a[v][0]),a[v][1]))})}function BYe(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a=t.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(u,f),p=O(d,c[2],f),g=O(d,c[0],f),v=O(d,c[1],f),m=O(d,c[3],f),y=O(d,c[4],f),b=[];w(b,v,!1),w(b,m,!0),b.push(g,v,y,m),S(b,g),S(b,y),S(b,p),i.setItemLayout(f,{initBaseline:p[s],ends:b})}function O(x,T,$){var A=i.get(T,$),P=[];P[a]=x,P[s]=A;var M;return isNaN(x)||isNaN(A)?M=[NaN,NaN]:(M=r.dataToPoint(P),M[a]+=e),M}function w(x,T,$){var A=T.slice(),P=T.slice();A[a]+=o,P[a]-=o,$?x.push(A,P):x.push(P,A)}function S(x,T){var $=T.slice(),A=T.slice();$[a]-=o,A[a]+=o,x.push($,A)}}function VYe(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,o=i==="none"||i===0,a=0;a<t.length;a++){var s=So(t[a].slice()),l=iS(s,.25),u=iS(s,.5),c=iS(s,.75),f=s[0],d=s[s.length-1],p=(i??1.5)*(c-l),g=o?f:Math.max(f,l-p),v=o?d:Math.min(d,c+p),m=e.itemNameFormatter,y=ze(m)?m({value:a}):Ie(m)?m.replace("{value}",a+""):a+"";n.push([y,g,l,u,c,v]);for(var b=0;b<s.length;b++){var O=s[b];if(O<g||O>v){var w=[y,O];r.push(w)}}}return{boxData:n,outliers:r}}var zYe={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==si){var r="";process.env.NODE_ENV!=="production"&&(r=wi("source data is not applicable for this boxplot transform. Expect number[][].")),Ht(r)}var i=VYe(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function FYe(t){t.registerSeriesModel(Sre),t.registerChartView(MYe),t.registerLayout(kYe),t.registerTransform(zYe)}var WYe=["color","borderColor"],QYe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,i){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){cc(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),i=this._data,o=this.group,a=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&Tre(u,f))return;var d=tL(f,c,!0);vn(d,{shape:{points:f.ends}},n,c),nL(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!r.hasValue(c)){o.remove(d);return}var p=r.getItemLayout(c);if(s&&Tre(u,p)){o.remove(d);return}d?(Rt(d,{shape:{points:p.ends}},n,c),os(d)):d=tL(p),nL(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&o.remove(f)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),Pre(n,this.group);var r=n.get("clip",!0)?Hy(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),o=i.getLayout("isSimpleBox"),a;(a=n.next())!=null;){var s=i.getItemLayout(a),l=tL(s);nL(l,i,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){Pre(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Jt),HYe=function(){function t(){}return t}(),GYe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new HYe},e.prototype.buildPath=function(n,r){var i=r.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},e}(yt);function tL(t,e,n){var r=t.ends;return new GYe({shape:{points:n?jYe(r,t):r},z2:100})}function Tre(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function nL(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Hr(t,i)}function jYe(t,e){return me(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var UYe=function(){function t(){}return t}(),rL=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new UYe},e.prototype.buildPath=function(n,r){for(var i=r.points,o=0;o<i.length;)if(this.__sign===i[o++]){var a=i[o++];n.moveTo(a,i[o++]),n.lineTo(a,i[o++])}else o+=3},e}(yt);function Pre(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new rL({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new rL({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new rL({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),iL(1,a,t),iL(-1,s,t),iL(0,l,t),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function iL(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(WYe);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var $re=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,i){var o=r.getItemLayout(n);return o&&i.rect(o.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(on);Wn($re,wre,!0);function ZYe(t){!t||!ge(t.series)||V(t.series,function(e){Qe(e)&&e.type==="k"&&(e.type="candlestick")})}var XYe=["itemStyle","borderColor"],YYe=["itemStyle","borderColor0"],qYe=["itemStyle","borderColorDoji"],KYe=["itemStyle","color"],JYe=["itemStyle","color0"],eqe={seriesType:"candlestick",plan:$g(),performRawSeries:!0,reset:function(t,e){function n(o,a){return a.get(o>0?KYe:JYe)}function r(o,a){return a.get(o===0?qYe:o>0?XYe:YYe)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(o,a){for(var s;(s=o.next())!=null;){var l=a.getItemModel(s),u=a.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=a.ensureUniqueItemVisual(s,"style");he(f,c)}}}}}},tqe={seriesType:"candlestick",plan:$g(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=nqe(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=me(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?g:p};function p(v,m){for(var y,b=m.getStore();(y=v.next())!=null;){var O=b.get(s,y),w=b.get(u,y),S=b.get(c,y),x=b.get(f,y),T=b.get(d,y),$=Math.min(w,S),A=Math.max(w,S),P=F($,O),M=F(A,O),I=F(x,O),R=F(T,O),L=[];z(L,M,0),z(L,P,1),L.push(j(R),j(M),j(I),j(P));var D=m.getItemModel(y),B=!!D.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:Are(b,y,w,S,c,B),initBaseline:w>S?M[o]:P[o],ends:L,brushRect:W(x,T,O)})}function F(H,Z){var J=[];return J[i]=Z,J[o]=H,isNaN(Z)||isNaN(H)?[NaN,NaN]:e.dataToPoint(J)}function z(H,Z,J){var se=Z.slice(),oe=Z.slice();se[i]=IS(se[i]+r/2,1,!1),oe[i]=IS(oe[i]-r/2,1,!0),J?H.push(se,oe):H.push(oe,se)}function W(H,Z,J){var se=F(H,J),oe=F(Z,J);return se[i]-=r/2,oe[i]-=r/2,{x:se[0],y:se[1],width:r,height:oe[1]-se[1]}}function j(H){return H[i]=IS(H[i],1),H}}function g(v,m){for(var y=Xs(v.count*4),b=0,O,w=[],S=[],x,T=m.getStore(),$=!!t.get(["itemStyle","borderColorDoji"]);(x=v.next())!=null;){var A=T.get(s,x),P=T.get(u,x),M=T.get(c,x),I=T.get(f,x),R=T.get(d,x);if(isNaN(A)||isNaN(I)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=Are(T,x,P,M,c,$),w[i]=A,w[o]=I,O=e.dataToPoint(w,null,S),y[b++]=O?O[0]:NaN,y[b++]=O?O[1]:NaN,w[o]=R,O=e.dataToPoint(w,null,S),y[b++]=O?O[1]:NaN}m.setLayout("largePoints",y)}}};function Are(t,e,n,r,i,o){var a;return n>r?a=-1:n<r?a=1:a=o?0:e>0?t.get(i,e-1)<=r?1:-1:1,a}function nqe(t,e){var n=t.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),o=Ee(Je(t.get("barMaxWidth"),i),i),a=Ee(Je(t.get("barMinWidth"),1),i),s=t.get("barWidth");return s!=null?Ee(s,i):Math.max(Math.min(i/2,o),a)}function rqe(t){t.registerChartView(QYe),t.registerSeriesModel($re),t.registerPreprocessor(ZYe),t.registerVisual(eqe),t.registerLayout(tqe)}function Ere(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?n:null,fill:e.brushType==="fill"?n:null}})})}var iqe=function(t){re(e,t);function e(n,r){var i=t.call(this)||this,o=new Wy(n,r),a=new qe;return i.add(o),i.add(a),i.updateData(n,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,i=n.color,o=n.rippleNumber,a=this.childAt(1),s=0;s<o;s++){var l=Xn(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/o*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),a.add(l)}Ere(a,n)},e.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,i=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],a=0;a<o.length;a++){var s=o[a];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}Ere(i,n)},e.prototype.highlight=function(){jl(this)},e.prototype.downplay=function(){Ul(this)},e.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},e.prototype.updateData=function(n,r){var i=this,o=n.hostModel;this.childAt(0).updateData(n,r);var a=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=Mg(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");a.setScale(u),a.traverse(function(m){m.setStyle("fill",f)});var p=Id(n.getItemVisual(r,"symbolOffset"),u);p&&(a.x=p[0],a.y=p[1]);var g=n.getItemVisual(r,"symbolRotate");a.rotation=(g||0)*Math.PI/180||0;var v={};v.showEffectOn=o.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=r/n.count(),v.z=o.getShallow("z")||0,v.zlevel=o.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?v.showEffectOn!=="render"&&i.startEffectAnimation(v):m==="normal"&&v.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=v,Ln(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(qe),oqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._symbolDraw=new Qy(iqe)},e.prototype.render=function(n,r,i){var o=n.getData(),a=this._symbolDraw;a.updateData(o,{clipShape:this._getClipShape(n)}),this.group.add(a.group)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,i=r&&r.getArea&&r.getArea();return n.get("clip",!0)?i:null},e.prototype.updateTransform=function(n,r,i){var o=n.getData();this.group.dirty();var a=Gy("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=OU(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Jt),aqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(on);function sqe(t){t.registerChartView(oqe),t.registerSeriesModel(aqe),t.registerLayout(Gy("effectScatter"))}var Mre=function(t){re(e,t);function e(n,r,i){var o=t.call(this)||this;return o.add(o.createLine(n,r,i)),o._updateEffectSymbol(n,r),o}return e.prototype.createLine=function(n,r,i){return new AN(n,r,i)},e.prototype._updateEffectSymbol=function(n,r){var i=n.getItemModel(r),o=i.getModel("effect"),a=o.get("symbolSize"),s=o.get("symbol");ge(a)||(a=[a,a]);var l=n.getItemVisual(r,"style"),u=o.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Xn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(o.getItemStyle(["color"])),c.scaleX=a[0],c.scaleY=a[1],c.setColor(u),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(n,o,r))},e.prototype._updateEffectAnimation=function(n,r,i){var o=this.childAt(1);if(o){var a=n.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=Un(r.get("delay"),function(p){return p/n.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,a),c>0&&(s=this._getLineLength(o)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){o.stopAnimation();var d=void 0;ze(f)?d=f(i):d=f,o.__t>0&&(d=-s*o.__t),this._animateSymbol(o,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(n,r,i,o,a){if(r>0){n.__t=0;var s=this,l=n.animate("",o).when(a?r*2:r,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(n)});o||l.done(function(){s.remove(n)}),l.start()}},e.prototype._getLineLength=function(n){return Ll(n.__p1,n.__cp1)+Ll(n.__cp1,n.__p2)},e.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(n,r,i){this.childAt(0).updateData(n,r,i),this._updateEffectSymbol(n,r)},e.prototype._updateSymbolPosition=function(n){var r=n.__p1,i=n.__p2,o=n.__cp1,a=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=Dr,c=pI;s[0]=u(r[0],o[0],i[0],a),s[1]=u(r[1],o[1],i[1],a);var f=n.__t<1?c(r[0],o[0],i[0],a):c(i[0],o[0],r[0],1-a),d=n.__t<1?c(r[1],o[1],i[1],a):c(i[1],o[1],r[1],1-a);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Ll(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Ll(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},e.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var i=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,i,r)},e}(qe),Ire=function(t){re(e,t);function e(n,r,i){var o=t.call(this)||this;return o._createPolyline(n,r,i),o}return e.prototype._createPolyline=function(n,r,i){var o=n.getItemLayout(r),a=new Pi({shape:{points:o}});this.add(a),this._updateCommonStl(n,r,i)},e.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};Rt(a,s,o,r),this._updateCommonStl(n,r,i)},e.prototype._updateCommonStl=function(n,r,i){var o=this.childAt(0),a=n.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||n.hasItemOption){var f=a.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}o.useStyle(n.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var d=o.ensureState("emphasis");d.style=s,Ln(this,l,u,c)},e.prototype.updateLayout=function(n,r){var i=this.childAt(0);i.setShape("points",n.getItemLayout(r))},e}(qe),lqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return e.prototype.createLine=function(n,r,i){return new Ire(n,r,i)},e.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var i=[0],o=0,a=1;a<r.length;a++){var s=r[a-1],l=r[a];o+=Ll(s,l),i.push(o)}if(o===0){this._length=0;return}for(var a=0;a<i.length;a++)i[a]/=o;this._offsets=i,this._length=o},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,i=this._points,o=this._offsets,a=i.length;if(o){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,a-1);for(l=u;l>=0&&!(o[l]<=r);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(o[l]>r);l++);l=Math.min(l-1,a-2)}var c=(r-o[l])/(o[l+1]-o[l]),f=i[l],d=i[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var p=n.__t<1?d[0]-f[0]:f[0]-d[0],g=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(g,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(Mre),uqe=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),cqe=function(t){re(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(n,r){var i=r.segs,o=r.curveness,a;if(r.polyline)for(a=this._off;a<i.length;){var s=i[a++];if(s>0){n.moveTo(i[a++],i[a++]);for(var l=1;l<s;l++)n.lineTo(i[a++],i[a++])}}else for(a=this._off;a<i.length;){var u=i[a++],c=i[a++],f=i[a++],d=i[a++];if(n.moveTo(u,c),o>0){var p=(u+f)/2-(c-d)*o,g=(c+d)/2-(f-u)*o;n.quadraticCurveTo(p,g,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var i=this.shape,o=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<o.length;){var c=o[u++];if(c>0)for(var f=o[u++],d=o[u++],p=1;p<c;p++){var g=o[u++],v=o[u++];if(ic(f,d,g,v,s,n,r))return l}l++}else for(var l=0,u=0;u<o.length;){var f=o[u++],d=o[u++],g=o[u++],v=o[u++];if(a>0){var m=(f+g)/2-(d-v)*a,y=(d+v)/2-(g-f)*a;if(GZ(f,d,m,y,g,v,s,n,r))return l}else if(ic(f,d,g,v,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.segs,o=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];o=Math.min(c,o),s=Math.max(c,s),a=Math.min(f,a),l=Math.max(f,l)}n=this._rect=new at(o,a,s,l)}return n},e}(yt),fqe=function(){function t(){this.group=new qe}return t.prototype.updateData=function(e){this._clear();var n=this._create();n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,n){var r=this._newAdded[0],i=n.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,n),l.__startIndex=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new cqe({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,n,r){var i=n.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=n.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var a=Ke(e);a.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){a.dataIndex=null;var l=e.hoverDataIdx;l>0&&(a.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Dre={seriesType:"lines",plan:$g(),reset:function(t){var e=t.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Qr("The lines series must have a coordinate system.");return}var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=i.start;c<i.end;c++){var p=t.getLineCoords(c,a);n&&(s[f++]=p);for(var g=0;g<p;g++)d=e.dataToPoint(a[g],!1,d),s[f++]=d[0],s[f++]=d[1]}o.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var v=o.getItemModel(c),p=t.getLineCoords(c,a),m=[];if(n)for(var y=0;y<p;y++)m.push(e.dataToPoint(a[y]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var b=v.get(["lineStyle","curveness"]);+b&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*b,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*b])}o.setItemLayout(c,m)}}}}},dqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(o);var f=n.get("clip",!0)&&Hy(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n);a.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},e.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},e.prototype.updateTransform=function(n,r,i){var o=n.getData(),a=n.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=Dre.reset(n,r,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(n,r){var i=this._lineDraw,o=this._showEffect(r),a=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&o&&l&&console.warn("Large lines not support effect"),(!i||o!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new fqe:new EN(a?o?lqe:Ire:o?Mre:AN),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(n){return!!n.get(["effect","show"])},e.prototype._clearLayer=function(n){var r=n.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.type="lines",e}(Jt),hqe=typeof Uint32Array>"u"?Array:Uint32Array,pqe=typeof Float64Array>"u"?Array:Float64Array;function Rre(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=me(e,function(n){var r=[n[0].coord,n[1].coord],i={coords:r};return n[0].name&&(i.fromName=n[0].name),n[1].name&&(i.toName=n[1].name),Tw([i,n[0],n[1]])}))}var gqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.init=function(n){n.data=n.data||[],Rre(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(n){if(Rre(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=O0(this._flatCoords,r.flatCoords),this._flatCoordsOffset=O0(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},e.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),i=r.option instanceof Array?r.option:r.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},e.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},e.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],a=0;a<o;a++)r[a]=r[a]||[],r[a][0]=this._flatCoords[i+a*2],r[a][1]=this._flatCoords[i+a*2+1];return o}else{for(var s=this._getCoordsFromItemModel(n),a=0;a<s.length;a++)r[a]=r[a]||[],r[a][0]=s[a][0],r[a][1]=s[a][1];return s.length}},e.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Et(n[0])){for(var i=n.length,o=new hqe(i),a=new pqe(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=n[c++];o[l++]=s+r,o[l++]=f;for(var d=0;d<f;d++){var p=n[c++],g=n[c++];if(a[s++]=p,a[s++]=g,c>i&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){if(process.env.NODE_ENV!=="production"){var i=Pd.get(n.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+n.coordinateSystem)}var o=new ci(["value"],this);return o.hasItemOption=!1,o.initData(n.data,[],function(a,s,l,u){if(a instanceof Array)return NaN;o.hasItemOption=!0;var c=a.value;if(c!=null)return c instanceof Array?c[u]:c}),o},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getItemModel(n),s=a.get("name");if(s)return s;var l=a.get("fromName"),u=a.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Or("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(on);function lC(t){return t instanceof Array||(t=[t,t]),t}var vqe={seriesType:"lines",reset:function(t){var e=lC(t.get("symbol")),n=lC(t.get("symbolSize")),r=t.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function i(o,a){var s=o.getItemModel(a),l=lC(s.getShallow("symbol",!0)),u=lC(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(a,"fromSymbol",l[0]),l[1]&&o.setItemVisual(a,"toSymbol",l[1]),u[0]&&o.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&o.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};function mqe(t){t.registerChartView(dqe),t.registerSeriesModel(gqe),t.registerLayout(Dre),t.registerVisual(vqe)}var yqe=256,bqe=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=qa.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,i,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),p=e.length;f.width=n,f.height=r;for(var g=0;g<p;++g){var v=e[g],m=v[0],y=v[1],b=v[2],O=i(b);d.globalAlpha=O,d.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),S=w.data,x=0,T=S.length,$=this.minOpacity,A=this.maxOpacity,P=A-$;x<T;){var O=S[x+3]/256,M=Math.floor(O*(yqe-1))*4;if(O>0){var I=a(O)?l:u;O>0&&(O=O*P+$),S[x++]=I[M],S[x++]=I[M+1],S[x++]=I[M+2],S[x++]=I[M+3]*O*256}else x+=4}return d.putImageData(w,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=qa.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-n,n,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},t}();function _qe(t,e,n){var r=t[1]-t[0];e=me(e,function(a){return{interval:[(a.interval[0]-t[0])/r,(a.interval[1]-t[0])/r]}});var i=e.length,o=0;return function(a){var s;for(s=o;s<i;s++){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}if(s===i)for(s=o-1;s>=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}return s>=0&&s<i&&n[s]}}function Oqe(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(r){return r>=e[0]&&r<=e[1]}}function kre(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var wqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o;if(r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(o=s)})}),process.env.NODE_ENV!=="production"&&!o)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var a=n.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):kre(a)&&this._renderOnGeo(a,n,o,i)},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,i,o){var a=r.coordinateSystem;a&&(kre(a)?this.render(r,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){cc(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,i,o,a){var s=n.coordinateSystem,l=Gd(s,"cartesian2d"),u,c,f,d;if(l){var p=s.getAxis("x"),g=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(p.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(p.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=p.getBandWidth()+.5,c=g.getBandWidth()+.5,f=p.scale.getExtent(),d=g.scale.getExtent()}for(var v=this.group,m=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),O=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),S=_r(n),x=n.getModel("emphasis"),T=x.get("focus"),$=x.get("blurScope"),A=x.get("disabled"),P=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=i;M<o;M++){var I=void 0,R=m.getItemVisual(M,"style");if(l){var L=m.get(P[0],M),D=m.get(P[1],M);if(isNaN(m.get(P[2],M))||isNaN(L)||isNaN(D)||L<f[0]||L>f[1]||D<d[0]||D>d[1])continue;var B=s.dataToPoint([L,D]);I=new Pt({shape:{x:B[0]-u/2,y:B[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(P[1],M)))continue;I=new Pt({z2:1,shape:s.dataToRect([m.get(P[0],M)]).contentShape,style:R})}if(m.hasItemOption){var F=m.getItemModel(M),z=F.getModel("emphasis");y=z.getModel("itemStyle").getItemStyle(),b=F.getModel(["blur","itemStyle"]).getItemStyle(),O=F.getModel(["select","itemStyle"]).getItemStyle(),w=F.get(["itemStyle","borderRadius"]),T=z.get("focus"),$=z.get("blurScope"),A=z.get("disabled"),S=_r(F)}I.shape.r=w;var W=n.getRawValue(M),j="-";W&&W[2]!=null&&(j=W[2]+""),Gr(I,S,{labelFetcher:n,labelDataIndex:M,defaultOpacity:R.opacity,defaultText:j}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=b,I.ensureState("select").style=O,Ln(I,T,$,A),I.incremental=a,a&&(I.states.emphasis.hoverLayer=!0),v.add(I),m.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(n,r,i,o){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new bqe;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),p=Math.max(c.y,0),g=Math.min(c.width+c.x,o.getWidth()),v=Math.min(c.height+c.y,o.getHeight()),m=g-d,y=v-p,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],O=l.mapArray(b,function(T,$,A){var P=n.dataToPoint([T,$]);return P[0]-=d,P[1]-=p,P.push(A),P}),w=i.getExtent(),S=i.type==="visualMap.continuous"?Oqe(w,i.option.range):_qe(w,i.getPieceList(),i.option.selected);u.update(O,m,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var x=new Rr({style:{width:m,height:y,x:d,y:p,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Jt),Sqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Us(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=Pd.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(on);function xqe(t){t.registerChartView(wqe),t.registerSeriesModel(Sqe)}var Cqe=["itemStyle","borderWidth"],Nre=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],oL=new Zl,Tqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group,a=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:Nre[+c],categoryDim:Nre[1-+c]};a.diff(s).add(function(g){if(a.hasValue(g)){var v=Qre(a,g),m=Lre(a,g,v,d),y=Hre(a,d,m);a.setItemGraphicEl(g,y),o.add(y),Ure(y,d,m)}}).update(function(g,v){var m=s.getItemGraphicEl(v);if(!a.hasValue(g)){o.remove(m);return}var y=Qre(a,g),b=Lre(a,g,y,d),O=jre(a,b);m&&O!==m.__pictorialShapeStr&&(o.remove(m),a.setItemGraphicEl(g,null),m=null),m?Dqe(m,d,b):m=Hre(a,d,b,!0),a.setItemGraphicEl(g,m),m.__pictorialSymbolMeta=b,o.add(m),Ure(m,d,b)}).remove(function(g){var v=s.getItemGraphicEl(g);v&&Gre(s,g,v.__pictorialSymbolMeta.animationModel,v)}).execute();var p=n.get("clip",!0)?Hy(n.coordinateSystem,!1,n):null;return p?o.setClipPath(p):o.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(n,r){var i=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(a){Gre(o,Ke(a).dataIndex,n,a)}):i.removeAll()},e.type="pictorialBar",e}(Jt);function Lre(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Pqe(n,o,i,r,d),$qe(t,e,i,o,a,d.boundingLength,d.pxSign,c,r,d),Aqe(n,d.symbolScale,u,r,d);var p=d.symbolSize,g=Id(n.get("symbolOffset"),p);return Eqe(n,p,i,o,a,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Pqe(t,e,n,r,i){var o=r.valueDim,a=t.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[o.wh]<=0),c;if(ge(a)){var f=[aL(s,a[0])-l,aL(s,a[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else a!=null?c=aL(s,a)-l:e?c=r.coordSysExtent[o.index][u]-l:c=n[o.wh];i.boundingLength=c,e&&(i.repeatCutLength=n[o.wh]),i.pxSign=c>0?1:-1}function aL(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function $qe(t,e,n,r,i,o,a,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),p=t.getItemVisual(e,"symbolSize"),g;ge(p)?g=p.slice():p==null?g=["100%","100%"]:g=[p,p],g[f.index]=Ee(g[f.index],d),g[c.index]=Ee(g[c.index],r?d:Math.abs(o)),u.symbolSize=g;var v=u.symbolScale=[g[0]/s,g[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*a}function Aqe(t,e,n,r,i){var o=t.get(Cqe)||0;o&&(oL.attr({scaleX:e[0],scaleY:e[1],rotation:n}),oL.updateTransform(),o/=oL.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function Eqe(t,e,n,r,i,o,a,s,l,u,c,f){var d=c.categoryDim,p=c.valueDim,g=f.pxSign,v=Math.max(e[p.index]+s,0),m=v;if(r){var y=Math.abs(l),b=Un(t.get("symbolMargin"),"15%")+"",O=!1;b.lastIndexOf("!")===b.length-1&&(O=!0,b=b.slice(0,b.length-1));var w=Ee(b,e[p.index]),S=Math.max(v+w*2,0),x=O?0:w*2,T=oS(r),$=T?r:Zre((y+x)/S),A=y-$*v;w=A/2/(O?$:Math.max($-1,1)),S=v+w*2,x=O?0:w*2,!T&&r!=="fixed"&&($=u?Zre((Math.abs(u)+x)/S):0),m=$*S-x,f.repeatTimes=$,f.symbolMargin=w}var P=g*(m/2),M=f.pathPosition=[];M[d.index]=n[d.wh]/2,M[p.index]=a==="start"?P:a==="end"?l-P:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var I=f.bundlePosition=[];I[d.index]=n[d.xy],I[p.index]=n[p.xy];var R=f.barRectShape=he({},n);R[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(M[p.index]+P)),R[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[p.xy]=0,L[p.wh]=n[p.wh]}function Bre(t){var e=t.symbolPatternSize,n=Xn(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Vre(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,f=o[e.valueDim.index]+a+n.symbolMargin*2;for(sL(t,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?Yg(v,null,g(c),n,r):Yg(v,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(v)}),c++});c<u;c++){var d=Bre(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=g(c);Yg(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function g(v){var m=s.slice(),y=n.pxSign,b=v;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(b=u-1-v),m[l.index]=f*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function zre(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?Yg(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=Bre(n),i.add(o),Yg(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Fre(t,e,n){var r=he({},e.barRectShape),i=t.__pictorialBarRect;i?Yg(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new Pt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function Wre(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=he({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)Rt(i,{shape:o},s,l);else{o[a.wh]=0,i=new Pt({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],Od[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Qre(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Mqe,n.isAnimationEnabled=Iqe,n}function Mqe(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Iqe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Hre(t,e,n,r){var i=new qe,o=new qe;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Vre(i,e,n):zre(i,e,n),Fre(i,n,r),Wre(i,e,n,r),i.__pictorialShapeStr=jre(t,n),i.__pictorialSymbolMeta=n,i}function Dqe(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;Rt(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?Vre(t,e,n,!0):zre(t,e,n,!0),Fre(t,n,!0),Wre(t,e,n,!0)}function Gre(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];sL(r,function(a){o.push(a)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),V(o,function(a){lc(a,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function jre(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sL(t,e,n){V(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function Yg(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&Od[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function Ure(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");sL(t,function(v){if(v instanceof Rr){var m=v.style;v.useStyle(he({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},n.style))}else v.useStyle(n.style);var y=v.ensureState("emphasis");y.style=a,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var p=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;g.ignoreClip=!0,Gr(g,_r(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Fg(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ln(t,c,f,o.get("disabled"))}function Zre(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Rqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=fc(jy.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(jy);function kqe(t){t.registerChartView(Tqe),t.registerSeriesModel(Rqe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tt(sJ,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lJ("pictorialBar"))}var Nqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this,s=this.group,l=n.getLayerSeries(),u=o.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(m){return m.name}var p=new ql(this._layersSeries||[],l,d,d),g=[];p.add(Re(v,this,"add")).update(Re(v,this,"update")).remove(Re(v,this,"remove")).execute();function v(m,y,b){var O=a._layers;if(m==="remove"){s.remove(O[y]);return}for(var w=[],S=[],x,T=l[y].indices,$=0;$<T.length;$++){var A=o.getItemLayout(T[$]),P=A.x,M=A.y0,I=A.y;w.push(P,M),S.push(P,M+I),x=o.getItemVisual(T[$],"style")}var R,L=o.getItemLayout(T[0]),D=n.getModel("label"),B=D.get("margin"),F=n.getModel("emphasis");if(m==="add"){var z=g[y]=new qe;R=new xee({shape:{points:w,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z.add(R),s.add(z),n.isAnimationEnabled()&&R.setClipPath(Lqe(R.getBoundingRect(),n,function(){R.removeClipPath()}))}else{var z=O[b];R=z.childAt(0),s.add(z),g[y]=z,Rt(R,{shape:{points:w,stackedOnPoints:S}},n),os(R)}Gr(R,_r(n),{labelDataIndex:T[$-1],defaultText:o.getName(T[$-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var W=R.getTextContent();W&&(W.x=L.x-B,W.y=L.y0+L.y/2),R.useStyle(x),o.setItemGraphicEl(y,R),Hr(R,n),Ln(R,F.get("focus"),F.get("blurScope"),F.get("disabled"))}this._layersSeries=l,this._layers=g},e.type="themeRiver",e}(Jt);function Lqe(t,e,n){var r=new Pt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return vn(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var lL=2,Bqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zy(Re(this.getData,this),Re(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,i={},o=KI(n,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),a=[];o.buckets.each(function(d,p){a.push({name:p,dataList:d})});for(var s=a.length,l=0;l<s;++l){for(var u=a[l].name,c=0;c<a[l].dataList.length;++c){var f=a[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,n[r]=[f,0,u],r++)}return n},e.prototype.getInitialData=function(n,r){for(var i=this.getReferringComponents("singleAxis",Jn).models[0],o=i.get("type"),a=Yt(n.data,function(g){return g[2]!==void 0}),s=this.fixData(a||[]),l=[],u=this.nameMap=Le(),c=0,f=0;f<s.length;++f)l.push(s[f][lL]),u.get(s[f][lL])||(u.set(s[f][lL],c),c++);var d=Ng(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:mx(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new ci(d,this);return p.initData(s),p},e.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),i=[],o=0;o<r;++o)i[o]=o;var a=n.mapDimension("single"),s=KI(i,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(a,f)-n.get(a,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(n,r,i){ge(n)||(n=n?[n]:[]);for(var o=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,p=a[c].indices.length,g=0;g<p;++g){var v=o.get(n[0],a[c].indices[g]),m=Math.abs(v-r);m<=f&&(u=v,f=m,d=a[c].indices[g])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getName(n),s=o.get(o.mapDimension("value"),n);return Or("nameValue",{name:a,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(on);function Vqe(t,e){t.eachSeriesByType("themeRiver",function(n){var r=n.getData(),i=n.coordinateSystem,o={},a=i.getRect();o.rect=a;var s=n.get("boundaryGap"),l=i.getAxis();if(o.boundaryGap=s,l.orient==="horizontal"){s[0]=Ee(s[0],a.height),s[1]=Ee(s[1],a.height);var u=a.height-s[0]-s[1];Xre(r,n,u)}else{s[0]=Ee(s[0],a.width),s[1]=Ee(s[1],a.width);var c=a.width-s[0]-s[1];Xre(r,n,c)}r.setLayout("layoutInfo",o)})}function Xre(t,e,n){if(t.count())for(var r=e.coordinateSystem,i=e.getLayerSeries(),o=t.mapDimension("single"),a=t.mapDimension("value"),s=me(i,function(m){return me(m.indices,function(y){var b=r.dataToPoint(t.get(o,y));return b[1]=t.get(a,y),b})}),l=zqe(s),u=l.y0,c=n/l.max,f=i.length,d=i[0].indices.length,p,g=0;g<d;++g){p=u[g]*c,t.setItemLayout(i[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:p,y:s[0][g][1]*c});for(var v=1;v<f;++v)p+=s[v-1][g][1]*c,t.setItemLayout(i[v].indices[g],{layerIndex:v,x:s[v][g][0],y0:p,y:s[v][g][1]*c})}}function zqe(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var f=r[c]+i[c];f>o&&(o=f)}return{y0:i,max:o}}function Fqe(t){t.registerChartView(Nqe),t.registerSeriesModel(Bqe),t.registerLayout(Vqe),t.registerProcessor(Uy("themeRiver"))}var Wqe=2,Qqe=4,Yre=function(t){re(e,t);function e(n,r,i,o){var a=t.call(this)||this;a.z2=Wqe,a.textConfig={inside:!0},Ke(a).seriesIndex=r.seriesIndex;var s=new $t({z2:Qqe,silent:n.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,n,r,i,o),a}return e.prototype.updateData=function(n,r,i,o,a){this.node=r,r.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var s=this;Ke(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=he({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var p=r.getVisual("decal");p&&(d.decal=Dg(p,a));var g=jd(l.getModel("itemStyle"),f,!0);he(f,g),V(xi,function(b){var O=s.ensureState(b),w=l.getModel([b,"itemStyle"]);O.style=w.getItemStyle();var S=jd(w,f);S&&(O.shape=S)}),n?(s.setShape(f),s.shape.r=c.r0,vn(s,{shape:{r:c.r}},i,r.dataIndex)):(Rt(s,{shape:f},i),os(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;Ln(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),o=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),p=this.node.dataIndex,g=o.get("minAngle")/180*Math.PI,v=o.get("show")&&!(g!=null&&Math.abs(s)<g);d.ignore=!v,V(ey,function(y){var b=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),O=y==="normal",w=O?d:d.ensureState(y),S=n.getFormattedLabel(p,y);O&&(S=S||r.node.name),w.style=un(b,{},null,y!=="normal",!0),S&&(w.style.text=S);var x=b.get("show");x!=null&&!O&&(w.ignore=!x);var T=m(b,"position"),$=O?f:f.states[y],A=$.style.fill;$.textConfig={outsideFill:b.get("color")==="inherit"?A:null,inside:T!=="outside"};var P,M=m(b,"distance")||0,I=m(b,"align"),R=m(b,"rotate"),L=Math.PI*.5,D=Math.PI*1.5,B=Co(R==="tangential"?Math.PI/2-l:l),F=B>L&&!rg(B-L)&&B<D;T==="outside"?(P=a.r+M,I=F?"right":"left"):!I||I==="center"?(s===2*Math.PI&&a.r0===0?P=0:P=(a.r+a.r0)/2,I="center"):I==="left"?(P=a.r0+M,I=F?"right":"left"):I==="right"&&(P=a.r-M,I=F?"left":"right"),w.style.align=I,w.style.verticalAlign=m(b,"verticalAlign")||"middle",w.x=P*u+a.cx,w.y=P*c+a.cy;var z=0;R==="radial"?z=Co(-l)+(F?Math.PI:0):R==="tangential"?z=Co(Math.PI/2-l)+(F?Math.PI:0):Et(R)&&(z=R*Math.PI/180),w.rotation=Co(z)});function m(y,b){var O=y.get(b);return O??o.get(b)}d.dirtyStyle()},e}(Ci),uL="sunburstRootToNode",qre="sunburstHighlight",Hqe="sunburstUnhighlight";function Gqe(t){t.registerAction({type:uL,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,o){var a=tb(e,[uL],i);if(a){var s=i.getViewRoot();s&&(e.direction=cN(s,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}}),t.registerAction({type:qre,update:"none"},function(e,n,r){e=he({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(o){var a=tb(e,[qre],o);a&&(e.dataIndex=a.node.dataIndex)}process.env.NODE_ENV!=="production"&&Zn("sunburstHighlight","highlight"),r.dispatchAction(he(e,{type:"highlight"}))}),t.registerAction({type:Hqe,update:"updateView"},function(e,n,r){e=he({},e),process.env.NODE_ENV!=="production"&&Zn("sunburstUnhighlight","downplay"),r.dispatchAction(he(e,{type:"downplay"}))})}var jqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){var a=this;this.seriesModel=n,this.api=i,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(b){d.push(b)});var p=this._oldChildren||[];g(d,p),y(l,u),this._initEvents(),this._oldChildren=d;function g(b,O){if(b.length===0&&O.length===0)return;new ql(O,b,w,w).add(S).update(S).remove(tt(S,null)).execute();function w(x){return x.getId()}function S(x,T){var $=x==null?null:b[x],A=T==null?null:O[T];v($,A)}}function v(b,O){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&O!==l){if(O&&O.piece)b?(O.piece.updateData(!1,b,n,r,i),s.setItemGraphicEl(b.dataIndex,O.piece)):m(O);else if(b){var w=new Yre(b,n,r,i);c.add(w),s.setItemGraphicEl(b.dataIndex,w)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,O){O.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,b,n,r,i):(a.virtualPiece=new Yre(b,n,r,i),c.add(a.virtualPiece)),O.piece.off("click"),a.virtualPiece.on("click",function(w){a._rootToNode(O.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(a){if(!i&&a.piece&&a.piece===r.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";QS(u,c)}}i=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:uL,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="sunburst",e}(Jt),Uqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};Kre(i);var o=this._levelModels=me(n.levels||[],function(l){return new rn(l,this,r)},this),a=uN.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=a.getNodeByDataIndex(c),d=o[f.depth];return d&&(u.parentModel=d),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=Yx(i,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){une(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(on);function Kre(t){var e=0;V(t.children,function(r){Kre(r);var i=r.value;ge(i)&&(i=i[0]),e+=i});var n=t.value;ge(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),ge(t.value)?t.value[0]=n:t.value=n}var Jre=Math.PI/180;function Zqe(t,e,n){e.eachSeriesByType(t,function(r){var i=r.get("center"),o=r.get("radius");ge(o)||(o=[0,o]),ge(i)||(i=[i,i]);var a=n.getWidth(),s=n.getHeight(),l=Math.min(a,s),u=Ee(i[0],a),c=Ee(i[1],s),f=Ee(o[0],l/2),d=Ee(o[1],l/2),p=-r.get("startAngle")*Jre,g=r.get("minAngle")*Jre,v=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&eie(m,b);var O=0;V(m.children,function(B){!isNaN(B.getValue())&&O++});var w=m.getValue(),S=Math.PI/(w||O)*2,x=m.depth>0,T=m.height-(x?-1:1),$=(d-f)/(T||1),A=r.get("clockwise"),P=r.get("stillShowZeroSum"),M=A?1:-1,I=function(B,F){if(B){var z=F;if(B!==v){var W=B.getValue(),j=w===0&&P?S:W*S;j<g&&(j=g),z=F+M*j;var H=B.depth-y-(x?-1:1),Z=f+$*H,J=f+$*(H+1),se=r.getLevelModel(B);if(se){var oe=se.get("r0",!0),de=se.get("r",!0),ie=se.get("radius",!0);ie!=null&&(oe=ie[0],de=ie[1]),oe!=null&&(Z=Ee(oe,l/2)),de!=null&&(J=Ee(de,l/2))}B.setLayout({angle:j,startAngle:F,endAngle:z,clockwise:A,cx:u,cy:c,r0:Z,r:J})}if(B.children&&B.children.length){var ue=0;V(B.children,function(ee){ue+=I(ee,F+ue)})}return z-F}};if(x){var R=f,L=f+$,D=Math.PI*2;v.setLayout({angle:D,startAngle:p,endAngle:p+D,clockwise:A,cx:u,cy:c,r0:R,r:L})}I(m,p)})}function eie(t,e){var n=t.children||[];t.children=Xqe(n,e),n.length&&V(t.children,function(r){eie(r,e)})}function Xqe(t,e){if(ze(e)){var n=me(t,function(i,o){var a=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return a}},index:o}});return n.sort(function(i,o){return e(i.params,o.params)}),me(n,function(i){return t[i.index]})}else{var r=e==="asc";return t.sort(function(i,o){var a=(i.getValue()-o.getValue())*(r?1:-1);return a===0?(i.dataIndex-o.dataIndex)*(r?-1:1):a})}}function Yqe(t){var e={};function n(r,i,o){for(var a=r;a&&a.depth>1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",e);return r.depth>1&&Ie(s)&&(s=Ww(s,(r.depth-1)/(o-1)*.5)),s}t.eachSeriesByType("sunburst",function(r){var i=r.getData(),o=i.tree;o.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(a,r,o.root.height));var u=i.ensureUniqueItemVisual(a.dataIndex,"style");he(u,l)})})}function qqe(t){t.registerChartView(jqe),t.registerSeriesModel(Uqe),t.registerLayout(tt(Zqe,"sunburst")),t.registerProcessor(tt(Uy,"sunburst")),t.registerVisual(Yqe),Gqe(t)}var tie={color:"fill",borderColor:"stroke"},Kqe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},nu=Tt(),Jqe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(n,r){return Us(null,this)},e.prototype.getDataParams=function(n,r,i){var o=t.prototype.getDataParams.call(this,n,r);return i&&(o.info=nu(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(on);function eKe(t,e){return e=e||[0,0],me(["x","y"],function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function tKe(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Re(eKe,t)}}}function nKe(t,e){return e=e||[0,0],me([0,1],function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function rKe(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:Re(nKe,t)}}}function iKe(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function oKe(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Re(iKe,t)}}}function aKe(t,e){return e=e||[0,0],me(["Radius","Angle"],function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function sKe(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),s=t.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:Re(aKe,t)}}}function lKe(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,i){return t.dataToPoint(r,i)}}}}var nie={};function rie(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||ke(t,"text")))}function iie(t,e,n){var r=t,i,o,a;if(e==="text")a=r;else{a={},ke(r,"text")&&(a.text=r.text),ke(r,"rich")&&(a.rich=r.rich),ke(r,"textFill")&&(a.fill=r.textFill),ke(r,"textStroke")&&(a.stroke=r.textStroke),ke(r,"fontFamily")&&(a.fontFamily=r.fontFamily),ke(r,"fontSize")&&(a.fontSize=r.fontSize),ke(r,"fontStyle")&&(a.fontStyle=r.fontStyle),ke(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=ke(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),ke(r,"textPosition")&&(i.position=r.textPosition),ke(r,"textOffset")&&(i.offset=r.textOffset),ke(r,"textRotation")&&(i.rotation=r.textRotation),ke(r,"textDistance")&&(i.distance=r.textDistance)}return oie(a,t),V(a.rich,function(l){oie(l,l)}),{textConfig:i,textContent:o}}function oie(t,e){e&&(e.font=e.textFont||e.font,ke(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ke(e,"textAlign")&&(t.align=e.textAlign),ke(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ke(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ke(e,"textWidth")&&(t.width=e.textWidth),ke(e,"textHeight")&&(t.height=e.textHeight),ke(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ke(e,"textPadding")&&(t.padding=e.textPadding),ke(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ke(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ke(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ke(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ke(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ke(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ke(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function aie(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";sie(r,e);var a=r.textFill==null;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,V(e.rich,function(s){sie(s,s)}),r}function sie(t,e){e&&(ke(e,"fill")&&(t.textFill=e.fill),ke(e,"stroke")&&(t.textStroke=e.fill),ke(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ke(e,"font")&&(t.font=e.font),ke(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ke(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ke(e,"fontSize")&&(t.fontSize=e.fontSize),ke(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ke(e,"align")&&(t.textAlign=e.align),ke(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ke(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ke(e,"width")&&(t.textWidth=e.width),ke(e,"height")&&(t.textHeight=e.height),ke(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ke(e,"padding")&&(t.textPadding=e.padding),ke(e,"borderColor")&&(t.textBorderColor=e.borderColor),ke(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ke(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ke(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ke(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ke(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ke(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ke(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ke(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ke(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ke(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function lie(t,e){if(process.env.NODE_ENV!=="production"){var n=t+"^_^"+e;nie[n]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),nie[n]=!0)}}var uie={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cie=bt(uie),uC=ta(Ls,function(t,e){return t[e]=1,t},{}),fie=Ls.join(", "),cC=["","style","shape","extra"],qg=Tt();function cL(t,e,n,r,i){var o=t+"Animation",a=hg(t,r,i)||{},s=qg(e).userDuring;return a.duration>0&&(a.during=s?Re(hKe,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),he(a,n[o]),a}function fC(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=qg(t),u=e.style;l.userDuring=e.during;var c={},f={};if(gKe(t,e,f),pie("shape",e,f),pie("extra",e,f),!o&&s&&(pKe(t,e,c),hie("shape",t,e,c),hie("extra",t,e,c),vKe(t,e,u,c)),f.style=u,uKe(t,f,a),fKe(t,e),s)if(o){var d={};V(cC,function(g){var v=g?e[g]:e;v&&v.enterFrom&&(g&&(d[g]=d[g]||{}),he(g?d[g]:d,v.enterFrom))});var p=cL("enter",t,e,n,i);p.duration>0&&t.animateFrom(d,p)}else cKe(t,e,i||0,n,c);die(t,e),u?t.dirty():t.markRedraw()}function die(t,e){for(var n=qg(t).leaveToProps,r=0;r<cC.length;r++){var i=cC[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=qg(t).leaveToProps={}),i&&(n[i]=n[i]||{}),he(i?n[i]:n,o.leaveTo))}}function dC(t,e,n,r){if(t){var i=t.parent,o=qg(t).leaveToProps;if(o){var a=cL("update",t,e,n,0);a.done=function(){i.remove(t)},t.animateTo(o,a)}else i.remove(t)}}function nh(t){return t==="all"}function uKe(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];a.targetName==="style"&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function cKe(t,e,n,r,i){if(i){var o=cL("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}function fKe(t,e){ke(e,"silent")&&(t.silent=e.silent),ke(e,"ignore")&&(t.ignore=e.ignore),t instanceof la&&ke(e,"invisible")&&(t.invisible=e.invisible),t instanceof yt&&ke(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Js={},dKe={setTransform:function(t,e){return process.env.NODE_ENV!=="production"&&je(ke(uC,t),"Only "+fie+" available in `setTransform`."),Js.el[t]=e,this},getTransform:function(t){return process.env.NODE_ENV!=="production"&&je(ke(uC,t),"Only "+fie+" available in `getTransform`."),Js.el[t]},setShape:function(t,e){process.env.NODE_ENV!=="production"&&Kg(t);var n=Js.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){process.env.NODE_ENV!=="production"&&Kg(t);var e=Js.el.shape;if(e)return e[t]},setStyle:function(t,e){process.env.NODE_ENV!=="production"&&Kg(t);var n=Js.el,r=n.style;return r&&(process.env.NODE_ENV!=="production"&&ju(e)&&En("style."+t+" must not be assigned with NaN."),r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){process.env.NODE_ENV!=="production"&&Kg(t);var e=Js.el.style;if(e)return e[t]},setExtra:function(t,e){process.env.NODE_ENV!=="production"&&Kg(t);var n=Js.el.extra||(Js.el.extra={});return n[t]=e,this},getExtra:function(t){process.env.NODE_ENV!=="production"&&Kg(t);var e=Js.el.extra;if(e)return e[t]}};function Kg(t){if(process.env.NODE_ENV!=="production"&&(t==="transition"||t==="enterFrom"||t==="leaveTo"))throw new Error('key must not be "'+t+'"')}function hKe(){var t=this,e=t.el;if(e){var n=qg(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}Js.el=e,r(dKe)}}function hie(t,e,n,r){var i=n[t];if(i){var o=e[t],a;if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[t]={}),nh(l))he(a,o);else for(var u=nn(l),c=0;c<u.length;c++){var f=u[c],d=o[f];a[f]=d}else if(nh(s)||st(s,t)>=0){!a&&(a=r[t]={});for(var p=bt(o),c=0;c<p.length;c++){var f=p[c],d=o[f];mKe(i[f],d)&&(a[f]=d)}}}}}function pie(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=bt(r),a=0;a<o.length;a++){var s=o[a];i[s]=F0(r[s])}}function pKe(t,e,n){for(var r=e.transition,i=nh(r)?Ls:nn(r||[]),o=0;o<i.length;o++){var a=i[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=t[a];process.env.NODE_ENV!=="production"&&gie(a,"el.transition"),n[a]=s}}}function gKe(t,e,n){for(var r=0;r<cie.length;r++){var i=cie[r],o=uie[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var r=0;r<Ls.length;r++){var s=Ls[r];e[s]!=null&&(n[s]=e[s])}}function vKe(t,e,n,r){if(n){var i=t.style,o;if(i){var a=n.transition,s=e.transition;if(a&&!nh(a)){var l=nn(a);!o&&(o=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];o[c]=f}}else if(t.getAnimationStyleProps&&(nh(s)||nh(a)||st(s,"style")>=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=r.style={});for(var g=bt(n),u=0;u<g.length;u++){var c=g[u];if(p[c]){var f=i[c];o[c]=f}}}}}}}function mKe(t,e){return Wr(t)?t!==e:t!=null&&isFinite(t)}var gie;process.env.NODE_ENV!=="production"&&(gie=function(t,e){ke(uC,t)||En("Prop `"+t+"` is not a permitted in `"+e+"`. Only `"+bt(uC).join("`, `")+"` are permitted.")});var vie=Tt(),yKe=["percent","easing","shape","style","extra"];function mie(t){t.stopAnimation("keyframe"),t.attr(vie(t))}function hC(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(ge(e)){V(e,function(s){hC(t,s,n)});return}var r=e.keyframes,i=e.duration;if(n&&i==null){var o=hg("enter",n,0);i=o&&o.duration}if(!(!r||!i)){var a=vie(t);V(cC,function(s){if(!(s&&!t[s])){var l,u=!1;r.sort(function(c,f){return c.percent-f.percent}),V(r,function(c){var f=t.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var p=bt(d);if(s||(p=Yt(p,function(m){return st(yKe,m)<0})),!!p.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var g=0;g<f.length;g++)f[g]!==l&&f[g].targetName===l.targetName&&f[g].stopTracks(p);s&&(a[s]=a[s]||{});var v=s?a[s]:a;V(p,function(m){v[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(i*c.percent,d,p,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||En("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(i).start(e.easing))}})}}}var ru="emphasis",xc="normal",fL="blur",dL="select",Cc=[xc,ru,fL,dL],hL={normal:["itemStyle"],emphasis:[ru,"itemStyle"],blur:[fL,"itemStyle"],select:[dL,"itemStyle"]},pL={normal:["label"],emphasis:[ru,"label"],blur:[fL,"label"],select:[dL,"label"]},bKe=["x","y"],_Ke="e\0\0",Oa={normal:{},emphasis:{},blur:{},select:{}},yie={cartesian2d:tKe,geo:rKe,single:oKe,polar:sKe,calendar:lKe};function pC(t){return t instanceof yt}function gL(t){return t instanceof la}function OKe(t,e){e.copyTransform(t),gL(e)&&gL(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,pC(e)&&pC(t)&&e.setShape(t.shape))}var wKe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._data,s=n.getData(),l=this.group,u=_ie(n,s,r,i);a||l.removeAll(),s.diff(a).add(function(f){yL(i,null,f,u(f,o),n,l,s)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&dC(d,nu(d).option,n)}).update(function(f,d){var p=a.getItemGraphicEl(d);yL(i,p,f,u(f,o),n,l,s)}).execute();var c=n.get("clip",!0)?Hy(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(n,r,i,o,a){var s=r.getData(),l=_ie(r,s,i,o),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=yL(null,null,f,l(f,a),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(n){cc(this._progressiveEls||this.group,n)},e.prototype.filterForExposedEvent=function(n,r,i,o){var a=r.element;if(a==null||i.name===a)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===a)return!0;return!1},e.type="custom",e}(Jt);function vL(t){var e=t.type,n;if(e==="path"){var r=t.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=Cie(r);n=uy(o,null,i,r.layout||"center"),nu(n).customPathData=o}else if(e==="image")n=new Rr({}),nu(n).customImagePath=t.style.image;else if(e==="text")n=new $t({});else if(e==="group")n=new qe;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=MS(e);if(!a){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Ht(s)}n=new a}return nu(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function mL(t,e,n,r,i,o,a){mie(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=bKe);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;ke(u,"textFill")&&(u.fill=u.textFill),ke(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=pC(e)?l.decal:null;t&&f&&(f.dirty=!0,c=Dg(f,t)),l.__decalPattern=c}if(gL(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}fC(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),hC(e,r.keyframeAnimation,o)}function bie(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(r===!1){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),vd(o)}}function SKe(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;a!=null&&(r.z2=a||0);for(var s=0;s<Cc.length;s++)xKe(r,e,Cc[s])}}function xKe(t,e,n){var r=n===xc,i=r?e:gC(e,n),o=i?i.z2:null,a;o!=null&&(a=r?t:t.ensureState(n),a.z2=o||0)}function _ie(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(process.env.NODE_ENV!=="production"&&(je(i,"series.render is required."),je(o.prepareCustoms||yie[o.type],"This coordSys does not support custom series.")),a=o.prepareCustoms?o.prepareCustoms(o):yie[o.type](o));for(var s=Ge({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:x,ordinalRawValue:S,styleEmphasis:T,visual:P,barLayout:M,currentSeriesIndices:I,font:R},a.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:CKe(t.getData())},u,c,f={},d={},p={},g={},v=0;v<Cc.length;v++){var m=Cc[v];p[m]=t.getModel(hL[m]),g[m]=t.getModel(pL[m])}function y(L){return L===u?c||(c=e.getItemModel(L)):e.getItemModel(L)}function b(L,D){return e.hasItemOption?L===u?f[D]||(f[D]=y(L).getModel(hL[D])):y(L).getModel(hL[D]):p[D]}function O(L,D){return e.hasItemOption?L===u?d[D]||(d[D]=y(L).getModel(pL[D])):y(L).getModel(pL[D]):g[D]}return function(L,D){return u=L,c=null,f={},d={},i&&i(Ge({dataIndexInside:L,dataIndex:e.getRawIndex(L),actionType:D?D.type:null},l),s)};function w(L,D){return D==null&&(D=u),e.getStore().get(e.getDimensionIndex(L||0),D)}function S(L,D){D==null&&(D=u),L=L||0;var B=e.getDimensionInfo(L);if(!B){var F=e.getDimensionIndex(L);return F>=0?e.getStore().get(F,D):void 0}var z=e.get(B.name,D),W=B&&B.ordinalMeta;return W?W.categories[z]:z}function x(L,D){process.env.NODE_ENV!=="production"&&lie("api.style","Please write literal style directly instead."),D==null&&(D=u);var B=e.getItemVisual(D,"style"),F=B&&B.fill,z=B&&B.opacity,W=b(D,xc).getItemStyle();F!=null&&(W.fill=F),z!=null&&(W.opacity=z);var j={inheritColor:Ie(F)?F:"#000"},H=O(D,xc),Z=un(H,null,j,!1,!0);Z.text=H.getShallow("show")?Je(t.getFormattedLabel(D,xc),Fg(e,D)):null;var J=kS(H,j,!1);return A(L,W),W=aie(W,Z,J),L&&$(W,L),W.legacy=!0,W}function T(L,D){process.env.NODE_ENV!=="production"&&lie("api.styleEmphasis","Please write literal style directly instead."),D==null&&(D=u);var B=b(D,ru).getItemStyle(),F=O(D,ru),z=un(F,null,null,!0,!0);z.text=F.getShallow("show")?_o(t.getFormattedLabel(D,ru),t.getFormattedLabel(D,xc),Fg(e,D)):null;var W=kS(F,null,!0);return A(L,B),B=aie(B,z,W),L&&$(B,L),B.legacy=!0,B}function $(L,D){for(var B in D)ke(D,B)&&(L[B]=D[B])}function A(L,D){L&&(L.textFill&&(D.textFill=L.textFill),L.textPosition&&(D.textPosition=L.textPosition))}function P(L,D){if(D==null&&(D=u),ke(tie,L)){var B=e.getItemVisual(D,"style");return B?B[tie[L]]:null}if(ke(Kqe,L))return e.getItemVisual(D,L)}function M(L){if(o.type==="cartesian2d"){var D=o.getBaseAxis();return e9e(Ge({axis:D},L))}}function I(){return n.getCurrentSeriesIndices()}function R(L){return zD(L,n)}}function CKe(t){var e={};return V(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function yL(t,e,n,r,i,o,a){if(!r){o.remove(e);return}var s=bL(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Ln(s,r.focus,r.blurScope,r.emphasisDisabled),s}function bL(t,e,n,r,i,o){process.env.NODE_ENV!=="production"&&je(r,"should not have an null/undefined element setting");var a=-1,s=e;e&&Oie(e,r,i)&&(a=st(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=vL(r),s&&OKe(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Oa.normal.cfg=Oa.normal.conOpt=Oa.emphasis.cfg=Oa.emphasis.conOpt=Oa.blur.cfg=Oa.blur.conOpt=Oa.select.cfg=Oa.select.conOpt=null,Oa.isLegacy=!1,PKe(u,n,r,i,l,Oa),TKe(u,n,r,i,l),mL(t,u,n,r,Oa,i,l),ke(r,"info")&&(nu(u).info=r.info);for(var c=0;c<Cc.length;c++){var f=Cc[c];if(f!==xc){var d=gC(r,f),p=_L(r,d,f);bie(f,u,d,p,Oa)}}return SKe(u,r,i),r.type==="group"&&$Ke(t,u,n,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function Oie(t,e,n){var r=nu(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&IKe(o)&&Cie(o)!==r.customPathData||i==="image"&&ke(a,"image")&&a.image!==r.customImagePath}function TKe(t,e,n,r,i){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Oie(a,o,r)&&(a=null),a||(a=vL(o),process.env.NODE_ENV!=="production"&&je(pC(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),t.setClipPath(a)),mL(null,a,e,o,null,r,i)}}function PKe(t,e,n,r,i,o){if(!t.isGroup){wie(n,null,o),wie(n,ru,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(a===!1)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=vL(a),t.setTextContent(c)),mL(null,c,e,a,null,r,i);for(var f=a&&a.style,d=0;d<Cc.length;d++){var p=Cc[d];if(p!==xc){var g=o[p].conOpt;bie(p,c,g,_L(a,g,p),null)}}f?c.dirty():c.markRedraw()}}}}function wie(t,e,n){var r=e?gC(t,e):t,i=e?_L(t,r,ru):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?gC(s,e):s:null;if(i&&(n.isLegacy||rie(i,o,!!a,!!l))){n.isLegacy=!0;var u=iie(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&je(c.type==="text",'textContent.type must be "text"')}var f=e?n[e]:n.normal;f.cfg=a,f.conOpt=l}function gC(t,e){return e?t?t[e]:null:t}function _L(t,e,n){var r=e&&e.style;return r==null&&n===ru&&t&&(r=t.styleEmphasis),r}function $Ke(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!a&&!l&&!u)){if(l){EKe({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<a;c++){var f=o[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),bL(t,d,n,f,i,e)):(process.env.NODE_ENV!=="production"&&je(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var p=e.childCount()-1;p>=c;p--){var g=e.childAt(p);AKe(e,g,i)}}}function AKe(t,e,n){e&&dC(e,nu(t).option,n)}function EKe(t){new ql(t.oldChildren,t.newChildren,Sie,Sie,t).add(xie).update(xie).remove(MKe).execute()}function Sie(t,e){var n=t&&t.name;return n??_Ke+e}function xie(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,i=e!=null?n.oldChildren[e]:null;bL(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function MKe(t){var e=this.context,n=e.oldChildren[t];n&&dC(n,nu(n).option,e.seriesModel)}function Cie(t){return t&&(t.pathData||t.d)}function IKe(t){return t&&(ke(t,"pathData")||ke(t,"d"))}function DKe(t){t.registerChartView(wKe),t.registerSeriesModel(Jqe)}var rh=Tt(),Tie=Ue,OL=Re,wL=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,e,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,n);if(!s)s=this._group=new qe,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=tt(Pie,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}Eie(s,n,!0),this._renderHandle(o)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),i=e.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=jk(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,i,o){},t.prototype.createPointerEl=function(e,n,r,i){var o=n.pointer;if(o){var a=rh(e).pointerEl=new Od[o.type](Tie(n.pointer));e.add(a)}},t.prototype.createLabelEl=function(e,n,r,i){if(n.label){var o=rh(e).labelEl=new $t(Tie(n.label));e.add(o),Aie(o,i)}},t.prototype.updatePointerEl=function(e,n,r){var i=rh(e).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,i){var o=rh(e).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),Aie(o,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=vg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){zl(u.event)},onmousedown:OL(this._onHandleDragMove,this,0,0),drift:OL(this._onHandleDragMove,this),ondragend:OL(this._onHandleDragEnd,this)}),r.add(i)),Eie(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Ag(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){Pie(this._axisPointerModel,!n&&this._moveAnimation,this._handle,SL(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(SL(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(SL(i)),rh(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function Pie(t,e,n,r){$ie(rh(n).lastProp,r)||(rh(n).lastProp=r,e?Rt(n,r,t):(n.stopAnimation(),n.attr(r)))}function $ie(t,e){if(Qe(t)&&Qe(e)){var n=!0;return V(e,function(r,i){n=n&&$ie(t[i],r)}),!!n}else return t===e}function Aie(t,e){t[e.get(["label","show"])?"show":"hide"]()}function SL(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Eie(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function xL(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Mie(t,e,n,r,i){var o=n.get("value"),a=Iie(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Sd(s.get("padding")||0),u=s.getFont(),c=H0(a,u),f=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],g=i.align;g==="right"&&(f[0]-=d),g==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=p),v==="middle"&&(f[1]-=p/2),RKe(f,d,p,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:un(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function RKe(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Iie(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:ck(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};V(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ie(a)?o=a.replace("{value}",o):ze(a)&&(o=a(s))}return o}function CL(t,e,n){var r=Ui();return Yu(r,r,n.rotation),Ka(r,r,n.position),as([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Die(t,e,n,r,i,o){var a=Ii.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Mie(e,r,i,o,{position:CL(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function TL(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Rie(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function kie(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r,startAngle:i,endAngle:o,clockwise:!0}}var kKe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=Nie(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=xL(o),p=NKe[u](s,f,c);p.style=d,n.graphicKey=p.type,n.pointer=p}var g=Wk(l.model,i);Die(r,n,g,i,o,a)},e.prototype.getHandleTransform=function(n,r,i){var o=Wk(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=CL(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=Nie(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=f[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:p,tooltipOption:g[c]}},e}(wL);function Nie(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var NKe={line:function(t,e,n){var r=TL([e,n[0]],[e,n[1]],Lie(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Rie([e-r/2,n[0]],[r,i],Lie(t))}}};function Lie(t){return t.dim==="x"?0:1}var LKe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(dt),iu=Tt(),BKe=V;function Bie(t,e,n){if(!Ct.node){var r=e.getZr();iu(r).records||(iu(r).records={}),VKe(r,e);var i=iu(r).records[t]||(iu(r).records[t]={});i.handler=n}}function VKe(t,e){if(iu(t).initialized)return;iu(t).initialized=!0,n("click",tt(Vie,"click")),n("mousemove",tt(Vie,"mousemove")),n("globalout",FKe);function n(r,i){t.on(r,function(o){var a=WKe(e);BKe(iu(t).records,function(s){s&&i(s,o,a.dispatchAction)}),zKe(a.pendings,e)})}}function zKe(t,e){var n=t.showTip.length,r=t.hideTip.length,i;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function FKe(t,e,n){t.handler("leave",null,n)}function Vie(t,e,n,r){e.handler(t,n,r)}function WKe(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function PL(t,e){if(!Ct.node){var n=e.getZr(),r=(iu(n).records||{})[t];r&&(iu(n).records[t]=null)}}var QKe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";Bie("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(n,r){PL("axisPointer",r)},e.prototype.dispose=function(n,r){PL("axisPointer",r)},e.type="axisPointer",e}(dn);function zie(t,e){var n=[],r=t.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=id(o,t);if(a==null||a<0||ge(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,p=f==="x"||f==="radius"?1:0,g=o.mapDimension(d),v=[];v[p]=o.get(g,a),v[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(o.getValues(me(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:s}}var Fie=Tt();function HKe(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Re(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){vC(i)&&(i=zie({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=vC(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||vC(i),d={},p={},g={list:[],map:{}},v={showPointer:tt(jKe,p),showTooltip:tt(UKe,g)};V(s.coordSysMap,function(y,b){var O=l||y.containPoint(i);V(s.coordSysAxesInfo[b],function(w,S){var x=w.axis,T=qKe(u,w);if(!f&&O&&(!u||T)){var $=T&&T.value;$==null&&!l&&($=x.pointToData(i)),$!=null&&Wie(w,$,v,!1,d)}})});var m={};return V(c,function(y,b){var O=y.linkGroup;O&&!p[b]&&V(O.axesInfo,function(w,S){var x=p[S];if(w!==y&&x){var T=x.value;O.mapper&&(T=y.axis.scale.parse(O.mapper(T,Qie(w),Qie(y)))),m[y.key]=T}})}),V(m,function(y,b){Wie(c[b],y,v,!0,d)}),ZKe(p,c,d),XKe(g,i,t,a),YKe(c,a,n),d}}function Wie(t,e,n,r,i){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var a=GKe(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&he(i,s[0]),!r&&t.snap&&o.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function GKe(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return V(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,t,n);d=p.dataIndices,f=p.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],t,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var g=t-f,v=Math.abs(g);v<=a&&((v<a||g>=0&&s<0)&&(a=v,s=g,i=f,o.length=0),V(d,function(m){o.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:o,snapToValue:i}}function jKe(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function UKe(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Xy(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ZKe(t,e,n){var r=n.axesInfo=[];V(e,function(i,o){var a=i.axisPointerModel.option,s=t[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function XKe(t,e,n,r){if(vC(e)||!t.list.length){r({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function YKe(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=Fie(r)[i]||{},a=Fie(r)[i]={};V(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&V(f.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;a[p]=d})});var s=[],l=[];V(o,function(u,c){!a[c]&&l.push(u)}),V(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function qKe(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Qie(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function vC(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function hb(t){Ud.registerAxisPointerClass("CartesianAxisPointer",kKe),t.registerComponentModel(LKe),t.registerComponentView(QKe),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!ge(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=lje(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HKe)}function KKe(t){ht(vte),ht(hb)}var JKe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=o.get("type");if(d&&d!=="none"){var p=xL(o),g=tJe[d](s,l,f,c);g.style=p,n.graphicKey=g.type,n.pointer=g}var v=o.get(["label","margin"]),m=eJe(r,i,o,l,v);Mie(n,i,o,a,m)},e}(wL);function eJe(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(o.dim==="radius"){var d=Ui();Yu(d,d,s),Ka(d,d,[r.cx,r.cy]),u=as([a,-i],d);var p=e.getModel("axisLabel").get("rotate")||0,g=Ii.innerTextLayout(s,p*Math.PI/180,-1);c=g.textAlign,f=g.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+i,a]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/v<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var tJe={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:TL(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:kie(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(-n+i/2)*o)}:{type:"Sector",shape:kie(e.cx,e.cy,n-i/2,n+i/2,0,Math.PI*2)}}},nJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.findAxisModel=function(n){var r,i=this.ecModel;return i.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(dt),$L=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jn).models[0]},e.type="polarAxis",e}(dt);Wn($L,Vg);var rJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}($L),iJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}($L),AL=function(t){re(e,t);function e(n,r){return t.call(this,"radius",n,r)||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e}(ma);AL.prototype.dataToRadius=ma.prototype.dataToCoord,AL.prototype.radiusToData=ma.prototype.coordToData;var oJe=Tt(),EL=function(t){re(e,t);function e(n,r){return t.call(this,"angle",n,r||[0,360])||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=H0(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),g=oJe(n.model),v=g.lastAutoInterval,m=g.lastTickCount;return v!=null&&m!=null&&Math.abs(v-p)<=1&&Math.abs(m-a)<=1&&v>p?p=v:(g.lastTickCount=a,g.lastAutoInterval=p),p},e}(ma);EL.prototype.dataToAngle=ma.prototype.dataToCoord,EL.prototype.angleToData=ma.prototype.coordToData;var Hie=["radius","angle"],aJe=function(){function t(e){this.dimensions=Hie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new AL,this._angleAxis=new EL,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var n=this.pointToCoord(e);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var n="_"+e+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var n=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&n.push(r),i.scale.type===e&&n.push(i),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var n=this._angleAxis;return e===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var n=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],n),this._angleAxis.dataToAngle(e[1],n)])},t.prototype.pointToData=function(e,n){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},t.prototype.pointToCoord=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=u<a?1:-1;u<a||u>s;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var n=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*n+this.cx,o=-Math.sin(r)*n+this.cy;return[i,o]},t.prototype.getArea=function(){var e=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},t.prototype.convertToPixel=function(e,n,r){var i=Gie(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=Gie(n);return i===this?this.pointToData(r):null},t}();function Gie(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const sJe=aJe;function lJe(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Ee(r[0],i),t.cy=Ee(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");l==null?l=[0,"100%"]:ge(l)||(l=[0,l]);var u=[Ee(l[0],s),Ee(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function uJe(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();V(Ex(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),V(Ex(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Ld(r.scale,r.model),Ld(i.scale,i.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function cJe(t){return t.mainType==="angleAxis"}function jie(t,e){var n;if(t.type=e.get("type"),t.scale=Ny(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),cJe(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=(n=e.get("endAngle"))!==null&&n!==void 0?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var fJe={dimensions:Hie,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,i){var o=new sJe(i+"");o.update=uJe;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");jie(a,l),jie(s,u),lJe(o,r,e),n.push(o),r.coordinateSystem=o,o.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",Jn).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+Un(r.get("polarIndex"),r.get("polarId"),0)+'" not found');r.coordinateSystem=i.coordinateSystem}}),n}},dJe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function mC(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function yC(t){var e=t.getRadiusAxis();return e.inverse?0:1}function Uie(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var hJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=n.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=me(i.getViewLabels(),function(c){c=Ue(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});Uie(u),Uie(s),V(dJe,function(c){n.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&pJe[c](this.group,n,o,s,l,a,u)},this)}},e.type="angleAxis",e}(Ud),pJe={axisLine:function(t,e,n,r,i,o){var a=e.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=yC(n),f=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";o[f]===0?d=new Od[p]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):d=new ay({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[f]},style:a.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,t.add(d)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[yC(n)],u=me(r,function(c){return new br({shape:mC(n,[l,l+s],c.coord)})});t.add(To(u,{style:Ge(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[yC(n)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new br({shape:mC(n,[u,u+l],i[f][d].coord)}));t.add(To(c,{style:Ge(s.getModel("lineStyle").getLineStyle(),Ge(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");V(a,function(f,d){var p=l,g=f.tickValue,v=o[yC(n)],m=n.coordToPoint([v+u,f.coord]),y=n.cx,b=n.cy,O=Math.abs(m[0]-y)/v<.3?"center":m[0]>y?"left":"right",w=Math.abs(m[1]-b)/v<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[g]){var S=s[g];Qe(S)&&S.textStyle&&(p=new rn(S.textStyle,l,l.ecModel))}var x=new $t({silent:Ii.isLabelSilent(e),style:un(p,{x:m[0],y:m[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:O,verticalAlign:w})});if(t.add(x),c){var T=Ii.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=f.rawLabel,Ke(x).eventData=T}},this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new br({shape:mC(n,o,r[f].coord)}))}for(var f=0;f<c.length;f++)t.add(To(c[f],{style:Ge({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new br({shape:mC(n,o,i[u][c].coord)}));t.add(To(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,p=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),v=e.get("clockwise"),m=1,y=r.length;m<=y;m++){var b=m===y?r[0].coord:r[m].coord,O=u++%l.length;c[O]=c[O]||[],c[O].push(new Ci({shape:{cx:n.cx,cy:n.cy,r0:p,r:g,startAngle:d,endAngle:-b*f,clockwise:v},silent:!0})),d=-b*f}for(var m=0;m<c.length;m++)t.add(To(c[m],{style:Ge({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},gJe=["axisLine","axisTickLabel","axisName"],vJe=["splitLine","splitArea","minorSplitLine"],mJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=this._axisGroup,o=this._axisGroup=new qe;this.group.add(o);var a=n.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),c=a.getMinorTicksCoords(),f=l.getExtent()[0],d=a.getExtent(),p=bJe(s,n,f),g=new Ii(n,p);V(gJe,g.add,g),o.add(g.getGroup()),cy(i,o,n),V(vJe,function(v){n.get([v,"show"])&&!a.scale.isBlank()&&yJe[v](this.group,n,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(Ud),yJe={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),p=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],v=0;v<o.length;v++){var m=u++%l.length;g[m]=g[m]||[],g[m].push(new Od[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[v].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var v=0;v<g.length;v++)t.add(To(g[v],{style:Ge({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var f=0;f<a[c].length;f++)u.push(new Zl({shape:{cx:n.cx,cy:n.cy,r:a[c][f].coord}}));t.add(To(u,{style:Ge({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Ci({shape:{cx:n.cx,cy:n.cy,r0:f,r:o[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=o[d].coord}for(var d=0;d<c.length;d++)t.add(To(c[d],{style:Ge({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function bJe(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function Zie(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Xie(t,e){return e.dim+t.model.componentIndex}function _Je(t,e,n){var r={},i=OJe(Yt(e.getSeriesByType(t),function(o){return!e.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),u=Xie(s,l),c=Zie(o),f=i[u][c],d=f.offset,p=f.width,g=s.getOtherAxis(l),v=o.coordinateSystem.cx,m=o.coordinateSystem.cy,y=o.get("barMinHeight")||0,b=o.get("barMinAngle")||0;r[c]=r[c]||[];for(var O=a.mapDimension(g.dim),w=a.mapDimension(l.dim),S=Kl(a,O),x=l.dim!=="radius"||!o.get("roundCap",!0),T=g.model,$=T.get("startValue"),A=g.dataToCoord($||0),P=0,M=a.count();P<M;P++){var I=a.get(O,P),R=a.get(w,P),L=I>=0?"p":"n",D=A;S&&(r[c][R]||(r[c][R]={p:A,n:A}),D=r[c][R][L]);var B=void 0,F=void 0,z=void 0,W=void 0;if(g.dim==="radius"){var j=g.dataToCoord(I)-A,H=l.dataToCoord(R);Math.abs(j)<y&&(j=(j<0?-1:1)*y),B=D,F=D+j,z=H-d,W=z-p,S&&(r[c][R][L]=F)}else{var Z=g.dataToCoord(I,x)-A,J=l.dataToCoord(R);Math.abs(Z)<b&&(Z=(Z<0?-1:1)*b),B=J+d,F=B+p,z=D,W=D+Z,S&&(r[c][R][L]=W)}a.setItemLayout(P,{cx:v,cy:m,r0:B,r:F,startAngle:-z*Math.PI/180,endAngle:-W*Math.PI/180,clockwise:z>=W})}}})}function OJe(t){var e={};V(t,function(r,i){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=Xie(a,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/o.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var p=Zie(r);d[p]||f.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var g=Ee(r.get("barWidth"),c),v=Ee(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");g&&!d[p].width&&(g=Math.min(f.remainedWidth,g),d[p].width=g,f.remainedWidth-=g),v&&(d[p].maxWidth=v),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var n={};return V(e,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=Ee(r.categoryGap,a),l=Ee(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),V(o,function(v,m){var y=v.maxWidth;y&&y<f&&(y=Math.min(y,u),v.width&&(y=Math.min(y,v.width)),u-=y,v.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,p;V(o,function(v,m){v.width||(v.width=f),p=v,d+=v.width*(1+l)}),p&&(d-=p.width*l);var g=-d/2;V(o,function(v,m){n[i][m]=n[i][m]||{offset:g,width:v.width},g+=v.width*(1+l)})}),n}var wJe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},SJe={splitNumber:5},xJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(dn);function CJe(t){ht(hb),Ud.registerAxisPointerClass("PolarAxisPointer",JKe),t.registerCoordinateSystem("polar",fJe),t.registerComponentModel(nJe),t.registerComponentView(xJe),Qg(t,"angle",rJe,wJe),Qg(t,"radius",iJe,SJe),t.registerComponentView(hJe),t.registerComponentView(mJe),t.registerLayout(tt(_Je,"bar"))}function ML(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[a==="vertical"?u.vertical[o]:l[0],a==="horizontal"?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Un(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.rotate;return d==null&&(d=t.get(["axisLabel","rotate"])),i.labelRotation=o==="top"?-d:d,i.z2=1,i}var TJe=["axisLine","axisTickLabel","axisName"],PJe=["splitArea","splitLine"],$Je=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return e.prototype.render=function(n,r,i,o){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new qe;var l=ML(n),u=new Ii(n,l);V(TJe,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),V(PJe,function(c){n.get([c,"show"])&&AJe[c](this,this.group,this._axisGroup,n)},this),cy(s,this._axisGroup,n),t.prototype.render.call(this,n,r,i,o)},e.prototype.remove=function(){dte(this)},e.type="singleAxis",e}(Ud),AJe={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,p=i.getTicksCoords({tickModel:o}),g=[],v=[],m=0;m<p.length;++m){var y=i.toGlobalCoord(p[m].coord);c?(g[0]=y,g[1]=u.y,v[0]=y,v[1]=u.y+u.height):(g[0]=u.x,g[1]=y,v[0]=u.x+u.width,v[1]=y);var b=new br({shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},silent:!0});gg(b.shape,l);var O=d++%s.length;f[O]=f[O]||[],f[O].push(b)}for(var w=a.getLineStyle(["color"]),m=0;m<f.length;++m)e.add(To(f[m],{style:Ge({stroke:s[m%s.length]},w),silent:!0}))}},splitArea:function(t,e,n,r){fte(t,n,r,r)}},bC=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(dt);Wn(bC,Vg.prototype);var EJe=function(t){re(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},e}(ma),Yie=["single"],MJe=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=Yie,this.axisPointerEnabled=!0,this.model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var i=this.dimension,o=new EJe(i,Ny(e),[0,0],e.get("type"),e.get("position")),a=o.type==="category";o.onBand=a&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},t.prototype.update=function(e,n){e.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();V(i.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(i,o)},this),Ld(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=er({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,n=this._axis,r=n.isHorizontal(),i=r?[0,e.width]:[0,e.height],o=n.inverse?1:0;n.setExtent(i[o],i[1-o]),this._updateAxisTransform(n,r?e.x:e.y)},t.prototype._updateAxisTransform=function(e,n){var r=e.getExtent(),i=r[0]+r[1],o=e.isHorizontal();e.toGlobalCoord=o?function(a){return a+n}:function(a){return i-a+n},e.toLocalCoord=o?function(a){return a-n}:function(a){return i-a+n}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var n=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=n.y&&e[1]<=n.y+n.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=n.y&&e[0]<=n.y+n.height},t.prototype.pointToData=function(e){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var n=this.getAxis(),r=this.getRect(),i=[],o=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[o]=n.toGlobalCoord(n.dataToCoord(+e)),i[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,i},t.prototype.convertToPixel=function(e,n,r){var i=qie(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=qie(n);return i===this?this.pointToData(r):null},t}();function qie(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function IJe(t,e){var n=[];return t.eachComponent("singleAxis",function(r,i){var o=new MJe(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",Jn).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),n}var DJe={create:IJe,dimensions:Yie},Kie=["x","y"],RJe=["width","height"],kJe=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.coordinateSystem,u=IL(l,1-_C(s)),c=l.dataToPoint(r)[0],f=o.get("type");if(f&&f!=="none"){var d=xL(o),p=NJe[f](s,c,u);p.style=d,n.graphicKey=p.type,n.pointer=p}var g=ML(i);Die(r,n,g,i,o,a)},e.prototype.getHandleTransform=function(n,r,i){var o=ML(r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=CL(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.coordinateSystem,l=_C(a),u=IL(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=IL(s,1-l),d=(f[1]+f[0])/2,p=[d,d];return p[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e}(wL),NJe={line:function(t,e,n){var r=TL([e,n[0]],[e,n[1]],_C(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Rie([e-r/2,n[0]],[r,i],_C(t))}}};function _C(t){return t.isHorizontal()?0:1}function IL(t,e){var n=t.getRect();return[n[Kie[e]],n[Kie[e]]+n[RJe[e]]]}var LJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(dn);function BJe(t){ht(hb),Ud.registerAxisPointerClass("SingleAxisPointer",kJe),t.registerComponentView(LJe),t.registerComponentView($Je),t.registerComponentModel(bC),Qg(t,"single",bC,bC.defaultOption),t.registerCoordinateSystem("single",DJe)}var VJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,i){var o=Sg(n);t.prototype.init.apply(this,arguments),Jie(n,o)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),Jie(this.option,n)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(dt);function Jie(t,e){var n=t.cellSize,r;ge(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var i=me([0,1],function(o){return zFe(e,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});dc(t,e,{type:"box",ignoreSize:i})}var zJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group;o.removeAll();var a=n.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,o),this._renderLines(n,s,l,o),this._renderYearText(n,s,l,o),this._renderMonthText(n,u,l,o),this._renderWeekText(n,u,s,l,o)},e.prototype._renderDayRect=function(n,r,i){for(var o=n.coordinateSystem,a=n.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),u=r.start.time;u<=r.end.time;u=o.getNextNDay(u,1).time){var c=o.dataToRect([u],!1).tl,f=new Pt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});i.add(f)}},e.prototype._renderLines=function(n,r,i,o){var a=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){g(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var p=f.date;p.setMonth(p.getMonth()+1),f=s.getDateInfo(p)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(v){a._firstDayOfMonth.push(s.getDateInfo(v)),a._firstDayPoints.push(s.dataToRect([v],!1).tl);var m=a._getLinePointsOfOneWeek(n,v,i);a._tlpoints.push(m[0]),a._blpoints.push(m[m.length-1]),u&&a._drawSplitline(m,l,o)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,i),l,o),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,i),l,o)},e.prototype._getEdgesPoints=function(n,r,i){var o=[n[0].slice(),n[n.length-1].slice()],a=i==="horizontal"?0:1;return o[0][a]=o[0][a]-r/2,o[1][a]=o[1][a]+r/2,o},e.prototype._drawSplitline=function(n,r,i){var o=new Pi({z2:20,shape:{points:n},style:r});i.add(o)},e.prototype._getLinePointsOfOneWeek=function(n,r,i){for(var o=n.coordinateSystem,a=o.getDateInfo(r),s=[],l=0;l<7;l++){var u=o.getNextNDay(a.time,l),c=o.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(n,r){return Ie(n)&&n?NFe(n,r):ze(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,i,o,a){var s=r[0],l=r[1],u=["center","bottom"];o==="bottom"?(l+=a,u=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return(o==="left"||o==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(n,r,i,o){var a=n.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var v=a.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:g},y=this._formatterLabel(v,m),b=new $t({z2:30,style:un(a,{text:y})});b.attr(this._yearTextPositionControl(b,p[l],i,l,s)),o.add(b)}},e.prototype._monthTextPositionControl=function(n,r,i,o,a){var s="left",l="top",u=n[0],c=n[1];return i==="horizontal"?(c=c+a,r&&(s="center"),o==="start"&&(l="bottom")):(u=u+a,r&&(l="middle"),o==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(n,r,i,o){var a=n.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ie(s))&&(s&&(r=jD(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",v=0;v<f[d].length-1;v++){var m=f[d][v].slice(),y=this._firstDayOfMonth[v];if(g){var b=this._firstDayPoints[v];m[p]=(b[p]+f[0][v+1][p])/2}var O=a.get("formatter"),w=s[+y.m-1],S={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},x=this._formatterLabel(O,S),T=new $t({z2:30,style:he(un(a,{text:x}),this._monthTextPositionControl(m,g,i,u,l))});o.add(T)}}},e.prototype._weekTextPositionControl=function(n,r,i,o,a){var s="center",l="middle",u=n[0],c=n[1],f=i==="start";return r==="horizontal"?(u=u+o+(f?1:-1)*a[0]/2,s=f?"right":"left"):(c=c+o+(f?1:-1)*a[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(n,r,i,o,a){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Ie(c)){c&&(r=jD(c)||r);var p=r.get(["time","dayOfWeekShort"]);c=p||me(r.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var g=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=Ee(f,Math.min(v[1],v[0])),u==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var m=0;m<7;m++){var y=l.getNextNDay(g,m),b=l.dataToRect([y.time],!1).center,O=m;O=Math.abs((m+d)%7);var w=new $t({z2:30,style:he(un(s,{text:c[O]}),this._weekTextPositionControl(b,o,u,f,v))});a.add(w)}}},e.type="calendar",e}(dn),DL=864e5,FJe=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=xo(e);var n=e.getFullYear(),r=e.getMonth()+1,i=r<10?"0"+r:""+r,o=e.getDate(),a=o<10?"0"+o:""+o,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:i,d:a,day:s,time:e.getTime(),formatedDate:n+"-"+i+"-"+a,date:e}},t.prototype.getNextNDay=function(e,n){return n=n||0,n===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+n),this.getDateInfo(e))},t.prototype.update=function(e,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];V([0,1],function(f){c(o,f)&&(a[i[f]]=o[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=er(a,l);V([0,1],function(f){c(o,f)||(o[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(e,n){ge(e)&&(e=e[0]),n==null&&(n=!0);var r=this.getDateInfo(e),i=this._rangeInfo,o=r.formatedDate;if(n&&!(r.time>=i.start.time&&r.time<i.end.time+DL))return[NaN,NaN];var a=r.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},t.prototype.pointToData=function(e){var n=this.pointToDate(e);return n&&n.time},t.prototype.dataToRect=function(e,n){var r=this.dataToPoint(e,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var n=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,i):this._getDateByWeeksAndDay(n,r-1,i)},t.prototype.convertToPixel=function(e,n,r){var i=eoe(n);return i===this?i.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=eoe(n);return i===this?i.pointToData(r):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),n;if(ge(e)&&e.length===1&&(e=e[0]),ge(e))n=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);n=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return process.env.NODE_ENV!=="production"&&ea("Invalid date range."),e;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(e){var n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var i=Math.floor(n[1].time/DL)-Math.floor(n[0].time/DL)+1,o=new Date(n[0].time),a=o.getDate(),s=n[1].date.getDate();o.setDate(a+i-1);var l=o.getDate();if(l!==s)for(var u=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-n[1].time)*u>0;)i-=u,o.setDate(l-u);var c=Math.floor((i+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(e,n,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&n<i.fweek||e===i.weeks&&n>i.lweek)return null;var o=(e-1)*7-i.fweek+n,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(i){var o=new t(i);r.push(o),i.coordinateSystem=o}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function eoe(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}function WJe(t){t.registerComponentModel(VJe),t.registerComponentView(zJe),t.registerCoordinateSystem("calendar",FJe)}function QJe(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function toe(t,e){var n;return V(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function HJe(t,e,n){var r=he({},n),i=t[e],o=n.$action||"merge";if(o==="merge")if(i){if(process.env.NODE_ENV!=="production"){var a=n.type;je(!a||i.type===a,'Please set $action: "replace" to change `type`')}it(i,r,!0),dc(i,r,{ignoreSize:!0}),EY(n,i),OC(n,i),OC(n,i,"shape"),OC(n,i,"style"),OC(n,i,"extra"),n.clipPath=i.clipPath}else t[e]=r;else o==="replace"?t[e]=r:o==="remove"&&i&&(t[e]=null)}var noe=["transition","enterFrom","leaveTo"],GJe=noe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function OC(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?noe:GJe,i=0;i<r.length;i++){var o=r[i];t[o]==null&&e[o]!=null&&(t[o]=e[o])}}function jJe(t,e){if(t&&(t.hv=e.hv=[toe(e,["left","right"]),toe(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var UJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=i},e.prototype.optionUpdated=function(n,r){var i=this.option,o=(r?i:n).elements,a=i.elements=r?[]:i.elements,s=[];this._flatten(o,s,null);var l=PZ(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];V(l,function(c,f){var d=c.newOption;process.env.NODE_ENV!=="production"&&je(Qe(d)||c.existing,"Empty graphic option definition"),d&&(u.push(d),QJe(c,d),HJe(a,f,d),jJe(a[f],d))},this),i.elements=Yt(a,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(n,r,i){V(n,function(o){if(o){i&&(o.parentOption=i),r.push(o);var a=o.children;a&&a.length&&this._flatten(a,r,o),delete o.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e}(dt),roe={path:null,compoundPath:null,group:qe,image:Rr,text:$t},wa=Tt(),ZJe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._elMap=Le()},e.prototype.render=function(n,r,i){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,i)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var i=this._elMap,o=this.group,a=n.get("z"),s=n.get("zlevel");V(r,function(l){var u=cr(l.id,null),c=u!=null?i.get(u):null,f=cr(l.parentId,null),d=f!=null?i.get(f):o,p=l.type,g=l.style;p==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var v=l.textContent,m=l.textConfig;if(g&&rie(g,p,!!m,!!v)){var y=iie(g,p,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!v&&y.textContent&&(v=y.textContent)}var b=XJe(l);process.env.NODE_ENV!=="production"&&c&&je(d===c.parent,"Changing parent is not supported.");var O=l.$action||"merge",w=O==="merge",S=O==="replace";if(w){var x=!c,T=c;x?T=ioe(u,d,l.type,i):(T&&(wa(T).isNew=!1),mie(T)),T&&(fC(T,b,n,{isInit:x}),ooe(T,l,a,s))}else if(S){wC(c,l,i,n);var $=ioe(u,d,l.type,i);$&&(fC($,b,n,{isInit:!0}),ooe($,l,a,s))}else O==="remove"&&(die(c,l),wC(c,l,i,n));var A=i.get(u);if(A&&v)if(w){var P=A.getTextContent();P?P.attr(v):A.setTextContent(new $t(v))}else S&&A.setTextContent(new $t(v));if(A){var M=l.clipPath;if(M){var I=M.type,R=void 0,x=!1;if(w){var L=A.getClipPath();x=!L||wa(L).type!==I,R=x?RL(I):L}else S&&(x=!0,R=RL(I));A.setClipPath(R),fC(R,M,n,{isInit:x}),hC(R,M.keyframeAnimation,n)}var D=wa(A);A.setTextConfig(m),D.option=l,YJe(A,n,l),mg({el:A,componentModel:n,itemName:A.name,itemTooltipOption:l.tooltip}),hC(A,l.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var i=n.option.elements,o=this.group,a=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=cr(f.id,null),p=d!=null?a.get(d):null;if(!(!p||!p.isGroup)){var g=p.parent,v=g===o,m=wa(p),y=wa(g);m.width=Ee(m.option.width,v?s:y.width)||0,m.height=Ee(m.option.height,v?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=cr(f.id,null),p=d!=null?a.get(d):null;if(p){var g=p.parent,y=wa(g),b=g===o?{width:s,height:l}:{width:y.width,height:y.height},O={},w=GS(p,f,b,null,{hv:f.hv,boundingMode:f.bounding},O);if(!wa(p).isNew&&w){for(var S=f.transition,x={},T=0;T<u.length;T++){var $=u[T],A=O[$];S&&(nh(S)||st(S,$)>=0)?x[$]=A:p[$]=A}Rt(p,x,n,0)}else p.attr(O)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){wC(i,wa(i).option,r,n._lastGraphicModel)}),this._elMap=Le()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(dn);function RL(t){process.env.NODE_ENV!=="production"&&je(t,"graphic type MUST be set");var e=ke(roe,t)?roe[t]:MS(t);process.env.NODE_ENV!=="production"&&je(e,"graphic type "+t+" can not be found");var n=new e({});return wa(n).type=t,n}function ioe(t,e,n,r){var i=RL(n);return e.add(i),r.set(t,i),wa(i).id=t,wa(i).isNew=!0,i}function wC(t,e,n,r){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(o){wC(o,e,n,r)}),dC(t,e,r),n.removeKey(wa(t).id))}function ooe(t,e,n,r){t.isGroup||V([["cursor",la.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var o=i[0];ke(e,o)?t[o]=Je(e[o],i[1]):t[o]==null&&(t[o]=i[1])}),V(bt(e),function(i){if(i.indexOf("on")===0){var o=e[i];t[i]=ze(o)?o:null}}),ke(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function XJe(t){return t=he({},t),V(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(AY),function(e){delete t[e]}),t}function YJe(t,e,n){var r=Ke(t).eventData;!t.silent&&!t.ignore&&!r&&(r=Ke(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function qJe(t){t.registerComponentModel(UJe),t.registerComponentView(ZJe),t.registerPreprocessor(function(e){var n=e.graphic;ge(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var aoe=["x","y","radius","angle","single"],KJe=["cartesian2d","polar","singleAxis"];function JJe(t){var e=t.get("coordinateSystem");return st(KJe,e)>=0}function Tc(t){return process.env.NODE_ENV!=="production"&&je(t),t+"Axis"}function eet(t,e){var n=Le(),r=[],i=Le();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var o;do o=!1,t.eachComponent("dataZoom",a);while(o);function a(c){!i.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,p){var g=n.get(d);g&&g[p]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function soe(t){var e=t.ecModel,n={infoList:[],infoMap:Le()};return t.eachTargetAxis(function(r,i){var o=e.getComponent(Tc(r),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=n.infoMap.get(s);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(o)}}}),n}var kL=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),pb=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,i){var o=loe(n);this.settledOption=o,this.mergeDefaultAndTheme(n,i),this._doInit(o)},e.prototype.mergeOption=function(n){var r=loe(n);it(this.option,n,!0),it(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(r[o[0]]=i[o[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Le(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return V(aoe,function(i){var o=this.getReferringComponents(Tc(i),SVe);if(o.specified){r=!0;var a=new kL;V(o.models,function(s){a.add(s.componentIndex)}),n.set(i,a)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,o=!0;if(o){var a=r==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new kL;if(d.add(f.componentIndex),n.set(c,d),o=!1,c==="x"||c==="y"){var p=f.getReferringComponents("grid",Jn).models[0];p&&V(u,function(g){f.componentIndex!==g.componentIndex&&p===g.getReferringComponents("grid",Jn).models[0]&&d.add(g.componentIndex)})}}}o&&V(aoe,function(u){if(o){var c=i.findComponents({mainType:Tc(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new kL;f.add(c[0].componentIndex),n.set(u,f),o=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");V([["start","startValue"],["end","endValue"]],function(o,a){var s=n[o[0]]!=null,l=n[o[1]]!=null;s&&!l?r[a]="percent":!s&&l?r[a]="value":i?r[a]=i[a]:s&&(r[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(Tc(r),i))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,o){V(i.indexList,function(a){n.call(r,o,a)})})},e.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){process.env.NODE_ENV!=="production"&&je(n&&r!=null);var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(Tc(n),r)},e.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=i[o[0]]=n[o[0]],r[o[1]]=i[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;V(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),o=0;o<i.length;o++)for(var a=i[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&je(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(dt);function loe(t){var e={};return V(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var tet=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(pb),NL=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){this.dataZoomModel=n,this.ecModel=r,this.api=i},e.type="dataZoom",e}(dn),net=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(NL),Jg=V,uoe=So,ret=function(){function t(e,n,r,i){this._dimName=e,this._axisIndex=n,this.ecModel=i,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(JJe(n)){var r=Tc(this._dimName),i=n.getReferringComponents(r,Jn).models[0];i&&this._axisIndex===i.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Ue(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u;Jg(["start","end"],function(d,p){var g=e[d],v=e[d+"Value"];o[p]==="percent"?(g==null&&(g=a[p]),v=i.parse(qt(g,a,n))):(u=!0,v=v==null?n[p]:i.parse(v),g=qt(v,n,a)),l[p]=v==null||isNaN(v)?n[p]:v,s[p]=g==null||isNaN(g)?a[p]:g}),uoe(l),uoe(s);var c=this._minMaxSpan;u?f(l,s,n,a,!1):f(s,l,a,n,!0);function f(d,p,g,v,m){var y=m?"Span":"ValueSpan";Jd(0,d,g,"all",c["min"+y],c["max"+y]);for(var b=0;b<2;b++)p[b]=qt(d[b],g,v,!0),m&&(p[b]=i.parse(p[b]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=iet(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),a=this._valueWindow;if(o==="none")return;Jg(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(o==="weakFilter"){var f=u.getStore(),d=me(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var g,v,m,y=0;y<c.length;y++){var b=f.get(d[y],p),O=!isNaN(b),w=b<a[0],S=b>a[1];if(O&&!w&&!S)return!0;O&&(m=!0),w&&(g=!0),S&&(v=!0)}return m&&g&&v})}else Jg(c,function(p){if(o==="empty")l.setData(u=u.map(p,function(v){return s(v)?v:NaN}));else{var g={};g[p]=a,u.selectRange(g)}});Jg(c,function(p){u.setApproximateExtent(a,p)})}});function s(l){return l>=a[0]&&l<=a[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Jg(["min","max"],function(i){var o=n.get(i+"Span"),a=n.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=qt(r[0]+a,r,[0,100],!0):o!=null&&(a=qt(o,[0,100],r,!0)-r[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=a},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=GI(r,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(i)),o.freeze()}},t}();function iet(t,e,n){var r=[1/0,-1/0];Jg(n,function(a){w9e(r,a.getData(),e)});var i=t.getAxisModel(),o=pJ(i.axis.scale,i,r).calculate();return[o.min,o.max]}var oet={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=t.getComponent(Tc(a),s);i(a,s,l,o)})})}e(function(i,o,a,s){a.__dzAxisProxy=null});var n=[];e(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new ret(i,o,s,t),n.push(a.__dzAxisProxy))});var r=Le();return V(n,function(i){V(i.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function aet(t){t.registerAction("dataZoom",function(e,n){var r=eet(n,e);V(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var coe=!1;function LL(t){coe||(coe=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,oet),aet(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function set(t){t.registerComponentModel(tet),t.registerComponentView(net),LL(t)}var Sa=function(){function t(){}return t}(),foe={};function ev(t,e){foe[t]=e}function doe(t){return foe[t]}var uet=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;V(this.option.feature,function(r,i){var o=doe(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),it(r,o.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(dt);function cet(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=er(r,o,i);Td(e.get("orient"),t,e.get("itemGap"),a.width,a.height),GS(t,r,o,i)}function hoe(t,e){var n=Sd(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Pt({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var fet=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,o){var a=this.group;if(a.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];V(u,function(g,v){f.push(v)}),new ql(this._featureNames||[],f).add(d).update(d).remove(tt(d,null)).execute(),this._featureNames=f;function d(g,v){var m=f[g],y=f[v],b=u[m],O=new rn(b,n,n.ecModel),w;if(o&&o.newTitle!=null&&o.featureName===m&&(b.title=o.newTitle),m&&!y){if(det(m))w={onclick:O.option.onclick,featureName:m};else{var S=doe(m);if(!S)return;w=new S}c[m]=w}else if(w=c[y],!w)return;w.uid=bg("toolbox-feature"),w.model=O,w.ecModel=r,w.api=i;var x=w instanceof Sa;if(!m&&y){x&&w.dispose&&w.dispose(r,i);return}if(!O.get("show")||x&&w.unusable){x&&w.remove&&w.remove(r,i);return}p(O,w,m),O.setIconStatus=function(T,$){var A=this.option,P=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=$,P[T]&&($==="emphasis"?jl:Ul)(P[T])},w instanceof Sa&&w.render&&w.render(O,r,i,o)}function p(g,v,m){var y=g.getModel("iconStyle"),b=g.getModel(["emphasis","iconStyle"]),O=v instanceof Sa&&v.getIcons?v.getIcons():g.get("icon"),w=g.get("title")||{},S,x;Ie(O)?(S={},S[m]=O):S=O,Ie(w)?(x={},x[m]=w):x=w;var T=g.iconPaths={};V(S,function($,A){var P=vg($,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(y.getItemStyle());var M=P.ensureState("emphasis");M.style=b.getItemStyle();var I=new $t({style:{text:x[A],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:zD({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},r)},ignore:!0});P.setTextContent(I),mg({el:P,componentModel:n,itemName:A,formatterParamsExtra:{title:x[A]}}),P.__title=x[A],P.on("mouseover",function(){var R=b.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||L}),I.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(g.get(["iconStatus",A])==="emphasis"?jl:Ul)(P),a.add(P),P.on("click",Re(v.onclick,v,r,i,A)),T[A]=P})}cet(a,n,i),a.add(hoe(a.getBoundingRect(),n)),l||a.eachChild(function(g){var v=g.__title,m=g.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=g.getTextContent(),O=b&&b.ensureState("emphasis");if(O&&!ze(O)&&v){var w=O.style||(O.style={}),S=H0(v,$t.makeFont(w)),x=g.x+a.x,T=g.y+a.y+s,$=!1;T+S.height>i.getHeight()&&(y.position="top",$=!0);var A=$?-5-S.height:s+10;x+S.width/2>i.getWidth()?(y.position=["100%",A],w.align="right"):x-S.width/2<0&&(y.position=[0,A],w.align="left")}})},e.prototype.updateView=function(n,r,i,o){V(this._features,function(a){a instanceof Sa&&a.updateView&&a.updateView(a.model,r,i,o)})},e.prototype.remove=function(n,r){V(this._features,function(i){i instanceof Sa&&i.remove&&i.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){V(this._features,function(i){i instanceof Sa&&i.dispose&&i.dispose(n,r)})},e.type="toolbox",e}(dn);function det(t){return t.indexOf("my")===0}var het=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var i=this.model,o=i.get("name")||n.get("title.0.text")||"echarts",a=r.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Ct.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=o+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||a){var d=l.split(","),p=d[0].indexOf("base64")>-1,g=a?decodeURIComponent(d[1]):d[1];p&&(g=window.atob(g));var v=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=g.length,y=new Uint8Array(m);m--;)y[m]=g.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,v)}else{var O=document.createElement("iframe");document.body.appendChild(O);var w=O.contentWindow,S=w.document;S.open("image/svg+xml","replace"),S.write(g),S.close(),w.focus(),S.execCommand("SaveAs",!0,v),document.body.removeChild(O)}}else{var x=i.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',$=window.open();$.document.write(T),$.document.title=o}},e.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(Sa),poe="__ec_magicType_stack__",pet=[["line","bar"],["stack"]],get=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),i={};return V(n.get("type"),function(o){r[o]&&(i[o]=r[o])}),i},e.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,i){var o=this.model,a=o.get(["seriesIndex",i]);if(goe[i]){var s={series:[]},l=function(f){var d=f.subType,p=f.id,g=goe[i](d,p,f,o);g&&(Ge(g,f.option),s.series.push(g));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=v.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",O=f.getReferringComponents(b,Jn).models[0],w=O.componentIndex;s[b]=s[b]||[];for(var S=0;S<=w;S++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=i==="bar"}}};V(pet,function(f){st(f,i)>=0&&V(f,function(d){o.setIconStatus(d,"normal")})}),o.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,c=i;i==="stack"&&(u=it({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Sa),goe={line:function(t,e,n,r){if(t==="bar")return it({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return it({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===poe;if(t==="line"||t==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),it({id:e,stack:i?"":poe},r.get(["option","stack"])||{},!0)}};ls({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var SC=new Array(60).join("-"),tv=" ";function vet(t){var e={},n=[],r=[];return t.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function met(t){var e=[];return V(t,function(n,r){var i=n.categoryAxis,o=n.valueAxis,a=o.dim,s=[" "].concat(me(n.series,function(p){return p.name})),l=[i.model.getCategories()];V(n.series,function(p){var g=p.getRawData();l.push(p.getRawData().mapArray(g.mapDimension(a),function(v){return v}))});for(var u=[s.join(tv)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(tv))}e.push(u.join(`
  349. `))}),e.join(`
  350. `+SC+`
  351. `)}function yet(t){return me(t,function(e){var n=e.getRawData(),r=[e.name],i=[];return n.each(n.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=n.getName(a),l=0;l<o-1;l++)i[l]=arguments[l];r.push((s?s+tv:"")+i.join(tv))}),r.join(`
  352. `)}).join(`
  353. `+SC+`
  354. `)}function bet(t){var e=vet(t);return{value:Yt([met(e.seriesGroupByCategoryAxis),yet(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  355. `+SC+`
  356. `),meta:e.meta}}function xC(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _et(t){var e=t.slice(0,t.indexOf(`
  357. `));if(e.indexOf(tv)>=0)return!0}var BL=new RegExp("["+tv+"]+","g");function Oet(t){for(var e=t.split(/\n+/g),n=xC(e.shift()).split(BL),r=[],i=me(n,function(l){return{name:l,data:[]}}),o=0;o<e.length;o++){var a=xC(e[o]).split(BL);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function wet(t){for(var e=t.split(/\n+/g),n=xC(e.shift()),r=[],i=0;i<e.length;i++){var o=xC(e[i]);if(o){var a=o.split(BL),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function xet(t,e){var n=t.split(new RegExp(`
  358. *`+SC+`
  359. *`,"g")),r={series:[]};return V(n,function(i,o){if(_et(i)){var a=Oet(i),s=e[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:a.categories},r.series=r.series.concat(a.series))}else{var a=wet(i);r.series.push(a)}}),r}var Cet=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=o.get("optionToContent"),d=o.get("contentToOption"),p=bet(n);if(ze(f)){var g=f(r.getOption());Ie(g)?u.innerHTML=g:Gu(g)&&u.appendChild(g)}else{c.readOnly=o.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=o.get("textColor"),v.borderColor=o.get("textareaBorderColor"),v.backgroundColor=o.get("textareaColor"),c.value=p.value,u.appendChild(c)}var m=p.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",O=document.createElement("div"),w=document.createElement("div");b+=";background-color:"+o.get("buttonColor"),b+=";color:"+o.get("buttonTextColor");var S=this;function x(){i.removeChild(a),S._dom=null}lI(O,"click",x),lI(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){process.env.NODE_ENV!=="production"&&En("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var T;try{ze(d)?T=d(u,r.getOption()):T=xet(c.value,m)}catch($){throw x(),new Error("Data view format error "+$)}T&&r.dispatchAction({type:"changeDataView",newOption:T}),x()}),O.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=O.style.cssText=b,!o.get("readOnly")&&y.appendChild(w),y.appendChild(O),a.appendChild(s),a.appendChild(u),a.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(a),this._dom=a},e.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(Sa);function Tet(t,e){return me(t,function(n,r){var i=e&&e[r];if(Qe(i)&&!ge(i)){var o=Qe(n)&&!ge(n);o||(n={value:n});var a=i.name!=null&&n.name==null;return n=Ge(n,i),a&&delete n.name,n}else return n})}ls({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];V(t.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)n.push(he({type:"scatter"},r));else{var o=i.get("data");n.push({name:r.name,data:Tet(r.data,o)})}}),e.mergeOption(Ge({series:n},t.newOption))});var voe=V,moe=Tt();function Pet(t,e){var n=VL(t);voe(e,function(r,i){for(var o=n.length-1;o>=0;o--){var a=n[o];if(a[i])break}if(o<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();n[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),n.push(e)}function $et(t){var e=VL(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return voe(n,function(i,o){for(var a=e.length-1;a>=0;a--)if(i=e[a][o],i){r[o]=i;break}}),r}function Aet(t){moe(t).snapshots=null}function Eet(t){return VL(t).length}function VL(t){var e=moe(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Met=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){Aet(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(Sa);ls({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var Iet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],zL=function(){function t(e,n,r){var i=this;this._targetInfoList=[];var o=yoe(n,e);V(Det,function(a,s){(!r||!r.include||st(r.include,s)>=0)&&a(o,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,i,o){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var a=WL[r.brushType](0,o,i);r.__rangeOffset={offset:woe[r.brushType](a.values,r.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){V(e,function(i){var o=this.findTargetInfo(i,n);o&&o!==!0&&V(o.coordSyses,function(a){var s=WL[i.brushType](1,a,i.range,!0);r(i,s.values,a,n)})},this)},t.prototype.setInputRanges=function(e,n){V(e,function(r){var i=this.findTargetInfo(r,n);if(process.env.NODE_ENV!=="production"&&(je(!i||i===!0||r.coordRange,"coordRange must be specified when coord index specified."),je(!i||i!==!0||r.range,"range must be specified in global brush.")),r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var o=WL[r.brushType](0,i.coordSys,r.coordRange),a=r.__rangeOffset;r.range=a?woe[r.brushType](o.values,a.offset,Ret(o.xyMinMax,a.xyMinMax)):o.values}},this)},t.prototype.makePanelOpts=function(e,n){return me(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:vre(i),isTargetByCursor:yre(i,e,r.coordSysModel),getLinearBrushOtherExtent:mre(i)}})},t.prototype.controlSeries=function(e,n,r){var i=this.findTargetInfo(e,r);return i===!0||i&&st(i.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,i=yoe(n,e),o=0;o<r.length;o++){var a=r[o],s=e.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<boe.length;l++)if(boe[l](i,a))return a}return!0},t}();function FL(t){return t[0]>t[1]&&t.reverse(),t}function yoe(t,e){return X0(t,e,{includeMainTypes:Iet})}var Det={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Le(),a={},s={};!n&&!r&&!i||(V(n,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),V(r,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),V(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,c=[];V(u.getCartesians(),function(f,d){(st(n,f.getAxis("x").model)>=0||st(r,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:_oe.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){V(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:_oe.geo})})}},boe=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],_oe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(uc(t)),e}},WL={lineX:tt(Ooe,0),lineY:tt(Ooe,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[FL([i[0],o[0]]),FL([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=me(n,function(a){var s=t?e.pointToData(a,r):e.dataToPoint(a,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:o,xyMinMax:i}}};function Ooe(t,e,n,r){process.env.NODE_ENV!=="production"&&je(n.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][t]),o=FL(me([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var woe={lineX:tt(Soe,0),lineY:tt(Soe,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return me(t,function(r,i){return[r[0]-n[0]*e[i][0],r[1]-n[1]*e[i][1]]})}};function Soe(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function Ret(t,e){var n=xoe(t),r=xoe(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function xoe(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var QL=V,ket=yVe("toolbox-dataZoom_"),Net=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,o){this._brushController||(this._brushController=new WN(i.getZr()),this._brushController.on("brush",Re(this._onBrush,this)).mount()),Vet(n,r,this,o,i),Bet(n,r)},e.prototype.onclick=function(n,r,i){Let[i].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var a=new zL(HL(this.model),o,{include:["grid"]});a.matchOutputRanges(r,o,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),Pet(o,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),p=d.model,g=l(u,p,o),v=g.findRepresentativeAxisProxy(p).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Jd(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var g=p.getAxisModel(u,c.componentIndex);g&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];QL(n,function(i,o){r.push(Ue(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(Sa),Let={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction($et(this.ecModel))}};function HL(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Bet(t,e){t.setIconStatus("back",Eet(e)>1?"emphasis":"normal")}function Vet(t,e,n,r,i){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new zL(HL(t),e,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}jFe("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),i=[],o=HL(r),a=X0(t,o);QL(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),QL(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:ket+u+f};d[c]=f,i.push(d)}return i});function zet(t){t.registerComponentModel(uet),t.registerComponentView(fet),ev("saveAsImage",het),ev("magicType",get),ev("dataView",Cet),ev("dataZoom",Net),ev("restore",Met),ht(set)}var Fet=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(dt);function Coe(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Toe(t){if(Ct.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var Poe=Toe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Wet=Toe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function $oe(t,e){if(!t)return e;e=KD(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function Qet(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var Het=$oe(Wet,"transition"),GL=$oe(Poe,"transform"),Get="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ct.transform3dSupported?"will-change:transform;":"");function jet(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function Uet(t,e,n){if(!Ie(n)||n==="inside")return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=xd(e);var o=jet(n),a=Math.max(Math.round(i)*1.5,6),s="",l=GL+":",u;st(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+p+"px";var g=e+" solid "+i+"px;",v=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'<div style="'+v.join("")+'"></div>'}function Zet(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Ct.transformSupported?","+GL+r:",left"+r+",top"+r),Het+":"+i}function Aoe(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Ct.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Ct.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+GL+":"+a+";":[["top",0],["left",0],[Poe,a]]}function Xet(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),V(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Yet(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=Eq(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(Zet(i,n)),o&&r.push("background-color:"+o),V(["width","color","radius"],function(p){var g="border-"+p,v=KD(g),m=t.get(v);m!=null&&r.push(g+":"+m+(p==="color"?"":"px"))}),r.push(Xet(c)),f!=null&&r.push("padding:"+Sd(f).join("px ")+"px"),r.join(";")+";"}function Eoe(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&FBe(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var qet=function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ct.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=n.appendTo,a=o&&(Ie(o)?document.querySelector(o):Gu(o)?o:ze(o)&&o(e.getDom()));Eoe(this._styleCoord,i,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(r),this._api=e,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();ia(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var n=this._api.getDom(),r=Qet(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=Get+Yet(e,!this._firstShow,this._longHide)+Aoe(o[0],o[1],!0)+("border-color:"+xd(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,i,o){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(Ie(o)&&r.get("trigger")==="item"&&!Coe(r)&&(s=Uet(r,i,o)),Ie(e))a.innerHTML=e+s;else if(e){a.innerHTML="",ge(e)||(e=[e]);for(var l=0;l<e.length;l++)Gu(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(Eoe(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=Aoe(r[0],r[1]);V(o,function(a){i[a[0]]=a[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Ct.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Re(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),Ket=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Ioe(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,i,o){var a=this;Qe(e)&&Ht(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new $t({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Eq(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),V(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),V(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=Moe(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var i=this._styleCoord;Ioe(i,this._zr,e,n),e=i[0],n=i[1];var o=r.style,a=Pc(o.borderWidth||0),s=Moe(o);r.x=e+a+s.left,r.y=n+a+s.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Re(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Pc(t){return Math.max(0,t)}function Moe(t){var e=Pc(t.shadowBlur||0),n=Pc(t.shadowOffsetX||0),r=Pc(t.shadowOffsetY||0);return{left:Pc(e-n),right:Pc(e+n),top:Pc(e-r),bottom:Pc(e+r)}}function Ioe(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Jet=new Pt({shape:{x:-1,y:-1,width:2,height:2}}),ett=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Ct.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=CVe(i.get("renderMode"));this._tooltipContent=o==="richText"?new Ket(r):new qet(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(n,r,i){if(!(Ct.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Ag(this,"_updatePosition",50,"fixRate"):xy(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Bie("itemTooltip",this._api,Re(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||Ct.node||!i.getDom())){var a=Doe(o,i);this._ticket="";var s=o.dataByCoordSys,l=itt(o,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=Jet;c.x=o.x,c.y=o.y,c.update(),Ke(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=zie(o,r),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},e.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Doe(o,i))},e.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=gb([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},e.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=Ke(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Md(i,function(c){if(Ke(c).dataIndex!=null)return l=c,!0;if(Ke(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Re(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=gb([r.tooltipOption],o),l=this._renderMode,u=[],c=Or("section",{blocks:[],noHeader:!0}),f=[],d=new xR;V(n,function(b){V(b.dataByAxis,function(O){var w=i.getComponent(O.axisDim+"Axis",O.axisIndex),S=O.value;if(!(!w||S==null)){var x=Iie(S,w.axis,i,O.seriesDataIndices,O.valueLabelOpt),T=Or("section",{header:x,noHeader:!na(x),sortBlocks:!0,blocks:[]});c.blocks.push(T),V(O.seriesDataIndices,function($){var A=i.getSeriesByIndex($.seriesIndex),P=$.dataIndexInside,M=A.getDataParams(P);if(!(M.dataIndex<0)){M.axisDim=O.axisDim,M.axisIndex=O.axisIndex,M.axisType=O.axisType,M.axisId=O.axisId,M.axisValue=ck(w.axis,{value:S}),M.axisValueLabel=x,M.marker=d.makeTooltipMarker("item",xd(M.color),l);var I=cq(A.formatTooltip(P,!0,null)),R=I.frag;if(R){var L=gb([A],o).get("valueFormatter");T.blocks.push(L?he({valueFormatter:L},R):R)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var p=r.position,g=s.get("order"),v=Pq(c,d,l,g,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var m=l==="richText"?`
  360. `:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Ke(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),p=this._renderMode,g=n.positionDefault,v=gb([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),b=new xR;y.marker=b.makeTooltipMarker("item",xd(y.color),p);var O=cq(u.formatTooltip(c,!1,f)),w=v.get("order"),S=v.get("valueFormatter"),x=O.frag,T=x?Pq(S?he({valueFormatter:S},x):x,b,p,w,o.get("useUTC"),v.get("textStyle")):O.text,$="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,T,y,$,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Ke(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ie(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Ue(l),l.content=_i(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=n.positionDefault,g=gb(f,this._tooltipModel,p?{position:p}:null),v=g.get("content"),m=Math.random()+"",y=new xR;this._showOrMove(g,function(){var b=Ue(g.get("formatterParams")||{});this._showTooltipContent(g,v,b,m,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var p=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),v=g.color;if(d)if(Ie(d)){var m=n.ecModel.get("useUTC"),y=ge(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=d,b&&(p=py(y.axisValue,p,m)),p=tR(p,i,!0)}else if(ze(d)){var O=Re(function(w,S){w===this._ticket&&(f.setContent(S,c,n,v,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,p=d(i,o,O)}else p=d;f.setContent(p,c,n,v,l),f.show(n,v),this._updatePosition(n,l,a,s,f,i,u)}},e.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ge(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ge(r))return{color:o||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),d=n.get("align"),p=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),ze(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:f.slice()})),ge(r))i=Ee(r[0],u),o=Ee(r[1],c);else if(Qe(r)){var v=r;v.width=f[0],v.height=f[1];var m=er(v,{width:u,height:c});i=m.x,o=m.y,d=null,p=null}else if(Ie(r)&&l){var y=rtt(r,g,f,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=ttt(i,o,a,u,c,d?null:20,p?null:20);i=y[0],o=y[1]}if(d&&(i-=Roe(d)?f[0]/2:d==="right"?f[0]:0),p&&(o-=Roe(p)?f[1]/2:p==="bottom"?f[1]:0),Coe(n)){var y=ntt(i,o,a,u,c);i=y[0],o=y[1]}a.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&V(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&V(u,function(d,p){var g=f[p]||{},v=d.seriesDataIndices||[],m=g.seriesDataIndices||[];a=a&&d.value===g.value&&d.axisType===g.axisType&&d.axisId===g.axisId&&v.length===m.length,a&&V(v,function(y,b){var O=m[b];a=a&&y.seriesIndex===O.seriesIndex&&y.dataIndex===O.dataIndex}),o&&V(d.seriesDataIndices,function(y){var b=y.seriesIndex,O=r[b],w=o[b];O&&w&&w.data!==O.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Ct.node||!r.getDom()||(xy(this,"_updatePosition"),this._tooltipContent.dispose(),PL("itemTooltip",r))},e.type="tooltip",e}(dn);function gb(t,e,n){var r=e.ecModel,i;n?(i=new rn(n,r,r),i=new rn(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof rn&&(a=a.get("tooltip",!0)),Ie(a)&&(a={formatter:a}),a&&(i=new rn(a,i,r)))}return i}function Doe(t,e){return t.dispatchAction||Re(e.dispatchAction,e)}function ttt(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(t+l+o+2>r?t-=l+o:t+=o),a!=null&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function ntt(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function rtt(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function Roe(t){return t==="center"||t==="middle"}function itt(t,e,n){var r=qI(t).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Y0(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=Ke(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function ott(t){ht(hb),t.registerComponentModel(Fet),t.registerComponentView(ett),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qn)}var att=["rect","polygon","keep","clear"];function stt(t,e){var n=nn(t?t.brush:[]);if(n.length){var r=[];V(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=t&&t.toolbox;ge(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),ltt(s),e&&!s.length&&s.push.apply(s,att)}}function ltt(t){var e={};V(t,function(n){e[n]=1}),t.length=0,V(e,function(n,r){t.push(r)})}var koe=V;function Noe(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function jL(t,e,n){var r={};return koe(e,function(o){var a=r[o]=i();koe(t[o],function(s,l){if(Sr.isValidType(l)){var u={type:l,visual:s};n&&n(u,o),a[l]=new Sr(u),l==="opacity"&&(u=Ue(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new Sr(u))}})}),r;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var a=new o;return a}}function Loe(t,e,n){var r;V(n,function(i){e.hasOwnProperty(i)&&Noe(e[i])&&(r=!0)}),r&&V(n,function(i){e.hasOwnProperty(i)&&Noe(e[i])?t[i]=Ue(e[i]):delete t[i]})}function utt(t,e,n,r,i,o){var a={};V(t,function(f){var d=Sr.prepareVisualTypes(e[f]);a[f]=d});var s;function l(f){return PR(n,s,f)}function u(f,d){Kq(n,s,f,d)}n.each(c);function c(f,d){s=f;var p=n.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var g=r.call(i,f),v=e[g],m=a[g],y=0,b=m.length;y<b;y++){var O=m[y];v[O]&&v[O].applyVisual(f,l,u)}}}function ctt(t,e,n,r){var i={};return V(t,function(o){var a=Sr.prepareVisualTypes(e[o]);i[o]=a}),{progress:function(a,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(S){return PR(s,f,S)}function c(S,x){Kq(s,f,S,x)}for(var f,d=s.getStore();(f=a.next())!=null;){var p=s.getRawDataItem(f);if(!(p&&p.visualMap===!1))for(var g=r!=null?d.get(l,f):f,v=n(g),m=e[v],y=i[v],b=0,O=y.length;b<O;b++){var w=y[b];m[w]&&m[w].applyVisual(g,u,c)}}}}}function ftt(t){var e=t.brushType,n={point:function(r){return Boe[e].point(r,n,t)},rect:function(r){return Boe[e].rect(r,n,t)}};return n}var Boe={lineX:Voe(0),lineY:Voe(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Bd(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];if(Bd(r,i,o)||Bd(r,i+a,o)||Bd(r,i,o+s)||Bd(r,i+a,o+s)||at.create(t).contain(l[0],l[1])||fy(i,o,i+a,o,r)||fy(i,o,i,o+s,r)||fy(i+a,o,i+a,o+s,r)||fy(i,o+s,i+a,o+s,r))return!0}}};function Voe(t){var e=["x","y"],n=["width","height"];return{point:function(r,i,o){if(r){var a=o.range,s=r[t];return vb(s,a)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),vb(s[0],a)||vb(s[1],a)||vb(a[0],s)||vb(a[1],s)}}}}function vb(t,e){return e[0]<=t&&t<=e[1]}var zoe=["inBrush","outOfBrush"],UL="__ecBrushSelect",ZL="__ecInBrushSelectEvent";function Foe(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new zL(e.option,t);n.setInputRanges(e.areas,t)})}function dtt(t,e,n){var r=[],i,o;t.eachComponent({mainType:"brush"},function(a){n&&n.type==="takeGlobalCursor"&&a.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),Foe(t),t.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:Ue(a.areas),selected:[]};r.push(l);var u=a.option,c=u.brushLink,f=[],d=[],p=[],g=!1;s||(i=u.throttleType,o=u.throttleDelay);var v=me(a.areas,function(S){var x=vtt[S.brushType],T=Ge({boundingRect:x?x(S):void 0},S);return T.selectors=ftt(T),T}),m=jL(a.option,zoe,function(S){S.mappingMethod="fixed"});ge(c)&&V(c,function(S){f[S]=1});function y(S){return c==="all"||!!f[S]}function b(S){return!!S.length}t.eachSeries(function(S,x){var T=p[x]=[];S.subType==="parallel"?O(S,x):w(S,x,T)});function O(S,x){var T=S.coordinateSystem;g=g||T.hasAxisBrushed(),y(x)&&T.eachActiveState(S.getData(),function($,A){$==="active"&&(d[A]=1)})}function w(S,x,T){if(!(!S.brushSelector||gtt(a,x))&&(V(v,function(A){a.brushTargetManager.controlSeries(A,S,t)&&T.push(A),g=g||b(T)}),y(x)&&b(T))){var $=S.getData();$.each(function(A){Woe(S,T,$,A)&&(d[A]=1)})}}t.eachSeries(function(S,x){var T={seriesId:S.id,seriesIndex:x,seriesName:S.name,dataIndex:[]};l.selected.push(T);var $=p[x],A=S.getData(),P=y(x)?function(M){return d[M]?(T.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return Woe(S,$,A,M)?(T.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?g:b($))&&utt(zoe,m,A,P)})}),htt(e,i,o,r,n)}function htt(t,e,n,r,i){if(i){var o=t.getZr();if(!o[ZL]){o[UL]||(o[UL]=ptt);var a=Ag(o,UL,n,e);a(t,r)}}}function ptt(t,e){if(!t.isDisposed()){var n=t.getZr();n[ZL]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[ZL]=!1}}function Woe(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}function gtt(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(ge(n)?st(n,e)<0:e!==n)}var vtt={rect:function(t){return Qoe(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&Qoe(e)}};function Qoe(t){return new at(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var mtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new WN(r.getZr())).on("brush",Re(this._onBrush,this)).mount()},e.prototype.render=function(n,r,i,o){this.model=n,this._updateController(n,r,i,o)},e.prototype.updateTransform=function(n,r,i,o){Foe(r),this._updateController(n,r,i,o)},e.prototype.updateVisual=function(n,r,i,o){this.updateTransform(n,r,i,o)},e.prototype.updateView=function(n,r,i,o){this._updateController(n,r,i,o)},e.prototype._updateController=function(n,r,i,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ue(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ue(i),$from:r})},e.type="brush",e}(dn),ytt="#ddd",btt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&Loe(i,n,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:ytt},o.hasOwnProperty("liftZ")||(o.liftZ=5)},e.prototype.setAreas=function(n){process.env.NODE_ENV!=="production"&&(je(ge(n)),V(n,function(r){je(r.brushType,"Illegal areas")})),n&&(this.areas=me(n,function(r){return Hoe(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=Hoe(this.option,n),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(dt);function Hoe(t,e){return it({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new rn(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var _tt=["rect","polygon","lineX","lineY","keep","clear"],Ott=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i){var o,a,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,V(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,i){this.render(n,r,i)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),i={};return V(n.get("type",!0),function(o){r[o]&&(i[o]=r[o])}),i},e.prototype.onclick=function(n,r,i){var o=this._brushType,a=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(n){var r={show:!0,type:_tt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(Sa);function wtt(t){t.registerComponentView(mtt),t.registerComponentModel(btt),t.registerPreprocessor(stt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,dtt),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Qn),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Qn),ev("brush",Ott)}var Stt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(dt),xtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var o=this.group,a=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Je(n.get("textBaseline"),n.get("textVerticalAlign")),c=new $t({style:un(a,{text:n.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),p=new $t({style:un(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=n.get("link"),v=n.get("sublink"),m=n.get("triggerEvent",!0);c.silent=!g&&!m,p.silent=!v&&!m,g&&c.on("click",function(){QS(g,"_"+n.get("target"))}),v&&p.on("click",function(){QS(v,"_"+n.get("subtarget"))}),Ke(c).eventData=Ke(p).eventData=m?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(c),d&&o.add(p);var y=o.getBoundingRect(),b=n.getBoxLayoutParams();b.width=y.width,b.height=y.height;var O=er(b,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?O.x+=O.width:l==="center"&&(O.x+=O.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?O.y+=O.height:u==="middle"&&(O.y+=O.height/2),u=u||"top"),o.x=O.x,o.y=O.y,o.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),p.setStyle(w),y=o.getBoundingRect();var S=O.margin,x=n.getItemStyle(["color","opacity"]);x.fill=n.get("backgroundColor");var T=new Pt({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:n.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});o.add(T)}},e.type="title",e}(dn);function Ctt(t){t.registerComponentModel(Stt),t.registerComponentView(xtt)}var Goe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._initData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(n){this.option.autoPlay=!!n},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var n=this.option,r=n.data||[],i=n.axisType,o=this._names=[],a;i==="category"?(a=[],V(r,function(u,c){var f=cr(ig(u),""),d;Qe(u)?(d=Ue(u),d.value=c):d=c,a.push(d),o.push(f)})):a=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new ci([{name:"value",type:s}],this);l.initData(a,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(dt),joe=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline.slider",e.defaultOption=fc(Goe.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Goe);Wn(joe,XS.prototype);var Ttt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(dn),Ptt=function(t){re(e,t);function e(n,r,i,o){var a=t.call(this,n,r,i)||this;return a.type=o||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ma),XL=Math.PI,Uoe=Tt(),$tt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.api=r},e.prototype.render=function(n,r,i){if(this.model=n,this.api=i,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Or("nameValue",{noName:!0,value:c})},V(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,a,l,n)},this),this._renderAxisLabel(o,s,l,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(n,r){var i=n.get(["label","position"]),o=n.get("orient"),a=Ett(n,r),s;i==null||i==="auto"?s=o==="horizontal"?a.y+a.height/2<r.getHeight()/2?"-":"+":a.x+a.width/2<r.getWidth()/2?"+":"-":Ie(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:XL/2},f=o==="vertical"?a.height:a.width,d=n.getModel("controlStyle"),p=d.get("show",!0),g=p?d.get("itemSize"):0,v=p?d.get("itemGap"):0,m=g+v,y=n.get(["label","rotate"])||0;y=y*XL/180;var b,O,w,S=d.get("position",!0),x=p&&d.get("showPlayBtn",!0),T=p&&d.get("showPrevBtn",!0),$=p&&d.get("showNextBtn",!0),A=0,P=f;S==="left"||S==="bottom"?(x&&(b=[0,0],A+=m),T&&(O=[A,0],A+=m),$&&(w=[P-g,0],P-=m)):(x&&(b=[P-g,0],P-=m),T&&(O=[0,0],A+=m),$&&(w=[P-g,0],P-=m));var M=[A,P];return n.get("inverse")&&M.reverse(),{viewRect:a,mainLength:f,orient:o,rotation:c[o],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[o],playPosition:b,prevBtnPosition:O,nextBtnPosition:w,axisExtent:M,controlSize:g,controlGap:v}},e.prototype._position=function(n,r){var i=this._mainGroup,o=this._labelGroup,a=n.viewRect;if(n.orient==="vertical"){var s=Ui(),l=a.x,u=a.y+a.height;Ka(s,s,[-l,-u]),Yu(s,s,-XL/2),Ka(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=b(a),f=b(i.getBoundingRect()),d=b(o.getBoundingRect()),p=[i.x,i.y],g=[o.x,o.y];g[0]=p[0]=c[0][0];var v=n.labelPosOpt;if(v==null||Ie(v)){var m=v==="+"?0:1;O(p,f,c,1,m),O(g,d,c,1,1-m)}else{var m=v>=0?0:1;O(p,f,c,1,m),g[1]=p[1]+v}i.setPosition(p),o.setPosition(g),i.rotation=o.rotation=n.rotation,y(i),y(o);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function O(w,S,x,T,$){w[T]+=x[T][$]-S[T][$]}},e.prototype._createAxis=function(n,r){var i=r.getData(),o=r.get("axisType"),a=Att(r,o);a.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new Ptt("value",a,n.axisExtent,o);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new qe;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,i,o){var a=i.getExtent();if(o.get(["lineStyle","show"])){var s=new br({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:he({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new br({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Ge({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(n,r,i,o){var a=this,s=o.getData(),l=i.scale.getTicks();this._tickSymbols=[],V(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),p=f.getModel(["emphasis","itemStyle"]),g=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:Re(a._changeTimeline,a,u.value)},m=Zoe(f,d,r,v);m.ensureState("emphasis").style=p.getItemStyle(),m.ensureState("progress").style=g.getItemStyle(),ac(m);var y=Ke(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=o):y.dataIndex=y.dataModel=null,a._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(n,r,i,o){var a=this,s=i.getLabelModel();if(s.get("show")){var l=o.getData(),u=i.getViewLabels();this._tickLabels=[],V(u,function(c){var f=c.tickValue,d=l.getItemModel(f),p=d.getModel("label"),g=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new $t({x:m,y:0,rotation:n.labelRotation-n.rotation,onclick:Re(a._changeTimeline,a,f),silent:!1,style:un(p,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=un(g),y.ensureState("progress").style=un(v),r.add(y),ac(y),Uoe(y).dataIndex=f,a._tickLabels.push(y)})}},e.prototype._renderControl=function(n,r,i,o){var a=n.controlSize,s=n.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),f=o.get("inverse",!0);d(n.nextBtnPosition,"next",Re(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Re(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Re(this._handlePlayClick,this,!c),!0);function d(p,g,v,m){if(p){var y=ns(Je(o.get(["controlStyle",g+"BtnSize"]),a),a),b=[0,-y/2,y,y],O=Mtt(o,g+"Icon",b,{x:p[0],y:p[1],originX:a/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:v});O.ensureState("emphasis").style=u,r.add(O),ac(O)}}},e.prototype._renderCurrentPointer=function(n,r,i,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Re(u._handlePointerDrag,u),f.ondragend=Re(u._handlePointerDragend,u),Xoe(f,u._progressLine,s,i,o,!0)},onUpdate:function(f){Xoe(f,u._progressLine,s,i,o)}};this._currentPointer=Zoe(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},e.prototype._handlePointerDrag=function(n,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},e.prototype._pointerChangeTimeline=function(n,r){var i=this._toAxisCoord(n)[0],o=this._axis,a=So(o.getExtent().slice());i>a[1]&&(i=a[1]),i<a[0]&&(i=a[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return as(n,r,!0)},e.prototype._findNearestTick=function(n){var r=this.model.getData(),i=1/0,o,a=this._axis;return r.each(["value"],function(s,l){var u=a.dataToCoord(s),c=Math.abs(u-n);c<i&&(i=c,o=l)}),o},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},e.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<n);if(i)for(var o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",Uoe(i[o]).dataIndex<=n)},e.type="timeline.slider",e}(Ttt);function Att(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Cx({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new lk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Jl}}function Ett(t,e){return er(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Mtt(t,e,n,r){var i=r.style,o=vg(t.get(["controlStyle",e]),r||{},new at(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function Zoe(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");i=Xn(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=it({rectHover:!0,z2:100},r,!0);var u=Mg(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Id(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=t.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function Xoe(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function Itt(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,n,r){var i=n.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),n.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ge({currentIndex:i.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,n){var r=n.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function Dtt(t){var e=t&&t.timeline;ge(e)||(e=e?[e]:[]),V(e,function(n){n&&Rtt(n)})}function Rtt(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),Yoe(t),ih(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});ih(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!ih(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}V(t.data||[],function(i){Qe(i)&&!ge(i)&&(!ih(i,"value")&&ih(i,"name")&&(i.value=i.name),Yoe(i))})}function Yoe(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};V(r,function(a,s){!o[s]&&!ih(i,s)&&(i[s]=a)}),n.label&&!ih(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function ih(t,e){return t.hasOwnProperty(e)}function ktt(t){t.registerComponentModel(joe),t.registerComponentView($tt),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),Itt(t),t.registerPreprocessor(Dtt)}function YL(t,e){if(!t)return!1;for(var n=ge(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function CC(t){rd(t,"label",["show"])}var TC=Tt(),ou=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return e.prototype.init=function(n,r,i){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(n,i),this._mergeOption(n,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ct.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},e.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},e.prototype._mergeOption=function(n,r,i,o){var a=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=TC(s)[a];if(!l||!l.data){TC(s)[a]=null;return}u?u._mergeOption(l,r,!0):(o&&CC(l),V(l.data,function(c){c instanceof Array?(CC(c[0]),CC(c[1])):CC(c)}),u=this.createMarkerModelFromSeries(l,this,r),he(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),TC(s)[a]=u},this)},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Or("section",{header:this.name,blocks:[Or("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(n){this._data=n},e.prototype.getDataParams=function(n,r){var i=XS.prototype.getDataParams.call(this,n,r),o=this.__hostSeries;return o&&(i.seriesId=o.id,i.seriesName=o.name,i.seriesType=o.subType),i},e.getMarkerModelFromSeries=function(n,r){return TC(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(dt);Wn(ou,XS.prototype);var Ntt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ou);function qL(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Ltt(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function PC(t,e,n,r,i,o){var a=[],s=Kl(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=JL(e,l,t),c=e.indicesOfNearest(l,u)[0];a[i]=e.get(n,c),a[o]=e.get(l,c);var f=e.get(r,c),d=rs(e.get(r,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,f]}var KL={min:tt(PC,"min"),max:tt(PC,"max"),average:tt(PC,"average"),median:tt(PC,"median")};function mb(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!Ltt(e)&&!ge(e.coord)&&ge(i)){var o=qoe(e,n,r,t);if(e=Ue(e),e.type&&KL[e.type]&&o.baseAxis&&o.valueAxis){var a=st(i,o.baseAxis.dim),s=st(i,o.valueAxis.dim),l=KL[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ge(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)KL[u[c]]&&(u[c]=JL(n,n.mapDimension(i[c]),u[c]));return e}}function qoe(t,e,n,r){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(Btt(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function Btt(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function yb(t,e){return t&&t.containData&&e.coord&&!qL(e)?t.containData(e.coord):!0}function Vtt(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!qL(e)&&!qL(n)?t.containZone(e.coord,n.coord):!0}function Koe(t,e){return t?function(n,r,i,o){var a=o<2?n.coord&&n.coord[o]:n.value;return hc(a,e[o])}:function(n,r,i,o){return hc(n.value,e[o])}}function JL(t,e,n){if(n==="average"){var r=0,i=0;return t.each(e,function(o,a){isNaN(o)||(r+=o,i++)}),r/i}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var e4=Tt(),t4=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this.markerGroupMap=Le()},e.prototype.render=function(n,r,i){var o=this,a=this.markerGroupMap;a.each(function(s){e4(s).keep=!1}),r.eachSeries(function(s){var l=ou.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,i)}),a.each(function(s){!e4(s).keep&&o.group.remove(s.group)})},e.prototype.markKeep=function(n){e4(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var i=this;V(n,function(o){var a=ou.getMarkerModelFromSeries(o,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(r?bX(l):wD(l))})}})},e.type="marker",e}(dn);function Joe(t,e,n){var r=e.coordinateSystem;t.each(function(i){var o=t.getItemModel(i),a,s=Ee(o.get("x"),n.getWidth()),l=Ee(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(i,a)})}var ztt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=ou.getMarkerModelFromSeries(o,"markPoint");a&&(Joe(a.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Qy),f=Ftt(a,n,r);r.setData(f),Joe(r.getData(),n,o),f.each(function(d){var p=f.getItemModel(d),g=p.getShallow("symbol"),v=p.getShallow("symbolSize"),m=p.getShallow("symbolRotate"),y=p.getShallow("symbolOffset"),b=p.getShallow("symbolKeepAspect");if(ze(g)||ze(v)||ze(m)||ze(y)){var O=r.getRawValue(d),w=r.getDataParams(d);ze(g)&&(g=g(O,w)),ze(v)&&(v=v(O,w)),ze(m)&&(m=m(O,w)),ze(y)&&(y=y(O,w))}var S=p.getModel("itemStyle").getItemStyle(),x=Py(l,"color");S.fill||(S.fill=x),f.setItemVisual(d,{symbol:g,symbolSize:v,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(p){Ke(p).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(t4);function Ftt(t,e,n){var r;t?r=me(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return he(he({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new ci(r,n),o=me(n.get("data"),tt(mb,e));t&&(o=Yt(o,tt(yb,t)));var a=Koe(!!t,r);return i.initData(o,null,a),i}function Wtt(t){t.registerComponentModel(Ntt),t.registerComponentView(ztt),t.registerPreprocessor(function(e){YL(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Qtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ou),$C=Tt(),Htt=function(t,e,n,r){var i=t.getData(),o;if(ge(r))o=r;else{var a=r.type;if(a==="min"||a==="max"||a==="average"||a==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Un(r.yAxis,r.xAxis);else{var u=qoe(r,i,e,t);s=u.valueAxis;var c=tk(i,u.valueDataDim);l=JL(i,c,a)}var f=s.dim==="x"?0:1,d=1-f,p=Ue(r),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var v=n.get("precision");v>=0&&Et(l)&&(l=+l.toFixed(Math.min(v,20))),p.coord[f]=g.coord[f]=l,o=[p,g,{type:a,valueIndex:r.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&ea("Invalid markLine data."),o=[]}var m=[mb(t,o[0]),mb(t,o[1]),he({},o[2])];return m[2].type=m[2].type||null,it(m[2],m[0]),it(m[2],m[1]),m};function AC(t){return!isNaN(t)&&!isFinite(t)}function eae(t,e,n,r){var i=1-t,o=r.dimensions[t];return AC(e[i])&&AC(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function Gtt(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(eae(1,n,r,t)||eae(0,n,r,t)))return!0}return yb(t,e[0])&&yb(t,e[1])}function n4(t,e,n,r,i){var o=r.coordinateSystem,a=t.getItemModel(e),s,l=Ee(a.get("x"),i.getWidth()),u=Ee(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=o.dataToPoint([f,d])}if(Gd(o,"cartesian2d")){var p=o.getAxis("x"),g=o.getAxis("y"),c=o.dimensions;AC(t.get(c[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):AC(t.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var jtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=ou.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=$C(a).from,u=$C(a).to;l.each(function(c){n4(l,c,!0,o,i),n4(u,c,!1,o,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new EN);this.group.add(c.group);var f=Utt(a,n,r),d=f.from,p=f.to,g=f.line;$C(r).from=d,$C(r).to=p,r.setData(g);var v=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");ge(v)||(v=[v,v]),ge(m)||(m=[m,m]),ge(y)||(y=[y,y]),ge(b)||(b=[b,b]),f.from.each(function(w){O(d,w,!0),O(p,w,!1)}),g.each(function(w){var S=g.getItemModel(w).getModel("lineStyle").getLineStyle();g.setItemLayout(w,[d.getItemLayout(w),p.getItemLayout(w)]),S.stroke==null&&(S.stroke=d.getItemVisual(w,"style").fill),g.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:p.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(w,"symbolOffset"),toSymbolRotate:p.getItemVisual(w,"symbolRotate"),toSymbolSize:p.getItemVisual(w,"symbolSize"),toSymbol:p.getItemVisual(w,"symbol"),style:S})}),c.updateData(g),f.line.eachItemGraphicEl(function(w){Ke(w).dataModel=r,w.traverse(function(S){Ke(S).dataModel=r})});function O(w,S,x){var T=w.getItemModel(S);n4(w,S,x,n,o);var $=T.getModel("itemStyle").getItemStyle();$.fill==null&&($.fill=Py(l,"color")),w.setItemVisual(S,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Je(T.get("symbolOffset",!0),b[x?0:1]),symbolRotate:Je(T.get("symbolRotate",!0),y[x?0:1]),symbolSize:Je(T.get("symbolSize"),m[x?0:1]),symbol:Je(T.get("symbol",!0),v[x?0:1]),style:$})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(t4);function Utt(t,e,n){var r;t?r=me(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return he(he({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new ci(r,n),o=new ci(r,n),a=new ci([],n),s=me(n.get("data"),tt(Htt,e,t,n));t&&(s=Yt(s,tt(Gtt,t)));var l=Koe(!!t,r);return i.initData(me(s,function(u){return u[0]}),null,l),o.initData(me(s,function(u){return u[1]}),null,l),a.initData(me(s,function(u){return u[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}function Ztt(t){t.registerComponentModel(Qtt),t.registerComponentView(jtt),t.registerPreprocessor(function(e){YL(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Xtt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ou),EC=Tt(),Ytt=function(t,e,n,r){var i=r[0],o=r[1];if(!(!i||!o)){var a=mb(t,i),s=mb(t,o),l=a.coord,u=s.coord;l[0]=Un(l[0],-1/0),l[1]=Un(l[1],-1/0),u[0]=Un(u[0],1/0),u[1]=Un(u[1],1/0);var c=Tw([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function MC(t){return!isNaN(t)&&!isFinite(t)}function tae(t,e,n,r){var i=1-t;return MC(e[i])&&MC(n[i])}function qtt(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Gd(t,"cartesian2d")?n&&r&&(tae(1,n,r)||tae(0,n,r))?!0:Vtt(t,i,o):yb(t,i)||yb(t,o)}function nae(t,e,n,r,i){var o=r.coordinateSystem,a=t.getItemModel(e),s,l=Ee(a.get(n[0]),i.getWidth()),u=Ee(a.get(n[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=o.clampData(c),p=o.clampData(f),g=[];n[0]==="x0"?g[0]=d[0]>p[0]?f[0]:c[0]:g[0]=d[0]>p[0]?c[0]:f[0],n[1]==="y0"?g[1]=d[1]>p[1]?f[1]:c[1]:g[1]=d[1]>p[1]?c[1]:f[1],s=r.getMarkerPosition(g,n,!0)}else{var v=t.get(n[0],e),m=t.get(n[1],e),y=[v,m];o.clampData&&o.clampData(y,y),s=o.dataToPoint(y,!0)}if(Gd(o,"cartesian2d")){var b=o.getAxis("x"),O=o.getAxis("y"),v=t.get(n[0],e),m=t.get(n[1],e);MC(v)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):MC(m)&&(s[1]=O.toGlobalCoord(O.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var rae=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ktt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=ou.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var u=me(rae,function(f){return nae(s,l,f,o,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=Jtt(a,n,r);r.setData(f),f.each(function(d){var p=me(rae,function($){return nae(f,d,$,n,o)}),g=a.getAxis("x").scale,v=a.getAxis("y").scale,m=g.getExtent(),y=v.getExtent(),b=[g.parse(f.get("x0",d)),g.parse(f.get("x1",d))],O=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];So(b),So(O);var w=!(m[0]>b[1]||m[1]<b[0]||y[0]>O[1]||y[1]<O[0]),S=!w;f.setItemLayout(d,{points:p,allClipped:S});var x=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=Py(l,"color");x.fill||(x.fill=T,Ie(x.fill)&&(x.fill=B0(x.fill,.4))),x.stroke||(x.stroke=T),f.setItemVisual(d,"style",x)}),f.diff(EC(c).data).add(function(d){var p=f.getItemLayout(d);if(!p.allClipped){var g=new Ti({shape:{points:p.points}});f.setItemGraphicEl(d,g),c.group.add(g)}}).update(function(d,p){var g=EC(c).data.getItemGraphicEl(p),v=f.getItemLayout(d);v.allClipped?g&&c.group.remove(g):(g?Rt(g,{shape:{points:v.points}},r,d):g=new Ti({shape:{points:v.points}}),f.setItemGraphicEl(d,g),c.group.add(g))}).remove(function(d){var p=EC(c).data.getItemGraphicEl(d);c.group.remove(p)}).execute(),f.eachItemGraphicEl(function(d,p){var g=f.getItemModel(p),v=f.getItemVisual(p,"style");d.useStyle(f.getItemVisual(p,"style")),Gr(d,_r(g),{labelFetcher:r,labelDataIndex:p,defaultText:f.getName(p)||"",inheritColor:Ie(v.fill)?B0(v.fill,1):"#000"}),Hr(d,g),Ln(d,null,null,g.get(["emphasis","disabled"])),Ke(d).dataModel=r}),EC(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(t4);function Jtt(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=me(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return he(he({},f),{name:u,ordinalMeta:null})});i=me(o,function(u,c){return{name:u,type:a[c%2].type}}),r=new ci(i,n)}else i=[{name:"value",type:"float"}],r=new ci(i,n);var s=me(n.get("data"),tt(Ytt,e,t,n));t&&(s=Yt(s,tt(qtt,t)));var l=t?function(u,c,f,d){var p=u.coord[Math.floor(d/2)][d%2];return hc(p,i[d])}:function(u,c,f,d){return hc(u.value,i[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}function ent(t){t.registerComponentModel(Xtt),t.registerComponentView(Ktt),t.registerPreprocessor(function(e){YL(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var tnt=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},r4=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ge(r)&&V(r,function(o,a){Ie(o)&&(o={type:o}),r[a]=it(o,tnt(i,o.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&YI(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Le(),s=me(o,function(l){return(Ie(l)||Et(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new rn(l,this,this.ecModel))},this);this._data=Yt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;V(o,function(a){r[a.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;V(n,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;V(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&st(this._availableNames,n)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(dt),nv=tt,i4=V,IC=qe,iae=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new IC),this.group.add(this._selectorGroup=new IC),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=n.get("padding"),p=er(c,f,d),g=this.layoutInner(n,a,p,o,l,u),v=er(Ge({width:g.width,height:g.height},c),f,d);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hoe(g,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Le(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),i4(r.getData(),function(p,g){var v=p.get("name");if(!this.newlineDisabled&&(v===""||v===`
  361. `)){var m=new IC;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(v)[0];if(!c.get(v)){if(y){var b=y.getData(),O=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),S=b.getVisual("style"),x=this._createItem(y,v,g,p,r,n,O,S,w,f,o);x.on("click",nv(oae,v,null,o,d)).on("mouseover",nv(o4,y.name,null,o,d)).on("mouseout",nv(a4,y.name,null,o,d)),i.ssr&&x.eachChild(function(T){var $=Ke(T);$.seriesIndex=y.seriesIndex,$.dataIndex=g,$.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(T){if(!c.get(v)&&T.legendVisualProvider){var $=T.legendVisualProvider;if(!$.containName(v))return;var A=$.indexOfName(v),P=$.getItemVisual(A,"style"),M=$.getItemVisual(A,"legendIcon"),I=Oi(P.fill);I&&I[3]===0&&(I[3]=.2,P=he(he({},P),{fill:es(I,"rgba")}));var R=this._createItem(T,v,g,p,r,n,{},P,M,f,o);R.on("click",nv(oae,null,v,o,d)).on("mouseover",nv(o4,null,v,o,d)).on("mouseout",nv(a4,null,v,o,d)),i.ssr&&R.eachChild(function(L){var D=Ke(L);D.seriesIndex=T.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),c.set(v,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(v)||console.warn(v+" series not exists. Legend data should be same with series name or data name."))}},this),a&&this._createSelector(a,r,o,s,l)},e.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();i4(n,function(u){var c=u.type,f=new $t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);Gr(f,{normal:d,emphasis:p},{defaultText:u.title}),ac(f)})},e.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var p=n.visualDrawType,g=a.get("itemWidth"),v=a.get("itemHeight"),m=a.isSelected(r),y=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),O=o.get("icon");c=O||c||"roundRect";var w=nnt(c,o,l,u,p,m,d),S=new IC,x=o.getModel("textStyle");if(ze(n.getLegendIcon)&&(!O||O==="inherit"))S.add(n.getLegendIcon({itemWidth:g,itemHeight:v,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var T=O==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;S.add(rnt({itemWidth:g,itemHeight:v,icon:c,iconRotate:T,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var $=s==="left"?g+5:-5,A=s,P=a.get("formatter"),M=r;Ie(P)&&P?M=P.replace("{name}",r??""):ze(P)&&(M=P(r));var I=m?x.getTextColor():o.get("inactiveColor");S.add(new $t({style:un(x,{text:M,x:$,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var R=new Pt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),L=o.getModel("tooltip");return L.get("show")&&mg({el:R,componentModel:a,itemName:r,itemTooltipOption:L.option}),S.add(R),S.eachChild(function(D){D.silent=!0}),R.silent=!f,this.getContentGroup().add(S),ac(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Td(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){Td("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],g=n.get("selectorButtonGap",!0),v=n.getOrient().index,m=v===0?"width":"height",y=v===0?"height":"width",b=v===0?"y":"x";s==="end"?p[v]+=c[m]+g:f[v]+=d[m]+g,p[1-v]+=c[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=f[0],l.y=f[1];var O={x:0,y:0};return O[m]=c[m]+g+d[m],O[y]=Math.max(c[y],d[y]),O[b]=Math.min(0,d[b]+p[1-v]),O}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(dn);function nnt(t,e,n,r,i,o,a){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),i4(m,function(b,O){m[O]==="inherit"&&(m[O]=y[O])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Dg(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!o){var g=e.get("inactiveBorderWidth"),v=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function rnt(t){var e=t.icon||"roundRect",n=Xn(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function oae(t,e,n,r){a4(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),o4(t,e,n,r)}function aae(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,i=e.length;r<i&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function o4(t,e,n,r){aae(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function a4(t,e,n,r){aae(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function int(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function bb(t,e,n){var r={},i=t==="toggleSelected",o;return n.eachComponent("legend",function(a){i&&o!=null?a[o?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?a[t]():(a[t](e.name),o=a.isSelected(e.name));var s=a.getData();V(s,function(l){var u=l.get("name");if(!(u===`
  362. `||u==="")){var c=a.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function ont(t){t.registerAction("legendToggleSelect","legendselectchanged",tt(bb,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",tt(bb,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",tt(bb,"inverseSelect")),t.registerAction("legendSelect","legendselected",tt(bb,"select")),t.registerAction("legendUnSelect","legendunselected",tt(bb,"unSelect"))}function sae(t){t.registerComponentModel(r4),t.registerComponentView(iae),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,int),t.registerSubTypeDefaulter("legend",function(){return"plain"}),ont(t)}var ant=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,i){var o=Sg(n);t.prototype.init.call(this,n,r,i),lae(this,n,o)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),lae(this,this.option,n)},e.type="legend.scroll",e.defaultOption=fc(r4.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(r4);function lae(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,dc(e,n,{type:"box",ignoreSize:!!i})}var uae=qe,s4=["width","height"],l4=["x","y"],snt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new uae),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new uae)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this;t.prototype.renderInner.call(this,n,r,i,o,a,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=ge(f)?f:[f,f];g("pagePrev",0);var p=r.getModel("pageTextStyle");c.add(new $t({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(v,m){var y=v+"DataIndex",b=vg(r.get("pageIcons",!0)[r.getOrient().name][m],{onclick:Re(u._pageGo,u,y,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=v,c.add(b)}},e.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=s4[u],f=l4[u],d=s4[1-u],p=l4[1-u];a&&Td("horizontal",l,n.get("selectorItemGap",!0));var g=n.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],y=Ue(i);a&&(y[c]=i[c]-v[c]-g);var b=this._layoutContentAndController(n,o,y,u,c,d,p,f);if(a){if(s==="end")m[u]+=b[c]+g;else{var O=v[c]+g;m[u]-=O,b[f]-=O}b[c]+=v[c]+g,m[1-u]+=b[p]+b[d]/2-v[d]/2,b[d]=Math.max(b[d],v[d]),b[p]=Math.min(b[p],v[p]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return b},e.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Td(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),Td("horizontal",d,n.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),g=d.getBoundingRect(),v=this._showController=p[a]>i[a],m=[-p.x,-p.y];r||(m[o]=c[u]);var y=[0,0],b=[-g.x,-g.y],O=Je(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var w=n.get("pageButtonPosition",!0);w==="end"?b[o]+=i[a]-g[a]:y[o]+=g[a]+O}b[1-o]+=p[s]/2-g[s]/2,c.setPosition(m),f.setPosition(y),d.setPosition(b);var S={x:0,y:0};if(S[a]=v?i[a]:p[a],S[s]=Math.max(p[s],g[s]),S[l]=Math.min(0,g[l]+b[1-o]),f.__rectSize=i[a],v){var x={x:0,y:0};x[a]=Math.max(i[a]-g[a]-O,0),x[s]=S[s],f.setClipPath(new Pt({shape:x})),f.__rectSize=x[a]}else d.eachChild(function($){$.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(n);return T.pageIndex!=null&&Rt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},v?n:null),this._updatePageInfoView(n,T),S},e.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;V(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,p=i.childOfName(c);p&&(p.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",Ie(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=s4[a],l=l4[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,p=d?1:0,g={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return g;var v=w(f);g.contentPosition[a]=-v.s;for(var m=u+1,y=v,b=v,O=null;m<=d;++m)O=w(c[m]),(!O&&b.e>y.s+o||O&&!S(O,y.s))&&(b.i>y.i?y=b:y=O,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),b=O;for(var m=u-1,y=v,b=v,O=null;m>=-1;--m)O=w(c[m]),(!O||!S(b,O.s))&&y.i<b.i&&(b=y,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=y.i),++g.pageCount,++g.pageIndex),y=O;return g;function w(x){if(x){var T=x.getBoundingRect(),$=T[l]+x[l];return{s:$,e:$+T[s],i:x.__legendDataIndex}}}function S(x,T){return x.e>=T&&x.s<=T+o}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},e.type="legend.scroll",e}(iae);function lnt(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function unt(t){ht(sae),t.registerComponentModel(ant),t.registerComponentView(snt),lnt(t)}function cnt(t){ht(sae),ht(unt)}var fnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=fc(pb.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(pb),u4=Tt();function dnt(t,e,n){u4(t).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function hnt(t,e){for(var n=u4(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||cae(n,a))}}}function cae(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function pnt(t,e){var n={model:e,containsPoint:tt(vnt,e),dispatchAction:tt(gnt,t),dataZoomInfoMap:null,controller:null},r=n.controller=new qy(t.getZr());return V(["pan","zoom","scrollMove"],function(i){r.on(i,function(o){var a=[];n.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,o);!s.model.get("disabled",!0)&&u&&a.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),a.length&&n.dispatchAction(a)})}),n}function gnt(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function vnt(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function mnt(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+e]&&(e=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function ynt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=u4(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Le());i.each(function(o){o.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=soe(o);V(a.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,pnt(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Le());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),i.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){cae(i,o);return}var c=mnt(l);a.enable(c.controlType,c.opt),a.setPointerChecker(o.containsPoint),Ag(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var bnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,i){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),dnt(i,n,{pan:Re(c4.pan,this),zoom:Re(c4.zoom,this),scrollMove:Re(c4.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hnt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(NL),c4={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=f4[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Jd(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:fae(function(t,e,n,r,i,o){var a=f4[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:fae(function(t,e,n,r,i,o){var a=f4[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta})};function fae(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);if(Jd(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var f4={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],o.dim==="x"?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),n.mainType==="radiusAxis"?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],o.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function dae(t){LL(t),t.registerComponentModel(fnt),t.registerComponentView(bnt),ynt(t)}var _nt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=fc(pb.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(pb),_b=Pt,hae=7,Ont=1,d4=30,wnt=7,Ob="horizontal",pae="vertical",Snt=5,xnt=["line","bar","candlestick","scatter"],Cnt={easing:"cubicOut",duration:100,delay:0},Tnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Re(this._onBrush,this),this._onBrushEnd=Re(this._onBrushEnd,this)},e.prototype.render=function(n,r,i,o){if(t.prototype.render.apply(this,arguments),Ag(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){xy(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),o=i?wnt:0,a=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Ob?{right:s.width-a.x-a.width,top:s.height-d4-hae-o,width:a.width,height:d4}:{right:hae,top:a.y,width:d4,height:a.height},u=Sg(n.option);V(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=er(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===pae&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ob&&!a?{scaleY:l?1:-1,scaleX:1}:i===Ob&&a?{scaleY:l?1:-1,scaleX:-1}:i===pae&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,o=n.get("brushSelect");i.add(new _b({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var a=new _b({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Re(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],o=n.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var f=a.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var p=[0,r[1]],g=[0,r[0]],v=[[r[0],0],[0,0]],m=[],y=g[1]/(a.count()-1),b=0,O=Math.round(a.count()/r[0]),w;a.each([l],function(A,P){if(O>0&&P%O){b+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:qt(A,f,p,!0);M&&!w&&P?(v.push([v[v.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&w&&(v.push([b,0]),m.push([b,0])),v.push([b,I]),m.push([b,I]),b+=y,w=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function x(A){var P=S.getModel(A?"selectedDataBackground":"dataBackground"),M=new qe,I=new Ti({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Pi({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(R),M}for(var T=0;T<3;T++){var $=x(T===1);this._displayables.sliderGroup.add($),this._displayables.dataShadowSegs.push($)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,o=this.ecModel;return n.eachTargetAxis(function(a,s){var l=n.getAxisProxy(a,s).getTargetSeriesModels();V(l,function(u){if(!i&&!(r!==!0&&st(xnt,u.get("type"))<0)){var c=o.getComponent(Tc(a),s).axis,f=Pnt(a),d,p=u.coordinateSystem;f!=null&&p.getOtherAxis&&(d=p.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:a,otherDim:f,otherAxisInverse:d}}},this)},this),i}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new _b({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new _b({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Ont,fill:"rgba(0,0,0,0)"}})),V([0,1],function(O){var w=l.get("handleIcon");!ix[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w,process.env.NODE_ENV!=="production"&&sa("handleIcon now needs 'path://' prefix when using a path string"));var S=Xn(w,-1,0,2,2,null,!0);S.attr({cursor:gae(this._orient),draggable:!0,drift:Re(this._onDragMove,this,O),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Ee(T,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ac(S);var $=l.get("handleColor");$!=null&&(S.style.fill=$),a.add(i[O]=S);var A=l.getModel("textStyle");n.add(o[O]=new $t({silent:!0,invisible:!0,style:un(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var p=d;if(f){var g=Ee(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new Pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),m=g*.8,y=r.moveHandleIcon=Xn(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+g/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(g,10));p=r.moveZone=new Pt({invisible:!0,shape:{y:s[1]-b,height:g+b}}),p.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),a.add(v),a.add(y),a.add(p)}p.attr({draggable:!0,cursor:gae(this._orient),drift:Re(this._onDragMove,this,"all"),ondragstart:Re(this._showDataInfo,this,!0),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[qt(n[0],[0,100],r,!0),qt(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Jd(r,o,a,i.get("zoomLock")?"all":n,s.minSpan!=null?qt(s.minSpan,l,a,!0):null,s.maxSpan!=null?qt(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=So([qt(o[0],a,l,!0),qt(o[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,o=So(i.slice()),a=this._size;V([0,1],function(p){var g=r.handles[p],v=this._handleHeight;g.attr({scaleX:v/2,scaleY:v/2,x:i[p]+(p?-1:1),y:a[1]/2-v/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,o[0],o[1],a[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Pt,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:a[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=So(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(g){var v=uc(i.handles[g].parent,this.group),m=DS(g===0?"right":"left",v),y=this._handleWidth/2+Snt,b=as([d[g]+(g===0?-y:y),this._size[1]/2],v);o[g].setStyle({x:b[0],y:b[1],verticalAlign:a===Ob?"middle":m,align:a===Ob?m:"center",text:s[g]})}},e.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");(a==null||a==="auto")&&(a=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(a,20));return ze(o)?o(n,s):Ie(o)?o.replace("{value}",s):s},e.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,i=r.handleLabels;i[0].attr("invisible",!n),i[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(n,r,i,o){this._dragging=!0,zl(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=as([r,i],a,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new ot(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=So([qt(i.x,a,s,!0),qt(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(zl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new _b({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?Cnt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=soe(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var o=this.api.getWidth(),a=this.api.getHeight();n={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return n},e.type="dataZoom.slider",e}(NL);function Pnt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function gae(t){return t==="vertical"?"ns-resize":"ew-resize"}function vae(t){t.registerComponentModel(_nt),t.registerComponentView(Tnt),LL(t)}function $nt(t){ht(dae),ht(vae)}var mae={get:function(t,e,n){var r=Ue((Ant[t]||{})[e]);return n&&ge(r)?r[r.length-1]:r}},Ant={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},yae=Sr.mapVisual,Ent=Sr.eachVisual,Mnt=ge,bae=V,Int=So,Dnt=qt,DC=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&Loe(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Re(n,this),this.controllerVisuals=jL(this.option.controller,r,n),this.targetVisuals=jL(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(i,o){r.push(o)}):r=nn(n),r},e.prototype.eachTargetSeries=function(n,r){V(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&n.call(r,o)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(i){i===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,i){var o=this.option,a=o.precision,s=this.dataBound,l=o.formatter,u;i=i||["<",">"],ge(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Ie(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ze(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?i[0]+" "+c[1]:n[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var n=this.option,r=Int([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var i=n.dimensions,o=i.length-1;o>=0;o--){var a=i[o],s=n.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),a=r.controller||(r.controller={});it(o,i),it(a,i);var s=this.isCategory();l.call(this,o),l.call(this,a),u.call(this,o,"inRange","outOfRange"),c.call(this,a);function l(f){Mnt(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,p){var g=f[d],v=f[p];g&&!v&&(v=f[p]={},bae(g,function(m,y){if(Sr.isValidType(y)){var b=mae.get(y,"inactive",s);b!=null&&(v[y]=b,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,p=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";bae(this.stateList,function(y){var b=this.itemSize,O=f[y];O||(O=f[y]={color:s?g:[g]}),O.symbol==null&&(O.symbol=d&&Ue(d)||(s?m:[m])),O.symbolSize==null&&(O.symbolSize=p&&Ue(p)||(s?b[0]:[b[0],b[0]])),O.symbol=yae(O.symbol,function(x){return x==="none"?m:x});var w=O.symbolSize;if(w!=null){var S=-1/0;Ent(w,function(x){x>S&&(S=x)}),O.symbolSize=yae(w,function(x){return Dnt(x,[0,S],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(dt),_ae=[20,140],Rnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=_ae[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=_ae[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):ge(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),V(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=So((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},e.prototype.getValueState=function(n){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=n)&&(r[1]>=i[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){n[0]<=s&&s<=n[1]&&o.push(l)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getVisualMeta=function(n){var r=Oae(this,"outOfRange",this.getExtent()),i=Oae(this,"inRange",this.option.range.slice()),o=[];function a(p,g){o.push({value:p,color:n(p,g)})}for(var s=0,l=0,u=i.length,c=r.length;l<c&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&a(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&o.length&&a(i[s],"outOfRange"),a(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<r[l])&&(f&&(o.length&&a(o[o.length-1].value,"outOfRange"),f=0),a(r[l],"outOfRange"));var d=o.length;return{stops:o,outerColors:[d?o[0].color:"transparent",d?o[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=fc(DC.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(DC);function Oae(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var wae=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r},e.prototype.render=function(n,r,i,o){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,i,o)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,i=Sd(r.get("padding")||0),o=n.getBoundingRect();n.add(new Pt({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(n,r,i){i=i||{};var o=i.forceState,a=this.visualMapModel,s={};if(r==="color"){var l=a.get("contentColor");s.color=l}function u(p){return s[p]}function c(p,g){s[p]=g}var f=a.controllerVisuals[o||a.getValueState(n)],d=Sr.prepareVisualTypes(f);return V(d,function(p){var g=f[p];i.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",g=f.__alphaForOpacity),Sr.dependsOn(p,r)&&g&&g.applyVisual(n,u,c)}),s[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,i=this.api;GS(n,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(n,r,i,o){},e.type="visualMap",e}(dn),Sae=[["left","right","width"],["top","bottom","height"]];function xae(t,e,n){var r=t.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var o={width:e.getWidth(),height:e.getHeight()},a=r.orient==="horizontal"?1:0,s=Sae[a],l=[0,null,10],u={},c=0;c<3;c++)u[Sae[1-a][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][a],d=er(u,o,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<o[f[1]]*.5?0:1]}function RC(t,e){return V(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var el=qt,knt=V,Cae=Math.min,h4=Math.max,Nnt=12,Lnt=6,Bnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e.prototype.init=function(n,r){t.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=Re(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Re(this._hideIndicator,this)},e.prototype.doRender=function(n,r,i,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var i=n.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(n,r,i){if(r){var o=r[1-i];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new $t({style:un(p,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:o})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,i=this._shapes,o=r.itemSize,a=this._orient,s=this._useHandle,l=xae(r,this.api,o),u=i.mainGroup=this._createBarGroup(l),c=new qe;u.add(c),c.add(i.outOfRange=Tae()),c.add(i.inRange=Tae(null,s?$ae(this._orient):null,Re(this._dragHandle,this,"all",!1),Re(this._dragHandle,this,"all",!0))),c.setClipPath(new Pt({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=h4(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,o,d,a),this._createHandle(r,u,1,o,d,a)),this._createIndicator(r,u,o,d,a),n.add(u)},e.prototype._createHandle=function(n,r,i,o,a,s){var l=Re(this._dragHandle,this,i,!1),u=Re(this._dragHandle,this,i,!0),c=ns(n.get("handleSize"),o[0]),f=Xn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=$ae(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){zl(y.event)}}),f.x=o[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),md(f,!0),r.add(f);var p=this.visualMapModel.textStyleModel,g=new $t({cursor:d,draggable:!0,drift:l,onmousemove:function(y){zl(y.event)},ondragend:u,style:un(p,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var v=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=v,m.handleLabels[i]=g},e.prototype._createIndicator=function(n,r,i,o,a){var s=ns(n.get("indicatorSize"),i[0]),l=Xn(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof Rr){var c=l.style;l.useStyle(he({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new $t({silent:!0,invisible:!0,style:un(f,{x:0,y:0,text:""})});this.group.add(d);var p=[(a==="horizontal"?o/2:Lnt)+i[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=d,g.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,i,o){if(this._useHandle){if(this._dragging=!r,!r){var a=this._applyTransform([i,o],this._shapes.mainGroup,!0);this._updateInterval(n,a[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():Pae(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),i=n.getExtent(),o=[0,n.itemSize[1]];this._handleEnds=[el(r[0],i,o,!0),el(r[1],i,o,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var i=this.visualMapModel,o=this._handleEnds,a=[0,i.itemSize[1]];Jd(r,o,a,n,0);var s=i.getExtent();this._dataInterval=[el(o[0],a,s,!0),el(o[1],a,s,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,i=r.getExtent(),o=this._shapes,a=[0,r.itemSize[1]],s=n?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(n,r,i,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,a),l=[this.getControllerVisual(n[0],"symbolSize",a),this.getControllerVisual(n[1],"symbolSize",a)],u=this._createBarPoints(i,l);return{barColor:new dg(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(n,r){var i=100,o=[],a=(n[1]-n[0])/i;o.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=n[0]+a*s;if(l>n[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},e.prototype._createBarPoints=function(n,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,i=this.visualMapModel.get("inverse");return new qe(r==="horizontal"&&!i?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=o.itemSize,u=o.getExtent();knt([0,1],function(c){var f=a[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=el(n[c],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=p/l[0],f.x=l[0]-p/2;var g=as(i.handleLabelPoints[c],uc(f,this.group));s[c].setStyle({x:g[0],y:g[1],text:o.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,i,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(n,"color",d),g=this.getControllerVisual(n,"symbolSize"),v=el(n,s,u,!0),m=l[0]-g/2,y={x:f.x,y:f.y};f.y=v,f.x=m;var b=as(c.indicatorLabelPoint,uc(f,this.group)),O=c.indicatorLabel;O.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),S=this._orient,x=S==="horizontal";O.setStyle({text:(i||"")+a.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var T={x:m,y:v,style:{fill:p}},$={style:{x:b[0],y:b[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(T,A),O.animateTo($,A)}else f.attr(T),O.attr($);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var M=0;M<P.length;M++)this.api.enterBlur(P[M])}},e.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var i=n.visualMapModel.itemSize,o=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);o[1]=Cae(h4(0,o[1]),i[1]),n._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=i[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(n,r){var i=this.visualMapModel,o=i.itemSize;if(i.option.hoverLink){var a=[0,o[1]],s=i.getExtent();n=Cae(h4(a[0],n),a[1]);var l=Vnt(i,s,a),u=[n-l,n+l],c=el(n,a,s,!0),f=[el(u[0],a,s,!0),el(u[1],a,s,!0)];u[0]<a[0]&&(f[0]=-1/0),u[1]>a[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(r||Pae(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var g=OVe(d,p);this._dispatchHighDown("downplay",RC(g[0],i)),this._dispatchHighDown("highlight",RC(g[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Md(n.target,function(l){var u=Ke(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var a=i.getData(r.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",RC(n,this.visualMapModel)),n.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(n,r,i,o){var a=uc(r,o?null:this.group);return ge(n)?as(n,a,i):DS(n,a,i)},e.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(wae);function Tae(t,e,n,r){return new Ti({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(i){zl(i.event)},ondragend:r})}function Vnt(t,e,n){var r=Nnt/2,i=t.get("hoverLinkDataSize");return i&&(r=el(i,e,n,!0)/2),r}function Pae(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function $ae(t){return t==="vertical"?"ns-resize":"ew-resize"}var znt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Fnt=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},Wnt=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(r){var i=t.pipelineContext;!r.isTargetSeries(t)||i&&i.large||n.push(ctt(r.stateList,r.targetVisuals,Re(r.getValueState,r),r.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var o=i.getVisualMeta(Re(Qnt,null,t,i))||{stops:[],outerColors:[]},a=i.getDataDimensionIndex(n);a>=0&&(o.dimension=a,r.push(o))}}),t.getData().setVisual("visualMeta",r)}}];function Qnt(t,e,n,r){for(var i=e.targetVisuals[r],o=Sr.prepareVisualTypes(i),a={color:Py(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return a.color;function f(p){return a[p]}function d(p,g){a[p]=g}}var Aae=V;function Hnt(t){var e=t&&t.visualMap;ge(e)||(e=e?[e]:[]),Aae(e,function(n){if(n){rv(n,"splitList")&&!rv(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&ge(r)&&Aae(r,function(i){Qe(i)&&(rv(i,"start")&&!rv(i,"min")&&(i.min=i.start),rv(i,"end")&&!rv(i,"max")&&(i.max=i.end))})}})}function rv(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Eae=!1;function Mae(t){Eae||(Eae=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(znt,Fnt),V(Wnt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(Hnt))}function Iae(t){t.registerComponentModel(Rnt),t.registerComponentView(Bnt),Mae(t)}var Gnt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],jnt[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=Ue(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=me(this._pieceList,function(l){return l=Ue(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},i=Sr.listVisualTypes(),o=this.isCategory();V(n.pieces,function(s){V(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),V(r,function(s,l){var u=!1;V(this.stateList,function(c){u=u||a(n,c,l)||a(n.target,c,l)},this),!u&&V(this.stateList,function(c){(n[c]||(n[c]={}))[l]=mae.get(l,c==="inRange"?"active":"inactive",o)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var i=this.option,o=this._pieceList,a=(r?i:n).selected||{};if(i.selected=a,V(o,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),i.selectedMode==="single"){var s=!1;V(o,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=Ue(n)},e.prototype.getValueState=function(n){var r=Sr.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],i=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Sr.findPieceIndex(l,i);c===n&&a.push(u)},this),r.push({seriesId:o.id,dataIndex:a})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var i=n.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],i=["",""],o=this;function a(c,f){var d=o.getRepresentValue({interval:c});f||(f=o.getValueState(d));var p=n(d,f);c[0]===-1/0?i[0]=p:c[1]===1/0?i[1]=p:r.push({value:c[0],color:p},{value:c[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return V(s,function(c){var f=c.interval;f&&(f[0]>u&&a([u,f[0]],"outOfRange"),a(f.slice()),u=f[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=fc(DC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(DC),jnt={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),XI(t),V(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;V(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),Dae(e,t)},pieces:function(t){var e=this.option;V(e.pieces,function(n,r){Qe(n)||(n={value:n});var i={text:"",index:r};if(n.label!=null&&(i.text=n.label),n.hasOwnProperty("value")){var o=i.value=n.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],p=0;p<3&&a[f]==null;p++)a[f]=n[d[p]],s[f]=l[p],c[f]=p===2;a[f]==null&&(a[f]=u[f])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&a[0]>a[1]&&console.warn("Piece "+r+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=Sr.retrieveVisuals(n),t.push(i)},this),Dae(e,t),XI(t),V(t,function(n){var r=n.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,i)},this)}};function Dae(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}var Unt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,i=r.get("textGap"),o=r.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Un(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),V(c.viewPieceList,function(p){var g=p.piece,v=new qe;v.onclick=Re(this._onItemClick,this,g),this._enableHoverLink(v,p.indexInModelPieceList);var m=r.getRepresentValue(g);if(this._createItemSymbol(v,m,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(m);v.add(new $t({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),Td(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var i=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:RC(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return xae(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(n,r,i,o,a){if(r){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new $t({style:un(l,{x:o?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?a:"center",text:r})})),n.add(s)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=me(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=n.get("text"),o=n.get("orient"),a=n.get("inverse");return(o==="horizontal"?a:!a)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(n,r,i){n.add(Xn(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(n){var r=this.visualMapModel,i=r.option,o=i.selectedMode;if(o){var a=Ue(i.selected),s=r.getSelectedMapKey(n);o==="single"||o===!0?(a[s]=!0,V(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(wae);function Rae(t){t.registerComponentModel(Gnt),t.registerComponentView(Unt),Mae(t)}function Znt(t){ht(Iae),ht(Rae)}var Xnt={label:{enabled:!0},decal:{show:!1}},kae=Tt(),Ynt={};function qnt(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=Ue(Xnt);it(r.label,t.getLocaleModel().get("aria"),!1),it(n.option,r,!1),i(),o();function i(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Le();t.eachSeries(function(d){if(!d.isColorBySeries()){var p=f.get(d.type);p||(p={},f.set(d.type,p)),kae(d).scope=p}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(ze(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var b=lR(d.ecModel,d.name,Ynt,t.getSeriesCount()),O=p.getVisual("decal");p.setVisual("decal",w(O,b))}else{var g=d.getRawData(),v={},m=kae(d).scope;p.each(function(S){var x=p.getRawIndex(S);v[x]=S});var y=g.count();g.each(function(S){var x=v[S],T=g.getName(S)||S+"",$=lR(d.ecModel,T,m,y),A=p.getItemVisual(x,"decal");p.setItemVisual(x,"decal",w(A,$))})}function w(S,x){var T=S?he(he({},x),S):x;return T.dirty=!0,T}})}}function o(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Ge(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=t.getSeriesCount(),p=f.get(["data","maxCount"])||10,g=f.get(["series","maxCount"])||10,v=Math.min(d,g),m;if(!(d<1)){var y=s();if(y){var b=f.get(["general","withTitle"]);m=a(b,{title:y})}else m=f.get(["general","withoutTitle"]);var O=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=a(w,{seriesCount:d}),t.eachSeries(function($,A){if(A<v){var P=void 0,M=$.get("name"),I=M?"withName":"withoutName";P=d>1?f.get(["series","multiple",I]):f.get(["series","single",I]),P=a(P,{seriesId:$.seriesIndex,seriesName:$.get("name"),seriesType:l($.subType)});var R=$.getData();if(R.count()>p){var L=f.get(["data","partialData"]);P+=a(L,{displayCnt:p})}else P+=f.get(["data","allData"]);for(var D=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),F=[],z=0;z<R.count();z++)if(z<p){var W=R.getName(z),j=R.getValues(z),H=f.get(["data",W?"withName":"withoutName"]);F.push(a(H,{name:W,value:j.join(D)}))}P+=F.join(D)+B,O.push(P)}});var S=f.getModel(["series","multiple","separator"]),x=S.get("middle"),T=S.get("end");m+=O.join(x)+T,u.setAttribute("aria-label",m)}}}}function a(u,c){if(!Ie(u))return u;var f=u;return V(c,function(d,p){f=f.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),d)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=t.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Knt(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},V(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function Jnt(t){t.registerPreprocessor(Knt),t.registerVisual(t.PRIORITY.VISUAL.ARIA,qnt)}var Nae={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ert=function(){function t(e){var n=this._condVal=Ie(e)?new RegExp(e):KM(e)?e:null;if(n==null){var r="";process.env.NODE_ENV!=="production"&&(r=wi("Illegal regexp",e,"in")),Ht(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return Ie(n)?this._condVal.test(e):Et(n)?this._condVal.test(e+""):!1},t}(),trt=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),nrt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),rrt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),irt=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),ort=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),i=e?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(e?i:r))return!1;return!0},t}();function p4(t,e){if(t===!0||t===!1){var n=new trt;return n.value=t,n}var r="";return Bae(t)||(process.env.NODE_ENV!=="production"&&(r=wi("Illegal config. Expect a plain object but actually",t)),Ht(r)),t.and?Lae("and",t,e):t.or?Lae("or",t,e):t.not?art(t,e):srt(t,e)}function Lae(t,e,n){var r=e[t],i="";process.env.NODE_ENV!=="production"&&(i=wi('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),ge(r)||Ht(i),r.length||Ht(i);var o=t==="and"?new nrt:new rrt;return o.children=me(r,function(a){return p4(a,n)}),o.children.length||Ht(i),o}function art(t,e){var n=t.not,r="";process.env.NODE_ENV!=="production"&&(r=wi('"not" condition should only be `not: {}`.',"Illegal condition:",t)),Bae(n)||Ht(r);var i=new irt;return i.child=p4(n,e),i.child||Ht(r),i}function srt(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=bt(t),a=t.parser,s=a?dq(a):null,l=0;l<o.length;l++){var u=o[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=ke(Nae,u)?Nae[u]:u,f=t[u],d=s?s(f):f,p=AWe(c,d)||c==="reg"&&new ert(d);p||(process.env.NODE_ENV!=="production"&&(n=wi('Illegal relational operation: "'+u+'" in condition:',t)),Ht(n)),i.push(p)}}i.length||(process.env.NODE_ENV!=="production"&&(n=wi("Relational condition must have at least one operator.","Illegal condition:",t)),Ht(n));var g=new ort;return g.valueGetterParam=r,g.valueParser=s,g.getValue=e.getValue,g.subCondList=i,g}function Bae(t){return Qe(t)&&!Wr(t)}var lrt=function(){function t(e,n){this._cond=p4(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function urt(t,e){return new lrt(t,e)}var crt={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=urt(t.config,{valueGetterAttrMap:Le({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ke(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=wi('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Ht(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=wi("Can not find dimension info via: "+u+`.
  363. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
  364. `,"Illegal condition:",s,`.
  365. `)),Ht(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(n,s.dimIdx)}}),i=[],o=0,a=e.count();o<a;o++)n=e.getRawDataItem(o),r.evaluate()&&i.push(n);return{data:i}}},g4="";process.env.NODE_ENV!=="production"&&(g4=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var frt={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=nn(n);i.length||(process.env.NODE_ENV!=="production"&&(r="Empty `config` in sort transform."),Ht(r));var o=[];V(i,function(c){var f=c.dimension,d=c.order,p=c.parser,g=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "dimension" specified.'+g4),Ht(r)),d!=="asc"&&d!=="desc"&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "order" specified.'+g4),Ht(r)),g&&g!=="min"&&g!=="max"){var v="";process.env.NODE_ENV!=="production"&&(v='incomparable must be "min" or "max" rather than "'+g+'".'),Ht(v)}if(d!=="asc"&&d!=="desc"){var m="";process.env.NODE_ENV!=="production"&&(m='order must be "asc" or "desc" rather than "'+d+'".'),Ht(m)}var y=e.getDimensionInfo(f);y||(process.env.NODE_ENV!=="production"&&(r=wi("Can not find dimension info via: "+f+`.
  366. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
  367. `,"Illegal config:",c,`.
  368. `)),Ht(r));var b=p?dq(p):null;p&&!b&&(process.env.NODE_ENV!=="production"&&(r=wi("Invalid parser name "+p+`.
  369. `,"Illegal config:",c,`.
  370. `)),Ht(r)),o.push({dimIdx:y.index,parser:b,comparator:new pq(d,g)})});var a=e.sourceFormat;a!==si&&a!==ha&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+a+'" is not supported yet'),Ht(r));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<o.length;d++){var p=o[d],g=e.retrieveValueFromItem(c,p.dimIdx),v=e.retrieveValueFromItem(f,p.dimIdx);p.parser&&(g=p.parser(g),v=p.parser(v));var m=p.comparator.evaluate(g,v);if(m!==0)return m}return 0}),{data:s}}};function drt(t){t.registerTransform(crt),t.registerTransform(frt)}var hrt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,i){t.prototype.init.call(this,n,r,i),this._sourceManager=new _q(this),Oq(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),Oq(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:js},e}(dt),prt=function(t){re(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(dn);function grt(t){t.registerComponentModel(hrt),t.registerComponentView(prt)}var tl=Qs.CMD;function iv(t,e){return Math.abs(t-e)<1e-5}function v4(t){var e=t.data,n=t.len(),r=[],i,o=0,a=0,s=0,l=0;function u(R,L){i&&i.length>2&&r.push(i),i=[R,L]}function c(R,L,D,B){iv(R,D)&&iv(L,B)||i.push(R,L,D,B,D,B)}function f(R,L,D,B,F,z){var W=Math.abs(L-R),j=Math.tan(W/4)*4/3,H=L<R?-1:1,Z=Math.cos(R),J=Math.sin(R),se=Math.cos(L),oe=Math.sin(L),de=Z*F+D,ie=J*z+B,ue=se*F+D,ee=oe*z+B,X=F*j*H,Y=z*j*H;i.push(de-X*J,ie+Y*Z,ue+X*oe,ee-Y*se,ue,ee)}for(var d,p,g,v,m=0;m<n;){var y=e[m++],b=m===1;switch(b&&(o=e[m],a=e[m+1],s=o,l=a,(y===tl.L||y===tl.C||y===tl.Q)&&(i=[s,l])),y){case tl.M:o=s=e[m++],a=l=e[m++],u(s,l);break;case tl.L:d=e[m++],p=e[m++],c(o,a,d,p),o=d,a=p;break;case tl.C:i.push(e[m++],e[m++],e[m++],e[m++],o=e[m++],a=e[m++]);break;case tl.Q:d=e[m++],p=e[m++],g=e[m++],v=e[m++],i.push(o+2/3*(d-o),a+2/3*(p-a),g+2/3*(d-g),v+2/3*(p-v),g,v),o=g,a=v;break;case tl.A:var O=e[m++],w=e[m++],S=e[m++],x=e[m++],T=e[m++],$=e[m++]+T;m+=1;var A=!e[m++];d=Math.cos(T)*S+O,p=Math.sin(T)*x+w,b?(s=d,l=p,u(s,l)):c(o,a,d,p),o=Math.cos($)*S+O,a=Math.sin($)*x+w;for(var P=(A?-1:1)*Math.PI/2,M=T;A?M>$:M<$;M+=P){var I=A?Math.max(M+P,$):Math.min(M+P,$);f(M,I,O,w,S,x)}break;case tl.R:s=o=e[m++],l=a=e[m++],d=s+e[m++],p=l+e[m++],u(d,l),c(d,l,d,p),c(d,p,s,p),c(s,p,s,l),c(s,l,d,l);break;case tl.Z:i&&c(o,a,s,l),o=s,a=l;break}}return i&&i.length>2&&r.push(i),r}function m4(t,e,n,r,i,o,a,s,l,u){if(iv(t,n)&&iv(e,r)&&iv(i,a)&&iv(o,s)){l.push(a,s);return}var c=2/u,f=c*c,d=a-t,p=s-e,g=Math.sqrt(d*d+p*p);d/=g,p/=g;var v=n-t,m=r-e,y=i-a,b=o-s,O=v*v+m*m,w=y*y+b*b;if(O<f&&w<f){l.push(a,s);return}var S=d*v+p*m,x=-d*y-p*b,T=O-S*S,$=w-x*x;if(T<f&&S>=0&&$<f&&x>=0){l.push(a,s);return}var A=[],P=[];Ju(t,n,i,a,.5,A),Ju(e,r,o,s,.5,P),m4(A[0],P[0],A[1],P[1],A[2],P[2],A[3],P[3],l,u),m4(A[4],P[4],A[5],P[5],A[6],P[6],A[7],P[7],l,u)}function vrt(t,e){var n=v4(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],f=o[u++],d=o[u++],p=o[u++],g=o[u++],v=o[u++];m4(s,l,c,f,d,p,g,v,a,e),s=g,l=v}r.push(a)}return r}function Vae(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);s===0&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%a]+=1;return l}function zae(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),f=Vae([l,u],c?0:1,e),d=(c?s:u)/f.length,p=0;p<f.length;p++)for(var g=(c?u:s)/f[p],v=0;v<f[p];v++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=r+g*v,m.r=r+g*(v+1)):(m.startAngle=o+g*v,m.endAngle=o+g*(v+1),m.r0=r+d*p,m.r=r+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function mrt(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=Vae([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",f=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],g=0;g<a[d];g++){var v={};v[u]=d*f,v[c]=g*p,v[s]=f,v[l]=p,v.x+=t.x,v.y+=t.y,n.push(v)}}function Fae(t,e,n,r){return t*r-n*e}function yrt(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,d=Fae(c,f,l,u);if(Math.abs(d)<1e-6)return null;var p=t-i,g=e-o,v=Fae(p,g,c,f)/d;return v<0||v>1?null:new ot(v*l+t,v*u+e)}function brt(t,e,n){var r=new ot;ot.sub(r,n,e),r.normalize();var i=new ot;ot.sub(i,t,e);var o=i.dot(r);return o}function ov(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function _rt(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=yrt(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:brt(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort(function(m,y){return m.projPt-y.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],g=[d],v=[p],o=u.idx+1;o<=c.idx;o++)ov(g,t[o].slice());ov(g,p),ov(g,d);for(var o=c.idx+1;o<=u.idx+r;o++)ov(v,t[o%r].slice());return ov(v,d),ov(v,p),[{points:g},{points:v}]}function Wae(t){var e=t.points,n=[],r=[];hS(e,n,r);var i=new at(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new ot,c=new ot;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),_rt(e,u,c)}function kC(t,e,n,r){if(n===1)r.push(e);else{var i=Math.floor(n/2),o=t(e);kC(t,o[0],i,r),kC(t,o[1],n-i,r)}return r}function Ort(t,e){for(var n=[],r=0;r<e;r++)n.push(ED(t));return n}function wrt(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Srt(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function xrt(t,e){var n=[],r=t.shape,i;switch(t.type){case"rect":mrt(r,e,n),i=Pt;break;case"sector":zae(r,e,n),i=Ci;break;case"circle":zae({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),i=Ci;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=me(vrt(t.getUpdatedPathProxy(),a),function(y){return Srt(y)}),l=s.length;if(l===0)kC(Wae,{points:s[0]},e,n);else if(l===e)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=me(s,function(y){var b=[],O=[];hS(y,b,O);var w=(O[1]-b[1])*(O[0]-b[0]);return c+=w,{poly:y,area:w}});f.sort(function(y,b){return b.area-y.area});for(var d=e,u=0;u<l;u++){var p=f[u];if(d<=0)break;var g=u===l-1?d:Math.ceil(p.area/c*e);g<0||(kC(Wae,{points:p.poly},g,n),d-=g)}}i=Ti;break}if(!i)return Ort(t,e);for(var v=[],u=0;u<n.length;u++){var m=new i;m.setShape(n[u]),wrt(t,m),v.push(m)}return v}function Crt(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[a[0],a[1]],d=l,p=2;p<s;){var g=a[p-2],v=a[p-1],m=a[p++],y=a[p++],b=a[p++],O=a[p++],w=a[p++],S=a[p++];if(d<=0){f.push(m,y,b,O,w,S);continue}for(var x=Math.min(d,c-1)+1,T=1;T<=x;T++){var $=T/x;Ju(g,m,b,w,$,i),Ju(v,y,O,S,$,o),g=i[3],v=o[3],f.push(i[1],o[1],i[2],o[2],g,v),m=i[5],y=o[5],b=i[6],O=o[6]}d-=x-1}return a===t?[f,e]:[t,f]}function Qae(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function Trt(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(n=Crt(l,u),c=n[0],f=n[1],r=c,i=f):(f=Qae(i||l,l),c=l):(c=Qae(r||u,u),f=u),o.push(c),a.push(f)}return[o,a]}function Hae(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],f=s*c-u*l;e+=f,n+=(s+u)*f,r+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function Prt(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var p=d===0?c:(c+d-2)%l+2,g=t[p]-n[0],v=t[p+1]-n[1],m=e[d]-r[0],y=e[d+1]-r[1],b=m-g,O=y-v;f+=b*b+O*O}f<o&&(o=f,a=u)}return a}function $rt(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Art(t,e,n,r){for(var i=[],o,a=0;a<t.length;a++){var s=t[a],l=e[a],u=Hae(s),c=Hae(l);o==null&&(o=u[2]<0!=c[2]<0);var f=[],d=[],p=0,g=1/0,v=[],m=s.length;o&&(s=$rt(s));for(var y=Prt(s,l,u,c)*6,b=m-2,O=0;O<b;O+=2){var w=(y+O)%b+2;f[O+2]=s[w]-u[0],f[O+3]=s[w+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var S=r/n,x=-r/2;x<=r/2;x+=S){for(var T=Math.sin(x),$=Math.cos(x),A=0,O=0;O<s.length;O+=2){var P=f[O],M=f[O+1],I=l[O]-c[0],R=l[O+1]-c[1],L=I*$-R*T,D=I*T+R*$;v[O]=L,v[O+1]=D;var B=L-P,F=D-M;A+=B*B+F*F}if(A<g){g=A,p=x;for(var z=0;z<v.length;z++)d[z]=v[z]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-p})}return i}function NC(t){return t.__isCombineMorphing}var Gae="__mOriginal_";function LC(t,e,n){var r=Gae+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),o?u=o.apply(this,l):u=i.apply(this,l),a&&a.apply(this,l),u}}function wb(t,e){var n=Gae+e;t[n]&&(t[e]=t[n],t[n]=null)}function jae(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function Uae(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=Trt(v4(n),v4(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&jae(o,s),l&&jae(a,l),LC(e,"updateTransform",{replace:u}),e.transform=null;var c=Art(o,a,10,Math.PI),f=[];LC(e,"buildPath",{replace:function(d){for(var p=e.__morphT,g=1-p,v=[],m=0;m<c.length;m++){var y=c[m],b=y.from,O=y.to,w=y.rotation*p,S=y.fromCp,x=y.toCp,T=Math.sin(w),$=Math.cos(w);T0(v,S,x,p);for(var A=0;A<b.length;A+=2){var P=b[A],M=b[A+1],I=O[A],R=O[A+1],L=P*g+I*p,D=M*g+R*p;f[A]=L*$-D*T+v[0],f[A+1]=L*T+D*$+v[1]}var B=f[0],F=f[1];d.moveTo(B,F);for(var A=2;A<b.length;){var I=f[A++],R=f[A++],z=f[A++],W=f[A++],j=f[A++],H=f[A++];B===I&&F===R&&z===j&&W===H?d.lineTo(j,H):d.bezierCurveTo(I,R,z,W,j,H),B=j,F=H}}}})}function y4(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;Uae(t,e),e.__morphT=0;function o(){wb(e,"buildPath"),wb(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ge({during:function(a){e.dirtyShape(),i&&i(a)},done:function(){o(),r&&r()}},n)),e}function Ert(t,e,n,r,i,o){var a=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var s=0,l,u=(1<<a)/2;u>0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function BC(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=me(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),n=Math.min(f,n),r=Math.max(c,r),i=Math.max(f,i),[c,f]}),a=me(o,function(s,l){return{cp:s,z:Ert(s[0],s[1],e,n,r,i),path:t[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Zae(t){return xrt(t.path,t.count)}function b4(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Mrt(t,e,n){var r=[];function i(S){for(var x=0;x<S.length;x++){var T=S[x];NC(T)?i(T.childrenRef()):T instanceof yt&&r.push(T)}}i(t);var o=r.length;if(!o)return b4();var a=n.dividePath||Zae,s=a({path:e,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),b4();r=BC(r),s=BC(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Wl,d=0;d<o;d++){var p=r[d],g=s[d];g.parent=e,g.copyTransform(f),c||Uae(p,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function v(S){for(var x=0;x<s.length;x++)s[x].addSelfToZr(S)}LC(e,"addSelfToZr",{after:function(S){v(S)}}),LC(e,"removeSelfFromZr",{after:function(S){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(S)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,wb(e,"addSelfToZr"),wb(e,"removeSelfFromZr")}var y=s.length;if(c)for(var b=y,O=function(){b--,b===0&&(m(),l&&l())},d=0;d<y;d++){var w=c?Ge({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:O},n):n;y4(r[d],s[d],w)}else e.__morphT=0,e.animateTo({__morphT:1},Ge({during:function(S){for(var x=0;x<y;x++){var T=s[x];T.__morphT=e.__morphT,T.dirtyShape()}u&&u(S)},done:function(){m();for(var S=0;S<t.length;S++)wb(t[S],"updateTransform");l&&l()}},n));return e.__zr&&v(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function Irt(t,e,n){var r=e.length,i=[],o=n.dividePath||Zae;function a(p){for(var g=0;g<p.length;g++){var v=p[g];NC(v)?a(v.childrenRef()):v instanceof yt&&i.push(v)}}if(NC(t)){a(t.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(ED(i[l++%s]));i.length=r}else{i=o({path:t,count:r});for(var c=t.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),b4()}i=BC(i),e=BC(e);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Ge({delay:(n.delay||0)+f(u,r,i[u],e[u])},n):n;y4(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function Xae(t){return ge(t[0])}function Yae(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(var i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var o=l.length,u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var Drt={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=ED(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function _4(t,e,n,r,i,o){if(!t.length||!e.length)return;var a=hg("update",r,i);if(!(a&&a.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,c;Xae(t)&&(u=t,c=e),Xae(e)&&(u=e,c=t);function f(y,b,O,w,S){var x=y.many,T=y.one;if(x.length===1&&!S){var $=b?x[0]:T,A=b?T:x[0];if(NC($))f({many:[$],one:A},!0,O,w,!0);else{var P=s?Ge({delay:s(O,w)},l):l;y4($,A,P),o($,A,$,A,P)}}else for(var M=Ge({dividePath:Drt[n],individualDelay:s&&function(F,z,W,j){return s(F+O,w)}},l),I=b?Mrt(x,T,M):Irt(T,x,M),R=I.fromIndividuals,L=I.toIndividuals,D=R.length,B=0;B<D;B++){var P=s?Ge({delay:s(B,D)},l):l;o(R[B],L[B],b?x[B]:y.one,b?y.one:x[B],P)}}for(var d=u?u===t:t.length>e.length,p=u?Yae(c,u):Yae(d?e:t,[d?t:e]),g=0,v=0;v<p.length;v++)g+=p[v].many.length;for(var m=0,v=0;v<p.length;v++)f(p[v],d,m,g),m+=p[v].many.length}function oh(t){if(!t)return[];if(ge(t)){for(var e=[],n=0;n<t.length;n++)e.push(oh(t[n]));return e}var r=[];return t.traverse(function(i){i instanceof yt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var qae=1e4,Rrt=0,Kae=1,Jae=2,krt=Tt();function Nrt(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&i.otherDims[e]===0)return n[r]}}function Lrt(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}function ese(t,e,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=Nrt(t,i);if(o){var a=Lrt(t,e,o);return a}var s=t.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||t.getId(e)}function tse(t){var e=[];return V(t,function(n){var r=n.data,i=n.dataGroupId;if(r.count()>qae){process.env.NODE_ENV!=="production"&&En("Universal transition is disabled on large data > 10k.");return}for(var o=r.getIndices(),a=0;a<o.length;a++)e.push({data:r,groupId:ese(r,a,i,!1),childGroupId:ese(r,a,i,!0),divide:n.divide,dataIndex:a})}),e}function O4(t,e,n){t.traverse(function(r){r instanceof yt&&vn(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function w4(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function av(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function Brt(t,e,n){var r=hg("update",n,e);r&&t.traverse(function(i){if(i instanceof la){var o=fFe(i);o&&i.animateFrom({style:o},r)}})}function Vrt(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function nse(t,e,n){var r=tse(t),i=tse(e);function o(O,w,S,x,T){(S||O)&&w.animateFrom({style:S&&S!==O?he(he({},S.style),O.style):O.style},T)}var a=!1,s=Rrt,l=Le(),u=Le();r.forEach(function(O){O.groupId&&l.set(O.groupId,!0),O.childGroupId&&u.set(O.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=Kae;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=Jae;break}}function p(O,w){return function(S){var x=S.data,T=S.dataIndex;return w?x.getId(T):O?s===Kae?S.childGroupId:S.groupId:s===Jae?S.childGroupId:S.groupId}}var g=Vrt(r,i),v={};if(!g)for(var c=0;c<i.length;c++){var m=i[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(v[y.id]=!0)}function b(O,w){var S=r[w],x=i[O],T=x.data.hostModel,$=S.data.getItemGraphicEl(S.dataIndex),A=x.data.getItemGraphicEl(x.dataIndex);if($===A){A&&Brt(A,x.dataIndex,T);return}$&&v[$.id]||A&&(av(A),$?(av($),w4($),a=!0,_4(oh($),oh(A),x.divide,T,O,o)):O4(A,T,O))}new ql(r,i,p(!0,g),p(!1,g),null,"multiple").update(b).updateManyToOne(function(O,w){var S=i[O],x=S.data,T=x.hostModel,$=x.getItemGraphicEl(S.dataIndex),A=Yt(me(w,function(P){return r[P].data.getItemGraphicEl(r[P].dataIndex)}),function(P){return P&&P!==$&&!v[P.id]});$&&(av($),A.length?(V(A,function(P){av(P),w4(P)}),a=!0,_4(oh(A),oh($),S.divide,T,O,o)):O4($,T,S.dataIndex))}).updateOneToMany(function(O,w){var S=r[w],x=S.data.getItemGraphicEl(S.dataIndex);if(!(x&&v[x.id])){var T=Yt(me(O,function(A){return i[A].data.getItemGraphicEl(i[A].dataIndex)}),function(A){return A&&A!==x}),$=i[O[0]].data.hostModel;T.length&&(V(T,function(A){return av(A)}),x?(av(x),w4(x),a=!0,_4(oh(x),oh(T),S.divide,$,O[0],o)):V(T,function(A){return O4(A,$,O[0])}))}}).updateManyToMany(function(O,w){new ql(w,O,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return i[S].data.getId(i[S].dataIndex)}).update(function(S,x){b(O[S],w[x])}).execute()}).execute(),a&&V(e,function(O){var w=O.data,S=w.hostModel,x=S&&n.getViewOfSeriesModel(S),T=hg("update",S,0);x&&S.isAnimationEnabled()&&T&&T.duration>0&&x.group.traverse(function($){$ instanceof yt&&!$.animators.length&&$.animateFrom({style:{opacity:0}},T)})})}function rse(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function ise(t){return ge(t)?t.sort().join(","):t}function $c(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function zrt(t,e){var n=Le(),r=Le(),i=Le();V(t.oldSeries,function(a,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],c=rse(a),f=ise(c);r.set(f,{dataGroupId:l,data:u}),ge(c)&&V(c,function(d){i.set(d,{key:f,dataGroupId:l,data:u})})});function o(a){n.get(a)&&En("Duplicated seriesKey in universalTransition "+a)}return V(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var s=a.get("dataGroupId"),l=a.getData(),u=rse(a),c=ise(u),f=r.get(c);if(f)process.env.NODE_ENV!=="production"&&o(c),n.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:$c(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:$c(l),data:l}]});else if(ge(u)){process.env.NODE_ENV!=="production"&&o(c);var d=[];V(u,function(v){var m=r.get(v);m.data&&d.push({dataGroupId:m.dataGroupId,divide:$c(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:$c(l)}]})}else{var p=i.get(u);if(p){var g=n.get(p.key);g||(g={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:$c(p.data)}],newSeries:[]},n.set(p.key,g)),g.newSeries.push({dataGroupId:s,data:l,divide:$c(l)})}}}}),n}function ose(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function Frt(t,e,n,r){var i=[],o=[];V(nn(t.from),function(a){var s=ose(e.oldSeries,a);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:$c(e.oldData[s]),groupIdDim:a.dimension})}),V(nn(t.to),function(a){var s=ose(n.updatedSeries,a);if(s>=0){var l=n.updatedSeries[s].getData();o.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:$c(l),groupIdDim:a.dimension})}}),i.length>0&&o.length>0&&nse(i,o,r)}function Wrt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){V(nn(r.seriesTransition),function(i){V(nn(i.to),function(o){for(var a=r.updatedSeries,s=0;s<a.length;s++)(o.seriesIndex!=null&&o.seriesIndex===a[s].seriesIndex||o.seriesId!=null&&o.seriesId===a[s].id)&&(a[s][KS]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var i=krt(n);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)V(nn(o),function(p){Frt(p,i,r,n)});else{var a=zrt(i,r);V(a.keys(),function(p){var g=a.get(p);nse(g.oldSeries,g.newSeries,n)})}V(r.updatedSeries,function(p){p[KS]&&(p[KS]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<qae&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}ht([YHe]),ht([GHe]),ht([vGe,MGe,FGe,_je,Mje,mUe,GUe,$Ze,YZe,nXe,fXe,oYe,EYe,FYe,rqe,sqe,mqe,xqe,kqe,Fqe,qqe,DKe]),ht(KKe),ht(CJe),ht(Kte),ht(BJe),ht(bre),ht(WJe),ht(qJe),ht(zet),ht(ott),ht(hb),ht(wtt),ht(Ctt),ht(ktt),ht(Wtt),ht(Ztt),ht(ent),ht(cnt),ht($nt),ht(dae),ht(vae),ht(Znt),ht(Iae),ht(Rae),ht(Jnt),ht(drt),ht(grt),ht(Wrt),ht(fHe);const Qrt=Object.freeze(Object.defineProperty({__proto__:null,Axis:ma,ChartView:Jt,ComponentModel:dt,ComponentView:dn,List:ci,Model:rn,PRIORITY:OK,SeriesModel:on,color:O6e,connect:mQe,dataTool:xQe,dependencies:eQe,disConnect:yQe,disconnect:LK,dispose:bQe,env:Ct,extendChartView:K9e,extendComponentModel:X9e,extendComponentView:Y9e,extendSeriesModel:q9e,format:L9e,getCoordinateSystemDimensions:OQe,getInstanceByDom:jR,getInstanceById:_Qe,getMap:SQe,graphic:N9e,helper:$9e,init:NK,innerDrawElementOnCanvas:MR,matrix:KBe,number:R9e,parseGeoJSON:pk,parseGeoJson:pk,registerAction:ls,registerCoordinateSystem:zK,registerLayout:FK,registerLoading:qR,registerLocale:GD,registerMap:QK,registerPostInit:BK,registerPostUpdate:VK,registerPreprocessor:ZR,registerProcessor:XR,registerTheme:UR,registerTransform:HK,registerUpdateLifecycle:vx,registerVisual:vc,setCanvasCreator:wQe,setPlatformAPI:iU,throttle:ex,time:k9e,use:ht,util:B9e,vector:BBe,version:J7e,zrUtil:MBe,zrender:rVe},Symbol.toStringTag,{value:"Module"}));function Hrt(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function VC(t){return typeof t=="function"?t():h.unref(t)}const Grt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jrt=Object.prototype.toString,Urt=t=>jrt.call(t)==="[object Object]",S4=()=>{};function Zrt(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}function Xrt(t,e={}){let n,r,i=S4;const o=s=>{clearTimeout(s),i(),i=S4};return s=>{const l=VC(t),u=VC(e.maxWait);return n&&o(n),l<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{i=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(s())},l)})}}function Yrt(t){return h.getCurrentInstance()}function qrt(t,e=200,n={}){return Zrt(Xrt(e,n),t)}function Krt(t,e){Yrt()&&h.onUnmounted(t,e)}function Jrt(t){var e;const n=VC(t);return(e=n==null?void 0:n.$el)!=null?e:n}const eit=Grt?window:void 0;function tit(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=eit):[e,n,r,i]=t,!e)return S4;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[Jrt(e),VC(i)],([c,f])=>{if(a(),!c)return;const d=Urt(f)?{...f}:f;o.push(...n.flatMap(p=>r.map(g=>s(c,p,g,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Hrt(u),u}function nit(t,e="default"){let n=null,r=s;const i=h.ref({});let o;const a=h.computed(()=>i.value);r=qrt(s,200);function s(){n==null||n.resize({animation:{duration:300,easing:"quadraticIn"}})}function l(f=e){const d=h.unref(t);if(!d||!h.unref(d))return;n=NK(d,f),o=tit(window,"resize",r)}function u(f,d=!1){return i.value=f,new Promise(p=>{var g;((g=h.unref(t))==null?void 0:g.offsetHeight)===0&&setTimeout(()=>{u(h.unref(a)),p(null)},30),h.nextTick(()=>{setTimeout(()=>{!n&&(l("default"),!n)||(d&&(n==null||n.clear()),n==null||n.setOption(h.unref(a)),p(null))},30)})})}h.watch(()=>e,f=>{n&&(n.dispose(),l(f),u(i.value))}),Krt(()=>{n&&(o(),n.dispose(),n=null)});function c(){return n||l("default"),n}return{setOptions:u,resize:s,echarts:Qrt,getInstance:c}}const x4=h.defineComponent({__name:"Charts",props:{echartsOptions:{},width:{},height:{},loading:{type:Boolean}},setup(t){const e=t,n=h.ref(null),{setOptions:r,resize:i}=nit(n),o=h.h(Es,{style:{fontSize:"24px"}});return h.watch(()=>[e.width,e.height],j1e(async()=>{i()},200)),h.watch(()=>e,async()=>{await h.nextTick();const{echartsOptions:a}=e;r(a)},{immediate:!0,deep:!0}),(a,s)=>(h.openBlock(),h.createBlock(h.unref(u0),{spinning:a.loading,indicator:h.unref(o)},{default:h.withCtx(()=>[h.createElementVNode("div",{ref_key:"chartRef",ref:n,style:h.normalizeStyle({width:a.width+"px",height:a.height+"px"})},null,4)]),_:1},8,["spinning","indicator"]))}});function C4(t){return gV(t,q3e)}const T4={type:Object,default:()=>({sourceType:Kn.STATIC,data:[],url:"",method:"GET",params:{},headers:{},refreshTime:0,dataProcess:()=>[]})},rit=(t,e)=>new Promise((n,r)=>{const i=new Blob([`
  371. self.onmessage = function(e) {
  372. self.postMessage((${t}).call(null, e.data));
  373. }
  374. `],{type:"application/javascript"}),o=new Worker(URL.createObjectURL(i));o.postMessage(JSON.parse(e)),o.onmessage=a=>{o.terminate(),n(a.data)},o.onerror=a=>{o.terminate(),r(a)}}),zC={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:T4,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},seriesExtend:{type:Object,default:()=>ase}},iit=[],ase={lineStyle:{type:"solid",width:1},symbol:"rect",symbolSize:4,symbolRotate:0,smooth:!1,step:!1},oit=C4({title:{text:"折线图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:iit,seriesExtend:ase}),sse={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Kn.STATIC,data:{xData:["轴标签A","轴标签B","轴标签C","轴标签D"],series:[{type:"line",name:"系列1",data:[89.3,92.1,94.4,85.4]},{type:"line",name:"系列2",data:[95.8,89.4,91.2,76.9]}]},url:location.origin+"/mock/api/get/example/line",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  375. (res) => {
  376. // 取出列表
  377. const data = res.data;
  378. // x轴数据
  379. const xData = data.map((item) => item.name);
  380. // 系列数据
  381. const series = [
  382. { type: 'line', name: '苹果', data: data.map(item => item.apple) },
  383. { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) },
  384. { type: 'line', name: '小米', data: data.map(item => item.mi) },
  385. ];
  386. // 返回图表数据
  387. return { xData, series };
  388. }
  389. `},...oit}},lse=(t,{manual:e,ready:n=!0,refreshDeps:r=[],refreshDepsAction:i})=>{const o=h.ref(!1);return h.watchEffect(()=>{!e&&t.options.refreshDeps!==!0&&(o.value=h.unref(n))}),r instanceof Array?h.watch([o,...r],([a])=>{a&&!e&&a&&(i?i():t.refresh())},{deep:!0,immediate:!1}):h.watch(o,a=>{!e&&a&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h.unref(n))return{stopNow:!0}}}};lse.onInit=({ready:t=!0,manual:e})=>({loading:!e&&h.unref(t)});const FC=new Map,ait=(t,e,n)=>{const r=FC.get(t);r!=null&&r.timer&&clearTimeout(r.timer);let i;e>-1&&(i=setTimeout(()=>{FC.delete(t)},e)),FC.set(t,{...n,timer:i})},sit=t=>FC.get(t),WC=new Map,lit=t=>WC.get(t),uit=(t,e)=>{WC.set(t,e),e.then(n=>(WC.delete(t),n)).catch(n=>{throw WC.delete(t),n})},ah={},cit=[],fit=(t,e)=>{ah[t]&&(ah[t].forEach(n=>n(e)),cit.forEach(n=>n({type:t,data:e})))},P4=(t,e)=>(ah[t]||(ah[t]=[]),ah[t].push(e),function(){const r=ah[t].indexOf(e);ah[t].splice(r,1)}),dit=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:r=0,setCache:i,getCache:o})=>{const a=h.ref(),s=h.ref(),l=(c,f)=>{i?i(f):ait(c,n,f),fit(c,f.data)},u=(c,f=[])=>o?o(f):sit(c);return h.watchEffect(()=>{if(!e)return;const c=u(e);c&&Object.hasOwnProperty.call(c,"data")&&(t.state.data=c.data,t.state.params=c.params,(r===-1||new Date().getTime()-c.time<=r)&&(t.state.loading=!1)),a.value=P4(e,f=>{t.setState({data:f})})}),h.onScopeDispose(()=>{var c;(c=a.value)==null||c.call(a)}),e?{name:"cachePlugin",onBefore:c=>{const f=u(e,c);return!f||!Object.hasOwnProperty.call(f,"data")?{}:r===-1||new Date().getTime()-f.time<=r?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(c,f)=>{let d=lit(e);return d&&d!==s.value?{servicePromise:d}:(d=c(...f),s.value=d,uit(e,d),{servicePromise:d})},onSuccess:(c,f)=>{var d;e&&((d=a.value)==null||d.call(a),l(e,{data:c,params:f,time:new Date().getTime()}),a.value=P4(e,p=>{t.setState({data:p})}))},onMutate:c=>{var f;e&&((f=a.value)==null||f.call(a),l(e,{data:c,params:t.state.params,time:new Date().getTime()}),a.value=P4(e,d=>{t.setState({data:d})}))}}:{}};function hit(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ds=hit,pit=typeof Tl=="object"&&Tl&&Tl.Object===Object&&Tl,use=pit,git=use,vit=typeof self=="object"&&self&&self.Object===Object&&self,mit=git||vit||Function("return this")(),hs=mit,yit=hs,bit=function(){return yit.Date.now()},_it=bit,Oit=/\s/;function wit(t){for(var e=t.length;e--&&Oit.test(t.charAt(e)););return e}var Sit=wit,xit=Sit,Cit=/^\s+/;function Tit(t){return t&&t.slice(0,xit(t)+1).replace(Cit,"")}var Pit=Tit,$it=hs,Ait=$it.Symbol,QC=Ait,cse=QC,fse=Object.prototype,Eit=fse.hasOwnProperty,Mit=fse.toString,Sb=cse?cse.toStringTag:void 0;function Iit(t){var e=Eit.call(t,Sb),n=t[Sb];try{t[Sb]=void 0;var r=!0}catch{}var i=Mit.call(t);return r&&(e?t[Sb]=n:delete t[Sb]),i}var Dit=Iit,Rit=Object.prototype,kit=Rit.toString;function Nit(t){return kit.call(t)}var Lit=Nit,dse=QC,Bit=Dit,Vit=Lit,zit="[object Null]",Fit="[object Undefined]",hse=dse?dse.toStringTag:void 0;function Wit(t){return t==null?t===void 0?Fit:zit:hse&&hse in Object(t)?Bit(t):Vit(t)}var sv=Wit;function Qit(t){return t!=null&&typeof t=="object"}var Ac=Qit,Hit=sv,Git=Ac,jit="[object Symbol]";function Uit(t){return typeof t=="symbol"||Git(t)&&Hit(t)==jit}var Zit=Uit,Xit=Pit,pse=ds,Yit=Zit,gse=NaN,qit=/^[-+]0x[0-9a-f]+$/i,Kit=/^0b[01]+$/i,Jit=/^0o[0-7]+$/i,eot=parseInt;function tot(t){if(typeof t=="number")return t;if(Yit(t))return gse;if(pse(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=pse(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Xit(t);var n=Kit.test(t);return n||Jit.test(t)?eot(t.slice(2),n?2:8):qit.test(t)?gse:+t}var not=tot,rot=ds,$4=_it,vse=not,iot="Expected a function",oot=Math.max,aot=Math.min;function sot(t,e,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(iot);e=vse(e)||0,rot(n)&&(c=!!n.leading,f="maxWait"in n,o=f?oot(vse(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function p(x){var T=r,$=i;return r=i=void 0,u=x,a=t.apply($,T),a}function g(x){return u=x,s=setTimeout(y,e),c?p(x):a}function v(x){var T=x-l,$=x-u,A=e-T;return f?aot(A,o-$):A}function m(x){var T=x-l,$=x-u;return l===void 0||T>=e||T<0||f&&$>=o}function y(){var x=$4();if(m(x))return b(x);s=setTimeout(y,v(x))}function b(x){return s=void 0,d&&r?p(x):(r=i=void 0,a)}function O(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return s===void 0?a:b($4())}function S(){var x=$4(),T=m(x);if(r=arguments,i=this,l=x,T){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(y,e),p(l)}return s===void 0&&(s=setTimeout(y,e)),a}return S.cancel=O,S.flush=w,S}var mse=sot;const lot=$1(mse),uot=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i})=>{const o=h.ref(),a=h.computed(()=>{const s={},l=h.unref(n),u=h.unref(r),c=h.unref(i);return l!==void 0&&(s.leading=l),u!==void 0&&(s.trailing=u),c!==void 0&&(s.maxWait=c),s});return h.watchEffect(s=>{if(h.unref(e)){const l=t.runAsync.bind(t);o.value=lot(u=>{u()},h.unref(e),a.value),t.runAsync=(...u)=>new Promise((c,f)=>{var d;(d=o.value)==null||d.call(o,()=>{l(...u).then(c).catch(f)})}),s(()=>{var u;(u=o.value)==null||u.cancel(),t.runAsync=l})}}),h.unref(e)?{name:"debouncePlugin",onCancel:()=>{var s;(s=o.value)==null||s.cancel()}}:{}};var cot=Object.defineProperty,fot=(t,e,n)=>e in t?cot(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yse=(t,e,n)=>(fot(t,typeof e!="symbol"?e+"":e,n),n);class dot{constructor(){yse(this,"table",{}),yse(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new dot;function hot(t){const n=t.toString().match(/^function\s+([^\s(]+)/);return n?n[1]:""}function pot(t){const e=t.toString(),n=/([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/,r=e.match(n);return r?r[1].trim():""}var got=Object.defineProperty,vot=(t,e,n)=>e in t?got(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bse=(t,e,n)=>(vot(t,typeof e!="symbol"?e+"":e,n),n);class mot{constructor(){bse(this,"requestInstances",new Map),bse(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}const Ji=new mot,yot=(t,{ready:e=!0,debugKey:n,...r})=>{const i=()=>{if(n&&!Ji.has(n)){const a=t.serviceRef.value.toString().includes("function")?hot(t.serviceRef.value.toString()):pot(t.serviceRef.value.toString());Ji.insert(n,{instance:t,requestName:a,time:Date.now()})}},o=h.computed(()=>Object.fromEntries(Object.entries({ready:e,...r}).map(([a,s])=>[a,h.unref(s)])));return h.watchEffect(()=>{n&&Ji.has(n)&&Ji.emit({...t,options:{...t.options,...o.value}})}),{name:"devtoolsPlugin",onBefore:a=>{i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,params:a,loading:!0,time:Date.now(),type:"pending"})},onSuccess(a,s){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,data:a,params:s,loading:!1,time:Date.now(),type:"done"})},onCancel(){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,loading:!1,time:Date.now(),type:"cancel"})},onError(a,s){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,params:s,loading:!1,error:a,time:Date.now(),type:"error"})},onMutate(a){i(),n&&Ji.has(n)&&Ji.emit({...t.state,key:n,data:a,loading:!1,time:Date.now(),type:"mutate"})}}},bot=(t,{loadingDelay:e})=>{const n=h.ref(),r=()=>{n.value&&(clearTimeout(h.unref(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{r();const i=h.unref(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{r()}}};function A4(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const _ot=!!(typeof window<"u"&&window.document&&window.document.createElement);function E4(){return A4()?document.visibilityState!=="hidden":!0}const xb=[];function Oot(t){return xb.push(t),function(){const n=xb.indexOf(t);xb.splice(n,1)}}if(A4()){const t=()=>{if(E4())for(let e=0;e<xb.length;e++){const n=xb[e];n()}};window.addEventListener("visibilitychange",t,!1)}const wot=(t,{pollingInterval:e,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{let i;const o=h.ref(),a=h.ref(0),s=()=>{var l;i&&clearTimeout(i),(l=o.value)==null||l.call(o)};return h.watchEffect(()=>{h.unref(e)||s()}),h.unref(e)?{name:"pollingPlugin",onBefore:()=>{s()},onError:()=>{a.value+=1},onSuccess:()=>{a.value=0},onFinally:()=>{r===-1||r!==-1&&a.value<=r?i=setTimeout(()=>{!n&&!E4()?o.value=Oot(()=>{t.refresh()}):t.refresh()},h.unref(e)):a.value=0},onCancel:()=>{s()}}:{}};function Sot(t,e){let n=!1;return(...r)=>{n||(n=!0,t(...r),setTimeout(()=>{n=!1},e))}}function xot(){return A4()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const Cb=[];function Cot(t){return Cb.push(t),function(){const n=Cb.indexOf(t);n>-1&&Cb.splice(n,1)}}if(_ot){const t=()=>{if(!(!E4()||!xot()))for(let e=0;e<Cb.length;e++){const n=Cb[e];n()}};window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1)}const Tot=(t,{refreshOnWindowFocus:e,focusTimespan:n=5e3})=>{const r=h.ref(),i=()=>{var o;(o=r.value)==null||o.call(r)};return h.watchEffect(o=>{if(h.unref(e)){const a=Sot(t.refresh.bind(t),h.unref(n));r.value=Cot(()=>{a()})}o(()=>{i()})}),h.onScopeDispose(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Pot=(t,{retryInterval:e,retryCount:n})=>{const r=h.ref(),i=h.ref(0),o=h.ref(!1);return n?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,r.value&&clearTimeout(r.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const a=e??Math.min(1e3*2**i.value,3e4);r.value=setTimeout(()=>{o.value=!0,t.refresh()},a)}else i.value=0},onCancel:()=>{i.value=0,r.value&&clearTimeout(r.value)}}:{}};var $ot=mse,Aot=ds,Eot="Expected a function";function Mot(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Eot);return Aot(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$ot(t,e,{leading:r,maxWait:e,trailing:i})}var Iot=Mot;const Dot=$1(Iot),Rot=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:r})=>{const i=h.computed(()=>{const a={};return h.unref(n)!==void 0&&(a.leading=h.unref(n)),h.unref(r)!==void 0&&(a.trailing=h.unref(r)),a}),o=h.computed(()=>Dot(a=>{a()},h.unref(e),i.value));return h.watchEffect(a=>{if(h.unref(e)){const s=t.runAsync.bind(t);t.runAsync=(...l)=>new Promise((u,c)=>{var f;(f=o.value)==null||f.call(o,()=>{s(...l).then(u).catch(c)})}),a(()=>{var l;t.runAsync=s,(l=o.value)==null||l.cancel()})}}),h.unref(e)?{name:"throttlePlugin",onCancel:()=>{var a;(a=o.value)==null||a.cancel()}}:{}},_se=t=>typeof t=="function",kot=t=>typeof t=="boolean";var Not=Object.defineProperty,Lot=(t,e,n)=>e in t?Not(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,HC=(t,e,n)=>(Lot(t,typeof e!="symbol"?e+"":e,n),n);class Bot{constructor(e,n,r,i={}){HC(this,"pluginImpls"),HC(this,"count",0),HC(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),HC(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=r,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){console.warn("Please use 'setFetchState' instead of 'setData'"),n instanceof Array?n.forEach(r=>{this.state[r]=e,this.setUpdateData(e,r)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(r=>{this.state[r]=e,this.setUpdateData(e,r)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var r,i,o;const a=(o=(i=(r=this.pluginImpls)==null?void 0:r.map(s=>{var l;return(l=s[e])==null?void 0:l.call(s,...n)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...a)}async runAsync(...e){var n,r,i,o,a,s,l,u,c,f,d;this.count+=1;const p=this.count,{stopNow:g=!1,returnNow:v=!1,...m}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...m}),v)return Promise.resolve(m.data);try{(r=(n=this.options).onBefore)==null||r.call(n,e)}catch(y){return this.setState({error:y,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,y,e),this.runPluginHandler("onError",y,e),new Promise(()=>{})}try{let{servicePromise:y}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const b=w=>{var S,x,T,$;if(p!==this.count)return new Promise(()=>{});const A=this.options.formatResult?this.options.formatResult(w):w;return this.setState({data:A,error:void 0,loading:!1}),(x=(S=this.options).onSuccess)==null||x.call(S,A,e),this.runPluginHandler("onSuccess",A,e),this.previousValidData=A,($=(T=this.options).onFinally)==null||$.call(T,e,A,void 0),p===this.count&&this.runPluginHandler("onFinally",e,A,void 0),A};y||(y=this.serviceRef.value(...e));const O=await y;return b(O)}catch(y){if(p!==this.count)return new Promise(()=>{});throw this.setState({error:y,loading:!1}),(s=(a=this.options).onError)==null||s.call(a,y,e),this.runPluginHandler("onError",y,e),(_se((l=this.options)==null?void 0:l.rollbackOnError)&&((u=this.options)!=null&&u.rollbackOnError(e))||kot((c=this.options)==null?void 0:c.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(d=(f=this.options).onFinally)==null||d.call(f,e,void 0,y),p===this.count&&this.runPluginHandler("onFinally",e,void 0,y),y}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=_se(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const Vot=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function zot(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function Fot(t,e={},n=[]){const r=h.inject(Vot,{}),{initialData:i=void 0,manual:o=!1,ready:a=!0,...s}={...r??{},...e??{}},l={manual:o,ready:a,initialData:i,...s},u=h.ref(t),c=h.reactive({data:i,loading:!1,params:void 0,error:void 0}),f=(v,m)=>{m?c[m]=v:zot(v)&&(c.data=v.data,c.loading=v.loading,c.error=v.error,c.params=v.params)},d=n.map(v=>{var m;return(m=v==null?void 0:v.onInit)==null?void 0:m.call(v,l)}).filter(Boolean),p=new Bot(u,l,f,Object.assign({},...d,c));p.options=l,p.pluginImpls=n.map(v=>v(p,l));const g=h.computed(()=>h.isRef(a)?a.value:a);if(h.watchEffect(()=>{if(!o){const v=p.state.params||e.defaultParams||[];g.value&&p.options.refreshDeps===!0&&u.value&&p.run(...v)}}),!o&&p.options.refreshDeps!==!0){const v=p.state.params||e.defaultParams||[];h.unref(a)&&p.run(...v)}return h.onScopeDispose(()=>{p.cancel()}),{...h.toRefs(c),cancel:p.cancel.bind(p),refresh:p.refresh.bind(p),refreshAsync:p.refreshAsync.bind(p),run:p.run.bind(p),runAsync:p.runAsync.bind(p),mutate:p.mutate.bind(p)}}const Wot=(t,e)=>function(r,i={},o=[]){let a=t;const s=e||[];for(let l=s.length;l--;)a=s[l](a);return a(r,i,o)};function Qot(t,e,n){var r;const i=(r=[process.env.NODE_ENV==="development"?yot:null,uot,bot,wot,Tot,Rot,lse,dit,Pot])==null?void 0:r.filter(Boolean);return Wot(Fot,e==null?void 0:e.use)(t,e,[...i])}/*! js-cookie v3.0.5 | MIT */function GC(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Hot={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function M4(t,e){function n(i,o,a){if(!(typeof document>"u")){a=GC({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=t.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",GC({},o,{expires:-1}))},withAttributes:function(i){return M4(this.converter,GC({},this.attributes,i))},withConverter:function(i){return M4(GC({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}M4(Hot,{path:"/"});function Got(){this.__data__=[],this.size=0}var jot=Got;function Uot(t,e){return t===e||t!==t&&e!==e}var jC=Uot,Zot=jC;function Xot(t,e){for(var n=t.length;n--;)if(Zot(t[n][0],e))return n;return-1}var UC=Xot,Yot=UC,qot=Array.prototype,Kot=qot.splice;function Jot(t){var e=this.__data__,n=Yot(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Kot.call(e,n,1),--this.size,!0}var eat=Jot,tat=UC;function nat(t){var e=this.__data__,n=tat(e,t);return n<0?void 0:e[n][1]}var rat=nat,iat=UC;function oat(t){return iat(this.__data__,t)>-1}var aat=oat,sat=UC;function lat(t,e){var n=this.__data__,r=sat(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var uat=lat,cat=jot,fat=eat,dat=rat,hat=aat,pat=uat;function lv(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}lv.prototype.clear=cat,lv.prototype.delete=fat,lv.prototype.get=dat,lv.prototype.has=hat,lv.prototype.set=pat;var ZC=lv,gat=ZC;function vat(){this.__data__=new gat,this.size=0}var mat=vat;function yat(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var bat=yat;function _at(t){return this.__data__.get(t)}var Oat=_at;function wat(t){return this.__data__.has(t)}var Sat=wat,xat=sv,Cat=ds,Tat="[object AsyncFunction]",Pat="[object Function]",$at="[object GeneratorFunction]",Aat="[object Proxy]";function Eat(t){if(!Cat(t))return!1;var e=xat(t);return e==Pat||e==$at||e==Tat||e==Aat}var I4=Eat,Mat=hs,Iat=Mat["__core-js_shared__"],Dat=Iat,D4=Dat,Ose=function(){var t=/[^.]+$/.exec(D4&&D4.keys&&D4.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Rat(t){return!!Ose&&Ose in t}var kat=Rat,Nat=Function.prototype,Lat=Nat.toString;function Bat(t){if(t!=null){try{return Lat.call(t)}catch{}try{return t+""}catch{}}return""}var wse=Bat,Vat=I4,zat=kat,Fat=ds,Wat=wse,Qat=/[\\^$.*+?()[\]{}|]/g,Hat=/^\[object .+?Constructor\]$/,Gat=Function.prototype,jat=Object.prototype,Uat=Gat.toString,Zat=jat.hasOwnProperty,Xat=RegExp("^"+Uat.call(Zat).replace(Qat,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yat(t){if(!Fat(t)||zat(t))return!1;var e=Vat(t)?Xat:Hat;return e.test(Wat(t))}var qat=Yat;function Kat(t,e){return t==null?void 0:t[e]}var Jat=Kat,est=qat,tst=Jat;function nst(t,e){var n=tst(t,e);return est(n)?n:void 0}var sh=nst,rst=sh,ist=hs,ost=rst(ist,"Map"),R4=ost,ast=sh,sst=ast(Object,"create"),XC=sst,Sse=XC;function lst(){this.__data__=Sse?Sse(null):{},this.size=0}var ust=lst;function cst(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var fst=cst,dst=XC,hst="__lodash_hash_undefined__",pst=Object.prototype,gst=pst.hasOwnProperty;function vst(t){var e=this.__data__;if(dst){var n=e[t];return n===hst?void 0:n}return gst.call(e,t)?e[t]:void 0}var mst=vst,yst=XC,bst=Object.prototype,_st=bst.hasOwnProperty;function Ost(t){var e=this.__data__;return yst?e[t]!==void 0:_st.call(e,t)}var wst=Ost,Sst=XC,xst="__lodash_hash_undefined__";function Cst(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Sst&&e===void 0?xst:e,this}var Tst=Cst,Pst=ust,$st=fst,Ast=mst,Est=wst,Mst=Tst;function uv(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}uv.prototype.clear=Pst,uv.prototype.delete=$st,uv.prototype.get=Ast,uv.prototype.has=Est,uv.prototype.set=Mst;var Ist=uv,xse=Ist,Dst=ZC,Rst=R4;function kst(){this.size=0,this.__data__={hash:new xse,map:new(Rst||Dst),string:new xse}}var Nst=kst;function Lst(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Bst=Lst,Vst=Bst;function zst(t,e){var n=t.__data__;return Vst(e)?n[typeof e=="string"?"string":"hash"]:n.map}var YC=zst,Fst=YC;function Wst(t){var e=Fst(this,t).delete(t);return this.size-=e?1:0,e}var Qst=Wst,Hst=YC;function Gst(t){return Hst(this,t).get(t)}var jst=Gst,Ust=YC;function Zst(t){return Ust(this,t).has(t)}var Xst=Zst,Yst=YC;function qst(t,e){var n=Yst(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Kst=qst,Jst=Nst,elt=Qst,tlt=jst,nlt=Xst,rlt=Kst;function cv(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}cv.prototype.clear=Jst,cv.prototype.delete=elt,cv.prototype.get=tlt,cv.prototype.has=nlt,cv.prototype.set=rlt;var Cse=cv,ilt=ZC,olt=R4,alt=Cse,slt=200;function llt(t,e){var n=this.__data__;if(n instanceof ilt){var r=n.__data__;if(!olt||r.length<slt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new alt(r)}return n.set(t,e),this.size=n.size,this}var ult=llt,clt=ZC,flt=mat,dlt=bat,hlt=Oat,plt=Sat,glt=ult;function fv(t){var e=this.__data__=new clt(t);this.size=e.size}fv.prototype.clear=flt,fv.prototype.delete=dlt,fv.prototype.get=hlt,fv.prototype.has=plt,fv.prototype.set=glt;var Tse=fv;function vlt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var mlt=vlt,ylt=sh,blt=function(){try{var t=ylt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Pse=blt,$se=Pse;function _lt(t,e,n){e=="__proto__"&&$se?$se(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var k4=_lt,Olt=k4,wlt=jC,Slt=Object.prototype,xlt=Slt.hasOwnProperty;function Clt(t,e,n){var r=t[e];(!(xlt.call(t,e)&&wlt(r,n))||n===void 0&&!(e in t))&&Olt(t,e,n)}var Ase=Clt,Tlt=Ase,Plt=k4;function $lt(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),i?Plt(n,s,l):Tlt(n,s,l)}return n}var Tb=$lt;function Alt(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Elt=Alt,Mlt=sv,Ilt=Ac,Dlt="[object Arguments]";function Rlt(t){return Ilt(t)&&Mlt(t)==Dlt}var klt=Rlt,Ese=klt,Nlt=Ac,Mse=Object.prototype,Llt=Mse.hasOwnProperty,Blt=Mse.propertyIsEnumerable,Vlt=Ese(function(){return arguments}())?Ese:function(t){return Nlt(t)&&Llt.call(t,"callee")&&!Blt.call(t,"callee")},Ise=Vlt,zlt=Array.isArray,qC=zlt,KC={exports:{}};function Flt(){return!1}var Wlt=Flt;KC.exports,function(t,e){var n=hs,r=Wlt,i=e&&!e.nodeType&&e,o=i&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;t.exports=u}(KC,KC.exports);var N4=KC.exports,Qlt=9007199254740991,Hlt=/^(?:0|[1-9]\d*)$/;function Glt(t,e){var n=typeof t;return e=e??Qlt,!!e&&(n=="number"||n!="symbol"&&Hlt.test(t))&&t>-1&&t%1==0&&t<e}var Dse=Glt,jlt=9007199254740991;function Ult(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=jlt}var Rse=Ult,Zlt=sv,Xlt=Rse,Ylt=Ac,qlt="[object Arguments]",Klt="[object Array]",Jlt="[object Boolean]",eut="[object Date]",tut="[object Error]",nut="[object Function]",rut="[object Map]",iut="[object Number]",out="[object Object]",aut="[object RegExp]",sut="[object Set]",lut="[object String]",uut="[object WeakMap]",cut="[object ArrayBuffer]",fut="[object DataView]",dut="[object Float32Array]",hut="[object Float64Array]",put="[object Int8Array]",gut="[object Int16Array]",vut="[object Int32Array]",mut="[object Uint8Array]",yut="[object Uint8ClampedArray]",but="[object Uint16Array]",_ut="[object Uint32Array]",Mn={};Mn[dut]=Mn[hut]=Mn[put]=Mn[gut]=Mn[vut]=Mn[mut]=Mn[yut]=Mn[but]=Mn[_ut]=!0,Mn[qlt]=Mn[Klt]=Mn[cut]=Mn[Jlt]=Mn[fut]=Mn[eut]=Mn[tut]=Mn[nut]=Mn[rut]=Mn[iut]=Mn[out]=Mn[aut]=Mn[sut]=Mn[lut]=Mn[uut]=!1;function Out(t){return Ylt(t)&&Xlt(t.length)&&!!Mn[Zlt(t)]}var wut=Out;function Sut(t){return function(e){return t(e)}}var L4=Sut,JC={exports:{}};JC.exports,function(t,e){var n=use,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s}(JC,JC.exports);var B4=JC.exports,xut=wut,Cut=L4,kse=B4,Nse=kse&&kse.isTypedArray,Tut=Nse?Cut(Nse):xut,Lse=Tut,Put=Elt,$ut=Ise,Aut=qC,Eut=N4,Mut=Dse,Iut=Lse,Dut=Object.prototype,Rut=Dut.hasOwnProperty;function kut(t,e){var n=Aut(t),r=!n&&$ut(t),i=!n&&!r&&Eut(t),o=!n&&!r&&!i&&Iut(t),a=n||r||i||o,s=a?Put(t.length,String):[],l=s.length;for(var u in t)(e||Rut.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Mut(u,l)))&&s.push(u);return s}var Bse=kut,Nut=Object.prototype;function Lut(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Nut;return t===n}var V4=Lut;function But(t,e){return function(n){return t(e(n))}}var Vse=But,Vut=Vse,zut=Vut(Object.keys,Object),Fut=zut,Wut=V4,Qut=Fut,Hut=Object.prototype,Gut=Hut.hasOwnProperty;function jut(t){if(!Wut(t))return Qut(t);var e=[];for(var n in Object(t))Gut.call(t,n)&&n!="constructor"&&e.push(n);return e}var Uut=jut,Zut=I4,Xut=Rse;function Yut(t){return t!=null&&Xut(t.length)&&!Zut(t)}var eT=Yut,qut=Bse,Kut=Uut,Jut=eT;function ect(t){return Jut(t)?qut(t):Kut(t)}var z4=ect,tct=Tb,nct=z4;function rct(t,e){return t&&tct(e,nct(e),t)}var ict=rct;function oct(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var act=oct,sct=ds,lct=V4,uct=act,cct=Object.prototype,fct=cct.hasOwnProperty;function dct(t){if(!sct(t))return uct(t);var e=lct(t),n=[];for(var r in t)r=="constructor"&&(e||!fct.call(t,r))||n.push(r);return n}var hct=dct,pct=Bse,gct=hct,vct=eT;function mct(t){return vct(t)?pct(t,!0):gct(t)}var Pb=mct,yct=Tb,bct=Pb;function _ct(t,e){return t&&yct(e,bct(e),t)}var Oct=_ct,tT={exports:{}};tT.exports,function(t,e){var n=hs,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}t.exports=l}(tT,tT.exports);var zse=tT.exports;function wct(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Fse=wct;function Sct(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var xct=Sct;function Cct(){return[]}var Wse=Cct,Tct=xct,Pct=Wse,$ct=Object.prototype,Act=$ct.propertyIsEnumerable,Qse=Object.getOwnPropertySymbols,Ect=Qse?function(t){return t==null?[]:(t=Object(t),Tct(Qse(t),function(e){return Act.call(t,e)}))}:Pct,F4=Ect,Mct=Tb,Ict=F4;function Dct(t,e){return Mct(t,Ict(t),e)}var Rct=Dct;function kct(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Hse=kct,Nct=Vse,Lct=Nct(Object.getPrototypeOf,Object),W4=Lct,Bct=Hse,Vct=W4,zct=F4,Fct=Wse,Wct=Object.getOwnPropertySymbols,Qct=Wct?function(t){for(var e=[];t;)Bct(e,zct(t)),t=Vct(t);return e}:Fct,Gse=Qct,Hct=Tb,Gct=Gse;function jct(t,e){return Hct(t,Gct(t),e)}var Uct=jct,Zct=Hse,Xct=qC;function Yct(t,e,n){var r=e(t);return Xct(t)?r:Zct(r,n(t))}var jse=Yct,qct=jse,Kct=F4,Jct=z4;function eft(t){return qct(t,Jct,Kct)}var tft=eft,nft=jse,rft=Gse,ift=Pb;function oft(t){return nft(t,ift,rft)}var aft=oft,sft=sh,lft=hs,uft=sft(lft,"DataView"),cft=uft,fft=sh,dft=hs,hft=fft(dft,"Promise"),pft=hft,gft=sh,vft=hs,mft=gft(vft,"Set"),yft=mft,bft=sh,_ft=hs,Oft=bft(_ft,"WeakMap"),wft=Oft,Q4=cft,H4=R4,G4=pft,j4=yft,U4=wft,Use=sv,dv=wse,Zse="[object Map]",Sft="[object Object]",Xse="[object Promise]",Yse="[object Set]",qse="[object WeakMap]",Kse="[object DataView]",xft=dv(Q4),Cft=dv(H4),Tft=dv(G4),Pft=dv(j4),$ft=dv(U4),lh=Use;(Q4&&lh(new Q4(new ArrayBuffer(1)))!=Kse||H4&&lh(new H4)!=Zse||G4&&lh(G4.resolve())!=Xse||j4&&lh(new j4)!=Yse||U4&&lh(new U4)!=qse)&&(lh=function(t){var e=Use(t),n=e==Sft?t.constructor:void 0,r=n?dv(n):"";if(r)switch(r){case xft:return Kse;case Cft:return Zse;case Tft:return Xse;case Pft:return Yse;case $ft:return qse}return e});var Z4=lh,Aft=Object.prototype,Eft=Aft.hasOwnProperty;function Mft(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Eft.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Ift=Mft,Dft=hs,Rft=Dft.Uint8Array,kft=Rft,Jse=kft;function Nft(t){var e=new t.constructor(t.byteLength);return new Jse(e).set(new Jse(t)),e}var X4=Nft,Lft=X4;function Bft(t,e){var n=e?Lft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Vft=Bft,zft=/\w*$/;function Fft(t){var e=new t.constructor(t.source,zft.exec(t));return e.lastIndex=t.lastIndex,e}var Wft=Fft,ele=QC,tle=ele?ele.prototype:void 0,nle=tle?tle.valueOf:void 0;function Qft(t){return nle?Object(nle.call(t)):{}}var Hft=Qft,Gft=X4;function jft(t,e){var n=e?Gft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var rle=jft,Uft=X4,Zft=Vft,Xft=Wft,Yft=Hft,qft=rle,Kft="[object Boolean]",Jft="[object Date]",edt="[object Map]",tdt="[object Number]",ndt="[object RegExp]",rdt="[object Set]",idt="[object String]",odt="[object Symbol]",adt="[object ArrayBuffer]",sdt="[object DataView]",ldt="[object Float32Array]",udt="[object Float64Array]",cdt="[object Int8Array]",fdt="[object Int16Array]",ddt="[object Int32Array]",hdt="[object Uint8Array]",pdt="[object Uint8ClampedArray]",gdt="[object Uint16Array]",vdt="[object Uint32Array]";function mdt(t,e,n){var r=t.constructor;switch(e){case adt:return Uft(t);case Kft:case Jft:return new r(+t);case sdt:return Zft(t,n);case ldt:case udt:case cdt:case fdt:case ddt:case hdt:case pdt:case gdt:case vdt:return qft(t,n);case edt:return new r;case tdt:case idt:return new r(t);case ndt:return Xft(t);case rdt:return new r;case odt:return Yft(t)}}var ydt=mdt,bdt=ds,ile=Object.create,_dt=function(){function t(){}return function(e){if(!bdt(e))return{};if(ile)return ile(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Odt=_dt,wdt=Odt,Sdt=W4,xdt=V4;function Cdt(t){return typeof t.constructor=="function"&&!xdt(t)?wdt(Sdt(t)):{}}var ole=Cdt,Tdt=Z4,Pdt=Ac,$dt="[object Map]";function Adt(t){return Pdt(t)&&Tdt(t)==$dt}var Edt=Adt,Mdt=Edt,Idt=L4,ale=B4,sle=ale&&ale.isMap,Ddt=sle?Idt(sle):Mdt,Rdt=Ddt,kdt=Z4,Ndt=Ac,Ldt="[object Set]";function Bdt(t){return Ndt(t)&&kdt(t)==Ldt}var Vdt=Bdt,zdt=Vdt,Fdt=L4,lle=B4,ule=lle&&lle.isSet,Wdt=ule?Fdt(ule):zdt,Qdt=Wdt,Hdt=Tse,Gdt=mlt,jdt=Ase,Udt=ict,Zdt=Oct,Xdt=zse,Ydt=Fse,qdt=Rct,Kdt=Uct,Jdt=tft,eht=aft,tht=Z4,nht=Ift,rht=ydt,iht=ole,oht=qC,aht=N4,sht=Rdt,lht=ds,uht=Qdt,cht=z4,fht=Pb,dht=1,hht=2,pht=4,cle="[object Arguments]",ght="[object Array]",vht="[object Boolean]",mht="[object Date]",yht="[object Error]",fle="[object Function]",bht="[object GeneratorFunction]",_ht="[object Map]",Oht="[object Number]",dle="[object Object]",wht="[object RegExp]",Sht="[object Set]",xht="[object String]",Cht="[object Symbol]",Tht="[object WeakMap]",Pht="[object ArrayBuffer]",$ht="[object DataView]",Aht="[object Float32Array]",Eht="[object Float64Array]",Mht="[object Int8Array]",Iht="[object Int16Array]",Dht="[object Int32Array]",Rht="[object Uint8Array]",kht="[object Uint8ClampedArray]",Nht="[object Uint16Array]",Lht="[object Uint32Array]",xn={};xn[cle]=xn[ght]=xn[Pht]=xn[$ht]=xn[vht]=xn[mht]=xn[Aht]=xn[Eht]=xn[Mht]=xn[Iht]=xn[Dht]=xn[_ht]=xn[Oht]=xn[dle]=xn[wht]=xn[Sht]=xn[xht]=xn[Cht]=xn[Rht]=xn[kht]=xn[Nht]=xn[Lht]=!0,xn[yht]=xn[fle]=xn[Tht]=!1;function nT(t,e,n,r,i,o){var a,s=e&dht,l=e&hht,u=e&pht;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!lht(t))return t;var c=oht(t);if(c){if(a=nht(t),!s)return Ydt(t,a)}else{var f=tht(t),d=f==fle||f==bht;if(aht(t))return Xdt(t,s);if(f==dle||f==cle||d&&!i){if(a=l||d?{}:iht(t),!s)return l?Kdt(t,Zdt(a,t)):qdt(t,Udt(a,t))}else{if(!xn[f])return i?t:{};a=rht(t,f,s)}}o||(o=new Hdt);var p=o.get(t);if(p)return p;o.set(t,a),uht(t)?t.forEach(function(m){a.add(nT(m,e,n,m,t,o))}):sht(t)&&t.forEach(function(m,y){a.set(y,nT(m,e,n,y,t,o))});var g=u?l?eht:Jdt:l?fht:cht,v=c?void 0:g(t);return Gdt(v||t,function(m,y){v&&(y=m,m=t[y]),jdt(a,y,nT(m,e,n,y,t,o))}),a}var Bht=nT,Vht=Bht,zht=1,Fht=4;function Wht(t){return Vht(t,zht|Fht)}var Qht=Wht;const hle=$1(Qht);var Hht=Object.defineProperty,Ght=(t,e,n)=>e in t?Hht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uh=(t,e,n)=>(Ght(t,typeof e!="symbol"?e+"":e,n),n);class jht{constructor(){uh(this,"subscriptions",new Map),uh(this,"emitEffectCache",new Map),uh(this,"useSubscription",(e,n)=>{const r=h.ref();h.watchEffect(i=>{var o,a;r.value=n;function s(u){r.value&&r.value(u)}const l=(a=(o=this.subscriptions)==null?void 0:o.get(e))!=null?a:[];l.push(s),this.subscriptions.set(e,l),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),uh(this,"emit",(e,...n)=>{if(typeof e=="string"||typeof e=="number"){const r=this.subscriptions.get(e);r==null||r.forEach(i=>{i==null||i({params:hle(n),event:e})}),this.emitEffectCache.set(e,{params:hle(n),event:e})}else throw new TypeError("event must be string or number !")}),uh(this,"emitEffect",e=>{const n=this.emitEffectCache.get(e),r=this.subscriptions.get(e);n&&(r==null||r.forEach(i=>{i==null||i({...n})}))}),uh(this,"removeListener",e=>{this.subscriptions.delete(e)}),uh(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new jht;var Uht={exports:{}};/*!
  390. * screenfull
  391. * v5.2.0 - 2021-11-03
  392. * (c) Sindre Sorhus; MIT License
  393. */(function(t){(function(){var e=typeof window<"u"&&typeof window.document<"u"?window.document:{},n=t.exports,r=function(){for(var a,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,u=s.length,c={};l<u;l++)if(a=s[l],a&&a[1]in e){for(l=0;l<a.length;l++)c[s[0][l]]=a[l];return c}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(a,s){return new Promise((function(l,u){var c=(function(){this.off("change",c),l()}).bind(this);this.on("change",c),a=a||e.documentElement;var f=a[r.requestFullscreen](s);f instanceof Promise&&f.then(c).catch(u)}).bind(this))},exit:function(){return new Promise((function(a,s){if(!this.isFullscreen){a();return}var l=(function(){this.off("change",l),a()}).bind(this);this.on("change",l);var u=e[r.exitFullscreen]();u instanceof Promise&&u.then(l).catch(s)}).bind(this))},toggle:function(a,s){return this.isFullscreen?this.exit():this.request(a,s)},onchange:function(a){this.on("change",a)},onerror:function(a){this.on("error",a)},on:function(a,s){var l=i[a];l&&e.addEventListener(l,s,!1)},off:function(a,s){var l=i[a];l&&e.removeEventListener(l,s,!1)},raw:r};if(!r){n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(o,{isFullscreen:{get:function(){return!!e[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!e[r.fullscreenEnabled]}}}),n?t.exports=o:window.screenfull=o})()})(Uht);var Zht="__lodash_hash_undefined__";function Xht(t){return this.__data__.set(t,Zht),this}var Yht=Xht;function qht(t){return this.__data__.has(t)}var Kht=qht,Jht=Cse,ept=Yht,tpt=Kht;function Y4(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Jht;++e<n;)this.add(t[e])}Y4.prototype.add=Y4.prototype.push=ept,Y4.prototype.has=tpt;var ple=QC,gle=ple?ple.prototype:void 0;gle&&gle.valueOf;var npt=k4,rpt=jC;function ipt(t,e,n){(n!==void 0&&!rpt(t[e],n)||n===void 0&&!(e in t))&&npt(t,e,n)}var vle=ipt;function opt(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(n(o[l],l,o)===!1)break}return e}}var apt=opt,spt=apt,lpt=spt(),upt=lpt,cpt=eT,fpt=Ac;function dpt(t){return fpt(t)&&cpt(t)}var hpt=dpt,ppt=sv,gpt=W4,vpt=Ac,mpt="[object Object]",ypt=Function.prototype,bpt=Object.prototype,mle=ypt.toString,_pt=bpt.hasOwnProperty,Opt=mle.call(Object);function wpt(t){if(!vpt(t)||ppt(t)!=mpt)return!1;var e=gpt(t);if(e===null)return!0;var n=_pt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&mle.call(n)==Opt}var Spt=wpt;function xpt(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var yle=xpt,Cpt=Tb,Tpt=Pb;function Ppt(t){return Cpt(t,Tpt(t))}var $pt=Ppt,ble=vle,Apt=zse,Ept=rle,Mpt=Fse,Ipt=ole,_le=Ise,Ole=qC,Dpt=hpt,Rpt=N4,kpt=I4,Npt=ds,Lpt=Spt,Bpt=Lse,wle=yle,Vpt=$pt;function zpt(t,e,n,r,i,o,a){var s=wle(t,n),l=wle(e,n),u=a.get(l);if(u){ble(t,n,u);return}var c=o?o(s,l,n+"",t,e,a):void 0,f=c===void 0;if(f){var d=Ole(l),p=!d&&Rpt(l),g=!d&&!p&&Bpt(l);c=l,d||p||g?Ole(s)?c=s:Dpt(s)?c=Mpt(s):p?(f=!1,c=Apt(l,!0)):g?(f=!1,c=Ept(l,!0)):c=[]:Lpt(l)||_le(l)?(c=s,_le(s)?c=Vpt(s):(!Npt(s)||kpt(s))&&(c=Ipt(l))):f=!1}f&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),ble(t,n,c)}var Fpt=zpt,Wpt=Tse,Qpt=vle,Hpt=upt,Gpt=Fpt,jpt=ds,Upt=Pb,Zpt=yle;function Sle(t,e,n,r,i){t!==e&&Hpt(e,function(o,a){if(i||(i=new Wpt),jpt(o))Gpt(t,e,a,n,Sle,r,i);else{var s=r?r(Zpt(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),Qpt(t,a,s)}},Upt)}var Xpt=Sle;function Ypt(t){return t}var xle=Ypt;function qpt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Kpt=qpt,Jpt=Kpt,Cle=Math.max;function egt(t,e,n){return e=Cle(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Cle(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Jpt(t,this,s)}}var tgt=egt;function ngt(t){return function(){return t}}var rgt=ngt,igt=rgt,Tle=Pse,ogt=xle,agt=Tle?function(t,e){return Tle(t,"toString",{configurable:!0,enumerable:!1,value:igt(e),writable:!0})}:ogt,sgt=agt,lgt=800,ugt=16,cgt=Date.now;function fgt(t){var e=0,n=0;return function(){var r=cgt(),i=ugt-(r-n);if(n=r,i>0){if(++e>=lgt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var dgt=fgt,hgt=sgt,pgt=dgt,ggt=pgt(hgt),vgt=ggt,mgt=xle,ygt=tgt,bgt=vgt;function _gt(t,e){return bgt(ygt(t,e,mgt),t+"")}var Ogt=_gt,wgt=jC,Sgt=eT,xgt=Dse,Cgt=ds;function Tgt(t,e,n){if(!Cgt(n))return!1;var r=typeof e;return(r=="number"?Sgt(n)&&xgt(e,n.length):r=="string"&&e in n)?wgt(n[e],t):!1}var Pgt=Tgt,$gt=Ogt,Agt=Pgt;function Egt(t){return $gt(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&Agt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var Mgt=Egt,Igt=Xpt,Dgt=Mgt;Dgt(function(t,e,n){Igt(t,e,n)});const q4=t=>{var p,g,v;const e=t.dataSource||{},n=h.ref(),r=h.ref(),i=h.ref((p=e==null?void 0:e.data)==null?void 0:p.series),o=h.computed(()=>async()=>await fetch(t.dataSource.url,{method:t.dataSource.method}).then(m=>m.json())),{run:a,refresh:s,cancel:l,data:u,loading:c}=Qot(o.value,{defaultParams:t.dataSource.params,manual:!0,cacheKey:t.dataSource.url,cacheTime:(((g=t.dataSource)==null?void 0:g.refreshTime)||0)*1e3,pollingInterval:(((v=t.dataSource)==null?void 0:v.refreshTime)||0)*1e3,onError:m=>{console.error(m),Nf.error(t.dataSource.url+"请求失败")}});t.dataSource.sourceType===Kn.API&&a(),h.watch(()=>u.value,async m=>{if(m&&t.dataSource.sourceType===Kn.API){let y=m;t.dataSource.dataProcess&&(y=await rit(t.dataSource.dataProcess,JSON.stringify(m))),n.value=y.xAxis||y.xData?{data:y.xData}:n.value,r.value=y.yAxis||y.yData?{data:y.yData}:r.value,i.value=y.series}},{deep:!0}),h.watch(()=>[t.dataSource.sourceType,t.dataSource.method,t.dataSource.data],()=>{if(t.dataSource.sourceType===Kn.API&&s(),t.dataSource.sourceType===Kn.STATIC){l();const m=t.dataSource||{},{xData:y,yData:b,series:O}=(m==null?void 0:m.data)||{};y&&(n.value={data:y}),b&&(r.value={data:b}),i.value=O}if([Kn.BASIC_PATH,Kn.VIEW_CODE].includes(t.dataSource.sourceType)){const m=t.dataSource||{},y={viewCode:m.viewCode,basicPath:m.basicPath,items:"",filter:"",key:"",isOne:""};window.mabp.$doLoadComponentData(y).then(function(b){i.value=b.data})}},{deep:!0});const f=m=>{var S,x,T,$;let y=34,b=20,O=30,w=20;return!Array.isArray(m.title)&&((S=m.title)!=null&&S.show)&&(w+=20),!Array.isArray(m.legend)&&((x=m.legend)!=null&&x.show)&&(m.legend.left==="center"&&m.legend.top!=="auto"&&(w+=20),m.legend.left==="center"&&m.legend.bottom!=="auto"&&(y+=20),m.legend.top==="center"&&m.legend.left!=="auto"&&(O+=70),m.legend.top==="center"&&m.legend.right!=="auto"&&(b+=50)),!Array.isArray(m.xAxis)&&((T=m.xAxis)!=null&&T.name)&&(y+=20),!Array.isArray(m.yAxis)&&(($=m.yAxis)!=null&&$.name)&&(O+=20),{bottom:y,left:O,right:b,top:w}};return{options:h.computed(()=>{var O,w;const m=yV(t,["width","height","dataSource"]);!Array.isArray(m.title)&&!((O=m.title)!=null&&O.show)&&!Array.isArray(m.legend)&&m.legend&&(m.legend.top=12);const y=(m==null?void 0:m.label)||{},b=gV({xAxis:n.value,yAxis:r.value,series:(w=i.value)==null?void 0:w.map(S=>{const x=m.seriesExtend||{};return{...y,...S,...x}}),grid:f(m)},m);return console.log("option result:",b),b}),loading:c}},Rgt=h.defineComponent({name:"DBasicLine",components:{Charts:x4},props:zC,setup(t){const{options:e,loading:n}=q4(t);return{options:e,loading:n}}});function kgt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const ch=Mr(Rgt,[["render",kgt]]);class en{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=hv(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),nl.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=hv(this,e,n);let r=[];return this.decompose(e,n,r,0),nl.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new $b(this),o=new $b(e);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(e=1){return new $b(this,e)}iterRange(e,n=this.length){return new $le(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Ale(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?en.empty:e.length<=32?new nr(e):nl.from(nr.split(e,[]))}}class nr extends en{constructor(e,n=Ngt(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=e)return new Lgt(i,s,r,a);i=s+1,r++}}decompose(e,n,r,i){let o=e<=0&&n>=this.length?this:new nr(Ple(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let a=r.pop(),s=rT(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new nr(s,a.length+o.length));else{let l=s.length>>1;r.push(new nr(s.slice(0,l)),new nr(s.slice(l)))}}else r.push(o)}replace(e,n,r){if(!(r instanceof nr))return super.replace(e,n,r);[e,n]=hv(this,e,n);let i=rT(this.text,rT(r.text,Ple(this.text,0,e)),n),o=this.length+r.length-(n-e);return i.length<=32?new nr(i,o):nl.from(nr.split(i,[]),o)}sliceString(e,n=this.length,r=`
  394. `){[e,n]=hv(this,e,n);let i="";for(let o=0,a=0;o<=n&&a<this.text.length;a++){let s=this.text[a],l=o+s.length;o>e&&a&&(i+=r),e<l&&n>o&&(i+=s.slice(Math.max(0,e-o),n-o)),o=l+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let o of e)r.push(o),i+=o.length+1,r.length==32&&(n.push(new nr(r,i)),r=[],i=-1);return i>-1&&n.push(new nr(r,i)),n}}class nl extends en{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=e)return a.lineInner(e,n,r,i);i=s+1,r=l+1}}decompose(e,n,r,i){for(let o=0,a=0;a<=n&&o<this.children.length;o++){let s=this.children[o],l=a+s.length;if(e<=l&&n>=a){let u=i&((a<=e?1:0)|(l>=n?2:0));a>=e&&l<=n&&!u?r.push(s):s.decompose(e-a,n-a,r,u)}a=l+1}}replace(e,n,r){if([e,n]=hv(this,e,n),r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(e>=o&&n<=s){let l=a.replace(e-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new nl(c,this.length-(n-e)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
  395. `){[e,n]=hv(this,e,n);let i="";for(let o=0,a=0;o<this.children.length&&a<=n;o++){let s=this.children[o],l=a+s.length;a>e&&o&&(i+=r),e<l&&n>a&&(i+=s.sliceString(e-a,n-a,r)),a=l+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof nl))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=e.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let p of e)r+=p.lines;if(r<32){let p=[];for(let g of e)g.flatten(p);return new nr(p,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function f(p){let g;if(p.lines>o&&p instanceof nl)for(let v of p.children)f(v);else p.lines>a&&(l>a||!l)?(d(),s.push(p)):p instanceof nr&&l&&(g=c[c.length-1])instanceof nr&&p.lines+g.lines<=32?(l+=p.lines,u+=p.length+1,c[c.length-1]=new nr(g.text.concat(p.text),g.length+1+p.length)):(l+p.lines>i&&d(),l+=p.lines,u+=p.length+1,c.push(p))}function d(){l!=0&&(s.push(c.length==1?c[0]:nl.from(c,u)),u=-1,l=c.length=0)}for(let p of e)f(p);return d(),s.length==1?s[0]:new nl(s,n)}}en.empty=new nr([""],0);function Ngt(t){let e=-1;for(let n of t)e+=n.length+1;return e}function rT(t,e,n=0,r=1e9){for(let i=0,o=0,a=!0;o<t.length&&i<=r;o++){let s=t[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(e[e.length-1]+=s,a=!1):e.push(s)),i=l+1}return e}function Ple(t,e,n){return rT(t,[""],e,n)}class $b{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof nr?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,s=i instanceof nr?i.text.length:i.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
  396. `,this;e--}else if(i instanceof nr){let l=i.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=i.children[a+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof nr?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class $le{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new $b(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ale{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(en.prototype[Symbol.iterator]=function(){return this.iter()},$b.prototype[Symbol.iterator]=$le.prototype[Symbol.iterator]=Ale.prototype[Symbol.iterator]=function(){return this});class Lgt{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function hv(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let pv="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;t<pv.length;t++)pv[t]+=pv[t-1];function Bgt(t){for(let e=1;e<pv.length;e+=2)if(pv[e]>t)return pv[e-1]<=t;return!1}function Ele(t){return t>=127462&&t<=127487}const Mle=8205;function Ur(t,e,n=!0,r=!0){return(n?Ile:Vgt)(t,e,r)}function Ile(t,e,n){if(e==t.length)return e;e&&Dle(t.charCodeAt(e))&&Rle(t.charCodeAt(e-1))&&e--;let r=Zr(t,e);for(e+=xa(r);e<t.length;){let i=Zr(t,e);if(r==Mle||i==Mle||n&&Bgt(i))e+=xa(i),r=i;else if(Ele(i)){let o=0,a=e-2;for(;a>=0&&Ele(Zr(t,a));)o++,a-=2;if(o%2==0)break;e+=2}else break}return e}function Vgt(t,e,n){for(;e>0;){let r=Ile(t,e-2,n);if(r<e)return r;e--}return 0}function Dle(t){return t>=56320&&t<57344}function Rle(t){return t>=55296&&t<56320}function Zr(t,e){let n=t.charCodeAt(e);if(!Rle(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return Dle(r)?(n-55296<<10)+(r-56320)+65536:n}function K4(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function xa(t){return t<65536?1:2}const J4=/\r\n?|\n/;var Xr=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Xr||(Xr={}));class rl{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,i=0;n<this.sections.length;){let o=this.sections[n++],a=this.sections[n++];a<0?(e(r,i,o),i+=o):i+=a,r+=o}}iterChangedRanges(e,n=!1){e8(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?e.push(r,i):e.push(i,r)}return new rl(e)}composeDesc(e){return this.empty?e:e.empty?this:kle(this,e)}mapDesc(e,n=!1){return e.empty?this:t8(this,e,n)}mapPos(e,n=-1,r=Xr.Simple){let i=0,o=0;for(let a=0;a<this.sections.length;){let s=this.sections[a++],l=this.sections[a++],u=i+s;if(l<0){if(u>e)return o+(e-i);o+=s}else{if(r!=Xr.Simple&&u>=e&&(r==Xr.TrackDel&&i<e&&u>e||r==Xr.TrackBefore&&i<e||r==Xr.TrackAfter&&u>e))return null;if(u>e||u==e&&n<0&&!s)return e==i||n<0?o:o+l;o+=l}i=u}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return o}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let o=this.sections[r++],a=this.sections[r++],s=i+o;if(a>=0&&i<=n&&s>=e)return i<e&&s>n?"cover":!0;i=s}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];e+=(e?" ":"")+r+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new rl(e)}static create(e){return new rl(e)}}class xr extends rl{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return e8(this,(n,r,i,o,a)=>e=e.replace(i,i+(r-n),a),!1),e}mapDesc(e,n=!1){return t8(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,o=0;i<n.length;i+=2){let a=n[i],s=n[i+1];if(s>=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length<l;)r.push(en.empty);r.push(a?e.slice(o,o+a):en.empty)}o+=a}return new xr(n,r)}compose(e){return this.empty?e:e.empty?this:kle(this,e,!0)}map(e,n=!1){return e.empty?this:t8(this,e,n,!0)}iterChanges(e,n=!1){e8(this,e,n)}get desc(){return rl.create(this.sections)}filter(e){let n=[],r=[],i=[],o=new Ab(this);e:for(let a=0,s=0;;){let l=a==e.length?1e9:e[a++];for(;s<l||s==l&&o.len==0;){if(o.done)break e;let c=Math.min(o.len,l-s);fi(i,c,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;fi(n,c,f),f>0&&Ec(r,n,o.text),o.forward(c),s+=c}let u=e[a++];for(;s<u;){if(o.done)break e;let c=Math.min(o.len,u-s);fi(n,c,-1),fi(i,c,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(c),s+=c}}return{changes:new xr(n,r),filtered:rl.create(i)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;a<n&&fi(i,n-a,-1);let f=new xr(i,o);s=s?s.compose(f.map(s)):f,i=[],o=[],a=0}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof xr){if(c.length!=n)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);l(),s=s?s.compose(c.map(s)):c}else{let{from:f,to:d=f,insert:p}=c;if(f>d||f<0||d>n)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);let g=p?typeof p=="string"?en.of(p.split(r||J4)):p:en.empty,v=g.length;if(f==d&&v==0)return;f<a&&l(),f>a&&fi(i,f-a,-1),fi(i,d-f,v),Ec(o,i,g),a=d}}return u(e),l(!s),s}static empty(e){return new xr(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<e.length;i++){let o=e[i];if(typeof o=="number")n.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((a,s)=>s&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;r.length<i;)r.push(en.empty);r[i]=en.of(o.slice(1)),n.push(o[0],r[i].length)}}}return new xr(n,r)}static createSet(e,n){return new xr(e,n)}}function fi(t,e,n,r=!1){if(e==0&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function Ec(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(en.empty);t.push(n)}}function e8(t,e,n){let r=t.inserted;for(let i=0,o=0,a=0;a<t.sections.length;){let s=t.sections[a++],l=t.sections[a++];if(l<0)i+=s,o+=s;else{let u=i,c=o,f=en.empty;for(;u+=s,c+=l,l&&r&&(f=f.append(r[a-2>>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)s=t.sections[a++],l=t.sections[a++];e(i,u,o,c,f),i=u,o=c}}}function t8(t,e,n,r=!1){let i=[],o=r?[]:null,a=new Ab(t),s=new Ab(e);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);fi(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len<a.len||s.len==a.len&&!n))){let u=s.len;for(fi(i,s.ins,-1);u;){let c=Math.min(a.len,u);a.ins>=0&&l<a.i&&a.len<=c&&(fi(i,0,a.ins),o&&Ec(o,i,a.text),l=a.i),a.forward(c),u-=c}s.next()}else if(a.ins>=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let f=Math.min(c,s.len);u+=f,c-=f,s.forward(f)}else if(s.ins==0&&s.len<c)c-=s.len,s.next();else break;fi(i,u,l<a.i?a.ins:0),o&&l<a.i&&Ec(o,i,a.text),l=a.i,a.forward(a.len-c)}else{if(a.done&&s.done)return o?xr.createSet(i,o):rl.create(i);throw new Error("Mismatched change set lengths")}}function kle(t,e,n=!1){let r=[],i=n?[]:null,o=new Ab(t),a=new Ab(e);for(let s=!1;;){if(o.done&&a.done)return i?xr.createSet(r,i):rl.create(r);if(o.ins==0)fi(r,o.len,0,s),o.next();else if(a.len==0&&!a.done)fi(r,0,a.ins,s),i&&Ec(i,r,a.text),a.next();else{if(o.done||a.done)throw new Error("Mismatched change set lengths");{let l=Math.min(o.len2,a.len),u=r.length;if(o.ins==-1){let c=a.ins==-1?-1:a.off?0:a.ins;fi(r,l,c,s),i&&c&&Ec(i,r,a.text)}else a.ins==-1?(fi(r,o.off?0:o.len,l,s),i&&Ec(i,r,o.textBit(l))):(fi(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&Ec(i,r,a.text));s=(o.ins>l||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Ab{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?en.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?en.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class fh{constructor(e,n,r){this.from=e,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new fh(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Ce.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Ce.range(this.anchor,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ce.range(e.anchor,e.head)}static create(e,n,r){return new fh(e,n,r)}}class Ce{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Ce.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Ce([this.main],0)}addRange(e,n=!0){return Ce.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,Ce.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ce(e.ranges.map(n=>fh.fromJSON(n)),e.main)}static single(e,n=e){return new Ce([Ce.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let o=e[i];if(o.empty?o.from<=r:o.from<r)return Ce.normalized(e.slice(),n);r=o.to}return new Ce(e,n)}static cursor(e,n=0,r,i){return fh.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(e,n,r,i){let o=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?fh.create(n,e,48|o):fh.create(e,n,(n>e?8:0)|o)}static normalized(e,n=0){let r=e[n];e.sort((i,o)=>i.from-o.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let o=e[i],a=e[i-1];if(o.empty?o.from<=a.to:o.from<a.to){let s=a.from,l=Math.max(o.to,a.to);i<=n&&n--,e.splice(--i,2,o.anchor>o.head?Ce.range(l,s):Ce.range(s,l))}}return new Ce(e,n)}}function Nle(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let n8=0;class Ye{constructor(e,n,r,i,o){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=n8++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new Ye(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:r8),!!e.static,e.enables)}of(e){return new iT([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new iT(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new iT(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function r8(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class iT{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=n8++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=e[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=e[f.id])!==null&&n!==void 0?n:1)&1||c.push(e[f.id]);return{create(f){return f.values[a]=r(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||i8(f,c)){let p=r(f);if(s?!Lle(p,f.values[a],i):!i(p,f.values[a]))return f.values[a]=p,1}return 0},reconfigure:(f,d)=>{let p,g=d.config.address[o];if(g!=null){let v=aT(d,g);if(this.dependencies.every(m=>m instanceof Ye?d.facet(m)===f.facet(m):m instanceof kr?d.field(m,!1)==f.field(m,!1):!0)||(s?Lle(p=r(f),v,i):i(p=r(f),v)))return f.values[a]=v,0}else p=r(f);return f.values[a]=p,1}}}}function Lle(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function i8(t,e){let n=!1;for(let r of e)Ib(t,r)&1&&(n=!0);return n}function zgt(t,e,n){let r=n.map(l=>t[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=t[e.id]>>1;function s(l){let u=[];for(let c=0;c<r.length;c++){let f=aT(l,r[c]);if(i[c]==2)for(let d of f)u.push(d);else u.push(f)}return e.combine(u)}return{create(l){for(let u of r)Ib(l,u);return l.values[a]=s(l),1},update(l,u){if(!i8(l,o))return 0;let c=s(l);return e.compare(c,l.values[a])?0:(l.values[a]=c,1)},reconfigure(l,u){let c=i8(l,r),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&r8(n,f))return l.values[a]=d,0;let p=s(l);return e.compare(p,d)?(l.values[a]=d,0):(l.values[a]=p,1)}}}const Ble=Ye.define({static:!0});class kr{constructor(e,n,r,i,o){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}static define(e){let n=new kr(n8++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(Ble).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(e){return[this,Ble.of({field:this,create:e})]}get extension(){return this}}const dh={lowest:4,low:3,default:2,high:1,highest:0};function Eb(t){return e=>new Vle(e,t)}const Mc={highest:Eb(dh.highest),high:Eb(dh.high),default:Eb(dh.default),low:Eb(dh.low),lowest:Eb(dh.lowest)};class Vle{constructor(e,n){this.inner=e,this.prec=n}}class Mb{of(e){return new o8(this,e)}reconfigure(e){return Mb.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class o8{constructor(e,n){this.compartment=e,this.inner=n}}class oT{constructor(e,n,r,i,o,a){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let i=[],o=Object.create(null),a=new Map;for(let d of Fgt(e,n,a))d instanceof kr?i.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let s=Object.create(null),l=[],u=[];for(let d of i)s[d.id]=u.length<<1,u.push(p=>d.slot(p));let c=r==null?void 0:r.config.facets;for(let d in o){let p=o[d],g=p[0].facet,v=c&&c[d]||[];if(p.every(m=>m.type==0))if(s[g.id]=l.length<<1|1,r8(v,p))l.push(r.facet(g));else{let m=g.combine(p.map(y=>y.value));l.push(r&&g.compare(m,r.facet(g))?r.facet(g):m)}else{for(let m of p)m.type==0?(s[m.id]=l.length<<1|1,l.push(m.value)):(s[m.id]=u.length<<1,u.push(y=>m.dynamicSlot(y)));s[g.id]=u.length<<1,u.push(m=>zgt(m,g,p))}}let f=u.map(d=>d(s));return new oT(e,a,f,s,l,o)}}function Fgt(t,e,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof o8&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof o8){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof Vle)o(a.inner,a.prec);else if(a instanceof kr)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof iT)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,dh.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(t,dh.default),r.reduce((a,s)=>a.concat(s))}function Ib(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function aT(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const zle=Ye.define(),a8=Ye.define({combine:t=>t.some(e=>e),static:!0}),Fle=Ye.define({combine:t=>t.length?t[0]:void 0,static:!0}),Wle=Ye.define(),Qle=Ye.define(),Hle=Ye.define(),Gle=Ye.define({combine:t=>t.length?t[0]:!1});class au{constructor(e,n){this.type=e,this.value=n}static define(){return new Wgt}}class Wgt{of(e){return new au(this,e)}}class Qgt{constructor(e){this.map=e}of(e){return new Ot(this,e)}}class Ot{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Ot(this.type,n)}is(e){return this.type==e}static define(e={}){return new Qgt(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let o=i.map(n);o&&r.push(o)}return r}}Ot.reconfigure=Ot.define(),Ot.appendConfig=Ot.define();class fr{constructor(e,n,r,i,o,a){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&Nle(r,n.newLength),o.some(s=>s.type==fr.time)||(this.annotations=o.concat(fr.time.of(Date.now())))}static create(e,n,r,i,o,a){return new fr(e,n,r,i,o,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(fr.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}fr.time=au.define(),fr.userEvent=au.define(),fr.addToHistory=au.define(),fr.remote=au.define();function Hgt(t,e){let n=[];for(let r=0,i=0;;){let o,a;if(r<t.length&&(i==e.length||e[i]>=t[r]))o=t[r++],a=t[r++];else if(i<e.length)o=e[i++],a=e[i++];else return n;!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function jle(t,e,n){var r;let i,o,a;return n?(i=e.changes,o=xr.empty(e.changes.length),a=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),o=t.changes.mapDesc(e.changes,!0),a=t.changes.compose(i)),{changes:a,selection:e.selection?e.selection.map(o):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:Ot.mapEffects(t.effects,i).concat(Ot.mapEffects(e.effects,o)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function s8(t,e,n){let r=e.selection,i=gv(e.annotations);return e.userEvent&&(i=i.concat(fr.userEvent.of(e.userEvent))),{changes:e.changes instanceof xr?e.changes:xr.of(e.changes||[],n,t.facet(Fle)),selection:r&&(r instanceof Ce?r:Ce.single(r.anchor,r.head)),effects:gv(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function Ule(t,e,n){let r=s8(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(n=!1);let a=!!e[o].sequential;r=jle(r,s8(t,e[o],a?r.changes.newLength:t.doc.length),a)}let i=fr.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return jgt(n?Ggt(i):i)}function Ggt(t){let e=t.startState,n=!0;for(let i of e.facet(Wle)){let o=i(t);if(o===!1){n=!1;break}Array.isArray(o)&&(n=n===!0?o:Hgt(n,o))}if(n!==!0){let i,o;if(n===!1)o=t.changes.invertedDesc,i=xr.empty(e.doc.length);else{let a=t.changes.filter(n);i=a.changes,o=a.filtered.mapDesc(a.changes).invertedDesc}t=fr.create(e,i,t.selection&&t.selection.map(o),Ot.mapEffects(t.effects,o),t.annotations,t.scrollIntoView)}let r=e.facet(Qle);for(let i=r.length-1;i>=0;i--){let o=r[i](t);o instanceof fr?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof fr?t=o[0]:t=Ule(e,gv(o),!1)}return t}function jgt(t){let e=t.startState,n=e.facet(Hle),r=t;for(let i=n.length-1;i>=0;i--){let o=n[i](t);o&&Object.keys(o).length&&(r=jle(r,s8(e,o,t.changes.newLength),!0))}return r==t?t:fr.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const Ugt=[];function gv(t){return t==null?Ugt:Array.isArray(t)?t:[t]}var Bn=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Bn||(Bn={}));const Zgt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let l8;try{l8=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Xgt(t){if(l8)return l8.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Zgt.test(n)))return!0}return!1}function Ygt(t){return e=>{if(!/\S/.test(e))return Bn.Space;if(Xgt(e))return Bn.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Bn.Word;return Bn.Other}}class Gt{constructor(e,n,r,i,o,a){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Ib(this,s<<1);this.computeSlot=null}field(e,n=!0){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return Ib(this,r),aT(this,r)}update(...e){return Ule(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let s of e.effects)s.is(Mb.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,u)=>i.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(Ot.reconfigure)?(n=null,r=s.value):s.is(Ot.appendConfig)&&(n=null,r=gv(r).concat(s.value));let o;n?o=e.startState.values.slice():(n=oT.resolve(r,i,this),o=new Gt(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=e.startState.facet(a8)?e.newSelection:e.newSelection.asSingle();new Gt(n,e.newDoc,a,o,(s,l)=>l.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Ce.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=gv(r.effects);for(let s=1;s<n.ranges.length;s++){let l=e(n.ranges[s]),u=this.changes(l.changes),c=u.map(i);for(let d=0;d<s;d++)o[d]=o[d].map(c);let f=i.mapDesc(u,!0);o.push(l.range.map(f)),i=i.compose(c),a=Ot.mapEffects(a,c).concat(Ot.mapEffects(gv(l.effects),f))}return{changes:i,selection:Ce.create(o,n.mainIndex),effects:a}}changes(e=[]){return e instanceof xr?e:xr.of(e,this.doc.length,this.facet(Gt.lineSeparator))}toText(e){return en.of(e.split(this.facet(Gt.lineSeparator)||J4))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(Ib(this,n),aT(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof kr&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(e[r]),this))}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let o in r)if(Object.prototype.hasOwnProperty.call(e,o)){let a=r[o],s=e[o];i.push(a.init(l=>a.spec.fromJSON(s,l)))}}return Gt.create({doc:e.doc,selection:Ce.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=oT.resolve(e.extensions||[],new Map),r=e.doc instanceof en?e.doc:en.of((e.doc||"").split(n.staticFacet(Gt.lineSeparator)||J4)),i=e.selection?e.selection instanceof Ce?e.selection:Ce.single(e.selection.anchor,e.selection.head):Ce.single(0);return Nle(i,r.length),n.staticFacet(a8)||(i=i.asSingle()),new Gt(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(Gt.tabSize)}get lineBreak(){return this.facet(Gt.lineSeparator)||`
  397. `}get readOnly(){return this.facet(Gle)}phrase(e,...n){for(let r of this.facet(Gt.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let o=+(i||1);return!o||o>n.length?r:n[o-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let o of this.facet(zle))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,e)&&i.push(a[e]);return i}charCategorizer(e){return Ygt(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),o=this.charCategorizer(e),a=e-r,s=e-r;for(;a>0;){let l=Ur(n,a,!1);if(o(n.slice(l,a))!=Bn.Word)break;a=l}for(;s<i;){let l=Ur(n,s);if(o(n.slice(s,l))!=Bn.Word)break;s=l}return a==s?null:Ce.range(a+r,s+r)}}Gt.allowMultipleSelections=a8,Gt.tabSize=Ye.define({combine:t=>t.length?t[0]:4}),Gt.lineSeparator=Fle,Gt.readOnly=Gle,Gt.phrases=Ye.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}}),Gt.languageData=zle,Gt.changeFilter=Wle,Gt.transactionFilter=Qle,Gt.transactionExtender=Hle,Mb.reconfigure=Ot.define();function il(t,e,n={}){let r={};for(let i of t)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class hh{eq(e){return this==e}range(e,n=e){return u8.create(e,n,this)}}hh.prototype.startSide=hh.prototype.endSide=0,hh.prototype.point=!1,hh.prototype.mapMode=Xr.TrackDel;let u8=class Kve{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new Kve(e,n,r)}};function c8(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class f8{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(e,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);o<a;o++)if(i(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,n){let r=[],i=[],o=[],a=-1,s=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],c=this.from[l]+e,f=this.to[l]+e,d,p;if(c==f){let g=n.mapPos(c,u.startSide,u.mapMode);if(g==null||(d=p=g,u.startSide!=u.endSide&&(p=n.mapPos(c,u.endSide),p<d)))continue}else if(d=n.mapPos(c,u.startSide),p=n.mapPos(f,u.endSide),d>p||d==p&&u.startSide>0&&u.endSide<=0)continue;(p-d||u.endSide-u.startSide)<0||(a<0&&(a=d),u.point&&(s=Math.max(s,p-d)),r.push(u),i.push(d-a),o.push(p-a))}return{mapped:r.length?new f8(i,o,r,s):null,pos:a}}}class tn{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(e,n,r,i){return new tn(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=e,a=e.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(c8)),this.isEmpty)return n.length?tn.of(n):this;let s=new Xle(this,null,-1).goto(0),l=0,u=[],c=new Ic;for(;s.value||l<n.length;)if(l<n.length&&(s.from-n[l].from||s.startSide-n[l].value.startSide)>=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(s.chunkIndex)<n[l].from)&&(!a||i>this.chunkEnd(s.chunkIndex)||o<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||i>s.to||o<s.from||a(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||u.push(u8.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?tn.empty:this.nextLayer.update({add:u,filter:a,filterFrom:i,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let a=0;a<this.chunk.length;a++){let s=this.chunkPos[a],l=this.chunk[a],u=e.touchesRange(s,s+l.length);if(u===!1)i=Math.max(i,l.maxPoint),n.push(l),r.push(e.mapPos(s));else if(u===!0){let{mapped:c,pos:f}=l.map(s,e);c&&(i=Math.max(i,c.maxPoint),n.push(c),r.push(f))}}let o=this.nextLayer.map(e);return n.length==0?o:new tn(r,n,o||tn.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],a=this.chunk[i];if(n>=o&&e<=o+a.length&&a.between(o,e-o,n-o,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return Db.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Db.from(e).goto(n)}static compare(e,n,r,i,o=-1){let a=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=Zle(a,s,r),u=new Rb(a,l,o),c=new Rb(s,l,o);r.iterGaps((f,d,p)=>Yle(u,f,c,d,p,i)),r.empty&&r.length==0&&Yle(u,0,c,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let o=e.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=Zle(o,a),l=new Rb(o,s,0).goto(r),u=new Rb(a,s,0).goto(r);for(;;){if(l.to!=u.to||!h8(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(e,n,r,i,o=-1){let a=new Rb(e,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),f=a.pointFrom<n?c.length+1:a.point.startSide<0?c.length:Math.min(c.length,l);i.point(s,u,a.point,c,f,a.pointRank),l=Math.min(a.openEnd(u),c.length)}else u>s&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(e,n=!1){let r=new Ic;for(let i of e instanceof u8?[e]:n?qgt(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return tn.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=tn.empty;i=i.nextLayer)n=new tn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}tn.empty=new tn([],[],null,-1);function qgt(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(c8(e,r)>0)return t.slice().sort(c8);e=r}return t}tn.empty.nextLayer=tn.empty;class Ic{finishChunk(e){this.chunks.push(new f8(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new Ic)).add(e,n,r)}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(tn.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=tn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function Zle(t,e,n){let r=new Map;for(let o of t)for(let a=0;a<o.chunk.length;a++)o.chunk[a].maxPoint<=0&&r.set(o.chunk[a],o.chunkPos[a]);let i=new Set;for(let o of e)for(let a=0;a<o.chunk.length;a++){let s=r.get(o.chunk[a]);s!=null&&(n?n.mapPos(s):s)==o.chunkPos[a]&&!(n!=null&&n.touchesRange(s,s+o.chunk[a].length))&&i.add(o.chunk[a])}return i}class Xle{constructor(e,n,r,i=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Db{constructor(e){this.heap=e}static from(e,n=null,r=-1){let i=[];for(let o=0;o<e.length;o++)for(let a=e[o];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&i.push(new Xle(a,n,r,o));return i.length==1?i[0]:new Db(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)d8(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)d8(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),d8(this.heap,0)}}}function d8(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class Rb{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Db.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){sT(this.active,e),sT(this.activeTo,e),sT(this.activeRank,e),this.minActive=qle(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n<this.activeRank.length&&(o-this.activeRank[n]||i-this.activeTo[n])>0;)n++;lT(this.active,n,r),lT(this.activeTo,n,i),lT(this.activeRank,n,o),e&&lT(e,n,this.cursor.from),this.minActive=qle(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&sT(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function Yle(t,e,n,r,i,o){t.goto(e),n.goto(r);let a=r+i,s=r,l=r-e;for(;;){let u=t.to+l-n.to||t.endSide-n.endSide,c=u<0?t.to+l:n.to,f=Math.min(c,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&h8(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(s,f,t.point,n.point):f>s&&!h8(t.active,n.active)&&o.compareRange(s,f,t.active,n.active),c>a)break;s=c,u<=0&&t.next(),u>=0&&n.next()}}function h8(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function sT(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function lT(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function qle(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function vv(t,e,n=t.length){let r=0;for(let i=0;i<n;)t.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=Ur(t,i));return r}function p8(t,e,n,r){for(let i=0,o=0;;){if(o>=e)return i;if(i==t.length)break;o+=t.charCodeAt(i)==9?n-o%n:1,i=Ur(t,i)}return r===!0?-1:t.length}const g8="ͼ",Kle=typeof Symbol>"u"?"__"+g8:Symbol.for(g8),v8=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Jle=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Dc{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],f=/^@(\w+)\b/.exec(a[0]),d=f&&f[1]=="keyframes";if(f&&s==null)return l.push(a[0]+";");for(let p in s){let g=s[p];if(/&/.test(p))o(p.split(/,\s*/).map(v=>a.map(m=>v.replace(/&/,m))).reduce((v,m)=>v.concat(m)),g,l);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(i(p),g,c,d)}else g!=null&&c.push(p.replace(/_.*/,"").replace(/[A-Z]/g,v=>"-"+v.toLowerCase())+": "+g+";")}(c.length||d)&&l.push((r&&!f&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)o(i(a),e[a],this.rules)}getRules(){return this.rules.join(`
  398. `)}static newName(){let e=Jle[Kle]||1;return Jle[Kle]=e+1,g8+e.toString(36)}static mount(e,n,r){let i=e[v8],o=r&&r.nonce;i?o&&i.setNonce(o):i=new Kgt(e,o),i.mount(Array.isArray(n)?n:[n],e)}}let eue=new Map;class Kgt{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let o=eue.get(r);if(o)return e[v8]=o;this.sheet=new i.CSSStyleSheet,eue.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[v8]=this}mount(e,n){let r=this.sheet,i=0,o=0;for(let a=0;a<e.length;a++){let s=e[a],l=this.modules.indexOf(s);if(l<o&&l>-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,s),r)for(let u=0;u<s.rules.length;u++)r.insertRule(s.rules[u],i++)}else{for(;o<l;)i+=this.modules[o++].rules.length;i+=s.rules.length,o++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let a="";for(let l=0;l<this.modules.length;l++)a+=this.modules[l].getRules()+`
  399. `;this.styleTag.textContent=a;let s=n.head||n;this.styleTag.parentNode!=s&&s.insertBefore(this.styleTag,s.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var Rc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},kb={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Jgt=typeof navigator<"u"&&/Mac/.test(navigator.platform),evt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Yr=0;Yr<10;Yr++)Rc[48+Yr]=Rc[96+Yr]=String(Yr);for(var Yr=1;Yr<=24;Yr++)Rc[Yr+111]="F"+Yr;for(var Yr=65;Yr<=90;Yr++)Rc[Yr]=String.fromCharCode(Yr+32),kb[Yr]=String.fromCharCode(Yr);for(var m8 in Rc)kb.hasOwnProperty(m8)||(kb[m8]=Rc[m8]);function tvt(t){var e=Jgt&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||evt&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?kb:Rc)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Nb(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function y8(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function nvt(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function uT(t,e){if(!e.anchorNode)return!1;try{return y8(t,e.anchorNode)}catch{return!1}}function mv(t){return t.nodeType==3?gh(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Lb(t,e,n,r){return n?tue(t,e,n,r,-1)||tue(t,e,n,r,1):!1}function ph(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function cT(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function tue(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:su(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=ph(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?su(t):0}else return!1}}function su(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function fT(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function rvt(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function nue(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function ivt(t,e,n,r,i,o,a,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(c.nodeType==1){let d,p=c==l.body,g=1,v=1;if(p)d=rvt(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:g,scaleY:v}=nue(c,b)),d={left:b.left,right:b.left+c.clientWidth*g,top:b.top,bottom:b.top+c.clientHeight*v}}let m=0,y=0;if(i=="nearest")e.top<d.top?(y=-(d.top-e.top+a),n>0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+y+a)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+a,n<0&&e.top-y<d.top&&(y=-(d.top+y-e.top+a)));else{let b=e.bottom-e.top,O=d.bottom-d.top;y=(i=="center"&&b<=O?e.top+b/2-O/2:i=="start"||i=="center"&&n<0?e.top-a:e.bottom-O+a)-d.top}if(r=="nearest"?e.left<d.left?(m=-(d.left-e.left+o),n>0&&e.right>d.right+m&&(m=e.right-d.right+m+o)):e.right>d.right&&(m=e.right-d.right+o,n<0&&e.left<d.left+m&&(m=-(d.left+m-e.left+o))):m=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==s?e.left-o:e.right-(d.right-d.left)+o)-d.left,m||y)if(p)u.scrollBy(m,y);else{let b=0,O=0;if(y){let w=c.scrollTop;c.scrollTop+=y/v,O=(c.scrollTop-w)*v}if(m){let w=c.scrollLeft;c.scrollLeft+=m/g,b=(c.scrollLeft-w)*g}e={left:e.left-b,top:e.top-O,right:e.right-b,bottom:e.bottom-O},b&&Math.abs(b-m)<1&&(r="nearest"),O&&Math.abs(O-y)<1&&(i="nearest")}if(p)break;c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function ovt(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class avt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?su(n):0),r,Math.min(e.focusOffset,r?su(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let yv=null;function rue(t){if(t.setActive)return t.setActive();if(yv)return t.focus(yv);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(yv==null?{get preventScroll(){return yv={preventScroll:!0},!0}}:void 0),!yv){yv=!1;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],o=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=o&&(r.scrollLeft=o)}}}let iue;function gh(t,e,n=e){let r=iue||(iue=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function bv(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,t.dispatchEvent(o);let a=new KeyboardEvent("keyup",i);return a.synthetic=!0,t.dispatchEvent(a),o.defaultPrevented||a.defaultPrevented}function svt(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function oue(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function lvt(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,su(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=su(n))}else{if(n==t)return!0;r=ph(n),n=n.parentNode}}function aue(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function sue(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=su(n)}else if(n.parentNode&&!cT(n))r=ph(n),n=n.parentNode;else return null}}function lue(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r<n.nodeValue.length)return{node:n,offset:r};if(n.nodeType==1&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!cT(n))r=ph(n)+1,n=n.parentNode;else return null}}class di{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new di(e.parentNode,ph(e),n)}static after(e,n){return new di(e.parentNode,ph(e)+1,n)}}const b8=[];class _n{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let r=this.dom,i=null,o;for(let a of this.children){if(a.flags&7){if(!a.dom&&(o=i?i.nextSibling:r.firstChild)){let s=_n.get(o);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(o)}a.sync(e,n),a.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;o&&o!=a.dom;)o=uue(o);else r.insertBefore(a.dom,o);i=a.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=uue(o)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(e,n),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let r;if(e==this.dom)r=this.dom.childNodes[n];else{let i=su(e)==0?0:n==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;i==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?i=-1:i=1),e=o}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!_n.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let a=this.children[i];if(a.dom==r)return o;o+=a.length+a.breakAfter}}domBoundsAround(e,n,r=0){let i=-1,o=-1,a=-1,s=-1;for(let l=0,u=r,c=r;l<this.children.length;l++){let f=this.children[l],d=u+f.length;if(u<e&&d>n)return f.domBoundsAround(e,n,u);if(d>=e&&i==-1&&(i=l,o=u),u>n&&f.dom.parentNode==this.dom){a=l,s=c;break}c=d,u=d+f.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,r=b8){this.markDirty();for(let i=e;i<n;i++){let o=this.children[i];o.parent==this&&r.indexOf(o)<0&&o.destroy()}this.children.splice(e,n-e,...r);for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new cue(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,r,i,o,a){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}_n.prototype.breakAfter=0;function uue(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class cue{constructor(e,n,r){this.children=e,this.pos=n,this.i=r,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function fue(t,e,n,r,i,o,a,s,l){let{children:u}=t,c=u.length?u[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:a;if(!(e==r&&c&&!a&&!d&&o.length<2&&c.merge(n,i,o.length?f:null,n==0,s,l))){if(r<u.length){let p=u[r];p&&(i<p.length||p.breakAfter&&(f!=null&&f.breakAfter))?(e==r&&(p=p.split(i),i=0),!d&&f&&p.merge(0,i,f,!0,0,l)?o[o.length-1]=p:((i||p.children.length&&!p.children[0].length)&&p.merge(0,i,null,!1,0,l),o.push(p))):p!=null&&p.breakAfter&&(f?f.breakAfter=1:a=1),r++}for(c&&(c.breakAfter=a,n>0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(n,c.length,null,!1,s,0),e++));e<r&&o.length;)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:s;else if(u[e].become(o[0]))e++,o.shift(),s=o.length?0:l;else break;!o.length&&e&&r<u.length&&!u[e-1].breakAfter&&u[r].merge(0,0,u[e-1],!1,s,l)&&e--,(e<r||o.length)&&t.replaceChildren(e,r,o)}}function due(t,e,n,r,i,o){let a=t.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:c}=a.findPos(e,-1),f=e-n;for(let d of r)f+=d.length;t.length+=f,fue(t,u,c,s,l,r,0,i,o)}let eo=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},_8=typeof document<"u"?document:{documentElement:{style:{}}};const O8=/Edge\/(\d+)/.exec(eo.userAgent),hue=/MSIE \d/.test(eo.userAgent),w8=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(eo.userAgent),dT=!!(hue||w8||O8),pue=!dT&&/gecko\/(\d+)/i.test(eo.userAgent),S8=!dT&&/Chrome\/(\d+)/.exec(eo.userAgent),gue="webkitFontSmoothing"in _8.documentElement.style,vue=!dT&&/Apple Computer/.test(eo.vendor),mue=vue&&(/Mobile\/\w+/.test(eo.userAgent)||eo.maxTouchPoints>2);var Ze={mac:mue||/Mac/.test(eo.platform),windows:/Win/.test(eo.platform),linux:/Linux|X11/.test(eo.platform),ie:dT,ie_version:hue?_8.documentMode||6:w8?+w8[1]:O8?+O8[1]:0,gecko:pue,gecko_version:pue?+(/Firefox\/(\d+)/.exec(eo.userAgent)||[0,0])[1]:0,chrome:!!S8,chrome_version:S8?+S8[1]:0,ios:mue,android:/Android\b/.test(eo.userAgent),webkit:gue,safari:vue,webkit_version:gue?+(/\bAppleWebKit\/(\d+)/.exec(eo.userAgent)||[0,0])[1]:0,tabSize:_8.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const uvt=256;class ps extends _n{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,r){return this.flags&8||r&&(!(r instanceof ps)||this.length-(n-e)+r.length>uvt||r.flags&8)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new ps(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new di(this.dom,e)}domBoundsAround(e,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return cvt(this.dom,e,n)}}class lu extends _n{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(e){if(oue(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,r,i,o,a){return r&&(!(r instanceof lu&&r.mark.eq(this.mark))||e&&o<=0||n<this.length&&a<=0)?!1:(due(this,e,n,r?r.children.slice():[],o-1,a-1),this.markDirty(),!0)}split(e){let n=[],r=0,i=-1,o=0;for(let s of this.children){let l=r+s.length;l>e&&n.push(r<e?s.split(e-r):s),i<0&&r>=e&&(i=o),r=l,o++}let a=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new lu(this.mark,n,a)}domAtPos(e){return yue(this,e)}coordsAt(e,n){return _ue(this,e,n)}}function cvt(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,o=e,a=0;e==0&&n<0||e==r&&n>=0?Ze.chrome||Ze.gecko||(e?(i--,a=1):o<r&&(o++,a=-1)):n<0?i--:o<r&&o++;let s=gh(t,i,o).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return Ze.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?fT(l,a<0):l||null}class kc extends _n{static create(e,n,r){return new kc(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=kc.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,r,i,o,a){return r&&(!(r instanceof kc)||!this.widget.compare(r.widget)||e>0&&o<=0||n<this.length&&a<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}become(e){return e instanceof kc&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return en.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):en.empty}domAtPos(e){return(this.length?e==0:this.side>0)?di.before(this.dom):di.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let a=this.side?this.side<0:e>0;for(let s=a?i.length-1:0;o=i[s],!(e>0?s==0:s==i.length-1||o.top<o.bottom);s+=a?-1:1);return fT(o,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class _v extends _n{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof _v&&e.side==this.side}split(){return new _v(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?di.before(this.dom):di.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return en.empty}get isHidden(){return!0}}ps.prototype.children=kc.prototype.children=_v.prototype.children=b8;function yue(t,e){let n=t.dom,{children:r}=t,i=0;for(let o=0;i<r.length;i++){let a=r[i],s=o+a.length;if(!(s==o&&a.getSide()<=0)){if(e>o&&e<s&&a.dom.parentNode==n)return a.domAtPos(e-o);if(e<=o)break;o=s}}for(let o=i;o>0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o<r.length;o++){let a=r[o];if(a.dom.parentNode==n)return a.domAtPos(0)}return new di(n,0)}function bue(t,e,n){let r,{children:i}=t;n>0&&e instanceof lu&&i.length&&(r=i[i.length-1])instanceof lu&&r.mark.eq(e.mark)?bue(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function _ue(t,e,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let f=0,d=0;f<u.children.length&&d<=c;f++){let p=u.children[f],g=d+p.length;g>=c&&(p.children.length?s(p,c-d):(!o||o.isHidden&&n>0)&&(g>c||d==g&&p.getSide()>0)?(o=p,a=c-d):(d<c||d==g&&p.getSide()<0&&!p.isHidden)&&(r=p,i=c-d)),d=g}}s(t,e);let l=(n<0?r:o)||r||o;return l?l.coordsAt(Math.max(0,l==r?i:a),n):fvt(t)}function fvt(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=mv(e);return n[n.length-1]||null}function x8(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const Oue=Object.create(null);function hT(t,e,n){if(t==e)return!0;t||(t=Oue),e||(e=Oue);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function C8(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function dvt(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class dr extends _n{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,r,i,o,a){if(r){if(!(r instanceof dr))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),due(this,e,n,r?r.children.slice():[],o,a),!0}split(e){let n=new dr;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(e);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let o=r;o<this.children.length;o++)n.append(this.children[o],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){hT(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){bue(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=x8(n,this.attrs||{})),r&&(this.attrs=x8({class:r},this.attrs||{}))}domAtPos(e){return yue(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(oue(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(C8(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&_n.get(i)instanceof lu;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=_n.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Ze.ios||!this.children.some(o=>o instanceof ps))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof ps)||/[^ -~]/.test(r.text))return null;let i=mv(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=_ue(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight<o){let a=(o-i.textHeight)/2;return{top:r.top+a,bottom:r.bottom-a,left:r.left,right:r.left}}}return r}become(e){return e instanceof dr&&this.children.length==0&&e.children.length==0&&hT(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let r=0,i=0;r<e.children.length;r++){let o=e.children[r],a=i+o.length;if(a>=n){if(o instanceof dr)return o;if(a>n)break}i=a+o.breakAfter}return null}}class uu extends _n{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,n,r,i,o,a){return r&&(!(r instanceof uu)||!this.widget.compare(r.widget)||e>0&&o<=0||n<this.length&&a<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?di.before(this.dom):di.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new uu(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return b8}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):en.empty}domBoundsAround(){return null}become(e){return e instanceof uu&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){return this.widget.coordsAt(this.dom,e,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:r}=this.deco;return n==r?!1:e<0?n<0:r>0}}class ol{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Di=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Di||(Di={}));class nt extends hh{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new Bb(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Nc(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:o,end:a}=wue(e,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new Nc(e,r,i,n,e.widget||null,!0)}static line(e){return new Vb(e)}static set(e,n=!1){return tn.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}nt.none=tn.empty;class Bb extends nt{constructor(e){let{start:n,end:r}=wue(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,r;return this==e||e instanceof Bb&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&hT(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}Bb.prototype.point=!1;class Vb extends nt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Vb&&this.spec.class==e.spec.class&&hT(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}Vb.prototype.mapMode=Xr.TrackBefore,Vb.prototype.point=!0;class Nc extends nt{constructor(e,n,r,i,o,a){super(n,r,o,e),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?Xr.TrackBefore:Xr.TrackAfter:Xr.TrackDel}get type(){return this.startSide!=this.endSide?Di.WidgetRange:this.startSide<=0?Di.WidgetBefore:Di.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Nc&&hvt(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Nc.prototype.point=!0;function wue(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function hvt(t,e){return t==e||!!(t&&e&&t.compare(e))}function T8(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}class zb{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof uu&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new dr),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(pT(new _v(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof uu)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(pT(new ps(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(e,n,r,i,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Nc){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-e;if(r instanceof Nc)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new uu(r.widget||Ov.block,s,r));else{let l=kc.create(r.widget||Ov.inline,s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(e<n||r.startSide>0),c=!l.isEditable&&(e<n||o>i.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(pT(new _v(1),i),o),o=i.length+Math.max(0,o-i.length)),f.append(pT(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?e<n||o>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(e,n,r,i,o){let a=new zb(e,n,r,o);return a.openEnd=tn.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function pT(t,e){for(let n of e)t=new lu(n,[t],t.length);return t}class Ov extends ol{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Ov.inline=new Ov("span"),Ov.block=new Ov("div");var In=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(In||(In={}));const vh=In.LTR,P8=In.RTL;function Sue(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const pvt=Sue("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),gvt=Sue("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),$8=Object.create(null),al=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);$8[e]=n,$8[n]=-e}function xue(t){return t<=247?pvt[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?gvt[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const vvt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Lc{get dir(){return this.level%2?P8:vh}constructor(e,n,r){this.from=e,this.to=n,this.level=r}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,i){let o=-1;for(let a=0;a<e.length;a++){let s=e[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.from<n:s.to>n:e[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function Cue(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!Cue(r.inner,i.inner))return!1}return!0}const On=[];function mvt(t,e,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:e,s=o<r.length?r[o].from:n,l=o?256:i;for(let u=a,c=l,f=l;u<s;u++){let d=xue(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),On[u]=d==4?2:d,d&7&&(f=d),c=d}for(let u=a,c=l,f=l;u<s;u++){let d=On[u];if(d==128)u<s-1&&c==On[u+1]&&c&24?d=On[u]=c:On[u]=256;else if(d==64){let p=u+1;for(;p<s&&On[p]==64;)p++;let g=u&&c==8||p<n&&On[p]==8?f==1?1:8:256;for(let v=u;v<p;v++)On[v]=g;u=p-1}else d==8&&f==1&&(On[u]=1);c=d,d&7&&(f=d)}}}function yvt(t,e,n,r,i){let o=i==1?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:e,c=a<r.length?r[a].from:n;for(let f=u,d,p,g;f<c;f++)if(p=$8[d=t.charCodeAt(f)])if(p<0){for(let v=s-3;v>=0;v-=3)if(al[v+1]==-p){let m=al[v+2],y=m&2?i:m&4?m&1?o:i:0;y&&(On[f]=On[al[v]]=y),s=v;break}}else{if(al.length==189)break;al[s++]=f,al[s++]=d,al[s++]=l}else if((g=On[f])==2||g==1){let v=g==i;l=v?0:1;for(let m=s-3;m>=0;m-=3){let y=al[m+2];if(y&2)break;if(v)al[m+2]|=2;else{if(y&4)break;al[m+2]|=4}}}}}function bvt(t,e,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:t,s=i<n.length?n[i].from:e;for(let l=a;l<s;){let u=On[l];if(u==256){let c=l+1;for(;;)if(c==s){if(i==n.length)break;c=n[i++].to,s=i<n.length?n[i].from:e}else if(On[c]==256)c++;else break;let f=o==1,d=(c<e?On[c]:r)==1,p=f==d?f?1:2:r;for(let g=c,v=i,m=v?n[v-1].to:t;g>l;)g==m&&(g=n[--v].from,m=v?n[v-1].to:t),On[--g]=p;l=c}else o=u,l++}}}function A8(t,e,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=e,u=0;l<n;){let c=!0,f=!1;if(u==o.length||l<o[u].from){let v=On[l];v!=s&&(c=!1,f=v==16)}let d=!c&&s==1?[]:null,p=c?r:r+1,g=l;e:for(;;)if(u<o.length&&g==o[u].from){if(f)break e;let v=o[u];if(!c)for(let m=v.to,y=u+1;;){if(m==n)break e;if(y<o.length&&o[y].from==m)m=o[y++].to;else{if(On[m]==s)break e;break}}if(u++,d)d.push(v);else{v.from>l&&a.push(new Lc(l,v.from,p));let m=v.direction==vh!=!(p%2);E8(t,m?r+1:r,i,v.inner,v.from,v.to,a),l=v.to}g=v.to}else{if(g==n||(c?On[g]!=s:On[g]==s))break;g++}d?A8(t,l,g,r+1,i,d,a):l<g&&a.push(new Lc(l,g,p)),l=g}else for(let l=n,u=o.length;l>e;){let c=!0,f=!1;if(!u||l>o[u-1].to){let v=On[l-1];v!=s&&(c=!1,f=v==16)}let d=!c&&s==1?[]:null,p=c?r:r+1,g=l;e:for(;;)if(u&&g==o[u-1].to){if(f)break e;let v=o[--u];if(!c)for(let m=v.from,y=u;;){if(m==e)break e;if(y&&o[y-1].to==m)m=o[--y].from;else{if(On[m-1]==s)break e;break}}if(d)d.push(v);else{v.to<l&&a.push(new Lc(v.to,l,p));let m=v.direction==vh!=!(p%2);E8(t,m?r+1:r,i,v.inner,v.from,v.to,a),l=v.from}g=v.from}else{if(g==e||(c?On[g-1]!=s:On[g-1]==s))break;g--}d?A8(t,g,l,r+1,i,d,a):g<l&&a.push(new Lc(g,l,p)),l=g}}function E8(t,e,n,r,i,o,a){let s=e%2?2:1;mvt(t,i,o,r,s),yvt(t,i,o,r,s),bvt(i,o,r,s),A8(t,i,o,e,n,r,a)}function _vt(t,e,n){if(!t)return[new Lc(0,0,e==P8?1:0)];if(e==vh&&!n.length&&!vvt.test(t))return Tue(t.length);if(n.length)for(;t.length>On.length;)On[On.length]=256;let r=[],i=e==vh?0:1;return E8(t,i,i,n,0,t.length,r),r}function Tue(t){return[new Lc(0,t,0)]}let Pue="";function Ovt(t,e,n,r,i){var o;let a=r.head-t.from,s=Lc.find(e,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=e[s],u=l.side(i,n);if(a==u){let d=s+=i?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],a=l.side(!i,n),u=l.side(i,n)}let c=Ur(t.text,a,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),Pue=t.text.slice(Math.min(a,c),Math.max(a,c));let f=s==(i?e.length-1:0)?null:e[s+(i?1:-1)];return f&&c==u&&f.level+(i?0:1)<l.level?Ce.cursor(f.side(!i,n)+t.from,f.forward(i,n)?1:-1,f.level):Ce.cursor(c+t.from,l.forward(i,n)?-1:1,l.level)}function wvt(t,e,n){for(let r=e;r<n;r++){let i=xue(t.charCodeAt(r));if(i==1)return vh;if(i==2||i==4)return P8}return vh}const $ue=Ye.define(),Aue=Ye.define(),Eue=Ye.define(),Mue=Ye.define(),M8=Ye.define(),Iue=Ye.define(),Due=Ye.define(),Rue=Ye.define({combine:t=>t.some(e=>e)}),kue=Ye.define({combine:t=>t.some(e=>e)}),Nue=Ye.define();class wv{constructor(e,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(e){return e.empty?this:new wv(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new wv(Ce.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const gT=Ot.define({map:(t,e)=>t.map(e)}),Lue=Ot.define();function to(t,e,n){let r=t.facet(Mue);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Bc=Ye.define({combine:t=>t.length?t[0]:!0});let Svt=0;const Fb=Ye.define();class rr{constructor(e,n,r,i,o){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new rr(Svt++,e,r,i,s=>{let l=[Fb.of(s)];return a&&l.push(Wb.of(u=>{let c=u.plugin(s);return c?a(c):nt.none})),o&&l.push(o(s)),l})}static fromClass(e,n){return rr.define(r=>new e(r),n)}}class I8{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(to(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){to(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){to(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Bue=Ye.define(),D8=Ye.define(),Wb=Ye.define(),Vue=Ye.define(),R8=Ye.define(),zue=Ye.define();function Fue(t,e){let n=t.state.facet(zue);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(t):o),i=[];return tn.spans(r,e.from,e.to,{point(){},span(o,a,s,l){let u=o-e.from,c=a-e.from,f=i;for(let d=s.length-1;d>=0;d--,l--){let p=s[d].spec.bidiIsolate,g;if(p==null&&(p=wvt(e.text,u,c)),l>0&&f.length&&(g=f[f.length-1]).to==u&&g.direction==p)g.to=c,f=g.inner;else{let v={from:u,to:c,direction:p,inner:[]};f.push(v),f=v.inner}}}}),i}const Wue=Ye.define();function Que(t){let e=0,n=0,r=0,i=0;for(let o of t.state.facet(Wue)){let a=o(t);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:e,right:n,top:r,bottom:i}}const Qb=Ye.define();class Ca{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new Ca(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(n-1,1)}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let i=0,o=0,a=0,s=0;;i++){let l=i==e.length?null:e[i],u=a-s,c=l?l.fromB:1e9;for(;o<n.length&&n[o]<c;){let f=n[o],d=n[o+1],p=Math.max(s,f),g=Math.min(c,d);if(p<=g&&new Ca(p+u,g+u,p,g).addToSet(r),d>c)break;o+=2}if(!l)return r;new Ca(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class vT{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=xr.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new Ca(o,a,s,l))),this.changedRanges=i}static create(e,n,r){return new vT(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Hue extends _n{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=nt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new dr],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ca(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>c<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!Evt(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let o=i>-1?Cvt(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new Ca(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Ze.ie||Ze.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=$vt(a,s,e.changes);return r=Ca.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=Ze.chrome||Ze.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof uu&&a.widget instanceof Gue&&o.push(a.dom);i.updateGaps(o)}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,o=this.childCursor(n);for(let a=i.length-1;;a--){let s=a>=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:f}=s,d,p,g,v;if(r&&r.range.fromB<f&&r.range.toB>c){let w=zb.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),S=zb.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);p=w.breakAtStart,g=w.openStart,v=S.openEnd;let x=this.compositionView(r);S.breakAtStart?x.breakAfter=1:S.content.length&&x.merge(x.length,x.length,S.content[0],!1,S.openStart,0)&&(x.breakAfter=S.content[0].breakAfter,S.content.shift()),w.content.length&&x.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),d=w.content.concat(x).concat(S.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:v}=zb.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:m,off:y}=o.findPos(u,1),{i:b,off:O}=o.findPos(l,-1);fue(this,b,O,m,y,d,p,g,v)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(Lue)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new ps(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new lu(i,[n],n.length);let r=new dr;return r.append(n,0),r}fixCompositionDOM(e){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=_n.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let o=e.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?e.marks[o].node:e.text,i)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,o=!i&&uT(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(Ze.gecko&&s.empty&&!this.hasComposition&&xvt(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new di(f,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Lb(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Lb(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{Ze.android&&Ze.chrome&&this.dom.contains(c.focusNode)&&Avt(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Nb(this.view.root);if(f)if(s.empty){if(Ze.gecko){let d=Tvt(l.node,l.offset);if(d&&d!=3){let p=(d==1?sue:lue)(l.node,l.offset);p&&(l=new di(p.node,p.offset))}}f.collapse(l.node,l.offset),s.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=s.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let d=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),d.setEnd(u.node,u.offset),d.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new di(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new di(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Lb(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=Nb(e.root),{anchorNode:i,anchorOffset:o}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=dr.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i<n.childNodes.length;i++){let o=_n.get(n.childNodes[i]);o instanceof dr&&(r=o.domAtPos(0))}for(let i=e.offset-1;!r&&i>=0;i--){let o=_n.get(n.childNodes[i]);o instanceof dr&&(r=o.domAtPos(o.length))}return r?new di(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=_n.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof dr)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let o=this.length,a=this.children.length-1;a>=0;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(l<e)break;if(u<=e&&(u<e||s.covers(-1))&&(l>e||s.covers(1))&&(!r||s instanceof dr&&!(r instanceof dr&&n>=0)))r=s,i=u;else if(r&&u==e&&l==e&&s instanceof uu&&Math.abs(n)<2){if(s.deco.startSide<0)break;a&&(r=null)}o=u}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof dr))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof ps))return null;let o=Ur(i.text,r);if(o==r)return null;let a=gh(i.dom,r,o).getClientRects();for(let s=0;s<a.length;s++){let l=a[s];if(s==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,o=this.view.contentDOM.clientWidth,a=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==In.LTR;for(let u=0,c=0;c<this.children.length;c++){let f=this.children[c],d=u+f.length;if(d>i)break;if(u>=r){let p=f.dom.getBoundingClientRect();if(n.push(p.height),a){let g=f.dom.lastChild,v=g?mv(g):[];if(v.length){let m=v[v.length-1],y=l?m.right-p.left:p.right-m.left;y>s&&(s=y,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=d)}}}u=d+f.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?In.RTL:In.LTR}measureTextSize(){for(let o of this.children)if(o instanceof dr){let a=o.measureTextSize();if(a)return a}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=mv(e.firstChild)[0];n=e.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.height:n,e.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new cue(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(nt.replace({widget:new Gue(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return nt.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Wb).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),r=!1,i=this.view.state.facet(Vue).map((o,a)=>{let s=typeof o=="function";return s&&(r=!0),s?o(this.view):o});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(tn.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let u=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=u.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let u of this.view.state.facet(Nue))try{if(u(this.view,e.range,e))return!0}catch(c){to(this.view.state,c,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let o=Que(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;ivt(this.view.scrollDOM,a,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==In.LTR)}}function xvt(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}class Gue extends ol{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function jue(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=sue(n.focusNode,n.focusOffset),i=lue(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let s=_n.get(i.node);if(!s||s instanceof ps&&s.text!=i.node.nodeValue)o=i;else if(t.docView.lastCompositionAfterCursor){let l=_n.get(r.node);!l||l instanceof ps&&l.text!=r.node.nodeValue||(o=i)}}if(t.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=e-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}function Cvt(t,e,n){let r=jue(t,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||t.state.doc.sliceString(r.from,r.to)!=s)return null;let l=e.invertedDesc,u=new Ca(l.mapPos(o),l.mapPos(a),o,a),c=[];for(let f=i.parentNode;;f=f.parentNode){let d=_n.get(f);if(d instanceof lu)c.push({node:f,deco:d.mark});else{if(d instanceof dr||f.nodeName=="DIV"&&f.parentNode==t.contentDOM)return{range:u,text:i,marks:c,line:f};if(f!=t.contentDOM)c.push({node:f,deco:new Bb({inclusive:!0,attributes:dvt(f),tagName:f.tagName.toLowerCase()})});else return null}}}function Tvt(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let Pvt=class{constructor(){this.changes=[]}compareRange(e,n){T8(e,n,this.changes)}comparePoint(e,n){T8(e,n,this.changes)}};function $vt(t,e,n){let r=new Pvt;return tn.compare(t,e,n,r),r.changes}function Avt(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function Evt(t,e){let n=!1;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=!0)}),n}function Mvt(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),o=e-i.from;if(i.length==0)return Ce.cursor(e);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=Ur(i.text,o,!1):s=Ur(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=Ur(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;s<i.length;){let u=Ur(i.text,s);if(r(i.text.slice(s,u))!=l)break;s=u}return Ce.range(a+i.from,s+i.from)}function Ivt(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function Dvt(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function k8(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function Uue(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function Zue(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function N8(t,e,n){let r,i,o,a,s=!1,l,u,c,f;for(let g=t.firstChild;g;g=g.nextSibling){let v=mv(g);for(let m=0;m<v.length;m++){let y=v[m];i&&k8(i,y)&&(y=Uue(Zue(y,i.bottom),i.top));let b=Ivt(e,y),O=Dvt(n,y);if(b==0&&O==0)return g.nodeType==3?Xue(g,e,n):N8(g,e,n);if(!r||a>O||a==O&&o>b){r=g,i=y,o=b,a=O;let w=O?n<y.top?-1:1:b?e<y.left?-1:1:0;s=!w||(w>0?m<v.length-1:m>0)}b==0?n>y.bottom&&(!c||c.bottom<y.bottom)?(l=g,c=y):n<y.top&&(!f||f.top>y.top)&&(u=g,f=y):c&&k8(c,y)?c=Zue(c,y.bottom):f&&k8(f,y)&&(f=Uue(f,y.top))}}if(c&&c.bottom>=n?(r=l,i=c):f&&f.top<=n&&(r=u,i=f),!r)return{node:t,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return Xue(r,d,n);if(s&&r.contentEditable!="false")return N8(r,d,n);let p=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:p}}function Xue(t,e,n){let r=t.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;s<r;s++){let l=gh(t,s,s+1).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(c.top==c.bottom)continue;a||(a=e-c.left);let f=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f<o){let d=e>=(c.left+c.right)/2,p=d;if((Ze.chrome||Ze.gecko)&&gh(t,s).getBoundingClientRect().left==c.right&&(p=!d),f<=0)return{node:t,offset:s+(p?1:0)};i=s+(p?1:0),o=f}}}return{node:t,offset:i>-1?i:a>0?t.nodeValue.length:0}}function Yue(t,e,n,r=-1){var i,o;let a=t.contentDOM.getBoundingClientRect(),s=a.top+t.viewState.paddingTop,l,{docHeight:u}=t.viewState,{x:c,y:f}=e,d=f-s;if(d<0)return 0;if(d>u)return t.state.doc.length;for(let w=t.viewState.heightOracle.textHeight/2,S=!1;l=t.elementAtHeight(d),l.type!=Di.Text;)for(;d=r>0?l.bottom+w:l.top-w,!(d>=0&&d<=u);){if(S)return n?null:0;S=!0,r=-r}f=s+d;let p=l.from;if(p<t.viewport.from)return t.viewport.from==0?0:n?null:que(t,a,l,c,f);if(p>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:que(t,a,l,c,f);let g=t.dom.ownerDocument,v=t.root.elementFromPoint?t.root:g,m=v.elementFromPoint(c,f);m&&!t.contentDOM.contains(m)&&(m=null),m||(c=Math.max(a.left+1,Math.min(a.right-1,c)),m=v.elementFromPoint(c,f),m&&!t.contentDOM.contains(m)&&(m=null));let y,b=-1;if(m&&((i=t.docView.nearest(m))===null||i===void 0?void 0:i.isEditable)!=!1){if(g.caretPositionFromPoint){let w=g.caretPositionFromPoint(c,f);w&&({offsetNode:y,offset:b}=w)}else if(g.caretRangeFromPoint){let w=g.caretRangeFromPoint(c,f);w&&({startContainer:y,startOffset:b}=w,(!t.contentDOM.contains(y)||Ze.safari&&Rvt(y,b,c)||Ze.chrome&&kvt(y,b,c))&&(y=void 0))}}if(!y||!t.docView.dom.contains(y)){let w=dr.find(t.docView,p);if(!w)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:b}=N8(w.dom,c,f))}let O=t.docView.nearest(y);if(!O)return null;if(O.isWidget&&((o=O.dom)===null||o===void 0?void 0:o.nodeType)==1){let w=O.dom.getBoundingClientRect();return e.y<w.top||e.y<=w.bottom&&e.x<=(w.left+w.right)/2?O.posAtStart:O.posAtEnd}else return O.localPosFromDOM(y,b)+O.posAtStart}function que(t,e,n,r,i){let o=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(t.defaultLineHeight-s)*.5)/s);o+=l*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+p8(a,o,t.state.tabSize)}function Rvt(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return gh(t,r-1,r).getBoundingClientRect().left>n}function kvt(t,e,n){if(e!=0)return!1;for(let i=t;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=t.nodeType==1?t.getBoundingClientRect():gh(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function L8(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>e||r.to==e&&(r.to==n.to||r.type==Di.Text))return r}return n}function Nvt(t,e,n,r){let i=L8(t,e.head),o=!r||i.type!=Di.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(o){let a=t.dom.getBoundingClientRect(),s=t.textDirectionAt(i.from),l=t.posAtCoords({x:n==(s==In.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return Ce.cursor(l,n?-1:1)}return Ce.cursor(n?i.to:i.from,n?-1:1)}function Kue(t,e,n,r){let i=t.state.doc.lineAt(e.head),o=t.bidiSpans(i),a=t.textDirectionAt(i.from);for(let s=e,l=null;;){let u=Ovt(i,o,a,s,n),c=Pue;if(!u){if(i.number==(n?t.state.doc.lines:1))return s;c=`
  400. `,i=t.state.doc.line(i.number+(n?1:-1)),o=t.bidiSpans(i),u=t.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function Lvt(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return o=>{let a=r(o);return i==Bn.Space&&(i=a),i==a}}function Bvt(t,e,n,r){let i=e.head,o=n?1:-1;if(i==(n?t.state.doc.length:0))return Ce.cursor(i,e.assoc);let a=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(i,e.assoc||-1),c=t.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let p=t.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-p.from))),s=(o<0?p.top:p.bottom)+c}let f=l.left+a,d=r??t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let g=s+(d+p)*o,v=Yue(t,{x:f,y:g},!1,o);if(g<l.top||g>l.bottom||(o<0?v<i:v>i)){let m=t.docView.coordsForChar(v),y=!m||g<m.top?-1:1;return Ce.cursor(v,y,void 0,a)}}}function mT(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(o,a,s)=>{if(e>o&&e<a){let l=r||n||(e-o<a-e?-1:1);e=l<0?o:a,r=l}});if(!r)return e}}function B8(t,e,n){let r=mT(t.state.facet(R8).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:Ce.cursor(r,r<n.from?1:-1)}class Vvt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Ze.safari&&e.contentDOM.addEventListener("input",()=>null),Ze.gecko&&tmt(e.contentDOM.ownerDocument)}handleEvent(e){!Uvt(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=zvt(e),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&tce.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Ze.android&&Ze.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return Ze.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=ece.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||Fvt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,bv(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ze.safari&&!Ze.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Jue(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){to(n.state,i)}}}function zvt(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(Jue(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(Jue(r.value,a))}}for(let r in gs)n(r).handlers.push(gs[r]);for(let r in Ta)n(r).observers.push(Ta[r]);return e}const ece=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Fvt="dthko",tce=[16,17,18,20,91,92,224,225],yT=6;function bT(t){return Math.max(0,t)*.7+8}function Wvt(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Qvt{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=ovt(e.contentDOM),this.atoms=e.state.facet(R8).map(a=>a(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(Gt.allowMultipleSelections)&&Hvt(e,n),this.dragging=jvt(e,n)&&fce(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Wvt(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let r=0,i=0,o=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=Que(this.view);e.clientX-a.left<=o.left+yT?r=-bT(o.left-e.clientX):e.clientX+a.right>=o.right-yT&&(r=bT(e.clientX-o.right)),e.clientY-a.top<=o.top+yT?i=-bT(o.top-e.clientY):e.clientY+a.bottom>=o.bottom-yT&&(i=bT(e.clientY-o.bottom)),this.setScrollSpeed(r,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],o=null;if(i.empty){let a=mT(this.atoms,i.from,0);a!=i.from&&(o=Ce.cursor(a,-1))}else{let a=mT(this.atoms,i.from,-1),s=mT(this.atoms,i.to,1);(a!=i.from||s!=i.to)&&(o=Ce.range(i.from==i.anchor?a:s,i.from==i.head?a:s))}o&&(n||(n=e.ranges.slice()),n[r]=o)}return n?Ce.create(n,e.mainIndex):e}select(e){let{view:n}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Hvt(t,e){let n=t.state.facet($ue);return n.length?n[0](e):Ze.mac?e.metaKey:e.ctrlKey}function Gvt(t,e){let n=t.state.facet(Aue);return n.length?n[0](e):Ze.mac?!e.altKey:!e.ctrlKey}function jvt(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=Nb(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o<i.length;o++){let a=i[o];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function Uvt(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=_n.get(n))&&r.ignoreEvent(e))return!1;return!0}const gs=Object.create(null),Ta=Object.create(null),nce=Ze.ie&&Ze.ie_version<15||Ze.ios&&Ze.webkit_version<604;function Zvt(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),rce(t,n.value)},50)}function rce(t,e){let{state:n}=t,r,i=1,o=n.toText(e),a=o.lines==n.selection.ranges.length;if(V8!=null&&n.selection.ranges.every(l=>l.empty)&&V8==o.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let f=n.toText((a?o.line(i++).text:e)+n.lineBreak);return{changes:{from:c.from,insert:f},range:Ce.cursor(u.from+f.length)}})}else a?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:Ce.cursor(l.from+u.length)}}):r=n.replaceSelection(o);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Ta.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},gs.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),Ta.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Ta.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},gs.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(Eue))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=qvt(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new Qvt(t,e,n,r)),r&&t.observer.ignore(()=>{rue(t.contentDOM);let o=t.root.activeElement;o&&!o.contains(t.contentDOM)&&o.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function ice(t,e,n,r){if(r==1)return Ce.cursor(e,n);if(r==2)return Mvt(t.state,e,n);{let i=dr.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return s<t.state.doc.length&&s==o.to&&s++,Ce.range(a,s)}}let oce=(t,e)=>t>=e.top&&t<=e.bottom,ace=(t,e,n)=>oce(e,n)&&t>=n.left&&t<=n.right;function Xvt(t,e,n,r){let i=dr.find(t.docView,e);if(!i)return 1;let o=e-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&ace(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&ace(n,r,s)?1:a&&oce(r,a)?-1:1}function sce(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Xvt(t,n,e.clientX,e.clientY)}}const Yvt=Ze.ie&&Ze.ie_version<=11;let lce=null,uce=0,cce=0;function fce(t){if(!Yvt)return t.detail;let e=lce,n=cce;return lce=t,cce=Date.now(),uce=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(uce+1)%3:1}function qvt(t,e){let n=sce(t,e),r=fce(e),i=t.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=sce(t,o),u,c=ice(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let f=ice(t,n.pos,n.bias,r),d=Math.min(f.from,c.from),p=Math.max(f.to,c.to);c=d<c.from?Ce.range(d,p):Ce.range(p,d)}return a?i.replaceRange(i.main.extend(c.from,c.to)):s&&r==1&&i.ranges.length>1&&(u=Kvt(i,l.pos))?u:s?i.addRange(c):Ce.create([c])}}}function Kvt(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return Ce.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}gs.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=Ce.range(o,a))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},gs.dragend=t=>(t.inputState.draggedContent=null,!1);function dce(t,e,n,r){if(!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,a=r&&o&&Gvt(t,e)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=t.state.changes(a?[a,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}gs.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&dce(t,e,r.filter(a=>a!=null).join(t.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let s=new FileReader;s.onerror=o,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return dce(t,e,r,!0),!0}return!1},gs.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=nce?null:e.clipboardData;return n?(rce(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Zvt(t),!1)};function Jvt(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function emt(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:o}of t.selection.ranges){let a=t.doc.lineAt(o);a.number>i&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),i=a.number}r=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:r}}let V8=null;gs.copy=gs.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=emt(t.state);if(!n&&!i)return!1;V8=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=nce?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Jvt(t,n),!1)};const hce=au.define();function pce(t,e){let n=[];for(let r of t.facet(Due)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:hce.of(!0)}):null}function gce(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=pce(t.state,e);n?t.dispatch(n):t.update([])}},10)}Ta.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),gce(t)},Ta.blur=t=>{t.observer.clearSelectionRange(),gce(t)},Ta.compositionstart=Ta.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},Ta.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ze.chrome&&Ze.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))},Ta.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},gs.beforeinput=(t,e)=>{var n;let r;if(Ze.chrome&&Ze.android&&(r=ece.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Ze.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Ze.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Ta.compositionend(t,e),20),!1};const vce=new Set;function tmt(t){vce.has(t)||(vce.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const mce=["pre-wrap","normal","pre-line","break-spaces"];class nmt{constructor(e){this.lineWrapping=e,this.doc=en.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return mce.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(e,n,r,i,o,a){let s=mce.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,l){this.heightSamples={};for(let u=0;u<a.length;u++){let c=a[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=!0}}return l}}class rmt{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class sl{constructor(e,n,r,i,o){this.from=e,this.length=n,this.top=r,this.height=i,this._content=o}get type(){return typeof this._content=="number"?Di.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Nc?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new sl(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var Dn=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(Dn||(Dn={}));const _T=.001;class Ri{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>_T&&(e.heightChanged=!0),this.height=n)}replace(e,n,r){return Ri.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=i[s],d=o.lineAt(l,Dn.ByPosNoHeight,r.setDoc(n),0,0),p=d.to>=u?d:o.lineAt(u,Dn.ByPosNoHeight,r,0,0);for(f+=p.to-u,u=p.to;s>0&&d.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,l<d.from&&(d=o.lineAt(l,Dn.ByPosNoHeight,r,0,0));c+=d.from-l,l=d.from;let g=z8.build(r.setDoc(a),e,c,f);o=o.replace(l,u,g)}return o.updateHeight(r,0)}static empty(){return new Ao(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,o=0;for(;;)if(n==r)if(i>o*2){let s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i<o){let s=e[n++];s&&(i+=s.size)}else{let s=e[--r];s&&(o+=s.size)}let a=0;return e[n-1]==null?(a=1,n--):e[n]==null&&(a=1,r++),new imt(Ri.of(e.slice(0,n)),a,Ri.of(e.slice(r)))}}Ri.prototype.size=1;class yce extends Ri{constructor(e,n,r){super(e,n),this.deco=r}blockAt(e,n,r,i){return new sl(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,o){return this.blockAt(0,r,i,o)}forEachLine(e,n,r,i,o,a){e<=o+this.length&&n>=o&&a(this.blockAt(0,r,i,o))}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ao extends yce{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new sl(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof Ao||i instanceof qr&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof qr?i=new Ao(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ri.of(r)}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(e,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class qr extends Ri{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(e,n,r,i){let{firstLine:o,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),c=n.doc.lineAt(u),f=s+c.length*l,d=Math.max(r,e-f/2);return new sl(c.from,c.length,d,f,0)}else{let u=Math.max(0,Math.min(a-o,Math.floor((e-r)/s))),{from:c,length:f}=n.doc.line(o+u);return new sl(c,f,r+s*u,s,0)}}lineAt(e,n,r,i,o){if(n==Dn.ByHeight)return this.blockAt(e,r,i,o);if(n==Dn.ByPosNoHeight){let{from:p,to:g}=r.doc.lineAt(e);return new sl(p,g-p,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(e),c=s+u.length*l,f=u.number-a,d=i+s*f+l*(u.from-o-f);return new sl(u.from,u.length,Math.max(i,Math.min(d,i+this.height-c)),c,0)}forEachLine(e,n,r,i,o,a){e=Math.max(e,o),n=Math.min(n,o+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,o);for(let c=e,f=i;c<=n;){let d=r.doc.lineAt(c);if(c==e){let g=d.number-s;f+=l*g+u*(e-o-g)}let p=l+u*d.length;a(new sl(d.from,d.length,f,p,0)),f+=p,c=d.to+1}}replace(e,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof qr?r[r.length-1]=new qr(o.length+i):r.push(null,new qr(i-1))}if(e>0){let o=r[0];o instanceof qr?r[0]=new qr(e+o.length):r.unshift(new qr(e-1),null)}return Ri.of(r)}decomposeLeft(e,n){n.push(new qr(e-1),null)}decomposeRight(e,n){n.push(null,new qr(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new qr(i.from-n-1).updateHeight(e,n));s<=o&&i.more;){let c=e.doc.lineAt(s).length;a.length&&a.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=_T&&(l=-2);let d=new Ao(c,f);d.outdated=!1,a.push(d),s+=c+1}s<=o&&a.push(null,new qr(o-s).updateHeight(e,s));let u=Ri.of(a);return(l<0||Math.abs(u.height-this.height)>=_T||Math.abs(l-this.heightMetrics(e,n).perLine)>=_T)&&(e.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class imt extends Ri{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,i){let o=r+this.left.height;return e<o?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,o,i+this.left.length+this.break)}lineAt(e,n,r,i,o){let a=i+this.left.height,s=o+this.left.length+this.break,l=n==Dn.ByHeight?e<a:e<s,u=l?this.left.lineAt(e,n,r,i,o):this.right.lineAt(e,n,r,a,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=n==Dn.ByPosNoHeight?Dn.ByPosNoHeight:Dn.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(e,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,r,i,o,a),n>=l&&this.right.forEachLine(e,n,r,s,l,a);else{let u=this.lineAt(l,Dn.ByPos,r,i,o);e<u.from&&this.left.forEachLine(e,u.from-1,r,i,o,a),u.to>=e&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(e,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let o=[];e>0&&this.decomposeLeft(e,o);let a=o.length;for(let s of r)o.push(s);if(e>0&&bce(o,a-1),n<this.length){let s=o.length;this.decomposeRight(n,o),bce(o,s)}return Ri.of(o)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<i&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?Ri.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,i){let{left:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(e,n,r,i):o.updateHeight(e,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(e,s,r,i):a.updateHeight(e,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function bce(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof qr&&(r=t[e+1])instanceof qr&&t.splice(e-1,3,new qr(n.length+1+r.length))}const omt=5;class z8{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Ao?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Ao(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,o=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let a=n-e;r.block?this.addBlock(new yce(a,i,r)):(a||o||i>=omt)&&this.addLineDeco(i,o,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Ao(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new qr(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ao)return e;let n=new Ao(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Ao)&&!this.isCovered?this.nodes.push(new Ao(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof Ao&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let o=new z8(r,e);return tn.spans(n,r,i,o,0),o.finish(r)}}function amt(t,e,n){let r=new smt;return tn.compare(t,e,n,r,0),r.changes}class smt{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&T8(e,n,this.changes,5)}}function lmt(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let u=t.parentNode;u&&u!=r.body;)if(u.nodeType==1){let c=u,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();o=Math.max(o,d.left),a=Math.min(a,d.right),s=Math.max(s,d.top),l=u==t.parentNode?d.bottom:Math.min(l,d.bottom)}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+e),bottom:Math.max(s,l)-(n.top+e)}}function umt(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class F8{constructor(e,n,r){this.from=e,this.to=n,this.size=r}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i.from!=o.from||i.to!=o.to||i.size!=o.size)return!1}return!0}draw(e,n){return nt.replace({widget:new cmt(this.size*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class cmt extends ol{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class _ce{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Oce,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=In.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(D8).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new nmt(n),this.stateDeco=e.facet(Wb).filter(r=>typeof r!="function"),this.heightMap=Ri.empty().applyChanges(this.stateDeco,en.empty,this.heightOracle.setDoc(e.doc),[new Ca(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=nt.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);e.push(new OT(o,a))}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Oce:new W8(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Hb(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Wb).filter(c=>typeof c!="function");let i=e.changedRanges,o=Ca.extendWithRanges(i,amt(r,this.stateDeco,e?e.changes:xr.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(kue)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?In.RTL:In.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:w,scaleY:S}=nue(n,s);(w>.005&&Math.abs(this.scaleX-w)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=w,this.scaleY=S,u|=8,a=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=aue(e.scrollDOM);let g=(this.printing?umt:lmt)(n,this.paddingTop),v=g.top-this.pixelViewport.top,m=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let b=s.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let w=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(w)&&(a=!0),a||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:S,charWidth:x,textHeight:T}=e.docView.measureTextSize();a=S>0&&i.refresh(o,S,x,T,b/x,w),a&&(e.docView.minWidth=0,u|=8)}v>0&&m>0?c=Math.max(v,m):v<0&&m<0&&(c=Math.min(v,m)),i.heightChanged=!1;for(let S of this.viewports){let x=S.from==this.viewport.from?w:e.docView.measureVisibleLineHeights(S);this.heightMap=(a?Ri.empty().applyChanges(this.stateDeco,en.empty,this.heightOracle,[new Ca(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new rmt(S.from,x))}i.heightChanged&&(u|=2)}let O=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return O&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||O)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new OT(i.lineAt(a-r*1e3,Dn.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Dn.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,Dn.ByPos,o,0,0),d;n.y=="center"?d=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u<l.from?d=f.top:d=f.bottom-c,l=new OT(i.lineAt(d-1e3/2,Dn.ByHeight,o,0,0).from,i.lineAt(d+c+1e3/2,Dn.ByHeight,o,0,0).to)}}return l}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new OT(this.heightMap.lineAt(r,Dn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,Dn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,Dn.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,Dn.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:s}=this;return(e==0||i<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o<s+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let i of e)n.touchesRange(i.from,i.to)||r.push(new F8(n.mapPos(i.from),n.mapPos(i.to),i.size));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,o=i>>1,a=i<<1;if(this.defaultTextDirection!=In.LTR&&!r)return[];let s=[],l=(c,f,d,p)=>{if(f-c<o)return;let g=this.state.selection.main,v=[g.from];g.empty||v.push(g.to);for(let y of v)if(y>c&&y<f){l(c,y-10,d,p),l(y+10,f,d,p);return}let m=dmt(e,y=>y.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)<o&&Math.abs(y.to-f)<o&&!v.some(b=>y.from<b&&y.to>b));if(!m){if(f<d.to&&n&&r&&n.visibleRanges.some(y=>y.from<=f&&y.to>=f)){let y=n.moveToLineBoundary(Ce.cursor(f),!1,!0).head;y>c&&(f=y)}m=new F8(c,f,this.gapSize(d,c,f,p))}s.push(m)},u=c=>{if(c.length<a||c.type!=Di.Text)return;let f=fmt(c.from,c.to,this.stateDeco);if(f.total<a)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,g;if(r){let v=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,y;if(d!=null){let b=ST(f,d),O=((this.visibleBottom-this.visibleTop)/2+v)/c.height;m=b-O,y=b+O}else m=(this.visibleTop-c.top-v)/c.height,y=(this.visibleBottom-c.top+v)/c.height;p=wT(f,m),g=wT(f,y)}else{let v=f.total*this.heightOracle.charWidth,m=i*this.heightOracle.charWidth,y,b;if(d!=null){let O=ST(f,d),w=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/v;y=O-w,b=O+w}else y=(this.pixelViewport.left-m)/v,b=(this.pixelViewport.right+m)/v;p=wT(f,y),g=wT(f,b)}p>c.from&&l(c.from,p,c,f),g<c.to&&l(g,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(u):u(c);return s}gapSize(e,n,r,i){let o=ST(i,r)-ST(i,n);return this.heightOracle.lineWrapping?e.height*o:i.total*this.heightOracle.charWidth*o}updateLineGaps(e){F8.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=nt.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];tn.spans(e,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].to);return this.visibleRanges=n,r?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Hb(this.heightMap.lineAt(e,Dn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Hb(this.heightMap.lineAt(this.scaler.fromDOM(e),Dn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Hb(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class OT{constructor(e,n){this.from=e,this.to=n}}function fmt(t,e,n){let r=[],i=t,o=0;return tn.spans(n,t,e,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i<e&&(r.push({from:i,to:e}),o+=e-i),{total:o,ranges:r}}function wT({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:o,to:a}=e[i],s=a-o;if(r<=s)return o+r;r-=s}}function ST(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function dmt(t,e){for(let n of t)if(e(n))return n}const Oce={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class W8{constructor(e,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Dn.ByPos,e,0,0).top,c=n.lineAt(l,Dn.ByPos,e,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||e<o.top)return i+(e-r)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);r=o.bottom,i=o.domBottom}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||e<o.domTop)return r+(e-i)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);r=o.bottom,i=o.domBottom}}eq(e){return e instanceof W8?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function Hb(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new sl(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>Hb(i,e)):t._content)}const xT=Ye.define({combine:t=>t.join(" ")}),Q8=Ye.define({combine:t=>t.indexOf(!0)>-1}),H8=Dc.newName(),wce=Dc.newName(),Sce=Dc.newName(),xce={"&light":"."+wce,"&dark":"."+Sce};function G8(t,e,n){return new Dc(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const hmt=G8("."+H8,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},xce),Gb="￿";class pmt{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(Gt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Gb}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=_n.get(i),l=_n.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:cT(i))||cT(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(e){if(e.cmIgnore)return;let n=_n.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(gmt(e,r.node,r.offset)?n:0))}}function gmt(t,e,n){for(;;){if(!e||n<su(e))return!1;if(e==t)return!0;n=ph(e)+1,e=e.parentNode}}class Cce{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class vmt{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:o,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let s=o||a?[]:bmt(e),l=new pmt(s,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=_mt(s,this.bounds.from)}else{let s=e.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!y8(e.contentDOM,s.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!y8(e.contentDOM,s.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=e.viewport;if((Ze.ios||Ze.chrome)&&e.state.selection.main.empty&&l!=u&&(c.from>0||c.to<e.state.doc.length)){let f=Math.min(l,u),d=Math.max(l,u),p=c.from-f,g=c.to-d;(p==0||p==1||f==0)&&(g==0||g==-1||d==e.state.doc.length)&&(l=0,u=e.state.doc.length)}this.newSel=Ce.single(u,l)}}}function Tce(t,e){let n,{newSel:r}=e,i=t.state.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:s}=e.bounds,l=i.from,u=null;(o===8||Ze.android&&e.text.length<s-a)&&(l=i.to,u="end");let c=ymt(t.state.doc.sliceString(a,s,Gb),e.text,l-a,u);c&&(Ze.chrome&&o==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==Gb+Gb&&c.toB--,n={from:a+c.from,to:a+c.toA,insert:en.of(e.text.slice(c.from,c.toB).split(Gb))})}else r&&(!t.hasFocus&&t.state.facet(Bc)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:(Ze.mac||Ze.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Ce.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:en.of([" "])}):Ze.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
  401. `&&t.lineWrapping&&(r&&(r=Ce.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:en.of([" "])}),n)return Pce(t,n,r,o);if(r&&!r.main.eq(i)){let a=!1,s="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(a=!0),s=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function Pce(t,e,n,r=-1){if(Ze.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(Ze.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&bv(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&bv(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&bv(t.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a,s=()=>a||(a=mmt(t,e,n));return t.state.facet(Iue).some(l=>l(t,e.from,e.to,o,s))||t.dispatch(s()),!0}function mmt(t,e,n){let r,i=t.state,o=i.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let s=o.from<e.from?i.sliceDoc(o.from,e.from):"",l=o.to>e.to?i.sliceDoc(e.to,o.to):"";r=i.replaceSelection(t.state.toText(s+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let s=i.changes(e),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let u=t.state.sliceDoc(e.from,e.to),c,f=n&&jue(t,n.main.head);if(f){let g=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-g}}else c=t.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;r=i.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:s,range:l||g.map(s)};let v=g.to-d,m=v-u.length;if(g.to-g.from!=p||t.state.sliceDoc(m,v)!=u||g.to>=c.from&&g.from<=c.to)return{range:g};let y=i.changes({from:m,to:v,insert:e.insert}),b=g.to-o.to;return{changes:y,range:l?Ce.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):g.map(y)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function ymt(t,e,n,r){let i=Math.min(t.length,e.length),o=0;for(;o<i&&t.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==i&&t.length==e.length)return null;let a=t.length,s=e.length;for(;a>0&&s>0&&t.charCodeAt(a-1)==e.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a<o&&t.length<e.length){let l=n<=o&&n>=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s<o){let l=n<=o&&n>=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function bmt(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new Cce(n,r)),(i!=n||o!=r)&&e.push(new Cce(i,o))),e}function _mt(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?Ce.single(n+e,r+e):null}const Omt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},j8=Ze.ie&&Ze.ie_version<=11;class wmt{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new avt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Ze.ie&&Ze.ie_version<=11||Ze.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(Ze.chrome&&Ze.chrome_version<126)&&(this.editContext=new xmt(e),e.state.facet(Bc)&&(e.contentDOM.editContext=this.editContext.editContext)),j8&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Bc)?r.root.activeElement!=this.dom:!uT(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Ze.ie&&Ze.ie_version<=11||Ze.android&&Ze.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Lb(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=Nb(e.root);if(!n)return!1;let r=Ze.safari&&e.root.nodeType==11&&nvt(this.dom.ownerDocument)==this.dom&&Smt(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=uT(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&lvt(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Omt),j8&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),j8&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let i=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&bv(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let o of e){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&uT(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new vmt(this.view,e,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Tce(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=$ce(n,e.previousSibling||e.target.previousSibling,-1),i=$ce(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Bc)!=e.state.facet(Bc)&&(e.view.contentDOM.editContext=e.state.facet(Bc)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function $ce(t,e,n){for(;e;){let r=_n.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function Ace(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return Lb(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function Smt(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Ace(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?Ace(t,n):null}class xmt{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});n.addEventListener("textupdate",r=>{let{anchor:i}=e.state.selection.main,o={from:this.toEditorPos(r.updateRangeStart),to:this.toEditorPos(r.updateRangeEnd),insert:en.of(r.text.split(`
  402. `))};o.from==this.from&&i<this.from?o.from=i:o.to==this.to&&i>this.to&&(o.to=i),!(o.from==o.to&&!o.insert.length)&&(this.pendingContextChange=o,Pce(e,o,Ce.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd))),this.pendingContextChange&&this.revertPending(e.state))}),n.addEventListener("characterboundsupdate",r=>{let i=[],o=null;for(let a=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);a<s;a++){let l=e.coordsForChar(a);o=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||o||new DOMRect,i.push(o)}n.updateCharacterBounds(r.rangeStart,i)}),n.addEventListener("textformatupdate",r=>{let i=[];for(let o of r.getTextFormats()){let a=o.underlineStyle,s=o.underlineThickness;if(a!="None"&&s!="None"){let l=`text-decoration: underline ${a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${s=="Thin"?1:2}px`;i.push(nt.mark({attributes:{style:l}}).range(this.toEditorPos(o.rangeStart),this.toEditorPos(o.rangeEnd)))}}e.dispatch({effects:Lue.of(nt.set(i))})}),n.addEventListener("compositionstart",()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)}),n.addEventListener("compositionend",()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null}),this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=Nb(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,i=this.pendingContextChange;return e.changes.iterChanges((o,a,s,l,u)=>{if(r)return;let c=u.length-(a-o);if(i&&a>=i.to)if(i.from==o&&i.to==a&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=c,this.to+=c;return}else i=null,this.revertPending(e.state);if(o+=n,a+=n,a<=this.from)this.from+=c,this.to+=c;else if(o<this.to){if(o<this.from||a>this.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(a),u.toString()),this.to+=c}n+=c}),i&&!r&&this.revertPending(e.state),!r}update(e){!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.to+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}}class He{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||svt(e.parent)||document,this.viewState=new _ce(e.state||Gt.create(e)),e.scrollTo&&e.scrollTo.is(gT)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Fb).map(r=>new I8(r));for(let r of this.plugins)r.update(this);this.observer=new wmt(this),this.inputState=new Vvt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Hue(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof fr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;e.some(d=>d.annotation(hce))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=pce(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(Gt.phrases)!=this.state.facet(Gt.phrases))return this.setState(o);i=vT.create(this,o,e),i.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new wv(p.empty?p:Ce.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(gT)&&(f=p.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=CT.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Qb)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(xT)!=i.state.facet(xT)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let d of this.state.facet(M8))try{d(i)}catch(p){to(this.state,p,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Tce(this,c)&&u.force&&bv(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new _ce(e),this.plugins=e.facet(Fb).map(r=>new I8(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new Hue(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(Fb),r=e.state.facet(Fb);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new I8(o));else{let s=this.plugins[a];s.mustUpdate=e,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(r){to(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(aue(r))o=-1,a=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(i);o=p.from,a=p.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(p=>{try{return p.read(this)}catch(g){return to(this.state,g),Ece}}),f=vT.create(this,this.state,[]),d=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p<u.length;p++)if(c[p]!=Ece)try{let g=u[p];g.write&&g.write(c[p],this)}catch(g){to(this.state,g)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let g=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-a;if(g>1||g<-1){i=i+g,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(M8))s(n)}get themeClasses(){return H8+" "+(this.state.facet(Q8)?Sce:wce)+" "+this.state.facet(xT)}updateAttrs(){let e=Mce(this,Bue,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Bc)?"true":"false",class:"cm-content",style:`${Ze.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),Mce(this,D8,n);let r=this.observer.ignore(()=>{let i=C8(this.contentDOM,this.contentAttrs,n),o=C8(this.dom,this.editorAttrs,e);return i||o});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let i of r.effects)if(i.is(He.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Qb);let e=this.state.facet(He.cspNonce);Dc.mount(this.root,this.styleModules.concat(hmt).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return B8(this,e,Kue(this,e,n,r))}moveByGroup(e,n){return B8(this,e,Kue(this,e,n,r=>Lvt(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),o=r[n?r.length-1:0];return Ce.cursor(o.side(n,i)+e.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return Nvt(this,e,n,r)}moveVertically(e,n,r){return B8(this,e,Bvt(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),Yue(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),o=this.bidiSpans(i),a=o[Lc.find(o,e-i.from,-1,n)];return fT(r,a.dir==In.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Rue)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Cmt)return Tue(e.length);let n=this.textDirectionAt(e.from),r;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||Cue(o.isolates,r=Fue(this,e))))return o.order;r||(r=Fue(this,e));let i=_vt(e.text,n,r);return this.bidiCache.push(new CT(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ze.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{rue(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return gT.of(new wv(typeof e=="number"?Ce.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return gT.of(new wv(Ce.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return rr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rr.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Dc.newName(),i=[xT.of(r),Qb.of(G8(`.${r}`,e))];return n&&n.dark&&i.push(Q8.of(!0)),i}static baseTheme(e){return Mc.lowest(Qb.of(G8("."+H8,e,xce)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&_n.get(r)||_n.get(e);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}He.styleModule=Qb,He.inputHandler=Iue,He.scrollHandler=Nue,He.focusChangeEffect=Due,He.perLineTextDirection=Rue,He.exceptionSink=Mue,He.updateListener=M8,He.editable=Bc,He.mouseSelectionStyle=Eue,He.dragMovesSelection=Aue,He.clickAddsSelectionRange=$ue,He.decorations=Wb,He.outerDecorations=Vue,He.atomicRanges=R8,He.bidiIsolatedRanges=zue,He.scrollMargins=Wue,He.darkTheme=Q8,He.cspNonce=Ye.define({combine:t=>t.length?t[0]:""}),He.contentAttributes=D8,He.editorAttributes=Bue,He.lineWrapping=He.contentAttributes.of({class:"cm-lineWrapping"}),He.announce=Ot.define();const Cmt=4096,Ece={};class CT{constructor(e,n,r,i,o,a){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(e,n){if(n.empty&&!e.some(o=>o.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:In.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let a=e[o];a.dir==i&&!n.touchesRange(a.from,a.to)&&r.push(new CT(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function Mce(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let o=r[i],a=typeof o=="function"?o(t):o;a&&x8(a,n)}return n}const Tmt=Ze.mac?"mac":Ze.windows?"win":Ze.linux?"linux":"key";function Pmt(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))e=="mac"?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(r="Alt-"+r),o&&(r="Ctrl-"+r),s&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function TT(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const $mt=Mc.default(He.domEventHandlers({keydown(t,e){return Rce(Dce(e.state),t,e,"editor")}})),jb=Ye.define({enables:$mt}),Ice=new WeakMap;function Dce(t){let e=t.facet(jb),n=Ice.get(e);return n||Ice.set(e,n=Mmt(e.reduce((r,i)=>r.concat(i),[]))),n}function Amt(t,e,n){return Rce(Dce(t.state),e,t,n)}let Vc=null;const Emt=4e3;function Mmt(t,e=Tmt){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var f,d;let p=n[a]||(n[a]=Object.create(null)),g=s.split(/ (?!$)/).map(y=>Pmt(y,e));for(let y=1;y<g.length;y++){let b=g.slice(0,y).join(" ");i(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[O=>{let w=Vc={view:O,prefix:b,scope:a};return setTimeout(()=>{Vc==w&&(Vc=null)},Emt),!0}]})}let v=g.join(" ");i(v,!1);let m=p[v]||(p[v]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&m.run.push(l),u&&(m.preventDefault=!0),c&&(m.stopPropagation=!0)};for(let a of t){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=a;for(let d in c)c[d].run.push(p=>f(p,U8))}let l=a[e]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}let U8=null;function Rce(t,e,n,r){U8=e;let i=tvt(e),o=Zr(i,0),a=xa(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;Vc&&Vc.view==n&&Vc.scope==r&&(s=Vc.prefix+" ",tce.indexOf(e.keyCode)<0&&(u=!0,Vc=null));let f=new Set,d=m=>{if(m){for(let y of m.run)if(!f.has(y)&&(f.add(y),y(n)))return m.stopPropagation&&(c=!0),!0;m.preventDefault&&(m.stopPropagation&&(c=!0),u=!0)}return!1},p=t[r],g,v;return p&&(d(p[s+TT(i,e,!a)])?l=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ze.windows&&e.ctrlKey&&e.altKey)&&(g=Rc[e.keyCode])&&g!=i?(d(p[s+TT(g,e,!0)])||e.shiftKey&&(v=kb[e.keyCode])!=i&&v!=g&&d(p[s+TT(v,e,!1)]))&&(l=!0):a&&e.shiftKey&&d(p[s+TT(i,e,!0)])&&(l=!0),!l&&d(p._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),U8=null,l}class Ub{constructor(e,n,r,i,o){this.className=e,this.left=n,this.top=r,this.width=i,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let o=kce(e);return[new Ub(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return Imt(e,n,r)}}function kce(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==In.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Nce(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let o=t.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=t.posAtCoords({x:o.left+1,y:a}),l=t.posAtCoords({x:o.right-1,y:a});return s==null||l==null?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}function Imt(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),o=t.textDirection==In.LTR,a=t.contentDOM,s=a.getBoundingClientRect(),l=kce(t),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),p=L8(t,r),g=L8(t,i),v=p.type==Di.Text?p:null,m=g.type==Di.Text?g:null;if(v&&(t.lineWrapping||p.widgetLineBreaks)&&(v=Nce(t,r,1,v)),m&&(t.lineWrapping||g.widgetLineBreaks)&&(m=Nce(t,i,-1,m)),v&&m&&v.from==m.from&&v.to==m.to)return b(O(n.from,n.to,v));{let S=v?O(n.from,null,v):w(p,!1),x=m?O(null,n.to,m):w(g,!0),T=[];return(v||p).to<(m||g).from-(v&&m?1:0)||p.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2<x.top?T.push(y(f,S.bottom,d,x.top)):S.bottom<x.top&&t.elementAtHeight((S.bottom+x.top)/2).type==Di.Text&&(S.bottom=x.top=(S.bottom+x.top)/2),b(S).concat(T).concat(b(x))}function y(S,x,T,$){return new Ub(e,S-l.left,x-l.top-.01,T-S,$-x+.01)}function b({top:S,bottom:x,horizontal:T}){let $=[];for(let A=0;A<T.length;A+=2)$.push(y(T[A],S,T[A+1],x));return $}function O(S,x,T){let $=1e9,A=-1e9,P=[];function M(L,D,B,F,z){let W=t.coordsAtPos(L,L==T.to?-2:2),j=t.coordsAtPos(B,B==T.from?2:-2);!W||!j||($=Math.min(W.top,j.top,$),A=Math.max(W.bottom,j.bottom,A),z==In.LTR?P.push(o&&D?f:W.left,o&&F?d:j.right):P.push(!o&&F?f:j.left,!o&&D?d:W.right))}let I=S??T.from,R=x??T.to;for(let L of t.visibleRanges)if(L.to>I&&L.from<R)for(let D=Math.max(L.from,I),B=Math.min(L.to,R);;){let F=t.state.doc.lineAt(D);for(let z of t.bidiSpans(F)){let W=z.from+F.from,j=z.to+F.from;if(W>=B)break;j>D&&M(Math.max(W,D),S==null&&W<=I,Math.min(j,B),x==null&&j>=R,z.dir)}if(D=F.to+1,D>=B)break}return P.length==0&&M(I,S==null,R,x==null,t.textDirection),{top:$,bottom:A,horizontal:P}}function w(S,x){let T=s.top+(x?S.top:S.bottom);return{top:T,bottom:T,horizontal:[]}}}function Dmt(t,e){return t.constructor==e.constructor&&t.eq(e)}class Rmt{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(PT)!=e.state.facet(PT)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(PT);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!Dmt(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const PT=Ye.define();function Lce(t){return[rr.define(e=>new Rmt(e,t)),PT.of(t)]}const Bce=!Ze.ios,Zb=Ye.define({combine(t){return il(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function kmt(t={}){return[Zb.of(t),Nmt,Lmt,Bmt,kue.of(!0)]}function Vce(t){return t.startState.facet(Zb)!=t.state.facet(Zb)}const Nmt=Lce({above:!0,markers(t){let{state:e}=t,n=e.facet(Zb),r=[];for(let i of e.selection.ranges){let o=i==e.selection.main;if(i.empty?!o||Bce:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:Ce.cursor(i.head,i.head>i.anchor?-1:1);for(let l of Ub.forRange(t,a,s))r.push(l)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Vce(t);return n&&zce(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){zce(e.state,t)},class:"cm-cursorLayer"});function zce(t,e){e.style.animationDuration=t.facet(Zb).cursorBlinkRate+"ms"}const Lmt=Lce({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:Ub.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Vce(t)},class:"cm-selectionLayer"}),Z8={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Bce&&(Z8[".cm-line"].caretColor=Z8[".cm-content"].caretColor="transparent !important");const Bmt=Mc.highest(He.theme(Z8)),Fce=Ot.define({map(t,e){return t==null?null:e.mapPos(t)}}),Xb=kr.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(Fce)?r.value:n,t)}}),Vmt=rr.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Xb);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Xb)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Xb),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Xb)!=t&&this.view.dispatch({effects:Fce.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function zmt(){return[Xb,Vmt]}function Wce(t,e,n,r,i){e.lastIndex=0;for(let o=t.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=e.exec(o.value);)i(a+s.index,s)}function Fmt(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class Wmt{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let f=r(s,l,u);f&&c(u,u+s[0].length,f)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(e){let n=new Ic,r=n.add.bind(n);for(let{from:i,to:o}of Fmt(e,this.maxLength))Wce(e.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,e,a,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((o,a,s,l)=>{l>e.view.viewport.from&&s<e.view.viewport.to&&(r=Math.min(s,r),i=Math.max(l,i))}),e.viewportChanged||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let o of e.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=e.state.doc.lineAt(a),u=l.to<s?e.state.doc.lineAt(s):l,c=Math.max(o.from,l.from),f=Math.min(o.to,u.to);if(this.boundary){for(;a>l.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){f=s;break}}let d=[],p,g=(v,m,y)=>d.push(y.range(v,m));if(l==u)for(this.regexp.lastIndex=c-l.from;(p=this.regexp.exec(l.text))&&p.index<f-l.from;)this.addMatch(p,e,p.index+l.from,g);else Wce(e.state.doc,this.regexp,c,f,(v,m)=>this.addMatch(m,e,v,g));n=n.update({filterFrom:c,filterTo:f,filter:(v,m)=>v<c||m>f,add:d})}}return n}}const X8=/x/.unicode!=null?"gu":"g",Qmt=new RegExp(`[\0-\b
  403. --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,X8),Hmt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Y8=null;function Gmt(){var t;if(Y8==null&&typeof document<"u"&&document.body){let e=document.body.style;Y8=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Y8||!1}const $T=Ye.define({combine(t){let e=il(t,{render:null,specialChars:Qmt,addSpecialChars:null});return(e.replaceTabs=!Gmt())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,X8)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,X8)),e}});function jmt(t={}){return[$T.of(t),Umt()]}let Qce=null;function Umt(){return Qce||(Qce=rr.fromClass(class{constructor(t){this.view=t,this.decorations=nt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet($T)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Wmt({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,o=Zr(e[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=vv(a.text,s,r-a.from);return nt.replace({widget:new qmt((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=nt.replace({widget:new Ymt(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet($T);t.startState.facet($T)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Zmt="•";function Xmt(t){return t>=32?Zmt:t==10?"␤":String.fromCharCode(9216+t)}class Ymt extends ol{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Xmt(this.code),r=e.state.phrase("Control character")+" "+(Hmt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class qmt extends ol{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Kmt(){return e0t}const Jmt=nt.line({class:"cm-activeLine"}),e0t=rr.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(Jmt.range(i.from)),e=i.from)}return nt.set(n)}},{decorations:t=>t.decorations});class t0t extends ol{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let n=e.firstChild?mv(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=fT(n[0],r.direction!="rtl"),o=parseInt(r.lineHeight);return i.bottom-i.top>o*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+o}:i}ignoreEvent(){return!1}}function n0t(t){return rr.fromClass(class{constructor(e){this.view=e,this.placeholder=t?nt.set([nt.widget({widget:new t0t(t),side:1}).range(0)]):nt.none}get decorations(){return this.view.state.doc.length?nt.none:this.placeholder}},{decorations:e=>e.decorations})}const q8=2e3;function r0t(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),o=[];if(e.off>q8||n.off>q8||e.col<0||n.col<0){let a=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let l=r;l<=i;l++){let u=t.doc.line(l);u.length<=s&&o.push(Ce.range(u.from+a,u.to+s))}}else{let a=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let l=r;l<=i;l++){let u=t.doc.line(l),c=p8(u.text,a,t.tabSize,!0);if(c<0)o.push(Ce.cursor(u.to));else{let f=p8(u.text,s,t.tabSize);o.push(Ce.range(u.from+c,u.from+f))}}}return o}function i0t(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function Hce(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,o=i>q8?-1:i==r.length?i0t(t,e.clientX):vv(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function o0t(t,e){let n=Hce(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(n.line).from),a=i.state.doc.lineAt(o);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(i.changes)}},get(i,o,a){let s=Hce(t,i);if(!s)return r;let l=r0t(t.state,n,s);return l.length?a?Ce.create(l.concat(r.ranges)):Ce.create(l):r}}:null}function a0t(t){let e=n=>n.altKey&&n.button==0;return He.mouseSelectionStyle.of((n,r)=>e(r)?o0t(n,r):null)}const s0t={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},l0t={style:"cursor: crosshair"};function u0t(t={}){let[e,n]=s0t[t.key||"Alt"],r=rr.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i))},keyup(i){(i.keyCode==e||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,He.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?l0t:null})]}const Yb="-10000px";class Gce{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let o=null;this.tooltipViews=this.tooltips.map(a=>o=r(a,o))}update(e,n){var r;let i=e.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let a=[],s=n?[]:null;for(let l=0;l<o.length;l++){let u=o[l],c=-1;if(u){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==u.create&&(c=f)}if(c<0)a[l]=this.createTooltipView(u,l?a[l-1]:null),s&&(s[l]=!!u.above);else{let f=a[l]=this.tooltipViews[c];s&&(s[l]=n[c]),f.update&&f.update(e)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(s.forEach((l,u)=>n[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function c0t(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const K8=Ye.define({combine:t=>{var e,n,r;return{position:Ze.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||c0t}}}),jce=new WeakMap,J8=rr.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(K8);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Gce(t,e5,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(K8);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=Yb,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Ze.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Yb&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((i,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(K8).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:r}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=t,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],u=this.manager.tooltipViews[s],{dom:c}=u,f=t.pos[s],d=t.size[s];if(!f||f.bottom<=Math.max(n.top,r.top)||f.top>=Math.min(n.bottom,r.bottom)||f.right<Math.max(n.left,r.left)-.1||f.left>Math.min(n.right,r.right)+.1){c.style.top=Yb;continue}let p=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,v=d.right-d.left,m=(e=jce.get(u))!==null&&e!==void 0?e:d.bottom-d.top,y=u.offset||d0t,b=this.view.textDirection==In.LTR,O=d.width>r.right-r.left?b?r.left:r.right-d.width:b?Math.min(f.left-(p?14:0)+y.x,r.right-v):Math.max(r.left,f.left-v+(p?14:0)-y.x),w=this.above[s];!l.strictSide&&(w?f.top-(d.bottom-d.top)-y.y<r.top:f.bottom+(d.bottom-d.top)+y.y>r.bottom)&&w==r.bottom-f.bottom>f.top-r.top&&(w=this.above[s]=!w);let S=(w?f.top-r.top:r.bottom-f.bottom)-g;if(S<m&&u.resize!==!1){if(S<this.view.defaultLineHeight){c.style.top=Yb;continue}jce.set(u,m),c.style.height=(m=S)/o+"px"}else c.style.height&&(c.style.height="");let x=w?f.top-m-g-y.y:f.bottom+g+y.y,T=O+v;if(u.overlap!==!0)for(let $ of a)$.left<T&&$.right>O&&$.top<x+m&&$.bottom>x&&(x=w?$.top-m-2-g:$.bottom+g+2);if(this.position=="absolute"?(c.style.top=(x-t.parent.top)/o+"px",c.style.left=(O-t.parent.left)/i+"px"):(c.style.top=x/o+"px",c.style.left=O/i+"px"),p){let $=f.left+(b?y.x:-y.x)-(O+14-7);p.style.left=$/i+"px"}u.overlap!==!0&&a.push({left:O,top:x,right:T,bottom:x+m}),c.classList.toggle("cm-tooltip-above",w),c.classList.toggle("cm-tooltip-below",!w),u.positioned&&u.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Yb}},{eventObservers:{scroll(){this.maybeMeasure()}}}),f0t=He.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),d0t={x:0,y:0},e5=Ye.define({enables:[J8,f0t]}),AT=Ye.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class ET{static create(e){return new ET(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Gce(e,AT,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const h0t=e5.compute([AT],t=>{let e=t.facet(AT);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:ET.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class p0t{constructor(e,n,r,i,o){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.nearest(n.target);if(!r)return;let i,o=1;if(r instanceof kc)i=r.posAtStart;else{if(i=e.posAtCoords(n),i==null)return;let s=e.coordsAtPos(i);if(!s||n.y<s.top||n.y>s.bottom||n.x<s.left-e.defaultCharacterWidth||n.x>s.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==In.RTL?-1:1;o=n.x<s.left?-u:u}let a=this.source(e,i,o);if(a!=null&&a.then){let s=this.pending={pos:i};a.then(l=>{this.pending==s&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>to(e.state,l,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(J8),n=e?e.manager.tooltips.findIndex(r=>r.create==ET.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:o}=this;if(i.length&&o&&!g0t(o.dom,e)||this.pending){let{pos:a}=i[0]||this.pending,s=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!v0t(this.view,a,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const MT=4;function g0t(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-MT&&e.clientX<=n.right+MT&&e.clientY>=n.top-MT&&e.clientY<=n.bottom+MT}function v0t(t,e,n,r,i,o){let a=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(a.left>r||a.right<r||a.top>i||Math.min(a.bottom,s)<i)return!1;let l=t.posAtCoords({x:r,y:i},!1);return l>=e&&l<=n}function m0t(t,e={}){let n=Ot.define(),r=kr.define({create(){return[]},update(i,o){if(i.length&&(e.hideOnChange&&(o.docChanged||o.selection)?i=[]:e.hideOn&&(i=i.filter(a=>!e.hideOn(o,a))),o.docChanged)){let a=[];for(let s of i){let l=o.changes.mapPos(s.pos,-1,Xr.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),s);u.pos=l,u.end!=null&&(u.end=o.changes.mapPos(u.end)),a.push(u)}}i=a}for(let a of o.effects)a.is(n)&&(i=a.value),a.is(y0t)&&(i=[]);return i},provide:i=>AT.from(i)});return[r,rr.define(i=>new p0t(i,t,r,n,e.hoverTime||300)),h0t]}function Uce(t,e){let n=t.plugin(J8);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const y0t=Ot.define(),Zce=Ye.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function qb(t,e){let n=t.plugin(Xce),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const Xce=rr.fromClass(class{constructor(t){this.input=t.state.facet(Kb),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(Zce);this.top=new IT(t,!0,e.topContainer),this.bottom=new IT(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(Zce);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new IT(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new IT(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Kb);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(t.view),s.push(c)):(c=this.panels[u],c.update&&c.update(t)),i.push(c),(c.top?o:a).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(a);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>He.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class IT{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=Yce(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=Yce(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Yce(t){let e=t.nextSibling;return t.remove(),e}const Kb=Ye.define({enables:Xce});class cu extends hh{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}cu.prototype.elementClass="",cu.prototype.toDOM=void 0,cu.prototype.mapMode=Xr.TrackBefore,cu.prototype.startSide=cu.prototype.endSide=-1,cu.prototype.point=!0;const DT=Ye.define(),b0t={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>tn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Jb=Ye.define();function _0t(t){return[Kce(),Jb.of(Object.assign(Object.assign({},b0t),t))]}const qce=Ye.define({combine:t=>t.some(e=>e)});function Kce(t){return[O0t]}const O0t=rr.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Jb).map(e=>new efe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(qce),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(qce)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=tn.iter(this.view.state.facet(DT),this.view.viewport.from),r=[],i=this.gutters.map(o=>new w0t(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let a=!0;for(let s of o.type)if(s.type==Di.Text&&a){t5(n,r,s.from);for(let l of i)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(o.type==Di.Text){t5(n,r,o.from);for(let a of i)a.line(this.view,o,r)}else if(o.widget)for(let a of i)a.widget(this.view,o);for(let o of i)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Jb),n=t.state.facet(Jb),r=t.docChanged||t.heightChanged||t.viewportChanged||!tn.eq(t.startState.facet(DT),t.state.facet(DT),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let o of n){let a=e.indexOf(o);a<0?i.push(new efe(this.view,o)):(this.gutters[a].update(t),i.push(this.gutters[a]))}for(let o of this.gutters)o.dom.remove(),i.indexOf(o)<0&&o.destroy();for(let o of i)this.dom.appendChild(o.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>He.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==In.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function Jce(t){return Array.isArray(t)?t:[t]}function t5(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class w0t{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=tn.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,o=(n.top-this.height)/e.scaleY,a=n.height/e.scaleY;if(this.i==i.elements.length){let s=new tfe(e,a,o,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(e,a,o,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];t5(this.cursor,i,n.from),r.length&&(i=i.concat(r));let o=this.gutter.config.lineMarker(e,n,i);o&&i.unshift(o);let a=this.gutter;i.length==0&&!a.config.renderEmptyElements||this.addElement(e,n,i)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n);r&&this.addElement(e,n,[r])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class efe{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let o=i.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=i.clientY;let s=e.lineBlockAtHeight(a-e.documentTop);n.domEventHandlers[r](e,s,i)&&i.preventDefault()});this.markers=Jce(n.markers(e)),n.initialSpacer&&(this.spacer=new tfe(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=Jce(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let r=e.view.viewport;return!tn.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class tfe{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i)}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),S0t(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,a=0;;){let s=a,l=o<n.length?n[o++]:null,u=!1;if(l){let c=l.elementClass;c&&(r+=" "+c);for(let f=a;f<this.markers.length;f++)if(this.markers[f].compare(l)){s=f,u=!0;break}}else s=this.markers.length;for(;a<s;){let c=this.markers[a++];if(c.toDOM){c.destroy(i);let f=i.nextSibling;i.remove(),i=f}}if(!l)break;l.toDOM&&(u?i=i.nextSibling:this.dom.insertBefore(l.toDOM(e),i)),u&&a++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function S0t(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const x0t=Ye.define(),Sv=Ye.define({combine(t){return il(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let o=r[i],a=n[i];r[i]=o?(s,l,u)=>o(s,l,u)||a(s,l,u):a}return r}})}});class n5 extends cu{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function r5(t,e){return t.state.facet(Sv).formatNumber(e,t.state)}const C0t=Jb.compute([Sv],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(x0t)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new n5(r5(e,e.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Sv)!=e.state.facet(Sv),initialSpacer(e){return new n5(r5(e,nfe(e.state.doc.lines)))},updateSpacer(e,n){let r=r5(n.view,nfe(n.view.state.doc.lines));return r==e.number?e:new n5(r)},domEventHandlers:t.facet(Sv).domEventHandlers}));function T0t(t={}){return[Sv.of(t),Kce(),C0t]}function nfe(t){let e=9;for(;e<t;)e=e*10+9;return e}const P0t=new class extends cu{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},$0t=DT.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(P0t.range(i)))}return tn.of(e)});function A0t(){return $0t}const rfe=1024;let E0t=0;class i5{constructor(e,n){this.from=e,this.to=n}}class Bt{constructor(e={}){this.id=E0t++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=no.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}Bt.closedBy=new Bt({deserialize:t=>t.split(" ")}),Bt.openedBy=new Bt({deserialize:t=>t.split(" ")}),Bt.group=new Bt({deserialize:t=>t.split(" ")}),Bt.isolate=new Bt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),Bt.contextHash=new Bt({perNode:!0}),Bt.lookAhead=new Bt({perNode:!0}),Bt.mounted=new Bt({perNode:!0});class RT{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[Bt.mounted.id]}}const M0t=Object.create(null);class no{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i}static define(e){let n=e.props&&e.props.length?Object.create(null):M0t,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new no(e.name||"",n,e.id,r);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Bt.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(Bt.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}no.none=new no("",Object.create(null),0,8);class o5{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let i=null;for(let o of e){let a=o(r);a&&(i||(i=Object.assign({},r.props)),i[a[0].id]=a[1])}n.push(i?new no(r.name,i,r.id,r.flags):r)}return new o5(n)}}const kT=new WeakMap,ife=new WeakMap;var Cr;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Cr||(Cr={}));class hr{constructor(e,n,r,i,o){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[a,s]of o)this.props[typeof a=="number"?a:a.id]=s}}toString(){let e=RT.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new l5(this.topNode,e)}cursorAt(e,n=0,r=0){let i=kT.get(this)||this.topNode,o=new l5(i);return o.moveTo(e,n),kT.set(this,o._tree),o}get topNode(){return new ro(this,0,0,null)}resolve(e,n=0){let r=e_(kT.get(this)||this.topNode,e,n,!1);return kT.set(this,r),r}resolveInner(e,n=0){let r=e_(ife.get(this)||this.topNode,e,n,!0);return ife.set(this,r),r}resolveStack(e,n=0){return R0t(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:o=this.length}=e,a=e.mode||0,s=(a&Cr.IncludeAnonymous)>0;for(let l=this.cursor(a|Cr.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:c5(no.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new hr(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new hr(no.none,n,r,i)))}static build(e){return k0t(e)}}hr.empty=new hr(no.none,[],[],0);class a5{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new a5(this.buffer,this.index)}}class zc{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return no.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],i=this.set.types[n],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),e+=4,r==e)return o;let a=[];for(;e<r;)a.push(this.childString(e)),e=this.buffer[e+3];return o+"("+a.join(",")+")"}findChild(e,n,r,i,o){let{buffer:a}=this,s=-1;for(let l=e;l!=n&&!(ofe(o,i,a[l+1],a[l+2])&&(s=l,r>0));l=a[l+3]);return s}slice(e,n,r){let i=this.buffer,o=new Uint16Array(n-e),a=0;for(let s=e,l=0;s<n;){o[l++]=i[s++],o[l++]=i[s++]-r;let u=o[l++]=i[s++]-r;o[l++]=i[s++]-e,a=Math.max(a,u)}return new zc(o,a,this.set)}}function ofe(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function e_(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let a=!r&&t instanceof ro&&t.index<0?null:t.parent;if(!a)return t;t=a}let o=r?0:Cr.IgnoreOverlays;if(r)for(let a=t,s=a.parent;s;a=s,s=a.parent)a instanceof ro&&a.index<0&&((i=s.enter(e,n,o))===null||i===void 0?void 0:i.from)!=a.from&&(t=s);for(;;){let a=t.enter(e,n,o);if(!a)return t;t=a}}class afe{cursor(e=0){return new l5(this,e)}getChild(e,n=null,r=null){let i=sfe(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return sfe(this,e,n,r)}resolve(e,n=0){return e_(this,e,n,!1)}resolveInner(e,n=0){return e_(this,e,n,!0)}matchContext(e){return s5(this,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class ro extends afe{constructor(e,n,r,i){super(),this._tree=e,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,i,o=0){for(let a=this;;){for(let{children:s,positions:l}=a._tree,u=n>0?s.length:-1;e!=u;e+=n){let c=s[e],f=l[e]+a.from;if(ofe(i,r,f,f+c.length)){if(c instanceof zc){if(o&Cr.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,n,r-f,i);if(d>-1)return new ll(new I0t(a,c,e,f),null,d)}else if(o&Cr.IncludeAnonymous||!c.type.isAnonymous||u5(c)){let d;if(!(o&Cr.IgnoreMounts)&&(d=RT.get(c))&&!d.overlay)return new ro(d.tree,f,e,a);let p=new ro(c,f,e,a);return o&Cr.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&Cr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+n:e=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&Cr.IgnoreOverlays)&&(i=RT.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a<o)&&(n<0?s>=o:s>o))return new ro(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function sfe(t,e,n,r){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function s5(t,e,n=e.length-1){for(let r=t.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class I0t{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class ll extends afe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return o<0?null:new ll(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&Cr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new ll(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new ll(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new ll(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];e.push(r.slice(i,o,a)),n.push(0)}return new hr(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function lfe(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;o<t.length;o++){let a=t[o];(a.from>n.from||a.to<n.to)&&(n=a,e=o)}let r=n instanceof ro&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new D0t(i,n)}class D0t{constructor(e,n){this.heads=e,this.node=n}get next(){return lfe(this.heads)}}function R0t(t,e,n){let r=t.resolveInner(e,n),i=null;for(let o=r instanceof ro?r:r.context.parent;o;o=o.parent)if(o.index<0){let a=o.parent;(i||(i=[r])).push(a.resolve(e,n)),o=a}else{let a=RT.get(o.tree);if(a&&a.overlay&&a.overlay[0].from<=e&&a.overlay[a.overlay.length-1].to>=e){let s=new ro(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(e_(s,e,n,!1))}}return i?lfe(i):r}class l5{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ro)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof ro?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&Cr.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Cr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Cr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let o=n+e,a=e<0?-1:r._tree.children.length;o!=a;o+=e){let s=r._tree.children[o];if(this.mode&Cr.IncludeAnonymous||s instanceof zc||!s.type.isAnonymous||u5(s))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let a=e;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i<this.stack.length;i++)n=new ll(this.buffer,n,this.stack[i]);return this.bufferNode=new ll(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return s5(this.node,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return s5(this.node,e,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(e[i]&&e[i]!=a.name)return!1;i--}}return!0}}function u5(t){return t.children.some(e=>e instanceof zc||!e.type.isAnonymous||u5(e))}function k0t(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=rfe,reused:o=[],minRepeatType:a=r.types.length}=t,s=Array.isArray(n)?new a5(n,n.length):n,l=r.types,u=0,c=0;function f(S,x,T,$,A,P){let{id:M,start:I,end:R,size:L}=s,D=c;for(;L<0;)if(s.next(),L==-1){let j=o[M];T.push(j),$.push(I-S);return}else if(L==-3){u=M;return}else if(L==-4){c=M;return}else throw new RangeError(`Unrecognized record size: ${L}`);let B=l[M],F,z,W=I-S;if(R-I<=i&&(z=m(s.pos-x,A))){let j=new Uint16Array(z.size-z.skip),H=s.pos-z.size,Z=j.length;for(;s.pos>H;)Z=y(z.start,j,Z);F=new zc(j,R-z.start,r),W=z.start-S}else{let j=s.pos-L;s.next();let H=[],Z=[],J=M>=a?M:-1,se=0,oe=R;for(;s.pos>j;)J>=0&&s.id==J&&s.size>=0?(s.end<=oe-i&&(g(H,Z,I,se,s.end,oe,J,D),se=H.length,oe=s.end),s.next()):P>2500?d(I,j,H,Z):f(I,j,H,Z,J,P+1);if(J>=0&&se>0&&se<H.length&&g(H,Z,I,se,I,oe,J,D),H.reverse(),Z.reverse(),J>-1&&se>0){let de=p(B);F=c5(B,H,Z,0,H.length,0,R-I,de,de)}else F=v(B,H,Z,R-I,D-R)}T.push(F),$.push(W)}function d(S,x,T,$){let A=[],P=0,M=-1;for(;s.pos>x;){let{id:I,start:R,end:L,size:D}=s;if(D>4)s.next();else{if(M>-1&&R<M)break;M<0&&(M=L-i),A.push(I,R,L),P++,s.next()}}if(P){let I=new Uint16Array(P*4),R=A[A.length-2];for(let L=A.length-3,D=0;L>=0;L-=3)I[D++]=A[L],I[D++]=A[L+1]-R,I[D++]=A[L+2]-R,I[D++]=D;T.push(new zc(I,A[2]-R,r)),$.push(R-S)}}function p(S){return(x,T,$)=>{let A=0,P=x.length-1,M,I;if(P>=0&&(M=x[P])instanceof hr){if(!P&&M.type==S&&M.length==$)return M;(I=M.prop(Bt.lookAhead))&&(A=T[P]+M.length+I)}return v(S,x,T,$,A)}}function g(S,x,T,$,A,P,M,I){let R=[],L=[];for(;S.length>$;)R.push(S.pop()),L.push(x.pop()+T-A);S.push(v(r.types[M],R,L,P-A,I-P)),x.push(A-T)}function v(S,x,T,$,A=0,P){if(u){let M=[Bt.contextHash,u];P=P?[M].concat(P):[M]}if(A>25){let M=[Bt.lookAhead,A];P=P?[M].concat(P):[M]}return new hr(S,x,T,$,P)}function m(S,x){let T=s.fork(),$=0,A=0,P=0,M=T.end-i,I={size:0,start:0,skip:0};e:for(let R=T.pos-S;T.pos>R;){let L=T.size;if(T.id==x&&L>=0){I.size=$,I.start=A,I.skip=P,P+=4,$+=4,T.next();continue}let D=T.pos-L;if(L<0||D<R||T.start<M)break;let B=T.id>=a?4:0,F=T.start;for(T.next();T.pos>D;){if(T.size<0)if(T.size==-3)B+=4;else break e;else T.id>=a&&(B+=4);T.next()}A=F,$+=L,P+=B}return(x<0||$==S)&&(I.size=$,I.start=A,I.skip=P),I.size>4?I:void 0}function y(S,x,T){let{id:$,start:A,end:P,size:M}=s;if(s.next(),M>=0&&$<a){let I=T;if(M>4){let R=s.pos-(M-4);for(;s.pos>R;)T=y(S,x,T)}x[--T]=I,x[--T]=P-S,x[--T]=A-S,x[--T]=$}else M==-3?u=$:M==-4&&(c=$);return T}let b=[],O=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,b,O,-1,0);let w=(e=t.length)!==null&&e!==void 0?e:b.length?O[0]+b[0].length:0;return new hr(l[t.topID],b.reverse(),O.reverse(),w)}const ufe=new WeakMap;function NT(t,e){if(!t.isAnonymous||e instanceof zc||e.type!=t)return 1;let n=ufe.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof hr)){n=1;break}n+=NT(t,r)}ufe.set(e,n)}return n}function c5(t,e,n,r,i,o,a,s,l){let u=0;for(let g=r;g<i;g++)u+=NT(t,e[g]);let c=Math.ceil(u*1.5/8),f=[],d=[];function p(g,v,m,y,b){for(let O=m;O<y;){let w=O,S=v[O],x=NT(t,g[O]);for(O++;O<y;O++){let T=NT(t,g[O]);if(x+T>=c)break;x+=T}if(O==w+1){if(x>c){let T=g[w];p(T.children,T.positions,0,T.children.length,v[w]+b);continue}f.push(g[w])}else{let T=v[O-1]+g[O-1].length-S;f.push(c5(t,g,v,w,O,S,T,null,l))}d.push(S+b-o)}}return p(e,n,r,i,0),(s||l)(f,d,a)}class N0t{constructor(){this.map=new WeakMap}setBuffer(e,n,r){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(n,r)}getBuffer(e,n){let r=this.map.get(e);return r&&r.get(n)}set(e,n){e instanceof ll?this.setBuffer(e.context.buffer,e.index,n):e instanceof ro&&this.map.set(e.tree,n)}get(e){return e instanceof ll?this.getBuffer(e.context.buffer,e.index):e instanceof ro?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class mh{constructor(e,n,r,i,o=!1,a=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let i=[new mh(0,e.length,e,0,!1,r)];for(let o of n)o.to>e.length&&i.push(o);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],o=1,a=e.length?e[0]:null;for(let s=0,l=0,u=0;;s++){let c=s<n.length?n[s]:null,f=c?c.fromA:1e9;if(f-l>=r)for(;a&&a.from<f;){let d=a;if(l>=d.from||f<=d.to||u){let p=Math.max(d.from,l)-u,g=Math.min(d.to,f)-u;d=p>=g?null:new mh(p,g,d.tree,d.offset+u,s>0,!!c)}if(d&&i.push(d),a.to>f)break;a=o<e.length?e[o++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return i}}class cfe{startParse(e,n,r){return typeof e=="string"&&(e=new L0t(e)),r=r?r.length?r.map(i=>new i5(i.from,i.to)):[new i5(0,0)]:[new i5(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let o=i.advance();if(o)return o}}}class L0t{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new Bt({perNode:!0});let B0t=0;class ul{constructor(e,n,r){this.set=e,this.base=n,this.modified=r,this.id=B0t++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new ul([],null,[]);if(n.set.push(n),e)for(let r of e.set)n.set.push(r);return n}static defineModifier(){let e=new LT;return n=>n.modified.indexOf(e)>-1?n:LT.get(n.base||n,n.modified.concat(e).sort((r,i)=>r.id-i.id))}}let V0t=0;class LT{constructor(){this.instances=[],this.id=V0t++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(s=>s.base==e&&z0t(n,s.modified));if(r)return r;let i=[],o=new ul(i,e,n);for(let s of n)s.instances.push(o);let a=F0t(n);for(let s of e.set)if(!s.modified.length)for(let l of a)i.push(LT.get(s,l));return o}}function z0t(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function F0t(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function f5(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],a=2,s=i;for(let f=0;;){if(s=="..."&&f>0&&f+3==i.length){a=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+i);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==i.length)break;let p=i[f++];if(f==i.length&&p=="!"){a=0;break}if(p!="/")throw new RangeError("Invalid path: "+i);s=i.slice(f)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new BT(r,a,l>0?o.slice(0,l):null);e[u]=c.sort(e[u])}}return ffe.add(e)}const ffe=new Bt;class BT{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}BT.empty=new BT([],2,null);function dfe(t,e){let n=Object.create(null);for(let o of t)if(!Array.isArray(o.tag))n[o.tag.id]=o.class;else for(let a of o.tag)n[a.id]=o.class;let{scope:r,all:i=null}=e||{};return{style:o=>{let a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function W0t(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function Q0t(t,e,n,r=0,i=t.length){let o=new H0t(r,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),r,i,"",o.highlighters),o.flush(i)}class H0t{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,i,o){let{type:a,from:s,to:l}=e;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(a)));let u=i,c=G0t(e)||BT.empty,f=W0t(o,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,s),u),c.opaque)return;let d=e.tree&&e.tree.prop(Bt.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+s,1),g=this.highlighters.filter(m=>!m.scope||m.scope(d.tree.type)),v=e.firstChild();for(let m=0,y=s;;m++){let b=m<d.overlay.length?d.overlay[m]:null,O=b?b.from+s:l,w=Math.max(n,y),S=Math.min(r,O);if(w<S&&v)for(;e.from<S&&(this.highlightRange(e,w,S,i,o),this.startSpan(Math.min(S,e.to),u),!(e.to>=O||!e.nextSibling())););if(!b||O>r)break;y=b.to+s,y>n&&(this.highlightRange(p.cursor(),Math.max(n,b.from+s),Math.min(r,y),"",g),this.startSpan(Math.min(r,y),u))}v&&e.parent()}else if(e.firstChild()){d&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,o),this.startSpan(Math.min(r,e.to),u)}while(e.nextSibling());e.parent()}}}function G0t(t){let e=t.type.prop(ffe);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ve=ul.define,VT=Ve(),Fc=Ve(),hfe=Ve(Fc),pfe=Ve(Fc),Wc=Ve(),zT=Ve(Wc),d5=Ve(Wc),cl=Ve(),yh=Ve(cl),fl=Ve(),dl=Ve(),h5=Ve(),t_=Ve(h5),FT=Ve(),ae={comment:VT,lineComment:Ve(VT),blockComment:Ve(VT),docComment:Ve(VT),name:Fc,variableName:Ve(Fc),typeName:hfe,tagName:Ve(hfe),propertyName:pfe,attributeName:Ve(pfe),className:Ve(Fc),labelName:Ve(Fc),namespace:Ve(Fc),macroName:Ve(Fc),literal:Wc,string:zT,docString:Ve(zT),character:Ve(zT),attributeValue:Ve(zT),number:d5,integer:Ve(d5),float:Ve(d5),bool:Ve(Wc),regexp:Ve(Wc),escape:Ve(Wc),color:Ve(Wc),url:Ve(Wc),keyword:fl,self:Ve(fl),null:Ve(fl),atom:Ve(fl),unit:Ve(fl),modifier:Ve(fl),operatorKeyword:Ve(fl),controlKeyword:Ve(fl),definitionKeyword:Ve(fl),moduleKeyword:Ve(fl),operator:dl,derefOperator:Ve(dl),arithmeticOperator:Ve(dl),logicOperator:Ve(dl),bitwiseOperator:Ve(dl),compareOperator:Ve(dl),updateOperator:Ve(dl),definitionOperator:Ve(dl),typeOperator:Ve(dl),controlOperator:Ve(dl),punctuation:h5,separator:Ve(h5),bracket:t_,angleBracket:Ve(t_),squareBracket:Ve(t_),paren:Ve(t_),brace:Ve(t_),content:cl,heading:yh,heading1:Ve(yh),heading2:Ve(yh),heading3:Ve(yh),heading4:Ve(yh),heading5:Ve(yh),heading6:Ve(yh),contentSeparator:Ve(cl),list:Ve(cl),quote:Ve(cl),emphasis:Ve(cl),strong:Ve(cl),link:Ve(cl),monospace:Ve(cl),strikethrough:Ve(cl),inserted:Ve(),deleted:Ve(),changed:Ve(),invalid:Ve(),meta:FT,documentMeta:Ve(FT),annotation:Ve(FT),processingInstruction:Ve(FT),definition:ul.defineModifier(),constant:ul.defineModifier(),function:ul.defineModifier(),standard:ul.defineModifier(),local:ul.defineModifier(),special:ul.defineModifier()};dfe([{tag:ae.link,class:"tok-link"},{tag:ae.heading,class:"tok-heading"},{tag:ae.emphasis,class:"tok-emphasis"},{tag:ae.strong,class:"tok-strong"},{tag:ae.keyword,class:"tok-keyword"},{tag:ae.atom,class:"tok-atom"},{tag:ae.bool,class:"tok-bool"},{tag:ae.url,class:"tok-url"},{tag:ae.labelName,class:"tok-labelName"},{tag:ae.inserted,class:"tok-inserted"},{tag:ae.deleted,class:"tok-deleted"},{tag:ae.literal,class:"tok-literal"},{tag:ae.string,class:"tok-string"},{tag:ae.number,class:"tok-number"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],class:"tok-string2"},{tag:ae.variableName,class:"tok-variableName"},{tag:ae.local(ae.variableName),class:"tok-variableName tok-local"},{tag:ae.definition(ae.variableName),class:"tok-variableName tok-definition"},{tag:ae.special(ae.variableName),class:"tok-variableName2"},{tag:ae.definition(ae.propertyName),class:"tok-propertyName tok-definition"},{tag:ae.typeName,class:"tok-typeName"},{tag:ae.namespace,class:"tok-namespace"},{tag:ae.className,class:"tok-className"},{tag:ae.macroName,class:"tok-macroName"},{tag:ae.propertyName,class:"tok-propertyName"},{tag:ae.operator,class:"tok-operator"},{tag:ae.comment,class:"tok-comment"},{tag:ae.meta,class:"tok-meta"},{tag:ae.invalid,class:"tok-invalid"},{tag:ae.punctuation,class:"tok-punctuation"}]);var p5;const xv=new Bt;function gfe(t){return Ye.define({combine:t?e=>e.concat(t):void 0})}const g5=new Bt;class vs{constructor(e,n,r=[],i=""){this.data=e,this.name=i,Gt.prototype.hasOwnProperty("tree")||Object.defineProperty(Gt.prototype,"tree",{get(){return Tr(this)}}),this.parser=n,this.extension=[Qc.of(this),Gt.languageData.of((o,a,s)=>{let l=vfe(o,a,s),u=l.type.prop(xv);if(!u)return[];let c=o.facet(u),f=l.type.prop(g5);if(f){let d=l.resolve(a-l.from,s);for(let p of f)if(p.test(d,o)){let g=o.facet(p.facet);return p.type=="replace"?g:g.concat(c)}}return c})].concat(r)}isActiveAt(e,n,r=-1){return vfe(e,n,r).type.prop(xv)==this.data}findRegions(e){let n=e.facet(Qc);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(xv)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(Bt.mounted);if(s){if(s.tree.prop(xv)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;l<o.children.length;l++){let u=o.children[l];u instanceof hr&&i(u,o.positions[l]+a)}};return i(Tr(e),0),r}get allowsNesting(){return!0}}vs.setState=Ot.define();function vfe(t,e,n){let r=t.facet(Qc),i=Tr(t).topNode;if(!r||r.allowsNesting)for(let o=i;o;o=o.enter(e,n,Cr.ExcludeBuffers))o.type.isTop&&(i=o);return i}class n_ extends vs{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=gfe(e.languageData);return new n_(n,e.parser.configure({props:[xv.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new n_(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Tr(t){let e=t.field(vs.state,!1);return e?e.tree:hr.empty}class j0t{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let r_=null;class WT{constructor(e,n,r=[],i,o,a,s,l){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new WT(e,n,[],hr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new j0t(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=hr.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(mh.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(mh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=r_;r_=this;try{return e()}finally{r_=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=mfe(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,f,d)=>l.push({fromA:u,toA:c,fromB:f,toB:d})),r=mh.applyChanges(r,l),i=hr.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),f=e.mapPos(u.to,-1);c<f&&s.push({from:c,to:f})}}}return new WT(this.parser,n,r,i,o,a,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:o}=this.skipped[r];i<e.to&&o>e.from&&(this.fragments=mfe(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends cfe{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=r_;if(l){for(let u of i)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=a,new hr(no.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return r_}}function mfe(t,e,n){return mh.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Cv{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Cv(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=WT.create(e.facet(Qc).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Cv(r)}}vs.state=kr.define({create:Cv.init,update(t,e){for(let n of e.effects)if(n.is(vs.setState))return n.value;return e.startState.facet(Qc)!=e.state.facet(Qc)?Cv.init(e.state):t.apply(e)}});let yfe=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(yfe=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const v5=typeof navigator<"u"&&(!((p5=navigator.scheduling)===null||p5===void 0)&&p5.isInputPending)?()=>navigator.scheduling.isInputPending():null,U0t=rr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(vs.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(vs.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=yfe(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,o=r.field(vs.state);if(o.tree==o.context.tree&&o.context.isDone(i+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!v5?Math.max(25,e.timeRemaining()-5):1e9),s=o.context.treeLen<i&&r.doc.length>i+1e3,l=o.context.work(()=>v5&&v5()||Date.now()>a,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:vs.setState.of(new Cv(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>to(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Qc=Ye.define({combine(t){return t.length?t[0]:null},enables:t=>[vs.state,U0t,He.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class bfe{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const Z0t=Ye.define(),i_=Ye.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function QT(t){let e=t.facet(i_);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function o_(t,e){let n="",r=t.tabSize,i=t.facet(i_)[0];if(i==" "){for(;e>=r;)n+=" ",e-=r;i=" "}for(let o=0;o<e;o++)n+=i;return n}function m5(t,e){t instanceof Gt&&(t=new HT(t));for(let r of t.state.facet(Z0t)){let i=r(t,e);if(i!==void 0)return i}let n=Tr(t.state);return n.length>=e?X0t(t,n,e):null}class HT{constructor(e,n={}){this.state=e,this.options=n,this.unit=QT(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==e?{text:"",from:e}:(n<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,n);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,n=1){let{text:r,from:i}=this.lineAt(e,n),o=this.countColumn(r,e-i),a=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return a>-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,n=e.length){return vv(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const y5=new Bt;function X0t(t,e,n){let r=e.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return _fe(r,t,n)}function _fe(t,e,n){for(let r=t;r;r=r.next){let i=q0t(r.node);if(i)return i(b5.create(e,n,r))}return 0}function Y0t(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function q0t(t){let e=t.type.prop(y5);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(Bt.closedBy))){let i=t.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>Ofe(a,!0,1,void 0,o&&!Y0t(a)?i.from:void 0)}return t.parent==null?K0t:null}function K0t(){return 0}class b5 extends HT{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new b5(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(J0t(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return _fe(this.context.next,this.base,this.pos)}}function J0t(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function eyt(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=e.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<a?n:null;s=l.to}}function tyt({closing:t,align:e=!0,units:n=1}){return r=>Ofe(r,e,n,t)}function Ofe(t,e,n,r,i){let o=t.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==t.pos+a,l=e?eyt(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*n)}const nyt=t=>t.baseIndent;function a_({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const ryt=200;function iyt(){return Gt.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+ryt)return t;let o=n.sliceString(i.from,r);if(!e.some(u=>u.test(o)))return t;let{state:a}=t,s=-1,l=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==s)continue;s=c.from;let f=m5(a,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],p=o_(a,f);d!=p&&l.push({from:c.from,to:c.from+d.length,insert:p})}return l.length?[t,{changes:l,sequential:!0}]:t})}const oyt=Ye.define(),_5=new Bt;function wfe(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function ayt(t,e,n){let r=Tr(t);if(r.length<n)return null;let i=r.resolveStack(n,1),o=null;for(let a=i;a;a=a.next){let s=a.node;if(s.to<=n||s.from>n)continue;if(o&&s.from<e)break;let l=s.type.prop(_5);if(l&&(s.to<r.length-50||r.length==t.doc.length||!syt(s))){let u=l(s,t);u&&u.from<=n&&u.from>=e&&u.to>n&&(o=u)}}return o}function syt(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function GT(t,e,n){for(let r of t.facet(oyt)){let i=r(t,e,n);if(i)return i}return ayt(t,e,n)}function Sfe(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const jT=Ot.define({map:Sfe}),s_=Ot.define({map:Sfe});function xfe(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const bh=kr.define({create(){return nt.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(jT)&&!lyt(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Pfe),i=r?nt.replace({widget:new hyt(r(e.state,n.value))}):Efe;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(s_)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(i,o)=>{i<r&&o>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,o)=>o<=r||i>=r}))}return t},provide:t=>He.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(Efe.range(r,i))}return nt.set(e,!0)}});function UT(t,e,n){var r;let i=null;return(r=t.field(bh,!1))===null||r===void 0||r.between(e,n,(o,a)=>{(!i||i.from>o)&&(i={from:o,to:a})}),i}function lyt(t,e,n){let r=!1;return t.between(e,e,(i,o)=>{i==e&&o==n&&(r=!0)}),r}function Cfe(t,e){return t.field(bh,!1)?e:e.concat(Ot.appendConfig.of($fe()))}const uyt=t=>{for(let e of xfe(t)){let n=GT(t.state,e.from,e.to);if(n)return t.dispatch({effects:Cfe(t.state,[jT.of(n),Tfe(t,n)])}),!0}return!1},cyt=t=>{if(!t.state.field(bh,!1))return!1;let e=[];for(let n of xfe(t)){let r=UT(t.state,n.from,n.to);r&&e.push(s_.of(r),Tfe(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Tfe(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return He.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const fyt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:uyt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:cyt},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),o=GT(e,i.from,i.to);o&&n.push(jT.of(o)),r=(o?t.lineBlockAt(o.to):i).to+1}return n.length&&t.dispatch({effects:Cfe(t.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(bh,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(s_.of({from:r,to:i}))}),t.dispatch({effects:n}),!0}}],dyt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Pfe=Ye.define({combine(t){return il(t,dyt)}});function $fe(t){return[bh,vyt]}function Afe(t,e){let{state:n}=t,r=n.facet(Pfe),i=a=>{let s=t.lineBlockAt(t.posAtDOM(a.target)),l=UT(t.state,s.from,s.to);l&&t.dispatch({effects:s_.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const Efe=nt.replace({widget:new class extends ol{toDOM(t){return Afe(t,null)}}});class hyt extends ol{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Afe(e,this.value)}}const pyt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class O5 extends cu{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function gyt(t={}){let e=Object.assign(Object.assign({},pyt),t),n=new O5(e,!0),r=new O5(e,!1),i=rr.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Qc)!=a.state.facet(Qc)||a.startState.field(bh,!1)!=a.state.field(bh,!1)||Tr(a.startState)!=Tr(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Ic;for(let l of a.viewportLineBlocks){let u=UT(a.state,l.from,l.to)?r:GT(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=e;return[i,_0t({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(i))===null||s===void 0?void 0:s.markers)||tn.empty},initialSpacer(){return new O5(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=UT(a.state,s.from,s.to);if(u)return a.dispatch({effects:s_.of(u)}),!0;let c=GT(a.state,s.from,s.to);return c?(a.dispatch({effects:jT.of(c)}),!0):!1}})}),$fe()]}const vyt=He.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class l_{constructor(e,n){this.specs=e;let r;function i(s){let l=Dc.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof vs?s=>s.prop(xv)==a.data:a?s=>s==a:void 0,this.style=dfe(e.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new Dc(r):null,this.themeType=n.themeType}static define(e,n){return new l_(e,n||{})}}const w5=Ye.define(),Mfe=Ye.define({combine(t){return t.length?[t[0]]:null}});function S5(t){let e=t.facet(w5);return e.length?e:t.facet(Mfe)}function Ife(t,e){let n=[yyt],r;return t instanceof l_&&(t.module&&n.push(He.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(Mfe.of(t)):r?n.push(w5.computeN([He.darkTheme],i=>i.facet(He.darkTheme)==(r=="dark")?[t]:[])):n.push(w5.of(t)),n}class myt{constructor(e){this.markCache=Object.create(null),this.tree=Tr(e.state),this.decorations=this.buildDeco(e,S5(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Tr(e.state),r=S5(e.state),i=r!=S5(e.startState),{viewport:o}=e.view,a=e.changes.mapPos(this.decoratedTo,1);n.length<o.to&&!i&&n.type==this.tree.type&&a>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,n){if(!n||!this.tree.length)return nt.none;let r=new Ic;for(let{from:i,to:o}of e.visibleRanges)Q0t(this.tree,n,(a,s,l)=>{r.add(a,s,this.markCache[l]||(this.markCache[l]=nt.mark({class:l})))},i,o);return r.finish()}}const yyt=Mc.high(rr.fromClass(myt,{decorations:t=>t.decorations})),byt=l_.define([{tag:ae.meta,color:"#404740"},{tag:ae.link,textDecoration:"underline"},{tag:ae.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strong,fontWeight:"bold"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.keyword,color:"#708"},{tag:[ae.atom,ae.bool,ae.url,ae.contentSeparator,ae.labelName],color:"#219"},{tag:[ae.literal,ae.inserted],color:"#164"},{tag:[ae.string,ae.deleted],color:"#a11"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],color:"#e40"},{tag:ae.definition(ae.variableName),color:"#00f"},{tag:ae.local(ae.variableName),color:"#30a"},{tag:[ae.typeName,ae.namespace],color:"#085"},{tag:ae.className,color:"#167"},{tag:[ae.special(ae.variableName),ae.macroName],color:"#256"},{tag:ae.definition(ae.propertyName),color:"#00c"},{tag:ae.comment,color:"#940"},{tag:ae.invalid,color:"#f00"}]),_yt=He.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Dfe=1e4,Rfe="()[]{}",kfe=Ye.define({combine(t){return il(t,{afterCursor:!0,brackets:Rfe,maxScanDistance:Dfe,renderMatch:Syt})}}),Oyt=nt.mark({class:"cm-matchingBracket"}),wyt=nt.mark({class:"cm-nonmatchingBracket"});function Syt(t){let e=[],n=t.matched?Oyt:wyt;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const xyt=[kr.define({create(){return nt.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(kfe);for(let i of e.state.selection.ranges){if(!i.empty)continue;let o=hl(e.state,i.head,-1,r)||i.head>0&&hl(e.state,i.head-1,1,r)||r.afterCursor&&(hl(e.state,i.head,1,r)||i.head<e.state.doc.length&&hl(e.state,i.head+1,-1,r));o&&(n=n.concat(r.renderMatch(o,e.state)))}return nt.set(n,!0)},provide:t=>He.decorations.from(t)}),_yt];function Cyt(t={}){return[kfe.of(t),xyt]}const Tyt=new Bt;function x5(t,e,n){let r=t.prop(e<0?Bt.openedBy:Bt.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function C5(t){let e=t.type.prop(Tyt);return e?e(t.node):t}function hl(t,e,n,r={}){let i=r.maxScanDistance||Dfe,o=r.brackets||Rfe,a=Tr(t),s=a.resolveInner(e,n);for(let l=s;l;l=l.parent){let u=x5(l.type,n,o);if(u&&l.from<l.to){let c=C5(l);if(c&&(n>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return Pyt(t,e,n,l,c,u,o)}}return $yt(t,e,n,a,s.type,i,o)}function Pyt(t,e,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let f=C5(c);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(x5(c.type,n,a))u++;else if(x5(c.type,-n,a)){if(u==0){let f=C5(c);return{start:l,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}u--}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function $yt(t,e,n,r,i,o,a){let s=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=o;){let p=c.value;n<0&&(d+=p.length);let g=e+d*n;for(let v=n>0?0:p.length-1,m=n>0?p.length:-1;v!=m;v+=n){let y=a.indexOf(p[v]);if(!(y<0||r.resolveInner(g+v,1).type!=i))if(y%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:g+v,to:g+v+1},matched:y>>1==l>>1};f--}}n>0&&(d+=p.length)}return c.done?{start:u,matched:!1}:null}const Ayt=Object.create(null),Nfe=[no.none],Lfe=[],Bfe=Object.create(null),Eyt=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Eyt[t]=Myt(Ayt,e);function T5(t,e){Lfe.indexOf(t)>-1||(Lfe.push(t),console.warn(e))}function Myt(t,e){let n=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||ae[u];c?typeof c=="function"?l.length?l=l.map(c):T5(u,`Modifier ${u} used at start of tag`):l.length?T5(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:T5(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=Bfe[i];if(o)return o.id;let a=Bfe[i]=no.define({id:Nfe.length,name:r,props:[f5({[r]:n})]});return Nfe.push(a),a.id}In.RTL,In.LTR;const Iyt=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=$5(t.state,n.from);return r.line?Dyt(t):r.block?kyt(t):!1};function P5(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return i?(r(n.update(i)),!0):!1}}const Dyt=P5(Byt,0),Ryt=P5(Vfe,0),kyt=P5((t,e)=>Vfe(t,e,Lyt(e)),0);function $5(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const u_=50;function Nyt(t,{open:e,close:n},r,i){let o=t.sliceDoc(r-u_,r),a=t.sliceDoc(i,i+u_),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-e.length,u)==e&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,f;i-r<=2*u_?c=f=t.sliceDoc(r,i):(c=t.sliceDoc(r,r+u_),f=t.sliceDoc(i-u_,i));let d=/^\s*/.exec(c)[0].length,p=/\s*$/.exec(f)[0].length,g=f.length-p-n.length;return c.slice(d,d+e.length)==e&&f.slice(g,g+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:i-p-n.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function Lyt(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>r.from?e[o].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function Vfe(t,e,n=e.selection.ranges){let r=n.map(o=>$5(e,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>Nyt(e,r[a],o.from,o.to));if(t!=2&&!i.every(o=>o))return{changes:e.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(t!=1&&i.some(o=>o)){let o=[];for(let a=0,s;a<i.length;a++)if(s=i[a]){let l=r[a],{open:u,close:c}=s;o.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:c.pos-c.margin,to:c.pos+l.close.length})}return{changes:o}}return null}function Byt(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:o,to:a}of n){let s=r.length,l=1e9,u=$5(e,o).line;if(u){for(let c=o;c<=a;){let f=e.doc.lineAt(c);if(f.from>i&&(o==a||a>f.from)){i=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,g=f.text.slice(d,d+u.length)==u?d:-1;d<f.text.length&&d<l&&(l=d),r.push({line:f,comment:g,token:u,indent:d,empty:p,single:!1})}c=f.to+1}if(l<1e9)for(let c=s;c<r.length;c++)r[c].indent<r[c].line.text.length&&(r[c].indent=l);r.length==s+1&&(r[s].single=!0)}}if(t!=2&&r.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&o.push({from:s.from+u,insert:l+" "});let a=e.changes(o);return{changes:a,selection:e.selection.map(a,1)}}else if(t!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const A5=au.define(),Vyt=au.define(),zyt=Ye.define(),zfe=Ye.define({combine(t){return il(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),Ffe=kr.define({create(){return pl.empty},update(t,e){let n=e.state.facet(zfe),r=e.annotation(A5);if(r){let l=io.fromTransaction(e,r.selection),u=r.side,c=u==0?t.undone:t.done;return l?c=XT(c,c.length,n.minDepth,l):c=Hfe(c,e.startState.selection),new pl(u==0?r.rest:c,u==0?c:r.rest)}let i=e.annotation(Vyt);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(fr.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=io.fromTransaction(e),a=e.annotation(fr.time),s=e.annotation(fr.userEvent);return o?t=t.addChanges(o,a,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,s,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new pl(t.done.map(io.fromJSON),t.undone.map(io.fromJSON))}});function Fyt(t={}){return[Ffe,zfe.of(t),He.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?Wfe:e.inputType=="historyRedo"?E5:null;return r?(e.preventDefault(),r(n)):!1}})]}function ZT(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(Ffe,!1);if(!i)return!1;let o=i.pop(t,n,e);return o?(r(o),!0):!1}}const Wfe=ZT(0,!1),E5=ZT(1,!1),Wyt=ZT(0,!0),Qyt=ZT(1,!0);class io{constructor(e,n,r,i,o){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(e){return new io(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new io(e.changes&&xr.fromJSON(e.changes),[],e.mapped&&rl.fromJSON(e.mapped),e.startSelection&&Ce.fromJSON(e.startSelection),e.selectionsAfter.map(Ce.fromJSON))}static fromTransaction(e,n){let r=Pa;for(let i of e.startState.facet(zyt)){let o=i(e);o.length&&(r=r.concat(o))}return!r.length&&e.changes.empty?null:new io(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,Pa)}static selection(e){return new io(void 0,Pa,void 0,void 0,e)}}function XT(t,e,n,r){let i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function Hyt(t,e){let n=[],r=!1;return t.iterChangedRanges((i,o)=>n.push(i,o)),e.iterChangedRanges((i,o,a,s)=>{for(let l=0;l<n.length;){let u=n[l++],c=n[l++];s>=u&&a<=c&&(r=!0)}}),r}function Gyt(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function Qfe(t,e){return t.length?e.length?t.concat(e):t:e}const Pa=[],jyt=200;function Hfe(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-jyt));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),XT(t,t.length-1,1e9,n.setSelAfter(r)))}else return[io.selection([e])]}function Uyt(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function M5(t,e){if(!t.length)return t;let n=t.length,r=Pa;for(;n;){let i=Zyt(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=t.slice(0,n);return o[n-1]=i,o}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[io.selection(r)]:Pa}function Zyt(t,e,n){let r=Qfe(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):Pa,n);if(!t.changes)return io.selection(r);let i=t.changes.map(e),o=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(o):o;return new io(i,Ot.mapEffects(t.effects,e),a,t.startSelection.map(o),r)}const Xyt=/^(input\.type|delete)($|\.)/;class pl{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new pl(this.done,this.undone):this}addChanges(e,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!r||Xyt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(o,Hyt(s.changes,e.changes))||r=="input.type.compose")?a=XT(a,a.length-1,i.minDepth,new io(e.changes.compose(s.changes),Qfe(e.effects,s.effects),s.mapped,s.startSelection,Pa)):a=XT(a,a.length,i.minDepth,e),new pl(a,Pa,n,r)}addSelection(e,n,r,i){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:Pa;return o.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&Gyt(o[o.length-1],e)?this:new pl(Hfe(this.done,e),this.undone,n,r)}addMapping(e){return new pl(M5(this.done,e),M5(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let o=i[i.length-1],a=o.selectionsAfter[0]||n.selection;if(r&&o.selectionsAfter.length)return n.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:A5.of({side:e,rest:Uyt(i),selection:a}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let s=i.length==1?Pa:i.slice(0,i.length-1);return o.mapped&&(s=M5(s,o.mapped)),n.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:A5.of({side:e,rest:s,selection:a}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}pl.empty=new pl(Pa,Pa);const Yyt=[{key:"Mod-z",run:Wfe,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:E5,preventDefault:!0},{linux:"Ctrl-Shift-z",run:E5,preventDefault:!0},{key:"Mod-u",run:Wyt,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Qyt,preventDefault:!0}];function Tv(t,e){return Ce.create(t.ranges.map(e),t.mainIndex)}function gl(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ms({state:t,dispatch:e},n){let r=Tv(t.selection,n);return r.eq(t.selection,!0)?!1:(e(gl(t,r)),!0)}function YT(t,e){return Ce.cursor(e?t.to:t.from)}function Gfe(t,e){return ms(t,n=>n.empty?t.moveByChar(n,e):YT(n,e))}function hi(t){return t.textDirectionAt(t.state.selection.main.head)==In.LTR}const jfe=t=>Gfe(t,!hi(t)),Ufe=t=>Gfe(t,hi(t));function Zfe(t,e){return ms(t,n=>n.empty?t.moveByGroup(n,e):YT(n,e))}const qyt=t=>Zfe(t,!hi(t)),Kyt=t=>Zfe(t,hi(t));function Jyt(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function qT(t,e,n){let r=Tr(t).resolveInner(e.head),i=n?Bt.closedBy:Bt.openedBy;for(let l=e.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;Jyt(t,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?hl(t,r.from,1):hl(t,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,Ce.cursor(s,n?-1:1)}const ebt=t=>ms(t,e=>qT(t.state,e,!hi(t))),tbt=t=>ms(t,e=>qT(t.state,e,hi(t)));function Xfe(t,e){return ms(t,n=>{if(!n.empty)return YT(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const Yfe=t=>Xfe(t,!1),qfe=t=>Xfe(t,!0);function Kfe(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let o of t.state.facet(He.scrollMargins)){let a=o(t);a!=null&&a.top&&(n=Math.max(a==null?void 0:a.top,n)),a!=null&&a.bottom&&(r=Math.max(a==null?void 0:a.bottom,r))}i=t.scrollDOM.clientHeight-n-r}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function Jfe(t,e){let n=Kfe(t),{state:r}=t,i=Tv(r.selection,a=>a.empty?t.moveVertically(a,e,n.height):YT(a,e));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=t.coordsAtPos(r.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottom<u&&(o=He.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-l}))}return t.dispatch(gl(r,i),{effects:o}),!0}const ede=t=>Jfe(t,!1),I5=t=>Jfe(t,!0);function Hc(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let o=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&e.head!=r.from+o&&(i=Ce.cursor(r.from+o))}return i}const nbt=t=>ms(t,e=>Hc(t,e,!0)),rbt=t=>ms(t,e=>Hc(t,e,!1)),ibt=t=>ms(t,e=>Hc(t,e,!hi(t))),obt=t=>ms(t,e=>Hc(t,e,hi(t))),abt=t=>ms(t,e=>Ce.cursor(t.lineBlockAt(e.head).from,1)),sbt=t=>ms(t,e=>Ce.cursor(t.lineBlockAt(e.head).to,-1));function lbt(t,e,n){let r=!1,i=Tv(t.selection,o=>{let a=hl(t,o.head,-1)||hl(t,o.head,1)||o.head>0&&hl(t,o.head-1,1)||o.head<t.doc.length&&hl(t,o.head+1,-1);if(!a||!a.end)return o;r=!0;let s=a.start.from==o.head?a.end.to:a.end.from;return Ce.cursor(s)});return r?(e(gl(t,i)),!0):!1}const ubt=({state:t,dispatch:e})=>lbt(t,e);function $a(t,e){let n=Tv(t.state.selection,r=>{let i=e(r);return Ce.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(gl(t.state,n)),!0)}function tde(t,e){return $a(t,n=>t.moveByChar(n,e))}const nde=t=>tde(t,!hi(t)),rde=t=>tde(t,hi(t));function ide(t,e){return $a(t,n=>t.moveByGroup(n,e))}const cbt=t=>ide(t,!hi(t)),fbt=t=>ide(t,hi(t)),dbt=t=>$a(t,e=>qT(t.state,e,!hi(t))),hbt=t=>$a(t,e=>qT(t.state,e,hi(t)));function ode(t,e){return $a(t,n=>t.moveVertically(n,e))}const ade=t=>ode(t,!1),sde=t=>ode(t,!0);function lde(t,e){return $a(t,n=>t.moveVertically(n,e,Kfe(t).height))}const ude=t=>lde(t,!1),cde=t=>lde(t,!0),pbt=t=>$a(t,e=>Hc(t,e,!0)),gbt=t=>$a(t,e=>Hc(t,e,!1)),vbt=t=>$a(t,e=>Hc(t,e,!hi(t))),mbt=t=>$a(t,e=>Hc(t,e,hi(t))),ybt=t=>$a(t,e=>Ce.cursor(t.lineBlockAt(e.head).from)),bbt=t=>$a(t,e=>Ce.cursor(t.lineBlockAt(e.head).to)),fde=({state:t,dispatch:e})=>(e(gl(t,{anchor:0})),!0),dde=({state:t,dispatch:e})=>(e(gl(t,{anchor:t.doc.length})),!0),hde=({state:t,dispatch:e})=>(e(gl(t,{anchor:t.selection.main.anchor,head:0})),!0),pde=({state:t,dispatch:e})=>(e(gl(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),_bt=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),Obt=({state:t,dispatch:e})=>{let n=JT(t).map(({from:r,to:i})=>Ce.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:Ce.create(n),userEvent:"select"})),!0},wbt=({state:t,dispatch:e})=>{let n=Tv(t.selection,r=>{var i;let o=Tr(t).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&(!((i=s.parent)===null||i===void 0)&&i.parent))return Ce.range(s.to,s.from)}return r});return e(gl(t,n)),!0},Sbt=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=Ce.create([n.main]):n.main.empty||(r=Ce.create([Ce.cursor(n.main.head)])),r?(e(gl(t,r)),!0):!1};function c_(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=e(o);l<a?(n="delete.backward",l=KT(t,l,!1)):l>a&&(n="delete.forward",l=KT(t,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=KT(t,a,!1),s=KT(t,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:Ce.cursor(a,a<o.head?-1:1)}});return i.changes.empty?!1:(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?He.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function KT(t,e,n){if(t instanceof He)for(let r of t.state.facet(He.atomicRanges).map(i=>i(t)))r.between(e,e,(i,o)=>{i<e&&o>e&&(e=n?o:i)});return e}const gde=(t,e,n)=>c_(t,r=>{let i=r.from,{state:o}=t,a=o.doc.lineAt(i),s,l;if(n&&!e&&i>a.from&&i<a.from+200&&!/[^ \t]/.test(s=a.text.slice(0,i-a.from))){if(s[s.length-1]==" ")return i-1;let u=vv(s,o.tabSize),c=u%QT(o)||QT(o);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)i--;l=i}else l=Ur(a.text,i-a.from,e,e)+a.from,l==i&&a.number!=(e?o.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(a.text.slice(l-a.from,i-a.from))&&(l=Ur(a.text,l-a.from,!1,!1)+a.from);return l}),D5=t=>gde(t,!1,!0),vde=t=>gde(t,!0,!1),mde=(t,e)=>c_(t,n=>{let r=n.head,{state:i}=t,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(e?o.to:o.from)){r==n.head&&o.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=Ur(o.text,r-o.from,e)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),yde=t=>mde(t,!1),xbt=t=>mde(t,!0),Cbt=t=>c_(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),Tbt=t=>c_(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),Pbt=t=>c_(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),$bt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:en.of(["",""])},range:Ce.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Abt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let i=r.from,o=t.doc.lineAt(i),a=i==o.from?i-1:Ur(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:Ur(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:t.doc.slice(i,s).append(t.doc.slice(a,i))},range:Ce.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function JT(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),o=t.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=t.doc.lineAt(r.to-1)),n>=i.number){let a=e[e.length-1];a.to=o.to,a.ranges.push(r)}else e.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return e}function bde(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let o of JT(t)){if(n?o.to==t.doc.length:o.from==0)continue;let a=t.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+t.lineBreak});for(let l of o.ranges)i.push(Ce.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:t.lineBreak+a.text});for(let l of o.ranges)i.push(Ce.range(l.anchor-s,l.head-s))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:Ce.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Ebt=({state:t,dispatch:e})=>bde(t,e,!1),Mbt=({state:t,dispatch:e})=>bde(t,e,!0);function _de(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of JT(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ibt=({state:t,dispatch:e})=>_de(t,e,!1),Dbt=({state:t,dispatch:e})=>_de(t,e,!0),Rbt=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(JT(e).map(({from:i,to:o})=>(i>0?i--:o<e.doc.length&&o++,{from:i,to:o}))),r=Tv(e.selection,i=>{let o;if(t.lineWrapping){let a=t.lineBlockAt(i.head),s=t.coordsAtPos(i.head,i.assoc||1);s&&(o=a.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,o)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function kbt(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Tr(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),o;return r&&i&&r.to<=e&&i.from>=e&&(o=r.type.prop(Bt.closedBy))&&o.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const Nbt=Ode(!1),Lbt=Ode(!0);function Ode(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:o,to:a}=i,s=e.doc.lineAt(o),l=!t&&o==a&&kbt(e,o);t&&(o=a=(a<=s.to?s:e.doc.lineAt(a)).to);let u=new HT(e,{simulateBreak:o,simulateDoubleBreak:!!l}),c=m5(u,o);for(c==null&&(c=vv(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));a<s.to&&/\s/.test(s.text[a-s.from]);)a++;l?{from:o,to:a}=l:o>s.from&&o<s.from+100&&!/\S/.test(s.text.slice(0,o))&&(o=s.from);let f=["",o_(e,c)];return l&&f.push(o_(e,u.lineIndent(s.from,-1))),{changes:{from:o,to:a,insert:en.of(f)},range:Ce.cursor(o+1+f[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function R5(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let s=t.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(e(s,i,r),n=s.number),a=s.to+1}let o=t.changes(i);return{changes:i,range:Ce.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const Bbt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new HT(t,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=R5(t,(o,a,s)=>{let l=m5(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=o_(t,l);(u!=c||s.from<o.from+u.length)&&(n[o.from]=l,a.push({from:o.from,to:o.from+u.length,insert:c}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},wde=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(R5(t,(n,r)=>{r.push({from:n.from,insert:t.facet(i_)})}),{userEvent:"input.indent"})),!0),Sde=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(R5(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=vv(i,t.tabSize),a=0,s=o_(t,Math.max(0,o-QT(t)));for(;a<i.length&&a<s.length&&i.charCodeAt(a)==s.charCodeAt(a);)a++;r.push({from:n.from+a,to:n.from+i.length,insert:s.slice(a)})}),{userEvent:"delete.dedent"})),!0),Vbt=t=>(t.setTabFocusMode(),!0),zbt=[{key:"Ctrl-b",run:jfe,shift:nde,preventDefault:!0},{key:"Ctrl-f",run:Ufe,shift:rde},{key:"Ctrl-p",run:Yfe,shift:ade},{key:"Ctrl-n",run:qfe,shift:sde},{key:"Ctrl-a",run:abt,shift:ybt},{key:"Ctrl-e",run:sbt,shift:bbt},{key:"Ctrl-d",run:vde},{key:"Ctrl-h",run:D5},{key:"Ctrl-k",run:Cbt},{key:"Ctrl-Alt-h",run:yde},{key:"Ctrl-o",run:$bt},{key:"Ctrl-t",run:Abt},{key:"Ctrl-v",run:I5}],Fbt=[{key:"ArrowLeft",run:jfe,shift:nde,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:qyt,shift:cbt,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:ibt,shift:vbt,preventDefault:!0},{key:"ArrowRight",run:Ufe,shift:rde,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Kyt,shift:fbt,preventDefault:!0},{mac:"Cmd-ArrowRight",run:obt,shift:mbt,preventDefault:!0},{key:"ArrowUp",run:Yfe,shift:ade,preventDefault:!0},{mac:"Cmd-ArrowUp",run:fde,shift:hde},{mac:"Ctrl-ArrowUp",run:ede,shift:ude},{key:"ArrowDown",run:qfe,shift:sde,preventDefault:!0},{mac:"Cmd-ArrowDown",run:dde,shift:pde},{mac:"Ctrl-ArrowDown",run:I5,shift:cde},{key:"PageUp",run:ede,shift:ude},{key:"PageDown",run:I5,shift:cde},{key:"Home",run:rbt,shift:gbt,preventDefault:!0},{key:"Mod-Home",run:fde,shift:hde},{key:"End",run:nbt,shift:pbt,preventDefault:!0},{key:"Mod-End",run:dde,shift:pde},{key:"Enter",run:Nbt},{key:"Mod-a",run:_bt},{key:"Backspace",run:D5,shift:D5},{key:"Delete",run:vde},{key:"Mod-Backspace",mac:"Alt-Backspace",run:yde},{key:"Mod-Delete",mac:"Alt-Delete",run:xbt},{mac:"Mod-Backspace",run:Tbt},{mac:"Mod-Delete",run:Pbt}].concat(zbt.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),Wbt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:ebt,shift:dbt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:tbt,shift:hbt},{key:"Alt-ArrowUp",run:Ebt},{key:"Shift-Alt-ArrowUp",run:Ibt},{key:"Alt-ArrowDown",run:Mbt},{key:"Shift-Alt-ArrowDown",run:Dbt},{key:"Escape",run:Sbt},{key:"Mod-Enter",run:Lbt},{key:"Alt-l",mac:"Ctrl-l",run:Obt},{key:"Mod-i",run:wbt,preventDefault:!0},{key:"Mod-[",run:Sde},{key:"Mod-]",run:wde},{key:"Mod-Alt-\\",run:Bbt},{key:"Shift-Mod-k",run:Rbt},{key:"Shift-Mod-\\",run:ubt},{key:"Mod-/",run:Iyt},{key:"Alt-A",run:Ryt},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Vbt}].concat(Fbt),Qbt={key:"Tab",run:wde,shift:Sde};function Cn(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;e<arguments.length;e++)xde(t,arguments[e]);return t}function xde(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)xde(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const Cde=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class Pv{constructor(e,n,r=0,i=e.length,o,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?s=>o(Cde(s)):Cde,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Zr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=K4(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=xa(e);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a,this.bufferPos+this.bufferStart);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&o<n.length&&n.charCodeAt(o)==s&&a++}}}match(e,n,r){let i=null;for(let o=0;o<this.matches.length;o+=2){let a=this.matches[o],s=!1;this.query.charCodeAt(a)==e&&(a==this.query.length-1?i={from:this.matches[o+1],to:r}:(this.matches[o]++,s=!0)),s||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:r}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(Pv.prototype[Symbol.iterator]=function(){return this});const Tde={from:-1,to:-1,match:/.*/.exec("")},k5="gm"+(/x/.unicode==null?"":"u");class Pde{constructor(e,n,r,i=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=Tde,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new $de(e,n,r,i,o);this.re=new RegExp(n,k5+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=e.iter();let a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=eP(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=eP(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<i||r>this.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const N5=new WeakMap;class $v{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let i=N5.get(e);if(!i||i.from>=r||i.to<=n){let s=new $v(n,e.sliceString(n,r));return N5.set(e,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=e.sliceString(n,a)+o,a=n),i.to<r&&(o+=e.sliceString(i.to,r)),N5.set(e,new $v(a,o)),new $v(n,o.slice(n-a,r-a))}}class $de{constructor(e,n,r,i,o){this.text=e,this.to=o,this.done=!1,this.value=Tde,this.matchPos=eP(e,i),this.re=new RegExp(n,k5+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=$v.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=eP(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=$v.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Pde.prototype[Symbol.iterator]=$de.prototype[Symbol.iterator]=function(){return this});function Hbt(t){try{return new RegExp(t,k5),!0}catch{return!1}}function eP(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}function L5(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Cn("input",{class:"cm-textfield",name:"line",value:e}),r=Cn("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:tP.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},Cn("label",t.state.phrase("Go to line"),": ",n)," ",Cn("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:a}=t,s=a.doc.lineAt(a.selection.main.head),[,l,u,c,f]=o,d=c?+c.slice(1):0,p=u?+u:s.number;if(u&&f){let m=p/100;l&&(m=m*(l=="-"?-1:1)+s.number/a.doc.lines),p=Math.round(a.doc.lines*m)}else u&&l&&(p=p*(l=="-"?-1:1)+s.number);let g=a.doc.line(Math.max(1,Math.min(a.doc.lines,p))),v=Ce.cursor(g.from+Math.max(0,Math.min(d,g.length)));t.dispatch({effects:[tP.of(!1),He.scrollIntoView(v.from,{y:"center"})],selection:v}),t.focus()}return{dom:r}}const tP=Ot.define(),Ade=kr.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(tP)&&(t=n.value);return t},provide:t=>Kb.from(t,e=>e?L5:null)}),Gbt=t=>{let e=qb(t,L5);if(!e){let n=[tP.of(!0)];t.state.field(Ade,!1)==null&&n.push(Ot.appendConfig.of([Ade,jbt])),t.dispatch({effects:n}),e=qb(t,L5)}return e&&e.dom.querySelector("input").select(),!0},jbt=He.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Ubt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Zbt=Ye.define({combine(t){return il(t,Ubt,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Xbt(t){return[e_t,Jbt]}const Ybt=nt.mark({class:"cm-selectionMatch"}),qbt=nt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ede(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Bn.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Bn.Word)}function Kbt(t,e,n,r){return t(e.sliceDoc(n,n+1))==Bn.Word&&t(e.sliceDoc(r-1,r))==Bn.Word}const Jbt=rr.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Zbt),{state:n}=t,r=n.selection;if(r.ranges.length>1)return nt.none;let i=r.main,o,a=null;if(i.empty){if(!e.highlightWordAroundCursor)return nt.none;let l=n.wordAt(i.head);if(!l)return nt.none;a=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l<e.minSelectionLength||l>200)return nt.none;if(e.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!(Ede(a,n,i.from,i.to)&&Kbt(a,n,i.from,i.to)))return nt.none}else if(o=n.sliceDoc(i.from,i.to),!o)return nt.none}let s=[];for(let l of t.visibleRanges){let u=new Pv(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!a||Ede(a,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?s.push(qbt.range(c,f)):(c>=i.to||f<=i.from)&&s.push(Ybt.range(c,f)),s.length>e.maxMatches))return nt.none}}return nt.set(s)}},{decorations:t=>t.decorations}),e_t=He.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),t_t=({state:t,dispatch:e})=>{let{selection:n}=t,r=Ce.create(n.ranges.map(i=>t.wordAt(i.head)||Ce.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function n_t(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new Pv(t.doc,e,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new Pv(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(o){let l=t.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const r_t=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(o=>o.from===o.to))return t_t({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=r))return!1;let i=n_t(t,r);return i?(e(t.update({selection:t.selection.addRange(Ce.range(i.from,i.to),!1),effects:He.scrollIntoView(i.to)})),!0):!1},Av=Ye.define({combine(t){return il(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new g_t(e),scrollToMatch:e=>He.scrollIntoView(e)})}});class Mde{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Hbt(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
  404. `:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new s_t(this):new o_t(this)}getCursor(e,n=0,r){let i=e.doc?e:Gt.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?Mv(this,i,n,r):Ev(this,i,n,r)}}class Ide{constructor(e){this.spec=e}}function Ev(t,e,n,r){return new Pv(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?i_t(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function i_t(t,e){return(n,r,i,o)=>((o>n||o+i.length<r)&&(o=Math.max(0,n-2),i=t.sliceString(o,Math.min(t.length,r+2))),(e(nP(i,n-o))!=Bn.Word||e(rP(i,n-o))!=Bn.Word)&&(e(rP(i,r-o))!=Bn.Word||e(nP(i,r-o))!=Bn.Word))}class o_t extends Ide{constructor(e){super(e)}nextMatch(e,n,r){let i=Ev(this.spec,e,r,e.doc.length).nextOverlapping();return i.done&&(i=Ev(this.spec,e,0,n).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let o=Math.max(n,i-1e4-this.spec.unquoted.length),a=Ev(this.spec,e,o,i),s=null;for(;!a.nextOverlapping().done;)s=a.value;if(s)return s;if(o==n)return null;i-=1e4}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=Ev(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let o=Ev(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}function Mv(t,e,n,r){return new Pde(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?a_t(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function nP(t,e){return t.slice(Ur(t,e,!1),e)}function rP(t,e){return t.slice(e,Ur(t,e))}function a_t(t){return(e,n,r)=>!r[0].length||(t(nP(r.input,r.index))!=Bn.Word||t(rP(r.input,r.index))!=Bn.Word)&&(t(rP(r.input,r.index+r[0].length))!=Bn.Word||t(nP(r.input,r.index+r[0].length))!=Bn.Word)}class s_t extends Ide{nextMatch(e,n,r){let i=Mv(this.spec,e,r,e.doc.length).next();return i.done&&(i=Mv(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let o=Math.max(n,r-i*1e4),a=Mv(this.spec,e,o,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(o==n||s.from>o+10))return s;if(o==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r<e.match.length?e.match[r]:n)}matchAll(e,n){let r=Mv(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let o=Mv(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}const f_=Ot.define(),B5=Ot.define(),Gc=kr.define({create(t){return new V5(F5(t).create(),null)},update(t,e){for(let n of e.effects)n.is(f_)?t=new V5(n.value.create(),t.panel):n.is(B5)&&(t=new V5(t.query,n.value?z5:null));return t},provide:t=>Kb.from(t,e=>e.panel)});class V5{constructor(e,n){this.query=e,this.panel=n}}const l_t=nt.mark({class:"cm-searchMatch"}),u_t=nt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),c_t=rr.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Gc))}update(t){let e=t.state.field(Gc);(e!=t.startState.field(Gc)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return nt.none;let{view:n}=this,r=new Ic;for(let i=0,o=n.visibleRanges,a=o.length;i<a;i++){let{from:s,to:l}=o[i];for(;i<a-1&&l>o[i+1].from-2*250;)l=o[++i].to;t.highlight(n.state,s,l,(u,c)=>{let f=n.state.selection.ranges.some(d=>d.from==u&&d.to==c);r.add(u,c,f?u_t:l_t)})}return r.finish()}},{decorations:t=>t.decorations});function d_(t){return e=>{let n=e.state.field(Gc,!1);return n&&n.query.spec.valid?t(e,n):Nde(e)}}const iP=d_((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=Ce.single(r.from,r.to),o=t.state.facet(Av);return t.dispatch({selection:i,effects:[W5(t,r),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),kde(t),!0}),oP=d_((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let o=Ce.single(i.from,i.to),a=t.state.facet(Av);return t.dispatch({selection:o,effects:[W5(t,i),a.scrollToMatch(o.main,t)],userEvent:"select.search"}),kde(t),!0}),f_t=d_((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Ce.create(n.map(r=>Ce.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),d_t=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let s=new Pv(t.doc,t.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(Ce.range(s.value.from,s.value.to))}return e(t.update({selection:Ce.create(o,a),userEvent:"select.search.matches"})),!0},Dde=d_((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,r,r);if(!o)return!1;let a=[],s,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:l}),o=e.nextMatch(n,o.from,o.to),u.push(He.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=a.length==0||a[0].from>=o.to?0:o.to-o.from-l.length;s=Ce.single(o.from-c,o.to-c),u.push(W5(t,o)),u.push(n.facet(Av).scrollToMatch(s.main,t))}return t.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),h_t=d_((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:o,to:a}=i;return{from:o,to:a,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:He.announce.of(r),userEvent:"input.replace.all"}),!0});function z5(t){return t.state.facet(Av).createPanel(t)}function F5(t,e){var n,r,i,o,a;let s=t.selection.main,l=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!l)return e;let u=t.facet(Av);return new Mde({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=e==null?void 0:e.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:u.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function Rde(t){let e=qb(t,z5);return e&&e.dom.querySelector("[main-field]")}function kde(t){let e=Rde(t);e&&e==t.root.activeElement&&e.select()}const Nde=t=>{let e=t.state.field(Gc,!1);if(e&&e.panel){let n=Rde(t);if(n&&n!=t.root.activeElement){let r=F5(t.state,e.query.spec);r.valid&&t.dispatch({effects:f_.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[B5.of(!0),e?f_.of(F5(t.state,e.query.spec)):Ot.appendConfig.of(m_t)]});return!0},Lde=t=>{let e=t.state.field(Gc,!1);if(!e||!e.panel)return!1;let n=qb(t,z5);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:B5.of(!1)}),!0},p_t=[{key:"Mod-f",run:Nde,scope:"editor search-panel"},{key:"F3",run:iP,shift:oP,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:iP,shift:oP,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Lde,scope:"editor search-panel"},{key:"Mod-Shift-l",run:d_t},{key:"Mod-Alt-g",run:Gbt},{key:"Mod-d",run:r_t,preventDefault:!0}];class g_t{constructor(e){this.view=e;let n=this.query=e.state.field(Gc).query.spec;this.commit=this.commit.bind(this),this.searchField=Cn("input",{value:n.search,placeholder:Eo(e,"Find"),"aria-label":Eo(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Cn("input",{value:n.replace,placeholder:Eo(e,"Replace"),"aria-label":Eo(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Cn("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Cn("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Cn("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return Cn("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=Cn("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>iP(e),[Eo(e,"next")]),r("prev",()=>oP(e),[Eo(e,"previous")]),r("select",()=>f_t(e),[Eo(e,"all")]),Cn("label",null,[this.caseField,Eo(e,"match case")]),Cn("label",null,[this.reField,Eo(e,"regexp")]),Cn("label",null,[this.wordField,Eo(e,"by word")]),...e.state.readOnly?[]:[Cn("br"),this.replaceField,r("replace",()=>Dde(e),[Eo(e,"replace")]),r("replaceAll",()=>h_t(e),[Eo(e,"replace all")])],Cn("button",{name:"close",onclick:()=>Lde(e),"aria-label":Eo(e,"close"),type:"button"},["×"])])}commit(){let e=new Mde({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:f_.of(e)}))}keydown(e){Amt(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?oP:iP)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Dde(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(f_)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Av).top}}function Eo(t,e){return t.state.phrase(e)}const aP=30,sP=/[\s\.,:;?!]/;function W5(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,o=Math.max(r.from,e-aP),a=Math.min(i,n+aP),s=t.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;l<aP;l++)if(!sP.test(s[l+1])&&sP.test(s[l])){s=s.slice(l);break}}if(a!=i){for(let l=s.length-1;l>s.length-aP;l--)if(!sP.test(s[l-1])&&sP.test(s[l])){s=s.slice(0,l);break}}return He.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`)}const v_t=He.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),m_t=[Gc,Mc.low(c_t),v_t];class Bde{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[]}tokenBefore(e){let n=Tr(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),o=i.search(Wde(e,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,n){e=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function Vde(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function y_t(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let o=1;o<i.length;o++)n[i[o]]=!0}let r=Vde(e)+Vde(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function zde(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:y_t(e);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:e,validFor:n}:null}}function b_t(t,e){return n=>{for(let r=Tr(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(n)}}class Fde{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function jc(t){return t.selection.main.from}function Wde(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?t:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const Q5=au.define();function __t(t,e,n,r){let{main:i}=t.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},t.changeByRange(s=>s!=i&&n!=r&&t.sliceDoc(s.from+o,s.from+a)!=t.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:e},range:Ce.cursor(s.from+o+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Qde=new WeakMap;function O_t(t){if(!Array.isArray(t))return t;let e=Qde.get(t);return e||Qde.set(t,e=zde(t)),e}const lP=Ot.define(),h_=Ot.define();class w_t{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=Zr(e,n),i=xa(r);this.chars.push(r);let o=e.slice(n,n+i),a=o.toUpperCase();this.folded.push(Zr(a==o?o.toLowerCase():a,0)),n+=i}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:i,precise:o,byWord:a}=this;if(n.length==1){let b=Zr(e,0),O=xa(b),w=O==e.length?0:-100;if(b!=n[0])if(b==r[0])w+=-200;else return null;return this.ret(w,[0,O])}let s=e.indexOf(this.pattern);if(s==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(s<0){for(let b=0,O=Math.min(e.length,200);b<O&&u<l;){let w=Zr(e,b);(w==n[u]||w==r[u])&&(i[u++]=b),b+=xa(w)}if(u<l)return null}let c=0,f=0,d=!1,p=0,g=-1,v=-1,m=/[a-z]/.test(e),y=!0;for(let b=0,O=Math.min(e.length,200),w=0;b<O&&f<l;){let S=Zr(e,b);s<0&&(c<l&&S==n[c]&&(o[c++]=b),p<l&&(S==n[p]||S==r[p]?(p==0&&(g=b),v=b+1,p++):p=0));let x,T=S<255?S>=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(x=K4(S))!=x.toLowerCase()?1:x!=x.toUpperCase()?2:0;(!b||T==1&&m||w==0&&T!=0)&&(n[f]==S||r[f]==S&&(d=!0)?a[f++]=b:a.length&&(y=!1)),w=T,b+=xa(S)}return f==l&&a[0]==0&&y?this.result(-100+(d?-200:0),a,e):p==l&&g==0?this.ret(-200-e.length+(v==e.length?0:-100),[0,v]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):p==l?this.ret(-900-e.length,[g,v]):f==l?this.result(-100+(d?-200:0)+-700+(y?0:-1100),a,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?xa(Zr(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(e-r.length,i)}}class S_t{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const Kr=Ye.define({combine(t){return il(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x_t,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>Hde(e(r),n(r)),optionClass:(e,n)=>r=>Hde(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function Hde(t,e){return t?e?t+" "+e:t:e}function x_t(t,e,n,r,i,o){let a=t.textDirection==In.RTL,s=a,l=!1,u="top",c,f,d=e.left-i.left,p=i.right-e.right,g=r.right-r.left,v=r.bottom-r.top;if(s&&d<Math.min(g,p)?s=!1:!s&&p<Math.min(g,d)&&(s=!0),g<=(s?d:p))c=Math.max(i.top,Math.min(n.top,i.bottom-v))-e.top,f=Math.min(400,s?d:p);else{l=!0,f=Math.min(400,(a?e.right:i.right-e.left)-30);let b=i.bottom-e.bottom;b>=v||b>e.top?c=n.bottom-e.top:(u="bottom",c=e.bottom-n.top)}let m=(e.bottom-e.top)/o.offsetHeight,y=(e.right-e.left)/o.offsetWidth;return{style:`${u}: ${c/m}px; max-width: ${f/y}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function C_t(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;u<o.length;){let c=o[u++],f=o[u++];c>l&&a.appendChild(document.createTextNode(s.slice(l,c)));let d=a.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(s.slice(c,f))),d.className="cm-completionMatchedText",l=f}return l<s.length&&a.appendChild(document.createTextNode(s.slice(l))),a},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function H5(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class T_t{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:o,selected:a}=i.open,s=e.state.facet(Kr);this.optionContent=C_t(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=H5(o.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=e.state.field(n).open;for(let c=l.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<u.length){this.applyCompletion(e,u[+f[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(Kr).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:h_.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=H5(o.length,a,e.state.facet(Kr).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=H5(n.options.length,n.selected,this.view.state.facet(Kr).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,r)}).catch(a=>to(this.view.state,a,"completion info")):this.addInfoPane(o,r)}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:o}=e;r.appendChild(i),this.infoDestroy=o||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&$_t(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottom<Math.max(o.top,n.top)+10?null:this.view.state.facet(Kr).positionInfo(this.view,n,i,r,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));let o=null;for(let a=r.from;a<r.to;a++){let{completion:s,match:l}=e[a],{section:u}=s;if(u){let d=typeof u=="string"?u:u.name;if(d!=o&&(a>r.from||r.from==0))if(o=d,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let p=i.appendChild(document.createElement("completion-section"));p.textContent=d}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let f=this.optionClass(s);f&&(c.className=f);for(let d of this.optionContent){let p=d(s,this.view.state,this.view,l);p&&c.appendChild(p)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function P_t(t,e){return n=>new T_t(n,t,e)}function $_t(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function Gde(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function A_t(t,e){let n=[],r=null,i=u=>{n.push(u);let{section:c}=u.completion;if(c){r||(r=[]);let f=typeof c=="string"?c:c.name;r.some(d=>d.name==f)||r.push(typeof c=="string"?{name:f}:c)}},o=e.facet(Kr);for(let u of t)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new Fde(f,u.source,c?c(f):[],1e9-n.length));else{let f=e.sliceDoc(u.from,u.to),d,p=o.filterStrict?new S_t(f):new w_t(f);for(let g of u.result.options)if(d=p.match(g.label)){let v=g.displayLabel?c?c(g,d.matched):[]:d.matched;i(new Fde(g,u.source,v,d.score+(g.boost||0)))}}}if(r){let u=Object.create(null),c=0,f=(d,p)=>{var g,v;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((v=p.rank)!==null&&v!==void 0?v:1e9)||(d.name<p.name?-1:1)};for(let d of r.sort(f))c-=1e5,u[d.name]=c;for(let d of n){let{section:p}=d.completion;p&&(d.score+=u[typeof p=="string"?p:p.name])}}let a=[],s=null,l=o.compareCompletions;for(let u of n.sort((c,f)=>f.score-c.score||l(c.completion,f.completion))){let c=u.completion;!s||s.label!=c.label||s.detail!=c.detail||s.type!=null&&c.type!=null&&s.type!=c.type||s.apply!=c.apply||s.boost!=c.boost?a.push(u):Gde(u.completion)>Gde(s)&&(a[a.length-1]=u),s=u.completion}return a}class Iv{constructor(e,n,r,i,o,a){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new Iv(this.options,jde(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,o){let a=A_t(e,n);if(!a.length)return i&&e.some(l=>l.state==1)?new Iv(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(Kr).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==l){s=u;break}}return new Iv(a,jde(r,s),{pos:e.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:k_t,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(e){return new Iv(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class uP{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new uP(D_t,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(Kr),o=(r.override||n.languageDataAt("autocomplete",jc(n)).map(O_t)).map(s=>(this.active.find(u=>u.source==s)||new Mo(s,this.active.some(u=>u.state!=0)?1:0)).update(e,r));o.length==this.active.length&&o.every((s,l)=>s==this.active[l])&&(o=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||o.some(s=>s.hasResult()&&e.changes.touchesRange(s.from,s.to))||!E_t(o,this.active)?a=Iv.build(o,n,this.id,a,r):a&&a.disabled&&!o.some(s=>s.state==1)&&(a=null),!a&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new Mo(s.source,0):s));for(let s of e.effects)s.is(Xde)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new uP(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?M_t:I_t}}function E_t(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult;)n++;for(;r<e.length&&!e[r].hasResult;)r++;let i=n==t.length,o=r==e.length;if(i||o)return i==o;if(t[n++].result!=e[r++].result)return!1}}const M_t={"aria-autocomplete":"list"},I_t={};function jde(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const D_t=[];function Ude(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(Q5);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class Mo{constructor(e,n,r=-1){this.source=e,this.state=n,this.explicitPos=r}hasResult(){return!1}update(e,n){let r=Ude(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new Mo(i.source,0)),r&4&&i.state==0&&(i=new Mo(this.source,1)),i=i.updateFor(e,r);for(let o of e.effects)if(o.is(lP))i=new Mo(i.source,1,o.value?jc(e.state):-1);else if(o.is(h_))i=new Mo(i.source,0);else if(o.is(Zde))for(let a of o.value)a.source==i.source&&(i=a);return i}updateFor(e,n){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Mo(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(jc(e.state))}}class Dv extends Mo{constructor(e,n,r,i,o){super(e,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let o=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),s=jc(e.state);if((this.explicitPos<0?s<=o:s<this.from)||s>a||!i||n&2&&jc(e.startState)==this.from)return new Mo(this.source,n&4?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return R_t(i.validFor,e.state,o,a)?new Dv(this.source,l,i,o,a):i.update&&(i=i.update(i,o,a,new Bde(e.state,s,l>=0)))?new Dv(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:jc(e.state)):new Mo(this.source,1,l)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Dv(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Mo(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function R_t(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):Wde(t,!0).test(i)}const Zde=Ot.define({map(t,e){return t.map(n=>n.map(e))}}),Xde=Ot.define(),oo=kr.define({create(){return uP.start()},update(t,e){return t.update(e)},provide:t=>[e5.from(t,e=>e.tooltip),He.contentAttributes.from(t,e=>e.attrs)]});function G5(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(oo).active.find(i=>i.source==e.source);return r instanceof Dv?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},__t(t.state,n,r.from,r.to)),{annotations:Q5.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const k_t=P_t(oo,G5);function cP(t,e="option"){return n=>{let r=n.state.field(oo,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(Kr).interactionDelay)return!1;let i=1,o;e=="page"&&(o=Uce(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:a-1;return s<0?s=e=="page"?0:a-1:s>=a&&(s=e=="page"?a-1:0),n.dispatch({effects:Xde.of(s)}),!0}}const N_t=t=>{let e=t.state.field(oo,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(Kr).interactionDelay?!1:G5(t,e.open.options[e.open.selected])},L_t=t=>t.state.field(oo,!1)?(t.dispatch({effects:lP.of(!0)}),!0):!1,B_t=t=>{let e=t.state.field(oo,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:h_.of(null)}),!0)};class V_t{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const z_t=50,F_t=1e3,W_t=rr.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(oo).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(oo),n=t.state.facet(Kr);if(!t.selectionSet&&!t.docChanged&&t.startState.field(oo)==e)return;let r=t.transactions.some(o=>{let a=Ude(o,n);return a&8||(o.selection||o.docChanged)&&!(a&3)});for(let o=0;o<this.running.length;o++){let a=this.running[o];if(r||a.updates.length+t.transactions.length>z_t&&Date.now()-a.time>F_t){for(let s of a.context.abortListeners)try{s()}catch(l){to(this.view.state,l)}a.context.abortListeners=null,this.running.splice(o--,1)}else a.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(o=>o.effects.some(a=>a.is(lP)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(a=>a.active.source==o.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let o of t.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(oo);for(let n of e.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=jc(e),r=new Bde(e,n,t.explicitPos==n,this.view),i=new V_t(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:h_.of(null)}),to(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Kr).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Kr);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let a=new Dv(i.active.source,i.active.explicitPos,i.done,i.done.from,(t=i.done.to)!==null&&t!==void 0?t:jc(i.updates.length?i.updates[0].startState:this.view.state));for(let s of i.updates)a=a.update(s,n);if(a.hasResult()){e.push(a);continue}}let o=this.view.state.field(oo).active.find(a=>a.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new Mo(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&e.push(a)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:Zde.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(oo,!1);if(e&&e.tooltip&&this.view.state.facet(Kr).closeOnBlur){let n=e.open&&Uce(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:h_.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:lP.of(!1)}),20),this.composing=0}}}),Q_t=typeof navigator=="object"&&/Win/.test(navigator.platform),H_t=Mc.highest(He.domEventHandlers({keydown(t,e){let n=e.state.field(oo,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(Q_t&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(a=>a.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&G5(e,r),!1}})),Yde=He.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class G_t{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class j5{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Xr.TrackDel),r=e.mapPos(this.to,1,Xr.TrackDel);return n==null||r==null?null:new j5(this.field,n,r)}}class U5{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],o=e.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(i_);i.push(n+u.length-c),l=u+l.slice(c)}r.push(l),n+=l.length+1}let s=this.fieldPositions.map(l=>new j5(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(e){let n=[],r=[],i=[],o;for(let a of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1,c=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<n.length;f++)(s!=null?n[f].seq==s:c&&n[f].name==c)&&(u=f);if(u<0){let f=0;for(;f<n.length&&(s==null||n[f].seq!=null&&n[f].seq<s);)f++;n.splice(f,0,{seq:s,name:c}),u=f;for(let d of i)d.field>=u&&d.field++}i.push(new G_t(u,r.length,o.index,o.index+c.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}a=a.replace(/\\([{}])/g,(s,l,u)=>{for(let c of i)c.line==r.length&&c.from>u&&(c.from--,c.to--);return l}),r.push(a)}return new U5(r,i)}}let j_t=nt.widget({widget:new class extends ol{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),U_t=nt.mark({class:"cm-snippetField"});class Rv{constructor(e,n){this.ranges=e,this.active=n,this.deco=nt.set(e.map(r=>(r.from==r.to?j_t:U_t).range(r.from,r.to)))}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i)}return new Rv(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const p_=Ot.define({map(t,e){return t&&t.map(e)}}),Z_t=Ot.define(),g_=kr.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(p_))return n.value;if(n.is(Z_t)&&t)return new Rv(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>He.decorations.from(t,e=>e?e.deco:nt.none)});function Z5(t,e){return Ce.create(t.filter(n=>n.field==e).map(n=>Ce.range(n.from,n.to)))}function X_t(t){let e=U5.parse(t);return(n,r,i,o)=>{let{text:a,ranges:s}=e.instantiate(n.state,i),l={changes:{from:i,to:o,insert:en.of(a)},scrollIntoView:!0,annotations:r?[Q5.of(r),fr.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=Z5(s,0)),s.some(u=>u.field>0)){let u=new Rv(s,0),c=l.effects=[p_.of(u)];n.state.field(g_,!1)===void 0&&c.push(Ot.appendConfig.of([g_,q_t,K_t,Yde]))}n.dispatch(n.state.update(l))}}function qde(t){return({state:e,dispatch:n})=>{let r=e.field(g_,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,o=t>0&&!r.ranges.some(a=>a.field==i+t);return n(e.update({selection:Z5(r.ranges,i),effects:p_.of(o?null:new Rv(r.ranges,i)),scrollIntoView:!0})),!0}}const Y_t=[{key:"Tab",run:qde(1),shift:qde(-1)},{key:"Escape",run:({state:t,dispatch:e})=>t.field(g_,!1)?(e(t.update({effects:p_.of(null)})),!0):!1}],Kde=Ye.define({combine(t){return t.length?t[0]:Y_t}}),q_t=Mc.highest(jb.compute([Kde],t=>t.facet(Kde)));function ao(t,e){return Object.assign(Object.assign({},e),{apply:X_t(t)})}const K_t=He.domEventHandlers({mousedown(t,e){let n=e.state.field(g_,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:Z5(n.ranges,i.field),effects:p_.of(n.ranges.some(o=>o.field>i.field)?new Rv(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),v_={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},_h=Ot.define({map(t,e){let n=e.mapPos(t,-1,Xr.TrackAfter);return n??void 0}}),X5=new class extends hh{};X5.startSide=1,X5.endSide=-1;const Jde=kr.define({create(){return tn.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(_h)&&(t=t.update({add:[X5.range(n.value,n.value+1)]}));return t}});function J_t(){return[t1t,Jde]}const Y5="()[]{}<>";function ehe(t){for(let e=0;e<Y5.length;e+=2)if(Y5.charCodeAt(e)==t)return Y5.charAt(e+1);return K4(t<128?t:t+1)}function the(t,e){return t.languageDataAt("closeBrackets",e)[0]||v_}const e1t=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),t1t=He.inputHandler.of((t,e,n,r)=>{if((e1t?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&xa(Zr(r,0))==1||e!=i.from||n!=i.to)return!1;let o=r1t(t.state,r);return o?(t.dispatch(o),!0):!1}),n1t=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=the(t,t.selection.main.head).brackets||v_.brackets,i=null,o=t.changeByRange(a=>{if(a.empty){let s=i1t(t.doc,a.head);for(let l of r)if(l==s&&fP(t.doc,a.head)==ehe(Zr(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Ce.cursor(a.head-l.length)}}return{range:i=a}});return i||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function r1t(t,e){let n=the(t,t.selection.main.head),r=n.brackets||v_.brackets;for(let i of r){let o=ehe(Zr(i,0));if(e==i)return o==i?s1t(t,i,r.indexOf(i+i+i)>-1,n):o1t(t,i,o,n.before||v_.before);if(e==o&&nhe(t,t.selection.main.from))return a1t(t,i,o)}return null}function nhe(t,e){let n=!1;return t.field(Jde).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function fP(t,e){let n=t.sliceString(e,e+2);return n.slice(0,xa(Zr(n,0)))}function i1t(t,e){let n=t.sliceString(e-2,e);return xa(Zr(n,0))==n.length?n:n.slice(1)}function o1t(t,e,n,r){let i=null,o=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:_h.of(a.to+e.length),range:Ce.range(a.anchor+e.length,a.head+e.length)};let s=fP(t.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:e+n,from:a.head},effects:_h.of(a.head+e.length),range:Ce.cursor(a.head+e.length)}:{range:i=a}});return i?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function a1t(t,e,n){let r=null,i=t.changeByRange(o=>o.empty&&fP(t.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:Ce.cursor(o.head+n.length)}:r={range:o});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function s1t(t,e,n,r){let i=r.stringPrefixes||v_.stringPrefixes,o=null,a=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:_h.of(s.to+e.length),range:Ce.range(s.anchor+e.length,s.head+e.length)};let l=s.head,u=fP(t.doc,l),c;if(u==e){if(rhe(t,l))return{changes:{insert:e+e,from:l},effects:_h.of(l+e.length),range:Ce.cursor(l+e.length)};if(nhe(t,l)){let d=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+d.length,insert:d},range:Ce.cursor(l+d.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(c=ihe(t,l-2*e.length,i))>-1&&rhe(t,c))return{changes:{insert:e+e+e+e,from:l},effects:_h.of(l+e.length),range:Ce.cursor(l+e.length)};if(t.charCategorizer(l)(u)!=Bn.Word&&ihe(t,l,i)>-1&&!l1t(t,l,e,i))return{changes:{insert:e+e,from:l},effects:_h.of(l+e.length),range:Ce.cursor(l+e.length)}}return{range:o=s}});return o?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function rhe(t,e){let n=Tr(t).resolveInner(e+1);return n.parent&&n.from==e}function l1t(t,e,n,r){let i=Tr(t).resolveInner(e,-1),o=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(t.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==e&&i.parent;if(!u)break;i=u}return!1}function ihe(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Bn.Word)return e;for(let i of n){let o=e-i.length;if(t.sliceDoc(o,e)==i&&r(t.sliceDoc(o-1,o))!=Bn.Word)return o}return-1}function u1t(t={}){return[H_t,oo,Kr.of(t),W_t,c1t,Yde]}const ohe=[{key:"Ctrl-Space",run:L_t},{key:"Escape",run:B_t},{key:"ArrowDown",run:cP(!0)},{key:"ArrowUp",run:cP(!1)},{key:"PageDown",run:cP(!0,"page")},{key:"PageUp",run:cP(!1,"page")},{key:"Enter",run:N_t}],c1t=Mc.highest(jb.computeN([Kr],t=>t.facet(Kr).defaultKeymap?[ohe]:[]));class f1t{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class Oh{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=e,o=r.facet(m_).markerFilter;o&&(i=o(i,r));let a=nt.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?nt.widget({widget:new b1t(s),diagnostic:s}).range(s.from):nt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new Oh(a,n,kv(a))}}function kv(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,o,{spec:a})=>{if(!(e&&a.diagnostic!=e))return r=new f1t(i,o,a.diagnostic),!1}),r}function d1t(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(m_).hideOn(t,n,r);if(i!=null)return i;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(a=>a.is(ahe))||t.changes.touchesRange(o.from,Math.max(o.to,r)))}function h1t(t,e){return t.field(Io,!1)?e:e.concat(Ot.appendConfig.of(w1t))}const ahe=Ot.define(),q5=Ot.define(),she=Ot.define(),Io=kr.define({create(){return new Oh(nt.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);r=kv(n,t.selected.diagnostic,o)||kv(n,null,o)}!n.size&&i&&e.state.facet(m_).autoPanel&&(i=null),t=new Oh(n,i,r)}for(let n of e.effects)if(n.is(ahe)){let r=e.state.facet(m_).autoPanel?n.value.length?y_.open:null:t.panel;t=Oh.init(n.value,r,e.state)}else n.is(q5)?t=new Oh(t.diagnostics,n.value?y_.open:null,t.selected):n.is(she)&&(t=new Oh(t.diagnostics,t.panel,n.value));return t},provide:t=>[Kb.from(t,e=>e.panel),He.decorations.from(t,e=>e.diagnostics)]}),p1t=nt.mark({class:"cm-lintRange cm-lintRange-active"});function g1t(t,e,n){let{diagnostics:r}=t.state.field(Io),i=[],o=2e8,a=0;r.between(e-(n<0?1:0),e+(n>0?1:0),(l,u,{spec:c})=>{e>=l&&e<=u&&(l==u||(e>l||n>0)&&(e<u||n<0))&&(i.push(c.diagnostic),o=Math.min(l,o),a=Math.max(u,a))});let s=t.state.facet(m_).tooltipFilter;return s&&(i=s(i,t.state)),i.length?{pos:o,end:a,above:t.state.doc.lineAt(o).to<a,create(){return{dom:v1t(t,i)}}}:null}function v1t(t,e){return Cn("ul",{class:"cm-tooltip-lint"},e.map(n=>che(t,n,!1)))}const m1t=t=>{let e=t.state.field(Io,!1);(!e||!e.panel)&&t.dispatch({effects:h1t(t.state,[q5.of(!0)])});let n=qb(t,y_.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},lhe=t=>{let e=t.state.field(Io,!1);return!e||!e.panel?!1:(t.dispatch({effects:q5.of(!1)}),!0)},y1t=[{key:"Mod-Shift-m",run:m1t,preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(Io,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],m_=Ye.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},il(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function uhe(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let i=n[r];if(/[a-zA-Z]/.test(i)&&!e.some(o=>o.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function che(t,e,n){var r;let i=n?uhe(e.actions):[];return Cn("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Cn("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((o,a)=>{let s=!1,l=d=>{if(d.preventDefault(),s)return;s=!0;let p=kv(t.state.field(Io).diagnostics,e);p&&o.apply(t,p.from,p.to)},{name:u}=o,c=i[a]?u.indexOf(i[a]):-1,f=c<0?u:[u.slice(0,c),Cn("u",u.slice(c,c+1)),u.slice(c+1)];return Cn("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},f)}),e.source&&Cn("div",{class:"cm-diagnosticSource"},e.source))}class b1t extends ol{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Cn("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class fhe{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=che(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class y_{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)lhe(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],a=uhe(o.actions);for(let s=0;s<a.length;s++)if(a[s].toUpperCase().charCodeAt(0)==i.keyCode){let l=kv(this.view.state.field(Io).diagnostics,o);l&&o.actions[s].apply(e,l.from,l.to)}}else return;i.preventDefault()},r=i=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(i.target)&&this.moveSelection(o)};this.list=Cn("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=Cn("div",{class:"cm-panel-lint"},this.list,Cn("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>lhe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Io).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Io),r=0,i=!1,o=null;for(e.between(0,this.view.state.doc.length,(a,s,{spec:l})=>{let u=-1,c;for(let f=r;f<this.items.length;f++)if(this.items[f].diagnostic==l.diagnostic){u=f;break}u<0?(c=new fhe(this.view,l.diagnostic),this.items.splice(r,0,c),i=!0):(c=this.items[u],u>r&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new fhe(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.top<s.top?this.list.scrollTop-=(s.top-a.top)/l:a.bottom>s.bottom&&(this.list.scrollTop+=(a.bottom-s.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Io),r=kv(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:she.of(r)})}static open(e){return new y_(e)}}function _1t(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function dP(t){return _1t(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const O1t=He.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:dP("#d11")},".cm-lintRange-warning":{backgroundImage:dP("orange")},".cm-lintRange-info":{backgroundImage:dP("#999")},".cm-lintRange-hint":{backgroundImage:dP("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),w1t=[Io,He.decorations.compute([Io],t=>{let{selected:e,panel:n}=t.field(Io);return!e||!n||e.from==e.to?nt.none:nt.set([p1t.range(e.from,e.to)])}),m0t(g1t,{hideOn:d1t}),O1t],S1t=[T0t(),A0t(),jmt(),Fyt(),gyt(),kmt(),zmt(),Gt.allowMultipleSelections.of(!0),iyt(),Ife(byt,{fallback:!0}),Cyt(),J_t(),u1t(),a0t(),u0t(),Kmt(),Xbt(),jb.of([...n1t,...Wbt,...p_t,...Yyt,...fyt,...ohe,...y1t])];/*!
  405. * VueCodemirror v6.1.1
  406. * Copyright (c) Surmon. All rights reserved.
  407. * Released under the MIT License.
  408. * Surmon
  409. */var x1t=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[S1t]}),C1t=Symbol("vue-codemirror-global-config"),ki,T1t=function(t){var e=t.onUpdate,n=t.onChange,r=t.onFocus,i=t.onBlur,o=function(a,s){var l={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(l[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(u=Object.getOwnPropertySymbols(a);c<u.length;c++)s.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(a,u[c])&&(l[u[c]]=a[u[c]])}return l}(t,["onUpdate","onChange","onFocus","onBlur"]);return Gt.create({doc:o.doc,selection:o.selection,extensions:(Array.isArray(o.extensions)?o.extensions:[o.extensions]).concat([He.updateListener.of(function(a){e(a),a.docChanged&&n(a.state.doc.toString(),a),a.focusChanged&&(a.view.hasFocus?r(a):i(a))})])})},Nv=function(t){var e=new Mb;return{compartment:e,run:function(n){e.get(t.state)?t.dispatch({effects:e.reconfigure(n)}):t.dispatch({effects:Ot.appendConfig.of(e.of(n))})}}},dhe=function(t,e){var n=Nv(t),r=n.compartment,i=n.run;return function(o){var a=r.get(t.state);i(o??a!==e?e:[])}},hP={type:Boolean,default:void 0},P1t={autofocus:hP,disabled:hP,indentWithTab:hP,tabSize:Number,placeholder:String,style:Object,autoDestroy:hP,phrases:Object,root:Object,extensions:Array,selection:Object},$1t={modelValue:{type:String,default:""}},A1t=Object.assign(Object.assign({},P1t),$1t);(function(t){t.Change="change",t.Update="update",t.Focus="focus",t.Blur="blur",t.Ready="ready",t.ModelUpdate="update:modelValue"})(ki||(ki={}));var wh={};wh[ki.Change]=function(t,e){return!0},wh[ki.Update]=function(t){return!0},wh[ki.Focus]=function(t){return!0},wh[ki.Blur]=function(t){return!0},wh[ki.Ready]=function(t){return!0};var hhe={};hhe[ki.ModelUpdate]=wh[ki.Change];var E1t=Object.assign(Object.assign({},wh),hhe),M1t=h.defineComponent({name:"VueCodemirror",props:Object.assign({},A1t),emits:Object.assign({},E1t),setup:function(t,e){var n=h.shallowRef(),r=h.shallowRef(),i=h.shallowRef(),o=Object.assign(Object.assign({},x1t),h.inject(C1t,{})),a=h.computed(function(){var s={};return Object.keys(h.toRaw(t)).forEach(function(l){var u;l!=="modelValue"&&(s[l]=(u=t[l])!==null&&u!==void 0?u:o[l])}),s});return h.onMounted(function(){var s;r.value=T1t({doc:t.modelValue,selection:a.value.selection,extensions:(s=o.extensions)!==null&&s!==void 0?s:[],onFocus:function(u){return e.emit(ki.Focus,u)},onBlur:function(u){return e.emit(ki.Blur,u)},onUpdate:function(u){return e.emit(ki.Update,u)},onChange:function(u,c){u!==t.modelValue&&(e.emit(ki.Change,u,c),e.emit(ki.ModelUpdate,u,c))}}),i.value=function(u){return new He(Object.assign({},u))}({state:r.value,parent:n.value,root:a.value.root});var l=function(u){var c=function(){return u.state.doc.toString()},f=Nv(u).run,d=dhe(u,[He.editable.of(!1),Gt.readOnly.of(!0)]),p=dhe(u,jb.of([Qbt])),g=Nv(u).run,v=Nv(u).run,m=Nv(u).run,y=Nv(u).run;return{focus:function(){return u.focus()},getDoc:c,setDoc:function(b){b!==c()&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:b}})},reExtensions:f,toggleDisabled:d,toggleIndentWithTab:p,setTabSize:function(b){g([Gt.tabSize.of(b),i_.of(" ".repeat(b))])},setPhrases:function(b){v([Gt.phrases.of(b)])},setPlaceholder:function(b){m(n0t(b))},setStyle:function(b){b===void 0&&(b={}),y(He.theme({"&":Object.assign({},b)}))}}}(i.value);h.watch(function(){return t.modelValue},function(u){u!==l.getDoc()&&l.setDoc(u)}),h.watch(function(){return t.extensions},function(u){return l.reExtensions(u||[])},{immediate:!0}),h.watch(function(){return a.value.disabled},function(u){return l.toggleDisabled(u)},{immediate:!0}),h.watch(function(){return a.value.indentWithTab},function(u){return l.toggleIndentWithTab(u)},{immediate:!0}),h.watch(function(){return a.value.tabSize},function(u){return l.setTabSize(u)},{immediate:!0}),h.watch(function(){return a.value.phrases},function(u){return l.setPhrases(u||{})},{immediate:!0}),h.watch(function(){return a.value.placeholder},function(u){return l.setPlaceholder(u)},{immediate:!0}),h.watch(function(){return a.value.style},function(u){return l.setStyle(u)},{immediate:!0}),a.value.autofocus&&l.focus(),e.emit(ki.Ready,{state:r.value,view:i.value,container:n.value})}),h.onBeforeUnmount(function(){a.value.autoDestroy&&i.value&&function(s){s.destroy()}(i.value)}),function(){return h.h("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),I1t=M1t;const D1t="#e5c07b",phe="#e06c75",R1t="#56b6c2",k1t="#ffffff",pP="#abb2bf",K5="#7d8799",N1t="#61afef",L1t="#98c379",ghe="#d19a66",B1t="#c678dd",V1t="#21252b",vhe="#2c313a",mhe="#282c34",J5="#353a42",z1t="#3E4451",yhe="#528bff",F1t=He.theme({"&":{color:pP,backgroundColor:mhe},".cm-content":{caretColor:yhe},".cm-cursor, .cm-dropCursor":{borderLeftColor:yhe},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:z1t},".cm-panels":{backgroundColor:V1t,color:pP},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:mhe,color:K5,border:"none"},".cm-activeLineGutter":{backgroundColor:vhe},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:J5},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:J5,borderBottomColor:J5},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:vhe,color:pP}}},{dark:!0}),W1t=l_.define([{tag:ae.keyword,color:B1t},{tag:[ae.name,ae.deleted,ae.character,ae.propertyName,ae.macroName],color:phe},{tag:[ae.function(ae.variableName),ae.labelName],color:N1t},{tag:[ae.color,ae.constant(ae.name),ae.standard(ae.name)],color:ghe},{tag:[ae.definition(ae.name),ae.separator],color:pP},{tag:[ae.typeName,ae.className,ae.number,ae.changed,ae.annotation,ae.modifier,ae.self,ae.namespace],color:D1t},{tag:[ae.operator,ae.operatorKeyword,ae.url,ae.escape,ae.regexp,ae.link,ae.special(ae.string)],color:R1t},{tag:[ae.meta,ae.comment],color:K5},{tag:ae.strong,fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.link,color:K5,textDecoration:"underline"},{tag:ae.heading,fontWeight:"bold",color:phe},{tag:[ae.atom,ae.bool,ae.special(ae.variableName)],color:ghe},{tag:[ae.processingInstruction,ae.string,ae.inserted],color:L1t},{tag:ae.invalid,color:k1t}]),Q1t=[F1t,Ife(W1t)];class gP{constructor(e,n,r,i,o,a,s,l,u,c=0,f){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=o,this.score=a,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let i=e.parser.context;return new gP(e,[],n,r,r,0,[],0,i?new bhe(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,i=e&65535,{parser:o}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),this.reduceContext(i,this.reducePos);return}let s=this.stack.length-(r-1)*3-(e&262144?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let c=s?this.stack[s-1]:0,f=this.bufferBase+this.buffer.length-c;if(i<o.minRepeatTerm||e&131072){let d=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,l,d,f+4,!0)}if(e&262144)this.state=this.stack[s];else{let d=this.stack[s-3];this.state=o.getGoto(d,i,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(i,l)}storeNode(e,n,r,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(e,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=e,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=i}}shift(e,n,r,i){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=e,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,i,4)}}apply(e,n,r,i){e&65536?this.reduce(e):this.shift(e,n,r,i)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),i=e.bufferBase+n;for(;e&&i==e.bufferBase;)e=e.parent;return new gP(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new H1t(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,a;o<n.length;o+=2)(a=n[o+1])!=this.state&&this.p.parser.hasAction(a,e)&&i.push(n[o],a);if(this.stack.length<120)for(let o=0;i.length<8&&o<n.length;o+=2){let a=n[o+1];i.some((s,l)=>l&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let o=n[i+1];if(o==this.state)continue;let a=this.split();a.pushState(o,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(n[i],this.pos),a.reducePos=this.pos,a.score-=200,r.push(a)}return r}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if(!(n&65536))return!1;if(!e.validAction(this.state,n)){let r=n>>19,i=n&65535,o=this.stack.length-r*3;if(o<0||e.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),e.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new bhe(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class bhe{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class H1t{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class vP{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new vP(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new vP(this.stack,this.pos,this.index)}}function b_(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r<t.length;){let o=0;for(;;){let a=t.charCodeAt(r++),s=!1;if(a==126){o=65535;break}a>=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new e(o)}return n}class mP{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const _he=new mP;class G1t{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=_he,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<r.from;){if(!i)return null;let a=this.ranges[--i];o-=r.from-a.to,r=a}for(;n<0?o>r.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(n);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(r=o,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let a=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=_he,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,n)))}return r}}class Lv{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;Ohe(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}Lv.prototype.contextual=Lv.prototype.fallback=Lv.prototype.extend=!1;class e3{constructor(e,n,r){this.precTable=n,this.elseToken=r,this.data=typeof e=="string"?b_(e):e}token(e,n){let r=e.pos,i=0;for(;;){let o=e.next<0,a=e.resolveOffset(1,1);if(Ohe(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;e.reset(a,e.token)}i&&(e.reset(r,e.token),e.acceptToken(this.elseToken,i))}}e3.prototype.contextual=Lv.prototype.fallback=Lv.prototype.extend=!1;class yP{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function Ohe(t,e,n,r,i,o){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;s&t[a];){let u=t[a+1];for(let p=a+3;p<u;p+=2)if((t[p+1]&s)>0){let g=t[p];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||j1t(g,e.token.value,i,o))){e.acceptToken(g);break}}let c=e.next,f=0,d=t[a+2];if(e.next<0&&d>f&&t[u+d*3-3]==65535){a=t[u+d*3-1];continue e}for(;f<d;){let p=f+d>>1,g=u+p+(p<<1),v=t[g],m=t[g+1]||65536;if(c<v)d=p;else if(c>=m)f=p+1;else{a=t[g+2],e.advance();continue e}}break}}function whe(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function j1t(t,e,n,r){let i=whe(n,r,e);return i<0||whe(n,r,t)<i}const Do=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let t3=null;function She(t,e,n){let r=t.cursor(Cr.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class U1t{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?She(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?She(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=r.children[i],a=this.start[n]+r.positions[i];if(a>e)return this.nextStart=a,null;if(o instanceof hr){if(a==e){if(a<this.safeFrom)return null;let s=a+o.length;if(s<=this.safeTo){let l=o.prop(Bt.lookAhead);if(!l||s+l<this.fragment.to)return o}}this.index[n]++,a+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class Z1t{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new mP)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:o}=i,a=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<o.length;u++){if(!(1<<u&a))continue;let c=o[u],f=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=a||f.context!=s)&&(this.updateCachedToken(f,c,e),f.mask=a,f.context=s),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let d=n;if(f.extended>-1&&(n=this.addActions(e,f.extended,f.end,n)),n=this.addActions(e,f.value,f.end,n),!c.extend&&(r=f,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!r&&e.pos==this.stream.end&&(r=new mP,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new mP,{pos:r,p:i}=e;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(e,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,e),r),e.value>-1){let{parser:o}=r.p;for(let a=0;a<o.specialized.length;a++)if(o.specialized[a]==e.value){let s=o.specializers[a](this.stream.read(e.start,e.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,n,r,i){for(let o=0;o<i;o+=3)if(this.actions[o]==e)return i;return this.actions[i++]=e,this.actions[i++]=n,this.actions[i++]=r,i}addActions(e,n,r,i){let{state:o}=e,{parser:a}=e.p,{data:s}=a;for(let l=0;l<2;l++)for(let u=a.stateSlot(o,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=fu(s,u+2);else{i==0&&s[u+1]==2&&(i=this.putAction(fu(s,u+2),n,r,i));break}s[u]==n&&(i=this.putAction(fu(s,u+1),n,r,i))}return i}}class X1t{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new G1t(n,i),this.tokens=new Z1t(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[gP.start(this,e.top[0],o)],this.fragments=r.length&&this.stream.end-o>e.bufferLength*4?new U1t(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let s=e[a];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,e))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&K1t(i);if(a)return Do&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Do&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Do&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a<r.length-1;a++){let s=r[a];for(let l=a+1;l<r.length;l++){let u=r[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a<r.length;a++)r[a].pos<this.minStackPos&&(this.minStackPos=r[a].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,r){let i=e.pos,{parser:o}=this,a=Do?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!u||(f.prop(Bt.contextHash)||0)==c))return e.useNode(f,d),Do&&console.log(a+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof hr)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof hr&&f.positions[0]==0)f=p;else break}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),Do&&console.log(a+this.stackID(e)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let c=l[u++],f=l[u++],d=l[u++],p=u==l.length||!r,g=p?e:e.split(),v=this.tokens.mainToken;if(g.apply(c,f,v?v.start:g.pos,d),Do&&console.log(a+this.stackID(g)+` (via ${c&65536?`reduce of ${o.getName(c&65535)}`:"shift"} for ${o.getName(f)} @ ${i}${g==e?"":", split"})`),p)return!0;g.pos>i?n.push(g):r.push(g)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return xhe(e,n),!0}}runRecovery(e,n,r){let i=null,o=!1;for(let a=0;a<e.length;a++){let s=e[a],l=n[a<<1],u=n[(a<<1)+1],c=Do?this.stackID(s)+" -> ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Do&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let f=s.split(),d=c;for(let p=0;f.forceReduce()&&p<10&&(Do&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));p++)Do&&(d=this.stackID(f)+" -> ");for(let p of s.recoverByInsert(l))Do&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Do&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),xhe(s,r)):(!i||i.score<s.score)&&(i=s)}return i}stackToTree(e){return e.close(),hr.build({buffer:vP.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(t3||(t3=new WeakMap)).get(e);return n||t3.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function xhe(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class Y1t{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}const n3=t=>t;class q1t{constructor(e){this.start=e.start,this.shift=e.shift||n3,this.reduce=e.reduce||n3,this.reuse=e.reuse||n3,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class __ extends cfe{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;s<e.repeatNodeCount;s++)n.push("");let r=Object.keys(e.topRules).map(s=>e.topRules[s][1]),i=[];for(let s=0;s<n.length;s++)i.push([]);function o(s,l,u){i[s].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let s of e.nodeProps){let l=s[0];typeof l=="string"&&(l=Bt[l]);for(let u=1;u<s.length;){let c=s[u++];if(c>=0)o(c,l,s[u++]);else{let f=s[u+-c];for(let d=-c;d>0;d--)o(s[u++],l,f);u++}}}this.nodeSet=new o5(n.map((s,l)=>no.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=rfe;let a=b_(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(Che),this.states=b_(e.states,Uint32Array),this.data=b_(e.stateData),this.goto=b_(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new Lv(a,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let i=new X1t(this,e,n,r);for(let o of this.wrappers)i=o(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o<u;o++)if(i[o]==e)return l;if(s)return-1}}hasAction(e,n){let r=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(e,i?2:1),a;;o+=3){if((a=r[o])==65535)if(r[o+1]==1)a=r[o=fu(r,o+2)];else{if(r[o+1]==2)return fu(r,o+2);break}if(a==n||a==0)return fu(r,o+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),i=r?n(r):void 0;for(let o=this.stateSlot(e,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=fu(this.data,o+2);else break;i=n(fu(this.data,o+1))}return i}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=fu(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(__.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(o=>o.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=e.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=Che(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let o of e.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;o<n.length;o++)if(!r[o])for(let a=this.dialects[n[o]],s;(s=this.data[a++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[s]=1;return new Y1t(e,r,i)}static deserialize(e){return new __(e)}}function fu(t,e){return t[e]|t[e+1]<<16}function K1t(t){let e=null;for(let n of t){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function Che(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}const J1t=312,The=1,eOt=2,tOt=3,nOt=4,rOt=313,iOt=315,oOt=316,aOt=5,sOt=6,lOt=0,r3=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Phe=125,uOt=59,i3=47,cOt=42,fOt=43,dOt=45,hOt=60,pOt=44,gOt=63,vOt=46,mOt=new q1t({start:!1,shift(t,e){return e==aOt||e==sOt||e==iOt?t:e==oOt},strict:!1}),yOt=new yP((t,e)=>{let{next:n}=t;(n==Phe||n==-1||e.context)&&t.acceptToken(rOt)},{contextual:!0,fallback:!0}),bOt=new yP((t,e)=>{let{next:n}=t,r;r3.indexOf(n)>-1||n==i3&&((r=t.peek(1))==i3||r==cOt)||n!=Phe&&n!=uOt&&n!=-1&&!e.context&&t.acceptToken(J1t)},{contextual:!0}),_Ot=new yP((t,e)=>{let{next:n}=t;if(n==fOt||n==dOt){if(t.advance(),n==t.next){t.advance();let r=!e.context&&e.canShift(The);t.acceptToken(r?The:eOt)}}else n==gOt&&t.peek(1)==vOt&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(tOt))},{contextual:!0});function o3(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const OOt=new yP((t,e)=>{if(t.next!=hOt||!e.dialectEnabled(lOt)||(t.advance(),t.next==i3))return;let n=0;for(;r3.indexOf(t.next)>-1;)t.advance(),n++;if(o3(t.next,!0)){for(t.advance(),n++;o3(t.next,!1);)t.advance(),n++;for(;r3.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==pOt)return;for(let r=0;;r++){if(r==7){if(!o3(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),n++}}t.acceptToken(nOt,-n)}),wOt=f5({"get set async static":ae.modifier,"for while do if else switch try catch finally return throw break continue default case":ae.controlKeyword,"in of await yield void typeof delete instanceof":ae.operatorKeyword,"let var const using function class extends":ae.definitionKeyword,"import export from":ae.moduleKeyword,"with debugger as new":ae.keyword,TemplateString:ae.special(ae.string),super:ae.atom,BooleanLiteral:ae.bool,this:ae.self,null:ae.null,Star:ae.modifier,VariableName:ae.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ae.function(ae.variableName),VariableDefinition:ae.definition(ae.variableName),Label:ae.labelName,PropertyName:ae.propertyName,PrivatePropertyName:ae.special(ae.propertyName),"CallExpression/MemberExpression/PropertyName":ae.function(ae.propertyName),"FunctionDeclaration/VariableDefinition":ae.function(ae.definition(ae.variableName)),"ClassDeclaration/VariableDefinition":ae.definition(ae.className),PropertyDefinition:ae.definition(ae.propertyName),PrivatePropertyDefinition:ae.definition(ae.special(ae.propertyName)),UpdateOp:ae.updateOperator,"LineComment Hashbang":ae.lineComment,BlockComment:ae.blockComment,Number:ae.number,String:ae.string,Escape:ae.escape,ArithOp:ae.arithmeticOperator,LogicOp:ae.logicOperator,BitOp:ae.bitwiseOperator,CompareOp:ae.compareOperator,RegExp:ae.regexp,Equals:ae.definitionOperator,Arrow:ae.function(ae.punctuation),": Spread":ae.punctuation,"( )":ae.paren,"[ ]":ae.squareBracket,"{ }":ae.brace,"InterpolationStart InterpolationEnd":ae.special(ae.brace),".":ae.derefOperator,", ;":ae.separator,"@":ae.meta,TypeName:ae.typeName,TypeDefinition:ae.definition(ae.typeName),"type enum interface implements namespace module declare":ae.definitionKeyword,"abstract global Privacy readonly override":ae.modifier,"is keyof unique infer":ae.operatorKeyword,JSXAttributeValue:ae.attributeValue,JSXText:ae.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ae.angleBracket,"JSXIdentifier JSXNameSpacedName":ae.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ae.attributeName,"JSXBuiltin/JSXIdentifier":ae.standard(ae.tagName)}),SOt={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},xOt={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},COt={__proto__:null,"<":187},TOt=__.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO%[Q^O,5;bO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`O!0LbO'#DOO!0|Q7[O,5<dO!1TQWO,5<fO!2pQ$ISO'#GVO!2}QWO'#GWO!3SQWO'#GWO!4rQ$ISO'#G[O!5nQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6aQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6kQWO'#JfO!6yQWO'#JeO!7RQWO'#CuOOQ?Mr'#Cx'#CxO!7ZQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3SQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9iQ?NdO1G0|O#<PQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#>uQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-E<j-E<jO#E}Q?NdO1G0|O#FzQ?NdO1G0|OOQ?Mr1G0|1G0|O#GzQ7[O'#JwO#HUQWO,5:uO#HZQ?NdO1G1bO#H}Q&jO,5<VO#IVQ&jO,5<WO#I_Q&jO'#FnO#IvQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#I{Q&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#J^Q07bO'#JmO#JhQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JmQ`O'#KSOOQ?Mr,5<c,5<cO#JuQ`O,5<cO!&_Q7[O'#DQOOOO'#I^'#I^O#JzO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#KVQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#KuQ7[O,5=UO!+hQ7[O'#IsO#LhQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#LrQpO'#CrO#MVQ$ISO'#EoO#NUQ`O'#G`O#NrQpO,5<qO#NyQWO'#KWO9WQWO'#KWO$ XQWO,5<sO!+hQ7[O,5<rO$ ^QWO'#GXO$ oQWO,5<rO$ tQpO'#GUO$!RQpO'#KXO$!]QWO'#KXO!&_Q7[O'#KXO$!bQWO,5<vO$!gQ`O'#GaO!5iQ`O'#GaO$!xQWO'#GcO$!}QWO'#GeO!3SQWO'#GhO$#SQ?MxO'#IpO$#_Q`O,5<zOOQ?Mv,5<z,5<zO$#fQ`O'#GaO$#tQ`O'#GbO$#|Q`O'#GbO$$RQ7[O,5=UO$$cQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$$sQWO'#IuO$%OQWO,5@PO$%WQWO,59aOOQ?Mr,59f,59fO$%zQ!LSO,59rOOQ?Mr'#Jk'#JkO$&mQ7[O,5<iO$'`Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'jQWO,5<tO$'oQ7[O,5<yO$(PQWO'#JzO!$[Q^O1G2PO$(UQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(ZQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*]Q?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$,aQ7[O'#EhOOQ?Mp,5@O,5@OO$,kQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$,|QWO1G0rO$-RQWO'#CiO$-^QWO'#KaO$-fQWO,5=xO$-kQWO'#KaO$-pQWO'#KaO$.OQWO'#I}O$.^QWO,5@zO$.fQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.mQWO1G3cO$.rQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$.wQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$.|QWO1G3PO$/UQ`O'#G}OOQU1G3R1G3RO!5iQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/^Q7[O,5=qO9^QWO,5=qO$!}QWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$/lQWO'#K_O$/wQWO,5=tOOQU1G.k1G.kO$/|Q?MxO1G.kO@fQWO1G.kO$0XQWO1G.kO9hQ?MxO1G.kO$2aQrO,5@|O$2nQWO,5@|O9WQWO,5@|O$2yQ^O,5={O$3QQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$<WQ`O'#IaO$<nQWO,5@[OOQ?Mr1G/o1G/oO$<vQ`O'#IgO$=QQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$=YQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>jQpO,5<gO$>rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$AVQWO7+(bO$AbQ7[O7+(bO$ApQ?NdO,5=UO$CxQ?NdO,5=WO$FQQ?NdO,5=UO$H`Q?NdO,5=WO$JnQ?NdO,59rO$LsQ?NdO,5<iO$N{Q?NdO,5<kO%#TQ?NdO,5<yOOQ?Mr7+&^7+&^O%%cQ?NdO7+&^O%&VQ^O'#IbO%&dQWO,5@^O%&lQrO,5@^OOQ?Mr1G/|1G/|O%&vQWO7+&gOOQ?Mr7+&g7+&gO%&{Q07bO,5:cO%[Q^O7+&yO%'VQ07bO,5:_O%'dQ07bO,5:gO%'nQ07bO,5:iO%'xQ7[O'#IeO%(SQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%([QtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(gQWO1G1{OOQ?Mr1G1}1G1}O%(lQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%(sQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)gQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%*VQ7[O,5?]OOQ?Mr-E<o-E<oO%*xQ7[O,5?_OOQ?Mr-E<q-E<qO%+SQpO1G2tO%+ZQpO'#CrO%+qQ7[O'#J}O%+xQ^O'#EqOOQ?Mr1G2]1G2]O%,SQWO'#ImO%,hQWO,5@rO%,hQWO,5@rO%,pQWO,5@rO%,{QWO,5@rOOQO1G2_1G2_O%-ZQ7[O1G2^O!+hQ7[O1G2^O%-kQ$ISO'#IoO%-xQWO,5@sO!&_Q7[O,5@sO%.QQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(PQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%.[QWO,5<}OOQ?Mp,5=P,5=PO$(PQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5iQ`O,5<{O%.dQWO,5<|O$!xQWO,5<}O%.oQ`O,5<|O!+hQ7[O'#IqO%/`Q7[O1G2pO!+hQ7[O'#IsO%0RQ7[O1G2rO%0]Q7[O1G5lO%0gQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%0tQWO1G2XO!+hQ7[O1G2`O%0yQ?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%1mQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%1rQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$AYQWO7+(bO%1|Q?NbO'#CiO%2aQ?NbO,5=QO%3RQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%3WQWO'#I|O%3oQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3oQWO,5@{O%3wQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%3|QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4RQ?NbO7+(jO!&_Q7[O7+(jO%4]QpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%4dQWO'#K^O%4oQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6RQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%6YQWO1G3]O%6eQ7[O1G3]O9hQ?MxO1G3_O$!}QWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%6sQWO'#I{O%7XQWO,5@yO%7aQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7lQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%7qQ?MxO1G6hO%7{Q^O1G3gO%8SQWO1G3gO%8XQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8`Q^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%;YQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%;bQWO<<K|O%;mQ?NdO,5?]O%=uQ?NdO,5?_O%?}Q?NdO1G2^O%B]Q?NdO1G2pO%DeQ?NdO1G2rO%FmQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<<JR<<JRO%GPQ07bO1G0rO%IWQ07bO1G0|O%I_Q07bO1G0|O%K`Q07bO1G0|O%KgQ07bO1G0|O%MhQ07bO1G0|O& iQ07bO1G0|O& pQ07bO1G0|O& wQ07bO1G0|O&#xQ07bO1G0|O&$PQ07bO1G0|O&$WQ?NdO<<JeO&&OQ07bO1G0|O&&{Q07bO1G0|O&'{Q07bO'#JgO&*OQ07bO1G1bO&*]Q07bO1G0RO&*gQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&*qQWO1G1sO&*vQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&-WQrO'#CiO&-bQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&-pQWO1G6^O&-pQWO1G6^O&-xQWO1G6^O&.TQ7[O7+'xO&.eQpO,5?ZO&.oQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&.tQpO1G6_O&/OQWO1G6_OOQ?Mp1G2h1G2hO$(PQWO1G2hOOQ?Mp1G2g1G2gO&/WQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&/]QWO1G2iO&/eQWO1G2hO$!xQWO1G2iO&0XQ7[O,5?]OOQ?Mr-E<p-E<pO&0zQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&1UQWO1G/`OOQ?Mr7+'s7+'sO&1ZQ7[O7+'zO&1kQ?NdO<<KVOOQ?Mr<<KV<<KVO&2_QWO1G0wO!&_Q7[O'#IvO&2dQWO,5@tO&4fQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&4mQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5aQWO,5?hO&5fQWO,5?hOOQO-E<z-E<zO&5tQWO1G6gO&5tQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&5|QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4RQ?NbO<<LUOOQU<<LV<<LVO%4]QpO<<LVO&6RQ`O'#IxO&6^QWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%+xQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6fQ`O,5=rOOQU,5=r,5=rO&6mQ`O'#EdO&7RQ`O'#GcO&7WQWO7+(wO&7]QWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&7eQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$!}QWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&7pQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&7{QWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8TQWO7+,SO&8YQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8_QWO7+)RO&8dQ^O7+)RO&8kQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&8pQWO,5>]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>`Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&9UQ?MxO<<IpO&9aQ?NdO<= XO&9qQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&9yQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&:QQWOANAhO%[Q^OANAhO&:YQ?NdO7+'xO&<hQ?NdO,5?]O&>pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5<iO&LlQ07bO,5<kO&N}Q07bO,5<yO'!pQ07bO7+'jO'!}Q07bO7+'kO'#[QWO,5<[OOQO7+'_7+'_O'#aQ7[O<<KzOOQO1G4s1G4sO'#hQWO1G4sO'#sQWO1G4sO'$RQWO7++xO'$RQWO7++xO!&_Q7[O1G4uO'$ZQpO1G4uO'$eQWO7++yOOQ?Mp7+(S7+(SO'$mQWO7+(TO'$xQpO7+(TOOQ?Mp7+(R7+(RO$(PQWO7+(SO'%PQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO'%UQWO7+(TO'%^Q7[O<<NrOOQ?Mr7+$z7+$zO'%hQpO,5?bOOQO-E<t-E<tO'%rQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&SQWO1G5SO'&XQWO7+,RO'&XQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&aQWO,5?dOOQO-E<v-E<vO'&lQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%+xQ^O,5<}O'&vQWO,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&7WQWO<<LcO'&{QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$!}QWO<<LeO9RQWO<<LeO''TQ`O1G5RO''`QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''hQWO<= nO''mQWO<= oOOQU<<Lm<<LmO''rQWO<<LmO''wQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(OQWO<<I}O'(ZQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'(eQrOG27SO4UQrOG27SO'(lQWOG27SO'(tQ07bO<<JeO')RQ07bO1G2^O'*tQ07bO,5?]O',tQ07bO,5?_O'.tQ07bO1G2pO'0tQ07bO1G2rO'2tQ07bO<<KVO'3RQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'3`QWO7+*_O'3kQWO<= dO'3sQpO7+*aOOQ?Mp<<Ko<<KoO$(PQWO<<KoOCcQWO<<KoO'3}QWO<<KoOOQ?Mp<<Kn<<KnO'4YQpO<<KoO$(PQWO<<KnO'4aQWO<<KoO!&_Q7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4fQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'4nQWO7+,OO&7WQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'4vQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$!}QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5OQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$>`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'<pQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(PQWOANAZOCcQWOANAZO'=QQWOANAZOOQ?MpANAYANAYO'=]QpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'=dQ07bO7+*jOOQUG27iG27iO&7WQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'=nQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'=xQ?NdOG27QOOQ?MpG26uG26uO$(PQWOG26uOCcQWOG26uO'@WQWOG26uOOQULD-TLD-TO&7WQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQ?MpLD,aLD,aO$(PQWOLD,aOCcQWOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'@cQ07bOG27QOOQ?Mp!$( {!$( {O$(PQWO!$( {OOQ?Mp!)9Eg!)9EgO!(oQ^O'#DwO1PQWO'#EUO'BUQrO'#JmO'B]QMnO'#DsO'BdQ^O'#D{O'BkQrO'#CiO'ERQrO'#CiO!(oQ^O'#D}O'EcQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'GfQWO,5<gO!(oQ^O,5;bO'GnQ7[O,5;bO'IXQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'GnQ7[O'#GjO!&_Q7[O'#GlO'GnQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'GnQ7[O'#F}O!&_Q7[O'#GPO'GnQ7[O'#GPO!&_Q7[O'#G_O'GnQ7[O'#G_O!(oQ^O,5:gO'I`Q`O'#D[O!(oQ^O,5@jO'EcQ^O1G0rO'IjQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO'ItQpO'#CrO!&_Q7[O,5<rO'GnQ7[O,5<rO'EcQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'GnQ7[O1G2^O!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO!&_Q7[O1G2`O'GnQ7[O1G2`O'EcQ^O7+'kO'EcQ^O7+&^O!&_Q7[OANAfO'GnQ7[OANAfO'JXQWO'#ElO'J^QWO'#ElO'JfQWO'#F[O'JkQWO'#EvO'JpQWO'#KOO'J{QWO'#J|O'KWQWO,5;WO'K]Q7[O,5<dO'KdQWO'#GWO'KiQWO'#GWO'KnQWO,5<eO'KvQWO,5;WO'LOQ07bO1G1_O'LVQWO,5<rO'L[QWO,5<rO'LaQWO,5<tO'LfQWO,5<tO'LkQWO1G2PO'LpQWO1G0rO'LuQ7[O<<KzO'L|Q7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3SQWO'#GWO!3SQWO'#GWO!3SQWO'#GYO!3SQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%+SQpO1G2tO%+SQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",stateData:"'NQ~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;UO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;VO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;QO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(RO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!ka![!ka%f!ka!d!ka~PKPO!h(_O~O!d#vO#](`O(m'mO!Y(oXa(oX'u(oX~O!h(oX~PMlO!P%fO![%gO!y]O#f(eO#g(dO(O%eO~O!Y(fO!h(nX~O!h(hO~O!P%fO![%gO#g(dO(O%eO~OP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O!d#vO!h(bX~P! YOR(jO}(iO!i#xO#P$dO!y!xa!P!xa~O!u!xa%e!xa![!xa#f!xa#g!xa(O!xa~P!#ZO!u(nO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#h(tO~O!X(vO!h(fP~P%[O(`(xO(j[O~O!P(zO!i#xO(`(xO(j[O~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOu)uO(])vO(^)xO~Ok*RO})zO!P){O(t$}O(u%PO~Og)yO~P!0kOg*SO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P*UO![*VO!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*YO(O*TO!h(zP~P!1YO#h*[O~O!i*]O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O*_O(QTO(TUO([$uO(t$}O(u%PO~O!X*bO!V({P~P!3XOo*nO!P*fO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO(`!mO~O!Z*kO~P!4|O#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5uOk*sO#]*rOg(YX!Y(YX~O!Y*tOg(XX~O(O&WOg(XP~Op*wO~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(QTO(TUO([VO(j[O(y<xO~O(O;zO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%VOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk=UO})zO!P){O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5uO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4kO#o$QO~P#4kOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9pO#w#ji~P#9pO#u$SO~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<fO#y$WO~P#<fOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?TOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O#y;bO#z;cO([VO(m$YO(t#|O(u#}O~O#}.sO~P#AbO#P$dO#];iO$P;iO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DdOk=UO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DdO!Y.wOg(kX~P!0kOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;dO!Z(aX~P#AbO!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)uO(])vO(^/WO~O!V/[O~P!&_O(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#K^O(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#LPO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1YOo*nO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO~Op'XO!P/fO!X+UO!Z*kO(QTO(TUO(`;wO!Z(sP~P#MjO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*YO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%VOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!4|O!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0kOg%`a!Y%`a#]%`a#}%`a~P!0kO(O&WOg'iX!Y'iX~O!Y*tOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%]O})zO!P){Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&UO})zO!P){Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$&wO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0kO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(fOh%VOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0pO(O0oO~P$*|O!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$|O~O(`(xO!Z)QP~Oh%VOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$0dO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#AbOp!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$_Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%VOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#K^O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#LPO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%]O#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&UO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$&wO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#AbO#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O<QO~P!1YOmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0kO!X4YO!V'cX!Y'cX~P!3XO!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O!P4hO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%.wO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/jOg(Yi!Y(Yi~P!0kO#]4mOg(Yi!Y(Yi~P!0kO!h4pO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4tO~O!Y4uO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4xOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4xO~Ob5OO%g5PO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5TO~O`5UO~Oa%lO'u%lO~P#.aO![$|O~P#.aO!Y5^O#]5`O!Z)QX~O!Z5aO~Oo5hOp!nO!P5bO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5gO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5fO~P%4tOk5mO![1aO%f5lO~Oh%VOk5mO![1aO%f5lO~Ob5tO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5vO~O`5zO~O#s5}O&W6OO~PMlO!h6PO~P%[Oa6RO~Oa6RO~P%[Ob2SO!Z6WO&f2RO~P`O!d6YO~O!d6[Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AbO#]6]O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AbOa%lO#]6fO'u%lO~Oa%lO!d#vO#]6fO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6mO(O%eO~O![']O%f6pO~Ok6tO![']O%f6pO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)nO#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*aO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%.wO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/jO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#AbOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%G^O#k;YO~P%G^OP$[OR#zOo;fO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%IfO#o;[O~P%IfOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;`O~P%MoO#w#ji~P%MoO#u;^O~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!OO#y;bO~P&!OOa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO(t#ji(u#ji~P&$zOk=VO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&$zO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AbO#}!oi!Z!oi~P$(fOg'Xa!Y'Xa~P!0kO!Z7WO~O!Y'`a!Z'`a~P#AbOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+QO!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0kO!V'ca!Y'ca~P#.aO!d7_O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7cO~O!d#vO#s7hO~Oo7iO!d#vO(m'mO~O})zO!P){O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&/pO})zO!P){Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0cO!V7lO~Og$|q!Y$|q#]$|q#}$|q~P!0kOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6[O~O!Y4uO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6pO~P&2lOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7qO~Ob7sO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7wO~O(`(xO!Y'lX!Z'lX~O!Y5^O!Z)Qa~O!Z8QO~P%4tOp!nO!P8RO(QTO(TUO(`!mO(j!sO~O#X8SO~O![1aO~O![1aO%f8UO~Ok8XO![1aO%f8UO~O[8^O!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8bO~O!h8cO~O!h8fO~O!h8fO~P%[Oa8hO~O!d8iO~O!h8jO~O!Y(ri!Z(ri~P#AbOa%lO#]8rO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8uO~P&2lO![']O%f8uO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&/pO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0cO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#AbO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&CoO(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&EsOk=VO})zO!P){O(u%PO~P&CoOk=VO})zO!P){O(t$}O~P&EsOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O})zO!P){OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O})zO!P){OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=VO})zO!P){O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NlO#}$lq!Y$lq!Z$lq~P#AbO#}$mq!Y$mq!Z$mq~P#AbO!Z9SO~O#}9TO~P!0kO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~Oo9[O!d#vO(m'mO~O!V9]O~P#.aO!V9]O~O!d#vO#s9bO~Og(Yy!Y(Yy~P!0kO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9dO~O!Y0wO!Z)Tq~O#]9hO!Y'la!Z'la~O!Y5^O!Z)Qi~P#AbO!P4hO~O![1aO%f9lO~O(QTO(TUO(`9qO~O!Y1lO!Z)Rq~O!h9tO~O!h9uO~O!h9vO~O!h9vO~P%[O#]9yO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AbO%f:OO~P&2lO![']O%f:OO~O#}#{y!Y#{y!Z#{y~P#AbOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NlO})zO!P){O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O})zO!P){OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AbO#}#`y!Y#`y!Z#`y~P#AbO!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aOo:YO!d#vO(m'mO~O!V:ZO~P#.aO!V:ZO~O!Y0wO!Z)Ty~O!Y5^O!Z)Qq~O![1aO%f:cO~O!h:fO~O%f:kO~P&2lOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NlO})zO!P){O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O})zO!P){OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NlOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0kOo:oO!d#vO(m'mO~O!V:pO~P#.aO!Y'lq!Z'lq~P#AbO!Y#e!Z!Z#e!Z~P#AbO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOo:xO!d#vO(m'mO~OP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NlOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&+QOP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'BxOP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![XO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y;dO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;oO!P${O![$|O!f=PO!i$xO#g;uO$V%_O$r;qO$t;sO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#t)`O~P'GnOo!bX(m!bX~P# ZO!Z]X!ZfX~P'BxO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h;XO~O!d#vO#h;XO~O#];iO~O#s;]O~O#];xO!Y(rX!Z(rX~O#];iO!Y(pX!Z(pX~O#h;yO~Og;{O~P!0kO#h<RO~O#h<SO~O!d#vO#h<TO~O!d#vO#h;yO~O#}<UO~P#AbO#h<VO~O#h<WO~O#h<]O~O#h<^O~O#h<_O~O#h<`O~O#}<aO~P!0kO#}<bO~P!0kO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",goto:"$4Q)XPPPPPP)YPP)]P)nP+O/PPPPP5xPP6`PP<V?mP@QP@QPPP@QPBRP@QP@QP@QPBVPB[PByPGrPPPGvPPPPGvJxPPPKOKzPGvPGvPPNYGvPPPGvPGvP!!aGvP!%v!&{!'UP!'x!'|!'x!+YPPPPPPP!+y!&{PP!,Z!-gP!0jGvGv!0o!3z!8b!8b!<`PPP!<hGvPPPPPPPPPPP!?vP!ATPPGv!BfPGvPGvGvGvGvGvPGv!CxP!GRP!JWP!J[!Jf!Jj!JjP!GOP!Jn!JnP!MsP!MwGvGv!M}##RBV@QP@QP@Q@QP#$_@Q@Q#&j@Q#)Z@Q#+`@Q@Q#,O#.]#.]#.b#.k#.]#.wP#.]P@Q#/a@Q#3S@Q@Q5xPPP#6{PPP#7f#7fP#7fP#7|#7fPP#8SP#7yP#7y#8g#7y#9R#9X5u)]#9[)]P#9c#9c#9cP)]P)]P)]P)]PP)]P#9i#9lP#9l)]P#9pP#9sP)]P)]P)]P)]P)]P)])]PP#9y#:P#:[#:b#:h#:n#:t#;S#;Y#;d#;j#;t#;z#<[#<b#=S#=f#=l#=r#>Q#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U*y%[;n;oQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q5O0wQ5t1lQ6r3UQ7s5PR8x6t'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{t!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5g$|$ti#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ&U|Q'R!eU'X%g*V-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ5O0wQ5X1TQ5t1lQ5w1nQ5x1qQ7s5PQ7v5UQ8a5zQ9g7wR9r8^rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<z<{[#]WZ#W#Z'U(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4}0wQ5R0zQ5W1SQ5s1kQ7r5PQ7u5TQ9c7qR:^9d!O$zi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R!S%wy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5n1fS5r1j1kQ8]5s#^<|#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo<};g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bW%Ti%V*t<xS&X!Q&fQ&Y!RQ&Z!SR+y&V$}%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VT)v$u)wV*y%[;n;oW'X!e%g*V-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4n0`R7{5^'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{$i$^c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5gU*d$|*V*jS/y*e*lQ0S*mQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u;XQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;yS0f+R<TQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4s0g<_Q4y0tS4|0v<`Q6^2aQ6b2mQ6g2tQ7p4zQ8m6`Q8n6cQ8q6hR9x8j$d$]c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S#q];QQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6a2kW6n3P3R3V4wU8t6o6q6sU9}8v8w8yS:i9|:PQ:t:jR:z:uU!wQ']-]T5c1a5e!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5eT#q];Q%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS(y#y#zS.Y(i(j!s<f$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U$fd)Z,eS(l#p'fU*q%R(s3pU0b*x.f7PQ4w0mQ6o3QQ8w6rR:P8xm!tQ!r!v!y!z']'i'j'k-]-m1a5e5gQ'q!uS(b#g1vS-k'h'tQ/k*XQ/w*dQ2v-nQ4U/lS4_/x0SQ7Z4PS7f4e4gQ9V7[Q9Z7cQ9`7iS:X9[9]S:n:Y:ZS:w:o:pR:}:xQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*XQ/v*dQ/|*gQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5p1hQ6i2vQ7Y4PQ7^4US7b4_4gQ7g4fQ8Z5qS9U7Z7[Q9Y7cQ9^7fQ9a7jQ9o8[Q:V9VS:W9Z9]Q:[9`Q:e9pS:m:X:ZS:v:n:pQ:|:wQ;O:}Q<i<dQ<t<mR<u<nV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS#wz!j!r<c$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<i<z%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5q1i1j1kS8[5r5sQ9p8]!r<d$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q<m<yR<n<z%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rY#bWZ#W#Z(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ,f&l!p<e$Z$n)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<h'UU'Y!e%g*VR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8r!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q,e&lQ0m+aQ3Q._Q6r3UR8x6t!b$Tc#Y%o(O(U(p(u)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!P;_)Y)m-R.t2]2`3b3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!f$Vc#Y%o(O(U(p(u)S)T)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!T;a)Y)m-R.t2]2`3b3h3i3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!^$Zc#Y%o(O(U(p(u)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;RQ3}/cz<{)Y)m-R.t2]2`3b3q3y6_6z7T7U7}8l8z9Q9R:`:g<oQ=Q=SR=R=T'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8r!s<y$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5b5m5}6O6R6t8R8X8h!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=VQ*}%`Q/Y)zo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!O$yi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=RQ*^$zU*g$|*V*jQ+O%aQ/}*h#^<k#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn<l;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bQ<p<|Q<q<}Q<r=OR<s=P!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bnoOXst!Z#d%k&o&q&r&t,k,p1|2PS*a${*UQ,y&{Q,z&}R4X/p$|%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ+|&YQ1Y,OQ5[1XR7z5]V*i$|*V*jU*i$|*V*jT5d1a5eU/{*f/f5bS4f0T8RR7j4hQ+d%vQ/|*gQ0r+eQ1g,XQ5p1hQ8Z5qQ9o8[R:e9p!O%Oi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rr)}$v)a*O*p+P/n0Z0[3s4V4q7X7k:U<j<v<wS0V*o0W#^;j#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;k;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!`;|(q)_*W*`.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=T`;}3o6{7O7S8{:Q:T:{S<X.d3ZT<Y6}9O!O%Qi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rv*P$v)a*Q*o+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<wS0X*p0Y#^;l#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;m;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!d<O(q)_*W*`.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=Td<P3o6|6}7S8{8|:Q:R:T:{S<Z.e3[T<[7O9PrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5k1e1fU8T5i5j5nS9k8V8WS:a9j9mQ:q:bR:y:rQ&j!VR,a&fR5w1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)w$uR/V)wQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5eR'g!rQ.x)aR3t.xU#_W%f*UU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6kQ2y.QR6k2zQ)j$lR/O)jQ$phR)p$pQ$`cU)]$`-t;eQ-t;RR;e)mQ/i*XW4R/i4S7]9WU4S/j/k/lS7]4T4UR9W7^$Z)|$v(q)_)a*W*`*o*p*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4i4k4q5Z5]6u6v6w6x6}7O7Q7R7S7X7`7d7k7m7o8{8|8}9X9_:Q:R:S:T:U:]:l:{<j<v<w=S=TQ/q*`U4Z/q4]7aQ4]/sR7a4[S*j$|*VR0P*jr*O$v)a*o*p+P/n0Z0[3s4V4q7X7k:U<j<v<w!`.b(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=TU/`*O.b6{a6{3o6}7O7S8{:Q:T:{Q0W*oQ3Z.dU4j0W3Z9OR9O6}v*Q$v)a*o*p+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<w!d.c(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=TU/b*Q.c6|e6|3o6}7O7S8{8|:Q:R:T:{Q0Y*pQ3[.eU4l0Y3[9PR9P7OQ*u%UR0^*uQ4v0kR7n4vQ+X%iR0j+XQ5_1[S7|5_9iR9i7}Q,S&[R1_,SQ5e1aR8P5eQ1m,^S5u1m8_R8_5wQ0x+lW5Q0x5S7t9eQ5S0{Q7t5RR9e7uQ+q&OR1O+qQ2P,pR6V2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6U1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*iQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4y0tQ5V1RQ5Y1VQ5o1gQ5y1rQ6T1{U6d2p2s2vQ6g2tQ7p4zQ7x5XQ7y5ZQ8O5dQ8Y5pQ8`5xS8o6e6iQ8q6hQ9f7vQ9n8ZQ9s8aQ9z8pQ:_9gQ:d9oQ:h9{R:s:eQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*dS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4z0uQ6`2gQ6c2nQ6h2uR7e4dS$wi<xR*v%VU%Ui%V<xR0]*tQ$viS(q#v+cS)_$b$cQ)a$dQ*W$xS*`${*UQ*o%OQ*p%QQ*z%]Q*{%^Q+P%bQ.d;jQ.e;lQ.g;pQ.h;rQ.i;tQ/U)uS/Z){/]Q/_)}Q/a*PQ/c*RQ/n*[S/s*b/eQ0Z*rQ0[*sh0k+`.^1c3T5l6p8U8u9l:O:c:kQ1V+zQ1X+}Q3W;|Q3X<OQ3Y<RS3o;g;hQ3s.wQ4V/oQ4W/pQ4[/rQ4i0VQ4k0XQ4q0dQ5Z1WQ5]1ZQ6u<VQ6v<XQ6w<ZQ6x<]Q6};kQ7O;mQ7Q;qQ7R;sQ7S;uQ7X3}Q7`4YQ7d4bQ7k4mQ7m4uQ7o4xQ8{<SQ8|;}Q8}<PQ9X7_Q9_7hQ:Q<WQ:R<YQ:S<[Q:T<^Q:U9TQ:]9bQ:l<aQ:{<bQ<j<xQ<v=QQ<w=RQ=S=UR=T=VQ*x%[Q.f;nR7P;onpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5b8RQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4o0aQ5j1dQ5{1tQ5|1uQ6Q1wQ6S1yQ6X2RQ6s3UQ7V3uQ8W5mQ8d5}Q8e6OQ8g6RQ8y6tQ9m8XR9w8h#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5b5m5}6O6R6t8R8X8hQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)Y$ZQ)[$_Q)^$aQ)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r;PQ.t;SQ.u;TQ.v;WQ/X)yQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b;XQ3c;YQ3d;ZQ3e;[Q3f;]Q3g;^Q3h;_Q3i;`Q3j;aQ3k;bQ3l;cQ3m.sQ3n;fQ3q;iQ3r;vQ3y;dQ4r0gQ4{0vQ6_;xQ6e2rQ6j2xQ6y3^Q6z;yQ7T;{Q7U<TQ7}5`Q8l6]Q8p6fQ8z<UQ9Q<_Q9R<`Q9{8rQ:`9hQ:g9yQ;R#SR<o<{R#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5e5gS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5eQ#p]R'f;QR)b$dY!uQ']-]1a5eQ'h!rS'r!v!yS't!z5gS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6l2|2}R8s6md#^W#W#Z%f(P(Y*U+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6mS*X$x*]Q/l*YQ1v,gQ2^,}Q4P/hQ6Z2UQ7[4QQ8k6[T<g'U+UV#aW%f*UU#`W%f*US(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*VQ$lfR)t$qT)i$l)jR3w.|T*Z$x*]T*c${*UQ0l+`Q3P.^Q5i1cQ6q3TQ8V5lQ8v6pQ9j8UQ9|8uQ:b9lQ:j:OQ:r:cR:u:knqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:mOt,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[wOt],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[bOt,_Ot,OOt,2,3,4,5,6,7,8,9,10,11,12,13,14,yOt,new e3("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~",141,335),new e3("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},dialects:{jsx:0,ts:14725},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},specialized:[{term:322,get:t=>SOt[t]||-1},{term:338,get:t=>xOt[t]||-1},{term:92,get:t=>COt[t]||-1}],tokenPrec:14749}),$he=[ao("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ao("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ao("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ao("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ao("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ao(`try {
  410. \${}
  411. } catch (\${error}) {
  412. \${}
  413. }`,{label:"try",detail:"/ catch block",type:"keyword"}),ao("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ao(`if (\${}) {
  414. \${}
  415. } else {
  416. \${}
  417. }`,{label:"if",detail:"/ else block",type:"keyword"}),ao(`class \${name} {
  418. constructor(\${params}) {
  419. \${}
  420. }
  421. }`,{label:"class",detail:"definition",type:"keyword"}),ao('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ao('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],POt=$he.concat([ao("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ao("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ao("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Ahe=new N0t,Ehe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function O_(t){return(e,n)=>{let r=e.node.getChild("VariableDefinition");return r&&n(r,t),!0}}const $Ot=["FunctionDeclaration"],AOt={FunctionDeclaration:O_("function"),ClassDeclaration:O_("class"),ClassExpression:()=>!0,EnumDeclaration:O_("constant"),TypeAliasDeclaration:O_("type"),NamespaceDeclaration:O_("namespace"),VariableDefinition(t,e){t.matchContext($Ot)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Mhe(t,e){let n=Ahe.get(e);if(n)return n;let r=[],i=!0;function o(a,s){let l=t.sliceString(a.from,a.to);r.push({label:l,type:s})}return e.cursor(Cr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=AOt[a.name];if(s&&s(a,o)||Ehe.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of Mhe(t,a.node))r.push(s);return!1}}),Ahe.set(e,r),r}const Ihe=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Dhe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function EOt(t){let e=Tr(t.state).resolveInner(t.pos,-1);if(Dhe.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&Ihe.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let r=[];for(let i=e;i;i=i.parent)Ehe.has(i.name)&&(r=r.concat(Mhe(t.state.doc,i)));return{options:r,from:n?e.from:t.pos,validFor:Ihe}}const Sh=n_.define({name:"javascript",parser:TOt.configure({props:[y5.add({IfStatement:a_({except:/^\s*({|else\b)/}),TryStatement:a_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:nyt,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:r?1:2)*t.unit},Block:tyt({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":a_({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),_5.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":wfe,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Rhe={test:t=>/^JSX/.test(t.name),facet:gfe({commentTokens:{block:{open:"{/*",close:"*/}"}}})},MOt=Sh.configure({dialect:"ts"},"typescript"),IOt=Sh.configure({dialect:"jsx",props:[g5.add(t=>t.isTop?[Rhe]:void 0)]}),DOt=Sh.configure({dialect:"jsx ts",props:[g5.add(t=>t.isTop?[Rhe]:void 0)]},"typescript");let khe=t=>({label:t,type:"keyword"});const Nhe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(khe),ROt=Nhe.concat(["declare","implements","private","protected","public"].map(khe));function kOt(t={}){let e=t.jsx?t.typescript?DOt:IOt:t.typescript?MOt:Sh,n=t.typescript?POt.concat(ROt):$he.concat(Nhe);return new bfe(e,[Sh.data.of({autocomplete:b_t(Dhe,zde(n))}),Sh.data.of({autocomplete:EOt}),t.jsx?BOt:[]])}function NOt(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function Lhe(t,e,n=t.length){for(let r=e==null?void 0:e.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,n));return""}const LOt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),BOt=He.inputHandler.of((t,e,n,r,i)=>{if((LOt?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||r!=">"&&r!="/"||!Sh.isActiveAt(t.state,e,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,f=Tr(a).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(a.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(r=="/"&&f.name=="JSXStartCloseTag"){let p=f.parent,g=p.parent;if(g&&p.from==c-2&&((d=Lhe(a.doc,g.firstChild,c))||((u=g.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let v=`${d}>`;return{range:Ce.cursor(c+v.length,-1),changes:{from:c,insert:v}}}}else if(r==">"){let p=NOt(f);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(d=Lhe(a.doc,p,c)))return{range:l,changes:{from:c,insert:`</${d}>`}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),VOt=f5({String:ae.string,Number:ae.number,"True False":ae.bool,PropertyName:ae.propertyName,Null:ae.null,",":ae.separator,"[ ]":ae.squareBracket,"{ }":ae.brace}),zOt=__.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[VOt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),FOt=n_.define({name:"json",parser:zOt.configure({props:[y5.add({Object:a_({except:/^\s*\}/}),Array:a_({except:/^\s*\]/})}),_5.add({"Object Array":wfe})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function WOt(){return new bfe(FOt)}var Bhe={exports:{}},w_={},bP={exports:{}},a3={},s3={},Vhe;function l3(){if(Vhe)return s3;Vhe=1;function t(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var r=new t(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},t.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},t.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},t.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
  422. `);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},t.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function e(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}e.prototype.get_indent_size=function(r,i){var o=this.__base_string_length;return i=i||0,r<0&&(o=0),o+=r*this.__indent_size,o+=i,o},e.prototype.get_indent_string=function(r,i){var o=this.__base_string;return i=i||0,r<0&&(r=0,o=""),i+=r*this.__indent_size,this.__ensure_cache(i),o+=this.__cache[i],o},e.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},e.prototype.__add_column=function(){var r=this.__cache.length,i=0,o="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,o=new Array(i+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function n(r,i){this.__indent_cache=new e(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},n.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
  423. `&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
  424. `);return r!==`
  425. `&&(o=o.replace(/[\n]/g,r)),o},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(r,i){for(var o=this.__lines.length-2;o>=0;){var a=this.__lines[o];if(a.is_empty())break;if(a.item(0).indexOf(r)!==0&&a.item(-1)!==i){this.__lines.splice(o+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},s3.Output=n,s3}var u3={},zhe;function Fhe(){if(zhe)return u3;zhe=1;function t(e,n,r,i){this.type=e,this.text=n,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return u3.Token=t,u3}var c3={},Whe;function Qhe(){return Whe||(Whe=1,function(t){var e="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+o+"|["+e+r+"])",s="(?:"+o+"|["+n+r+i+"])*";t.identifier=new RegExp(a+s,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+o+"|["+n+r+i+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r
  426. |`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")}(c3)),c3}var f3={},S_={},Hhe;function d3(){if(Hhe)return S_;Hhe=1;function t(r,i){this.raw_options=e(r,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(r,i){var o=this.raw_options[r],a=i||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(a=o.concat()):typeof o=="string"&&(a=o.split(/[^a-zA-Z0-9_\/\-]+/)),a},t.prototype._get_boolean=function(r,i){var o=this.raw_options[r],a=o===void 0?!!i:!!o;return a},t.prototype._get_characters=function(r,i){var o=this.raw_options[r],a=i||"";return typeof o=="string"&&(a=o.replace(/\\r/,"\r").replace(/\\n/,`
  427. `).replace(/\\t/," ")),a},t.prototype._get_number=function(r,i){var o=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var a=parseInt(o,10);return isNaN(a)&&(a=i),a},t.prototype._get_selection=function(r,i,o){var a=this._get_selection_list(r,i,o);if(a.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
  428. `+i+`
  429. You passed in: '`+this.raw_options[r]+"'");return a[0]},t.prototype._get_selection_list=function(r,i,o){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[i[0]],!this._is_valid_selection(o,i))throw new Error("Invalid Default Value!");var a=this._get_array(r,o);if(!this._is_valid_selection(a,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
  430. `+i+`
  431. You passed in: '`+this.raw_options[r]+"'");return a},t.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(o){return i.indexOf(o)===-1})};function e(r,i){var o={};r=n(r);var a;for(a in r)a!==i&&(o[a]=r[a]);if(i&&r[i])for(a in r[i])o[a]=r[i][a];return o}function n(r){var i={},o;for(o in r){var a=o.replace(/-/g,"_");i[a]=r[o]}return i}return S_.Options=t,S_.normalizeOpts=n,S_.mergeOpts=e,S_}var Ghe;function jhe(){if(Ghe)return f3;Ghe=1;var t=d3().Options,e=["before-newline","after-newline","preserve-newline"];function n(r){t.call(this,r,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a<o.length;a++)o[a]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[a];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",e),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return n.prototype=new t,f3.Options=n,f3}var Bv={},h3={},Uhe;function p3(){if(Uhe)return h3;Uhe=1;var t=RegExp.prototype.hasOwnProperty("sticky");function e(n){this.__input=n||"",this.__input_length=this.__input.length,this.__position=0}return e.prototype.restart=function(){this.__position=0},e.prototype.back=function(){this.__position>0&&(this.__position-=1)},e.prototype.hasNext=function(){return this.__position<this.__input_length},e.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__input.charAt(this.__position),this.__position+=1),n},e.prototype.peek=function(n){var r=null;return n=n||0,n+=this.__position,n>=0&&n<this.__input_length&&(r=this.__input.charAt(n)),r},e.prototype.__match=function(n,r){n.lastIndex=r;var i=n.exec(this.__input);return i&&!(t&&n.sticky)&&i.index!==r&&(i=null),i},e.prototype.test=function(n,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(n,r):!1},e.prototype.testChar=function(n,r){var i=this.peek(r);return n.lastIndex=0,i!==null&&n.test(i)},e.prototype.match=function(n){var r=this.__match(n,this.__position);return r?this.__position+=r[0].length:r=null,r},e.prototype.read=function(n,r,i){var o="",a;return n&&(a=this.match(n),a&&(o+=a[0])),r&&(a||!n)&&(o+=this.readUntil(r,i)),o},e.prototype.readUntil=function(n,r){var i="",o=this.__position;n.lastIndex=this.__position;var a=n.exec(this.__input);return a?(o=a.index,r&&(o+=a[0].length)):o=this.__input_length,i=this.__input.substring(this.__position,o),this.__position=o,i},e.prototype.readUntilAfter=function(n){return this.readUntil(n,!0)},e.prototype.get_regexp=function(n,r){var i=null,o="g";return r&&t&&(o="y"),typeof n=="string"&&n!==""?i=new RegExp(n,o):n&&(i=new RegExp(n.source,o)),i},e.prototype.get_literal_regexp=function(n){return RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},e.prototype.peekUntilAfter=function(n){var r=this.__position,i=this.readUntilAfter(n);return this.__position=r,i},e.prototype.lookBack=function(n){var r=this.__position-1;return r>=n.length&&this.__input.substring(r-n.length,r).toLowerCase()===n},h3.InputScanner=e,h3}var _P={},g3={},Zhe;function QOt(){if(Zhe)return g3;Zhe=1;function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var n=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(n=this.__tokens[e]),n},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},g3.TokenStream=t,g3}var v3={},m3={},Xhe;function OP(){if(Xhe)return m3;Xhe=1;function t(e,n){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,n&&(this._starting_pattern=this._input.get_regexp(n._starting_pattern,!0),this._match_pattern=this._input.get_regexp(n._match_pattern,!0),this._until_pattern=this._input.get_regexp(n._until_pattern),this._until_after=n._until_after)}return t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var n=this._create();return n._until_after=!0,n._until_pattern=this._input.get_regexp(e),n._update(),n},t.prototype.until=function(e){var n=this._create();return n._until_after=!1,n._until_pattern=this._input.get_regexp(e),n._update(),n},t.prototype.starting_with=function(e){var n=this._create();return n._starting_pattern=this._input.get_regexp(e,!0),n._update(),n},t.prototype.matching=function(e){var n=this._create();return n._match_pattern=this._input.get_regexp(e,!0),n._update(),n},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},m3.Pattern=t,m3}var Yhe;function HOt(){if(Yhe)return v3;Yhe=1;var t=OP().Pattern;function e(n,r){t.call(this,n,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return e.prototype=new t,e.prototype.__set_whitespace_patterns=function(n,r){n+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+n+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},e.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var n=this._input.read(this._match_pattern);if(n===" ")this.whitespace_before_token=" ";else if(n){var r=this.__split(this._newline_regexp,n);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return n},e.prototype.matching=function(n,r){var i=this._create();return i.__set_whitespace_patterns(n,r),i._update(),i},e.prototype._create=function(){return new e(this._input,this)},e.prototype.__split=function(n,r){n.lastIndex=0;for(var i=0,o=[],a=n.exec(r);a;)o.push(r.substring(i,a.index)),i=a.index+a[0].length,a=n.exec(r);return i<r.length?o.push(r.substring(i,r.length)):o.push(""),o},v3.WhitespacePattern=e,v3}var qhe;function wP(){if(qhe)return _P;qhe=1;var t=p3().InputScanner,e=Fhe().Token,n=QOt().TokenStream,r=HOt().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(a,s){this._input=new t(a),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new n,this._reset();for(var a,s=new e(i.START,""),l=null,u=[],c=new n;s.type!==i.EOF;){for(a=this._get_next_token(s,l);this._is_comment(a);)c.add(a),a=this._get_next_token(s,l);c.isEmpty()||(a.comments_before=c,c=new n),a.parent=l,this._is_opening(a)?(u.push(l),l=a):l&&this._is_closing(a,l)&&(a.opened=l,l.closed=a,l=u.pop(),a.parent=l),a.previous=s,s.next=a,this.__tokens.add(a),s=a}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(a,s){this._readWhitespace();var l=this._input.read(/.+/g);return l?this._create_token(i.RAW,l):this._create_token(i.EOF,"")},o.prototype._is_comment=function(a){return!1},o.prototype._is_opening=function(a){return!1},o.prototype._is_closing=function(a,s){return!1},o.prototype._create_token=function(a,s){var l=new e(a,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return l},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},_P.Tokenizer=o,_P.TOKEN=i,_P}var y3={},Khe;function b3(){if(Khe)return y3;Khe=1;function t(e,n){e=typeof e=="string"?e:e.source,n=typeof n=="string"?n:n.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+n,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+n,"g")}return t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var n={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(e);r;)n[r[1]]=r[2],r=this.__directive_pattern.exec(e);return n},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},y3.Directives=t,y3}var _3={},Jhe;function epe(){if(Jhe)return _3;Jhe=1;var t=OP().Pattern,e={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function n(r,i){t.call(this,r,i),this.__template_pattern=null,this._disabled=Object.assign({},e),this._excluded=Object.assign({},e),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var o=new t(r);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new t,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(r){var i=this._create();return i._disabled[r]=!0,i._update(),i},n.prototype.read_options=function(r){var i=this._create();for(var o in e)i._disabled[o]=r.templating.indexOf(o)===-1;return i._update(),i},n.prototype.exclude=function(r){var i=this._create();return i._excluded[r]=!0,i._update(),i},n.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),r+=i,i=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},n.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},n.prototype._read_template=function(){var r="",i=this._input.peek();if(i==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(r=r||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},_3.TemplatablePattern=n,_3}var tpe;function SP(){if(tpe)return Bv;tpe=1;var t=p3().InputScanner,e=wP().Tokenizer,n=wP().TOKEN,r=b3().Directives,i=Qhe(),o=OP().Pattern,a=epe().TemplatablePattern;function s(x,T){return T.indexOf(x)!==-1}var l={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},u=new r(/\/\*/,/\*\//),c=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,f=/[0-9]/,d=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),g="\\?\\.(?!\\d) "+g,g=g.replace(/ /g,"|");var v=new RegExp(g),m="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),y=m.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+y.join("|")+")$"),O,w=function(x,T){e.call(this,x,T),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var $=new o(this._input),A=new a(this._input).read_options(this._options);this.__patterns={template:A,identifier:A.starting_with(i.identifier).matching(i.identifierMatch),number:$.matching(c),punct:$.matching(v),comment:$.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:$.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:$.matching(/<!--/),html_comment_end:$.matching(/-->/),include:$.starting_with(/#include/).until_after(i.lineBreak),shebang:$.starting_with(/#!/).until_after(i.lineBreak),xml:$.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:A.until(/['\\\n\r\u2028\u2029]/),double_quote:A.until(/["\\\n\r\u2028\u2029]/),template_text:A.until(/[`\\$]/),template_expression:A.until(/[`}\\]/)}};w.prototype=new e,w.prototype._is_comment=function(x){return x.type===l.COMMENT||x.type===l.BLOCK_COMMENT||x.type===l.UNKNOWN},w.prototype._is_opening=function(x){return x.type===l.START_BLOCK||x.type===l.START_EXPR},w.prototype._is_closing=function(x,T){return(x.type===l.END_BLOCK||x.type===l.END_EXPR)&&T&&(x.text==="]"&&T.text==="["||x.text===")"&&T.text==="("||x.text==="}"&&T.text==="{")},w.prototype._reset=function(){O=!1},w.prototype._get_next_token=function(x,T){var $=null;this._readWhitespace();var A=this._input.peek();return A===null?this._create_token(l.EOF,""):($=$||this._read_non_javascript(A),$=$||this._read_string(A),$=$||this._read_pair(A,this._input.peek(1)),$=$||this._read_word(x),$=$||this._read_singles(A),$=$||this._read_comment(A),$=$||this._read_regexp(A,x),$=$||this._read_xml(A,x),$=$||this._read_punctuation(),$=$||this._create_token(l.UNKNOWN,this._input.next()),$)},w.prototype._read_word=function(x){var T;if(T=this.__patterns.identifier.read(),T!=="")return T=T.replace(i.allLineBreaks,`
  432. `),!(x.type===l.DOT||x.type===l.RESERVED&&(x.text==="set"||x.text==="get"))&&b.test(T)?(T==="in"||T==="of")&&(x.type===l.WORD||x.type===l.STRING)?this._create_token(l.OPERATOR,T):this._create_token(l.RESERVED,T):this._create_token(l.WORD,T);if(T=this.__patterns.number.read(),T!=="")return this._create_token(l.WORD,T)},w.prototype._read_singles=function(x){var T=null;return x==="("||x==="["?T=this._create_token(l.START_EXPR,x):x===")"||x==="]"?T=this._create_token(l.END_EXPR,x):x==="{"?T=this._create_token(l.START_BLOCK,x):x==="}"?T=this._create_token(l.END_BLOCK,x):x===";"?T=this._create_token(l.SEMICOLON,x):x==="."&&d.test(this._input.peek(1))?T=this._create_token(l.DOT,x):x===","&&(T=this._create_token(l.COMMA,x)),T&&this._input.next(),T},w.prototype._read_pair=function(x,T){var $=null;return x==="#"&&T==="{"&&($=this._create_token(l.START_BLOCK,x+T)),$&&(this._input.next(),this._input.next()),$},w.prototype._read_punctuation=function(){var x=this.__patterns.punct.read();if(x!=="")return x==="="?this._create_token(l.EQUALS,x):x==="?."?this._create_token(l.DOT,x):this._create_token(l.OPERATOR,x)},w.prototype._read_non_javascript=function(x){var T="";if(x==="#"){if(this._is_first_token()&&(T=this.__patterns.shebang.read(),T))return this._create_token(l.UNKNOWN,T.trim()+`
  433. `);if(T=this.__patterns.include.read(),T)return this._create_token(l.UNKNOWN,T.trim()+`
  434. `);x=this._input.next();var $="#";if(this._input.hasNext()&&this._input.testChar(f)){do x=this._input.next(),$+=x;while(this._input.hasNext()&&x!=="#"&&x!=="=");return x==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?($+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&($+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,$)}this._input.back()}else if(x==="<"&&this._is_first_token()){if(T=this.__patterns.html_comment_start.read(),T){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)T+=this._input.next();return O=!0,this._create_token(l.COMMENT,T)}}else if(O&&x==="-"&&(T=this.__patterns.html_comment_end.read(),T))return O=!1,this._create_token(l.COMMENT,T);return null},w.prototype._read_comment=function(x){var T=null;if(x==="/"){var $="";if(this._input.peek(1)==="*"){$=this.__patterns.block_comment.read();var A=u.get_directives($);A&&A.ignore==="start"&&($+=u.readIgnored(this._input)),$=$.replace(i.allLineBreaks,`
  435. `),T=this._create_token(l.BLOCK_COMMENT,$),T.directives=A}else this._input.peek(1)==="/"&&($=this.__patterns.comment.read(),T=this._create_token(l.COMMENT,$))}return T},w.prototype._read_string=function(x){if(x==="`"||x==="'"||x==='"'){var T=this._input.next();return this.has_char_escapes=!1,x==="`"?T+=this._read_string_recursive("`",!0,"${"):T+=this._read_string_recursive(x),this.has_char_escapes&&this._options.unescape_strings&&(T=S(T)),this._input.peek()===x&&(T+=this._input.next()),T=T.replace(i.allLineBreaks,`
  436. `),this._create_token(l.STRING,T)}return null},w.prototype._allow_regexp_or_xml=function(x){return x.type===l.RESERVED&&s(x.text,["return","case","throw","else","do","typeof","yield"])||x.type===l.END_EXPR&&x.text===")"&&x.opened.previous.type===l.RESERVED&&s(x.opened.previous.text,["if","while","for"])||s(x.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},w.prototype._read_regexp=function(x,T){if(x==="/"&&this._allow_regexp_or_xml(T)){for(var $=this._input.next(),A=!1,P=!1;this._input.hasNext()&&(A||P||this._input.peek()!==x)&&!this._input.testChar(i.newline);)$+=this._input.peek(),A?A=!1:(A=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===x&&($+=this._input.next(),$+=this._input.read(i.identifier)),this._create_token(l.STRING,$)}return null},w.prototype._read_xml=function(x,T){if(this._options.e4x&&x==="<"&&this._allow_regexp_or_xml(T)){var $="",A=this.__patterns.xml.read_match();if(A){for(var P=A[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),M=P.indexOf("{")===0,I=0;A;){var R=!!A[1],L=A[2],D=!!A[A.length-1]||L.slice(0,8)==="![CDATA[";if(!D&&(L===P||M&&L.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(R?--I:++I),$+=A[0],I<=0)break;A=this.__patterns.xml.read_match()}return A||($+=this._input.match(/[\s\S]*/g)[0]),$=$.replace(i.allLineBreaks,`
  437. `),this._create_token(l.STRING,$)}}return null};function S(x){for(var T="",$=0,A=new t(x),P=null;A.hasNext();)if(P=A.match(/([\s]|[^\\]|\\\\)+/g),P&&(T+=P[0]),A.peek()==="\\"){if(A.next(),A.peek()==="x")P=A.match(/x([0-9A-Fa-f]{2})/g);else if(A.peek()==="u")P=A.match(/u([0-9A-Fa-f]{4})/g),P||(P=A.match(/u\{([0-9A-Fa-f]+)\}/g));else{T+="\\",A.hasNext()&&(T+=A.next());continue}if(!P||($=parseInt(P[1],16),$>126&&$<=255&&P[0].indexOf("x")===0))return x;$>=0&&$<32||$>1114111?T+="\\"+P[0]:$===34||$===39||$===92?T+="\\"+String.fromCharCode($):T+=String.fromCharCode($)}return T}return w.prototype._read_string_recursive=function(x,T,$){var A,P;x==="'"?P=this.__patterns.single_quote:x==='"'?P=this.__patterns.double_quote:x==="`"?P=this.__patterns.template_text:x==="}"&&(P=this.__patterns.template_expression);for(var M=P.read(),I="";this._input.hasNext();){if(I=this._input.next(),I===x||!T&&i.newline.test(I)){this._input.back();break}else I==="\\"&&this._input.hasNext()?(A=this._input.peek(),A==="x"||A==="u"?this.has_char_escapes=!0:A==="\r"&&this._input.peek(1)===`
  438. `&&this._input.next(),I+=this._input.next()):$&&($==="${"&&I==="$"&&this._input.peek()==="{"&&(I+=this._input.next()),$===I&&(x==="`"?I+=this._read_string_recursive("}",T,"`"):I+=this._read_string_recursive("`",T,"${"),this._input.hasNext()&&(I+=this._input.next())));I+=P.read(),M+=I}return M},Bv.Tokenizer=w,Bv.TOKEN=l,Bv.positionable_operators=p.slice(),Bv.line_starters=m.slice(),Bv}var npe;function GOt(){if(npe)return a3;npe=1;var t=l3().Output,e=Fhe().Token,n=Qhe(),r=jhe().Options,i=SP().Tokenizer,o=SP().line_starters,a=SP().positionable_operators,s=SP().TOKEN;function l(P,M){return M.indexOf(P)!==-1}function u(P){return P.replace(/^\s+/g,"")}function c(P){for(var M={},I=0;I<P.length;I++)M[P[I].replace(/-/g,"_")]=P[I];return M}function f(P,M){return P&&P.type===s.RESERVED&&P.text===M}function d(P,M){return P&&P.type===s.RESERVED&&l(P.text,M)}var p=["case","return","do","if","throw","else","await","break","continue","async"],g=["before-newline","after-newline","preserve-newline"],v=c(g),m=[v.before_newline,v.preserve_newline],y={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(P,M){M.multiline_frame||M.mode===y.ForInitializer||M.mode===y.Conditional||P.remove_indent(M.start_line_index)}function O(P){P=P.replace(n.allLineBreaks,`
  439. `);for(var M=[],I=P.indexOf(`
  440. `);I!==-1;)M.push(P.substring(0,I)),P=P.substring(I+1),I=P.indexOf(`
  441. `);return P.length&&M.push(P),M}function w(P){return P===y.ArrayLiteral}function S(P){return l(P,[y.Expression,y.ForInitializer,y.Conditional])}function x(P,M){for(var I=0;I<P.length;I++){var R=P[I].trim();if(R.charAt(0)!==M)return!1}return!0}function T(P,M){for(var I=0,R=P.length,L;I<R;I++)if(L=P[I],L&&L.indexOf(M)!==0)return!1;return!0}function $(P,M){M=M||{},this._source_text=P||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(M)}$.prototype.create_flags=function(P,M){var I=0;P&&(I=P.indentation_level,!this._output.just_added_newline()&&P.line_indent_level>I&&(I=P.line_indent_level));var R={mode:M,parent:P,last_token:P?P.last_token:new e(s.START_BLOCK,""),last_word:P?P.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:I,alignment:0,line_indent_level:P?P.line_indent_level:I,start_line_index:this._output.get_line_number(),ternary_depth:0};return R},$.prototype._reset=function(P){var M=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,M),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y.BlockStatement);var I=new i(P,this._options);return this._tokens=I.tokenize(),P},$.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,M=this._reset(this._source_text),I=this._options.eol;this._options.eol==="auto"&&(I=`
  442. `,M&&n.lineBreak.test(M||"")&&(I=M.match(n.lineBreak)[0]));for(var R=this._tokens.next();R;)this.handle_token(R),this._last_last_text=this._flags.last_token.text,this._flags.last_token=R,R=this._tokens.next();return P=this._output.get_code(I),P},$.prototype.handle_token=function(P,M){P.type===s.START_EXPR?this.handle_start_expr(P):P.type===s.END_EXPR?this.handle_end_expr(P):P.type===s.START_BLOCK?this.handle_start_block(P):P.type===s.END_BLOCK?this.handle_end_block(P):P.type===s.WORD?this.handle_word(P):P.type===s.RESERVED?this.handle_word(P):P.type===s.SEMICOLON?this.handle_semicolon(P):P.type===s.STRING?this.handle_string(P):P.type===s.EQUALS?this.handle_equals(P):P.type===s.OPERATOR?this.handle_operator(P):P.type===s.COMMA?this.handle_comma(P):P.type===s.BLOCK_COMMENT?this.handle_block_comment(P,M):P.type===s.COMMENT?this.handle_comment(P,M):P.type===s.DOT?this.handle_dot(P):P.type===s.EOF?this.handle_eof(P):P.type===s.UNKNOWN?this.handle_unknown(P,M):this.handle_unknown(P,M)},$.prototype.handle_whitespace_and_comments=function(P,M){var I=P.newlines,R=this._options.keep_array_indentation&&w(this._flags.mode);if(P.comments_before)for(var L=P.comments_before.next();L;)this.handle_whitespace_and_comments(L,M),this.handle_token(L,M),L=P.comments_before.next();if(R)for(var D=0;D<I;D+=1)this.print_newline(D>0,M);else if(this._options.max_preserve_newlines&&I>this._options.max_preserve_newlines&&(I=this._options.max_preserve_newlines),this._options.preserve_newlines&&I>1){this.print_newline(!1,M);for(var B=1;B<I;B+=1)this.print_newline(!0,M)}};var A=["async","break","continue","return","throw","yield"];return $.prototype.allow_wrap_or_preserved_newline=function(P,M){if(M=M===void 0?!1:M,!this._output.just_added_newline()){var I=this._options.preserve_newlines&&P.newlines||M,R=l(this._flags.last_token.text,a)||l(P.text,a);if(R){var L=l(this._flags.last_token.text,a)&&l(this._options.operator_position,m)||l(P.text,a);I=I&&L}if(I)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,A))return;this._output.set_wrap_point()}}},$.prototype.print_newline=function(P,M){if(!M&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var I=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f(I,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(P)&&(this._flags.multiline_frame=!0)},$.prototype.print_token_line_indentation=function(P){this._output.just_added_newline()&&(this._options.keep_array_indentation&&P.newlines&&(P.text==="["||w(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(P.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},$.prototype.print_token=function(P){if(this._output.raw){this._output.add_raw_token(P);return}if(this._options.comma_first&&P.previous&&P.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var M=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(M),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(P),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(P),this._output.non_breaking_space=!0,this._output.add_token(P.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},$.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.start_of_object_property=function(){return this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"]))},$.prototype.start_of_statement=function(P){var M=!1;return M=M||d(this._flags.last_token,["var","let","const"])&&P.type===s.WORD,M=M||f(this._flags.last_token,"do"),M=M||!(this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement)&&d(this._flags.last_token,A)&&!P.newlines,M=M||f(this._flags.last_token,"else")&&!(f(P,"if")&&!P.comments_before),M=M||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===y.ForInitializer||this._previous_flags.mode===y.Conditional),M=M||this._flags.last_token.type===s.WORD&&this._flags.mode===y.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==s.WORD&&P.type!==s.RESERVED,M=M||this._flags.mode===y.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"])),M?(this.set_mode(y.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,d(P,["do","for","if","while"])),!0):!1},$.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var M=y.Expression;if(P.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){d(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(M),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}M=y.ArrayLiteral,w(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),l(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,M=y.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,M=y.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(l(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var I=this._tokens.peek(-3);if(this._options.space_after_named_function&&I){var R=this._tokens.peek(-4);d(I,["async","function"])||I.text==="*"&&d(R,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y.ObjectLiteral?(I.text==="{"||I.text===","||I.text==="*"&&(R.text==="{"||R.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(P);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&l(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(M),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},$.prototype.handle_end_expr=function(P){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&w(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(P),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y.Conditional&&(this._previous_flags.mode=y.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},$.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var M=this._tokens.peek(),I=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(y.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(y.BlockStatement):I&&(l(I.text,[":",","])&&l(M.type,[s.STRING,s.WORD,s.RESERVED])||l(M.text,["get","set","..."])&&l(I.type,[s.WORD,s.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(I.text,[":",","])?this.set_mode(y.BlockStatement):this.set_mode(y.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(y.BlockStatement):l(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y.ObjectLiteral):this.set_mode(y.BlockStatement),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var R=!M.comments_before&&M.text==="}",L=R&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var D=0,B=null;this._flags.inline_frame=!0;do if(D+=1,B=this._tokens.peek(D-1),B.newlines){this._flags.inline_frame=!1;break}while(B.type!==s.EOF&&!(B.type===s.END_BLOCK&&B.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(L||this._flags.last_token.type===s.EQUALS||d(this._flags.last_token,p)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(w(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(l(this._flags.last_token.type,[s.START_BLOCK,s.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!R&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},$.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===y.Statement;)this.restore_mode();var M=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!M?this._output.space_before_token=!0:this._options.brace_style==="expand"?M||this.print_newline():M||(w(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(P)},$.prototype.handle_word=function(P){if(P.type===s.RESERVED){if(l(P.text,["set","get"])&&this._flags.mode!==y.ObjectLiteral)P.type=s.WORD;else if(P.text==="import"&&l(this._tokens.peek().text,["(","."]))P.type=s.WORD;else if(l(P.text,["as","from"])&&!this._flags.import_block)P.type=s.WORD;else if(this._flags.mode===y.ObjectLiteral){var M=this._tokens.peek();M.text===":"&&(P.type=s.WORD)}}if(this.start_of_statement(P)?d(this._flags.last_token,["var","let","const"])&&P.type===s.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!S(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!d(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(f(P,"while")){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&f(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(P,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&!this.start_of_object_property()&&!(l(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===y.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(P),f(P,"function")){(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(l(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)?this._output.space_before_token=!0:f(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(S(this._flags.mode)||w(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var I="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?I="SPACE":d(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?I="NEWLINE":(I="SPACE",this._output.space_before_token=!0):I="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===y.BlockStatement?I="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&S(this._flags.mode)?I="SPACE":this._flags.last_token.type===s.STRING?I="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&l(this._last_last_text,["{",","]))?I="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?I="SPACE":I="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,I="NEWLINE"),d(P,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?I="SPACE":I="NEWLINE"),d(P,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===y.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var R=this._output.current_line;R.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else I==="NEWLINE"?d(this._flags.last_token,p)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&d(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!d(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(f(P,"if")&&f(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(P,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&w(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():I==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===s.WORD||P.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===s.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&f(P,"from")&&(this._flags.import_block=!1))},$.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var M=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},$.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},$.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},$.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)):this._flags.mode===y.ObjectLiteral||this._flags.mode===y.Statement&&this._flags.parent.mode===y.ObjectLiteral?(this._flags.mode===y.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},$.prototype.handle_operator=function(P){var M=P.text==="*"&&(d(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),I=l(P.text,["-","+"])&&(l(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||l(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var R=!M;this.handle_whitespace_and_comments(P,R)}if(P.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(l(P.text,["-","+"])&&this.start_of_object_property()){this.print_token(P);return}if(this._flags.last_token.type===s.OPERATOR&&l(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var L=!0,D=!0,B=!1;if(P.text===":"?this._flags.ternary_depth===0?L=!1:(this._flags.ternary_depth-=1,B=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!I&&!M&&this._options.preserve_newlines&&l(P.text,a)){var F=P.text===":",z=F&&B,W=F&&!B;switch(this._options.operator_position){case v.before_newline:this._output.space_before_token=!W,this.print_token(P),(!F||z)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case v.after_newline:this._output.space_before_token=!0,!F||z?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case v.preserve_newline:W||this.allow_wrap_or_preserved_newline(P),L=!(this._output.just_added_newline()||W),this._output.space_before_token=L,this.print_token(P),this._output.space_before_token=!0;return}}if(M){this.allow_wrap_or_preserved_newline(P),L=!1;var j=this._tokens.peek();D=j&&l(j.type,[s.WORD,s.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),L=this._flags.last_token.type===s.START_BLOCK,D=!1;else if(l(P.text,["--","++","!","~"])||I){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),L=!1,D=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var H=d(this._flags.last_token,p)&&P.newlines;H&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(H,!0)}this._flags.last_token.text===";"&&S(this._flags.mode)&&(L=!0),this._flags.last_token.type===s.RESERVED?L=!0:this._flags.last_token.type===s.END_EXPR?L=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===s.OPERATOR&&(L=l(P.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(P.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(D=!0)),(this._flags.mode===y.BlockStatement&&!this._flags.inline_frame||this._flags.mode===y.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||L,this.print_token(P),this._output.space_before_token=D},$.prototype.handle_block_comment=function(P,M){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,M),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!n.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,M)},$.prototype.print_block_commment=function(P,M){var I=O(P.text),R,L=!1,D=!1,B=P.whitespace_before,F=B.length;if(this.print_newline(!1,M),this.print_token_line_indentation(P),this._output.add_token(I[0]),this.print_newline(!1,M),I.length>1){for(I=I.slice(1),L=x(I,"*"),D=T(I,B),L&&(this._flags.alignment=1),R=0;R<I.length;R++)L?(this.print_token_line_indentation(P),this._output.add_token(u(I[R]))):D&&I[R]?(this.print_token_line_indentation(P),this._output.add_token(I[R].substring(F))):(this._output.current_line.set_indent(-1),this._output.add_token(I[R])),this.print_newline(!1,M);this._flags.alignment=0}},$.prototype.handle_comment=function(P,M){P.newlines?this.print_newline(!1,M):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(P),this.print_newline(!1,M)},$.prototype.handle_dot=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),d(this._flags.last_token,p)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(P,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(P)},$.prototype.handle_unknown=function(P,M){this.print_token(P),P.text[P.text.length-1]===`
  443. `&&this.print_newline(!1,M)},$.prototype.handle_eof=function(P){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P)},a3.Beautifier=$,a3}var rpe;function jOt(){if(rpe)return bP.exports;rpe=1;var t=GOt().Beautifier,e=jhe().Options;function n(r,i){var o=new t(r,i);return o.beautify()}return bP.exports=n,bP.exports.defaultOptions=function(){return new e},bP.exports}var xP={exports:{}},O3={},w3={},ipe;function ope(){if(ipe)return w3;ipe=1;var t=d3().Options;function e(n){t.call(this,n,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<i.length;o++)i[o]!=="expand"?this.brace_style="collapse":this.brace_style=i[o]}return e.prototype=new t,w3.Options=e,w3}var ape;function UOt(){if(ape)return O3;ape=1;var t=ope().Options,e=l3().Output,n=p3().InputScanner,r=b3().Directives,i=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,a=/\r\n|[\r\n]/g,s=/\s/,l=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(d,p){this._source_text=d||"",this._options=new t(p),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return f.prototype.eatString=function(d){var p="";for(this._ch=this._input.next();this._ch;){if(p+=this._ch,this._ch==="\\")p+=this._input.next();else if(d.indexOf(this._ch)!==-1||this._ch===`
  444. `)break;this._ch=this._input.next()}return p},f.prototype.eatWhitespace=function(d){for(var p=s.test(this._input.peek()),g=0;s.test(this._input.peek());)this._ch=this._input.next(),d&&this._ch===`
  445. `&&(g===0||g<this._options.max_preserve_newlines)&&(g++,this._output.add_new_line(!0));return p},f.prototype.foundNestedPseudoClass=function(){for(var d=0,p=1,g=this._input.peek(p);g;){if(g==="{")return!0;if(g==="(")d+=1;else if(g===")"){if(d===0)return!1;d-=1}else if(g===";"||g==="}")return!1;p++,g=this._input.peek(p)}return!1},f.prototype.print_string=function(d){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(d)},f.prototype.preserveSingleSpace=function(d){d&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var d=this._source_text,p=this._options.eol;p==="auto"&&(p=`
  446. `,d&&o.test(d||"")&&(p=d.match(o)[0])),d=d.replace(a,`
  447. `);var g=d.match(/^[\t ]*/)[0];this._output=new e(this._options,g),this._input=new n(d),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var v=0,m=!1,y=!1,b=!1,O=!1,w=!1,S=this._ch,x=!1,T,$,A;T=this._input.read(l),$=T!=="",A=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var P=this._input.read(u),M=i.get_directives(P);M&&M.ignore==="start"&&(P+=i.readIgnored(this._input)),this.print_string(P),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace($),this.print_string(this._ch);var I=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);I.match(/[ :]$/)&&(I=this.eatString(": ").replace(/\s+$/,""),this.print_string(I),this._output.space_before_token=!0),v===0&&I.indexOf(":")!==-1&&(y=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace($),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var R=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);R.match(/[ :]$/)&&(R=this.eatString(": ").replace(/\s+$/,""),this.print_string(R),this._output.space_before_token=!0),v===0&&R.indexOf(":")!==-1?(y=!0,this.indent()):R in this.NESTED_AT_RULE?(this._nestedLevel+=1,R in this.CONDITIONAL_GROUP_RULE&&(b=!0)):v===0&&!y&&(O=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace($),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")y&&(y=!1,this.outdent()),O=!1,b?(b=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(A==="("?this._output.space_before_token=!1:A!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),A==="{"&&this._output.trim(!0),y&&(this.outdent(),y=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var L=0;L<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;L++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[L])){x=!0;break}(m||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!O&&v===0?(this.print_string(":"),y||(y=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var D=A==='"'||A==="'";this.preserveSingleSpace(D||$),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")x=!1,v===0?(y&&(this.outdent(),y=!1),O=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),v++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),v&&(v--,this.outdent()));else{var B=!1;this._input.lookBack("with")&&(B=!0),this.preserveSingleSpace($||B),this.print_string(this._ch),y&&A==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),w=!0):(this.eatWhitespace(),v++,this.indent())}else if(this._ch===")")v&&(v--,this.outdent()),w&&this._input.peek()===";"&&this._options.selector_separator_newline&&(w=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!y||w)&&v===0&&!O?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!y&&v===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace($),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var F=A==='"'||A==="'";this.preserveSingleSpace(F||$),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
  448. `&&x&&this._output.add_new_line()}var z=this._output.get_code(p);return z},O3.Beautifier=f,O3}var spe;function ZOt(){if(spe)return xP.exports;spe=1;var t=UOt().Beautifier,e=ope().Options;function n(r,i){var o=new t(r,i);return o.beautify()}return xP.exports=n,xP.exports.defaultOptions=function(){return new e},xP.exports}var CP={exports:{}},S3={},x3={},lpe;function upe(){if(lpe)return x3;lpe=1;var t=d3().Options;function e(n){t.call(this,n,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return e.prototype=new t,x3.Options=e,x3}var TP={},cpe;function fpe(){if(cpe)return TP;cpe=1;var t=wP().Tokenizer,e=wP().TOKEN,n=b3().Directives,r=epe().TemplatablePattern,i=OP().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:e.START,RAW:e.RAW,EOF:e.EOF},a=new n(/<\!--/,/-->/),s=function(l,u){t.call(this,l,u),this._current_tag_name="";var c=new r(this._input).read_options(this._options),f=new i(this._input);if(this.__patterns={word:c.until(/[\n\r\t <]/),word_control_flow_close_excluded:c.until(/[\n\r\t <}]/),single_quote:c.until_after(/'/),double_quote:c.until_after(/"/),attribute:c.until(/[\n\r\t =>]|\/>/),element_name:c.until(/[\n\r\t >\/]/),angular_control_flow_start:f.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:f.starting_with(/{{!--/).until_after(/--}}/),handlebars:f.starting_with(/{{/).until_after(/}}/),handlebars_open:f.until(/[\n\r\t }]/),handlebars_raw_close:f.until(/}}/),comment:f.starting_with(/<!--/).until_after(/-->/),cdata:f.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:f.starting_with(/<!\[/).until_after(/]>/),processing:f.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var d=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=f.matching(d).until_after(d)}};return s.prototype=new t,s.prototype._is_comment=function(l){return!1},s.prototype._is_opening=function(l){return l.type===o.TAG_OPEN||l.type===o.CONTROL_FLOW_OPEN},s.prototype._is_closing=function(l,u){return l.type===o.TAG_CLOSE&&u&&((l.text===">"||l.text==="/>")&&u.text[0]==="<"||l.text==="}}"&&u.text[0]==="{"&&u.text[1]==="{")||l.type===o.CONTROL_FLOW_CLOSE&&l.text==="}"&&u.text.endsWith("{")},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(l,u){var c=null;this._readWhitespace();var f=this._input.peek();return f===null?this._create_token(o.EOF,""):(c=c||this._read_open_handlebars(f,u),c=c||this._read_attribute(f,l,u),c=c||this._read_close(f,u),c=c||this._read_control_flows(f,u),c=c||this._read_raw_content(f,l,u),c=c||this._read_content_word(f,u),c=c||this._read_comment_or_cdata(f),c=c||this._read_processing(f),c=c||this._read_open(f,u),c=c||this._create_token(o.UNKNOWN,this._input.next()),c)},s.prototype._read_comment_or_cdata=function(l){var u=null,c=null,f=null;if(l==="<"){var d=this._input.peek(1);d==="!"&&(c=this.__patterns.comment.read(),c?(f=a.get_directives(c),f&&f.ignore==="start"&&(c+=a.readIgnored(this._input))):c=this.__patterns.cdata.read()),c&&(u=this._create_token(o.COMMENT,c),u.directives=f)}return u},s.prototype._read_processing=function(l){var u=null,c=null,f=null;if(l==="<"){var d=this._input.peek(1);(d==="!"||d==="?")&&(c=this.__patterns.conditional_comment.read(),c=c||this.__patterns.processing.read()),c&&(u=this._create_token(o.COMMENT,c),u.directives=f)}return u},s.prototype._read_open=function(l,u){var c=null,f=null;return(!u||u.type===o.CONTROL_FLOW_OPEN)&&l==="<"&&(c=this._input.next(),this._input.peek()==="/"&&(c+=this._input.next()),c+=this.__patterns.element_name.read(),f=this._create_token(o.TAG_OPEN,c)),f},s.prototype._read_open_handlebars=function(l,u){var c=null,f=null;return(!u||u.type===o.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&l==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(c=this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars.read(),f=this._create_token(o.COMMENT,c)):(c=this.__patterns.handlebars_open.read(),f=this._create_token(o.TAG_OPEN,c))),f},s.prototype._read_control_flows=function(l,u){var c="",f=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return f;if(l==="@"){if(c=this.__patterns.angular_control_flow_start.read(),c==="")return f;for(var d=c.endsWith("(")?1:0,p=0;!(c.endsWith("{")&&d===p);){var g=this._input.next();if(g===null)break;g==="("?d++:g===")"&&p++,c+=g}f=this._create_token(o.CONTROL_FLOW_OPEN,c)}else l==="}"&&u&&u.type===o.CONTROL_FLOW_OPEN&&(c=this._input.next(),f=this._create_token(o.CONTROL_FLOW_CLOSE,c));return f},s.prototype._read_close=function(l,u){var c=null,f=null;return u&&u.type===o.TAG_OPEN&&(u.text[0]==="<"&&(l===">"||l==="/"&&this._input.peek(1)===">")?(c=this._input.next(),l==="/"&&(c+=this._input.next()),f=this._create_token(o.TAG_CLOSE,c)):u.text[0]==="{"&&l==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),f=this._create_token(o.TAG_CLOSE,"}}"))),f},s.prototype._read_attribute=function(l,u,c){var f=null,d="";if(c&&c.text[0]==="<")if(l==="=")f=this._create_token(o.EQUALS,this._input.next());else if(l==='"'||l==="'"){var p=this._input.next();l==='"'?p+=this.__patterns.double_quote.read():p+=this.__patterns.single_quote.read(),f=this._create_token(o.VALUE,p)}else d=this.__patterns.attribute.read(),d&&(u.type===o.EQUALS?f=this._create_token(o.VALUE,d):f=this._create_token(o.ATTRIBUTE,d));return f},s.prototype._is_content_unformatted=function(l){return this._options.void_elements.indexOf(l)===-1&&(this._options.content_unformatted.indexOf(l)!==-1||this._options.unformatted.indexOf(l)!==-1)},s.prototype._read_raw_content=function(l,u,c){var f="";if(c&&c.text[0]==="{")f=this.__patterns.handlebars_raw_close.read();else if(u.type===o.TAG_CLOSE&&u.opened.text[0]==="<"&&u.text[0]!=="/"){var d=u.opened.text.substr(1).toLowerCase();if(d==="script"||d==="style"){var p=this._read_comment_or_cdata(l);if(p)return p.type=o.TEXT,p;f=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(d)&&(f=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig")))}return f?this._create_token(o.TEXT,f):null},s.prototype._read_content_word=function(l,u){var c="";if(this._options.unformatted_content_delimiter&&l===this._options.unformatted_content_delimiter[0]&&(c=this.__patterns.unformatted_content_delimiter.read()),c||(c=u&&u.type===o.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),c)return this._create_token(o.TEXT,c)},TP.Tokenizer=s,TP.TOKEN=o,TP}var dpe;function XOt(){if(dpe)return S3;dpe=1;var t=upe().Options,e=l3().Output,n=fpe().Tokenizer,r=fpe().TOKEN,i=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,a=function(m,y){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=m.max_preserve_newlines,this.preserve_newlines=m.preserve_newlines,this._output=new e(m,y)};a.prototype.current_line_has_match=function(m){return this._output.current_line.has_match(m)},a.prototype.set_space_before_token=function(m,y){this._output.space_before_token=m,this._output.non_breaking_space=y},a.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},a.prototype.add_raw_token=function(m){this._output.add_raw_token(m)},a.prototype.print_preserved_newlines=function(m){var y=0;m.type!==r.TEXT&&m.previous.type!==r.TEXT&&(y=m.newlines?1:0),this.preserve_newlines&&(y=m.newlines<this.max_preserve_newlines+1?m.newlines:this.max_preserve_newlines+1);for(var b=0;b<y;b++)this.print_newline(b>0);return y!==0},a.prototype.traverse_whitespace=function(m){return m.whitespace_before||m.newlines?(this.print_preserved_newlines(m)||(this._output.space_before_token=!0),!0):!1},a.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},a.prototype.print_newline=function(m){this._output.add_new_line(m)},a.prototype.print_token=function(m){m.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(m.text))},a.prototype.indent=function(){this.indent_level++},a.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},a.prototype.get_full_indent=function(m){return m=this.indent_level+(m||0),m<1?"":this._output.get_indent_string(m)};var s=function(m){for(var y=null,b=m.next;b.type!==r.EOF&&m.closed!==b;){if(b.type===r.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===r.EQUALS&&b.next.next&&b.next.next.type===r.VALUE&&(y=b.next.next.text);break}b=b.next}return y},l=function(m,y){var b=null,O=null;return y.closed?(m==="script"?b="text/javascript":m==="style"&&(b="text/css"),b=s(y)||b,b.search("text/css")>-1?O="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?O="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?O="html":b.search(/test\/null/)>-1&&(O="null"),O):null};function u(m,y){return y.indexOf(m)!==-1}function c(m,y,b){this.parent=m||null,this.tag=y?y.tag_name:"",this.indent_level=b||0,this.parser_token=y||null}function f(m){this._printer=m,this._current_frame=null}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(m){var y=new c(this._current_frame,m,this._printer.indent_level);this._current_frame=y},f.prototype._try_pop_frame=function(m){var y=null;return m&&(y=m.parser_token,this._printer.indent_level=m.indent_level,this._current_frame=m.parent),y},f.prototype._get_frame=function(m,y){for(var b=this._current_frame;b&&m.indexOf(b.tag)===-1;){if(y&&y.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},f.prototype.try_pop=function(m,y){var b=this._get_frame([m],y);return this._try_pop_frame(b)},f.prototype.indent_to_tag=function(m){var y=this._get_frame(m);y&&(this._printer.indent_level=y.indent_level)};function d(m,y,b,O){this._source_text=m||"",y=y||{},this._js_beautify=b,this._css_beautify=O,this._tag_stack=null;var w=new t(y,"html");this._options=w,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m=this._source_text,y=this._options.eol;this._options.eol==="auto"&&(y=`
  449. `,m&&i.test(m)&&(y=m.match(i)[0])),m=m.replace(o,`
  450. `);var b=m.match(/^[\t ]*/)[0],O={text:"",type:""},w=new p,S=new a(this._options,b),x=new n(m,this._options).tokenize();this._tag_stack=new f(S);for(var T=null,$=x.next();$.type!==r.EOF;)$.type===r.TAG_OPEN||$.type===r.COMMENT?(T=this._handle_tag_open(S,$,w,O,x),w=T):$.type===r.ATTRIBUTE||$.type===r.EQUALS||$.type===r.VALUE||$.type===r.TEXT&&!w.tag_complete?T=this._handle_inside_tag(S,$,w,O):$.type===r.TAG_CLOSE?T=this._handle_tag_close(S,$,w):$.type===r.TEXT?T=this._handle_text(S,$,w):$.type===r.CONTROL_FLOW_OPEN?T=this._handle_control_flow_open(S,$):$.type===r.CONTROL_FLOW_CLOSE?T=this._handle_control_flow_close(S,$):S.add_raw_token($),O=T,$=x.next();var A=S._output.get_code(y);return A},d.prototype._handle_control_flow_open=function(m,y){var b={text:y.text,type:y.type};return m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),y.newlines?m.print_preserved_newlines(y):m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),m.print_token(y),m.indent(),b},d.prototype._handle_control_flow_close=function(m,y){var b={text:y.text,type:y.type};return m.deindent(),y.newlines?m.print_preserved_newlines(y):m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),m.print_token(y),b},d.prototype._handle_tag_close=function(m,y,b){var O={text:y.text,type:y.type};return m.alignment_size=0,b.tag_complete=!0,m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),b.is_unformatted?m.add_raw_token(y):(b.tag_start_char==="<"&&(m.set_space_before_token(y.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&m.print_newline(!1)),m.print_token(y)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(m.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&m.set_wrap_point(),O},d.prototype._handle_inside_tag=function(m,y,b,O){var w=b.has_wrapped_attrs,S={text:y.text,type:y.type};return m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),b.is_unformatted?m.add_raw_token(y):b.tag_start_char==="{"&&y.type===r.TEXT?m.print_preserved_newlines(y)?(y.newlines=0,m.add_raw_token(y)):m.print_token(y):(y.type===r.ATTRIBUTE?m.set_space_before_token(!0):(y.type===r.EQUALS||y.type===r.VALUE&&y.previous.type===r.EQUALS)&&m.set_space_before_token(!1),y.type===r.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(m.traverse_whitespace(y),w=w||y.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(O.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(m.print_newline(!1),w=!0)),m.print_token(y),w=w||m.previous_token_wrapped(),b.has_wrapped_attrs=w),S},d.prototype._handle_text=function(m,y,b){var O={text:y.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(m,y,b):b.is_unformatted||b.is_content_unformatted?m.add_raw_token(y):(m.traverse_whitespace(y),m.print_token(y)),O},d.prototype._print_custom_beatifier_text=function(m,y,b){var O=this;if(y.text!==""){var w=y.text,S,x=1,T="",$="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:b.custom_beautifier_name==="html"&&(S=function(L,D){var B=new d(L,D,O._js_beautify,O._css_beautify);return B.beautify()}),this._options.indent_scripts==="keep"?x=0:this._options.indent_scripts==="separate"&&(x=-m.indent_level);var A=m.get_full_indent(x);if(w=w.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&w[0]==="<"&&w.match(/^(<!--|<!\[CDATA\[)/)){var P=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(w);if(!P){m.add_raw_token(y);return}T=A+P[1]+`
  451. `,w=P[4],P[5]&&($=A+P[5]),w=w.replace(/\n[ \t]*$/,""),(P[2]||P[3].indexOf(`
  452. `)!==-1)&&(P=P[3].match(/[ \t]+$/),P&&(y.whitespace_before=P[0]))}if(w)if(S){var M=function(){this.eol=`
  453. `};M.prototype=this._options.raw_options;var I=new M;w=S(A+w,I)}else{var R=y.whitespace_before;R&&(w=w.replace(new RegExp(`
  454. (`+R+")?","g"),`
  455. `)),w=A+w.replace(/\n/g,`
  456. `+A)}T&&(w?w=T+w+`
  457. `+$:w=T+$),m.print_newline(!1),w&&(y.text=w,y.whitespace_before="",y.newlines=0,m.add_raw_token(y),m.print_newline(!0))}},d.prototype._handle_tag_open=function(m,y,b,O,w){var S=this._get_tag_open_token(y);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&y.type===r.TAG_OPEN&&!S.is_start_tag?(m.add_raw_token(y),S.start_tag_token=this._tag_stack.try_pop(S.tag_name)):(m.traverse_whitespace(y),this._set_tag_position(m,y,S,b,O),S.is_inline_element||m.set_wrap_point(),m.print_token(y)),S.is_start_tag&&this._is_wrap_attributes_force){var x=0,T;do T=w.peek(x),T.type===r.ATTRIBUTE&&(S.attr_count+=1),x+=1;while(T.type!==r.EOF&&T.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(S.alignment_size=y.text.length+1),!S.tag_complete&&!S.is_unformatted&&(m.alignment_size=S.alignment_size),S};var p=function(m,y){if(this.parent=m||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!y)this.tag_complete=!0;else{var b;this.tag_start_char=y.text[0],this.text=y.text,this.tag_start_char==="<"?(b=y.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=y.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(y.text.startsWith("{{#>")||y.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&y.next!==null?this.tag_check=y.next.text.split(" ")[0]:this.tag_check=y.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),y.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||y.closed&&y.closed.text==="/>";var O=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(O=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(O)))}};d.prototype._get_tag_open_token=function(m){var y=new p(this._tag_stack.get_parser_token(),m);return y.alignment_size=this._options.wrap_attributes_indent_size,y.is_end_tag=y.is_end_tag||u(y.tag_check,this._options.void_elements),y.is_empty_element=y.tag_complete||y.is_start_tag&&y.is_end_tag,y.is_unformatted=!y.tag_complete&&u(y.tag_check,this._options.unformatted),y.is_content_unformatted=!y.is_empty_element&&u(y.tag_check,this._options.content_unformatted),y.is_inline_element=u(y.tag_name,this._options.inline)||this._options.inline_custom_elements&&y.tag_name.includes("-")||y.tag_start_char==="{",y},d.prototype._set_tag_position=function(m,y,b,O,w){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||m.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=l(b.tag_check,y)))),u(b.tag_check,this._options.extra_liners)&&(m.print_newline(!1),m._output.just_added_blankline()||m.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var S=m.current_line_has_match(/{{#if/);S||m.print_newline(!1)}b.tag_name==="!--"&&w.type===r.TAG_CLOSE&&O.is_end_tag&&b.text.indexOf(`
  458. `)===-1||(b.is_inline_element||b.is_unformatted||m.print_newline(!1),this._calcluate_parent_multiline(m,b))}else if(b.is_end_tag){var x=!1;x=b.start_tag_token&&b.start_tag_token.multiline_content,x=x||!b.is_inline_element&&!(O.is_inline_element||O.is_unformatted)&&!(w.type===r.TAG_CLOSE&&b.start_tag_token===O)&&w.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(x=!1),x&&m.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(w.type!=="TK_CONTENT"||b.is_content_unformatted)&&m.print_newline(!1),this._calcluate_parent_multiline(m,b)},d.prototype._calcluate_parent_multiline=function(m,y){y.parent&&m._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(m){var y=null;if(!(m.is_empty_element||!m.is_start_tag||!m.parent)){if(m.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(m.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(m.tag_name==="dd"||m.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(m.parent.tag_name==="p"&&g.indexOf(m.tag_name)!==-1){var b=m.parent.parent;(!b||v.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else m.tag_name==="rp"||m.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):m.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):m.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):m.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):m.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):m.tag_name==="tbody"||m.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):m.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(m.tag_name==="th"||m.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return m.parent=this._tag_stack.get_parser_token(),y}},S3.Beautifier=d,S3}var hpe;function YOt(){if(hpe)return CP.exports;hpe=1;var t=XOt().Beautifier,e=upe().Options;function n(r,i,o,a){var s=new t(r,i,o,a);return s.beautify()}return CP.exports=n,CP.exports.defaultOptions=function(){return new e},CP.exports}var ppe;function qOt(){if(ppe)return w_;ppe=1;var t=jOt(),e=ZOt(),n=YOt();function r(i,o,a,s){return a=a||t,s=s||e,n(i,o,a,s)}return r.defaultOptions=n.defaultOptions,w_.js=t,w_.css=e,w_.html=r,w_}(function(t){function e(n,r,i){var o=function(a,s){return n.js_beautify(a,s)};return o.js=n.js_beautify,o.css=r.css_beautify,o.html=i.html_beautify,o.js_beautify=n.js_beautify,o.css_beautify=r.css_beautify,o.html_beautify=i.html_beautify,o}(function(n){var r=qOt();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=e(r,r,r)})(t)})(Bhe);var KOt=Bhe.exports;const JOt=$1(KOt),ewt={indent_size:"2",indent_char:" ",max_preserve_newlines:"5",preserve_newlines:!0,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1},twt=h.defineComponent({name:"DEditor",components:{Codemirror:I1t},props:{code:{type:String,default:""}},emits:["update:code","change"],setup(t,{emit:e}){const n=h.ref(null),r=h.ref(JOt(t.code,ewt));return{editorRef:n,modelValue:r,handleCodeChange:o=>{try{e("update:code",o),e("change",o)}catch(a){console.error(a);return}},oneDark:Q1t,javascript:kOt,json:WOt}}});function nwt(t,e,n,r,i,o){const a=h.resolveComponent("Codemirror");return h.openBlock(),h.createBlock(a,{ref:"editorRef",placeholder:"请输入",style:{height:"500px"},"model-value":t.modelValue,"tab-size":2,"auto-focus":!1,"indent-with-tabs":!0,extensions:[t.oneDark,t.javascript(),t.json()],onChange:t.handleCodeChange},null,8,["model-value","extensions","onChange"])}const rwt=Mr(twt,[["render",nwt]]),iwt=h.defineComponent({name:"DEditorModal",components:{Modal:bo,Editor:rwt,Button:ri},props:{title:{type:String,default:"编辑"},width:{type:Number,default:800}},emits:["ok"],setup(t,{emit:e}){const n=h.ref(!1),r=h.ref("");return{open:s=>{n.value=!0,r.value=s},close:()=>{n.value=!1},code:r,handleOk:()=>{e("ok",r.value),n.value=!1},show:n}}});function owt(t,e,n,r,i,o){const a=h.resolveComponent("Editor"),s=h.resolveComponent("Button"),l=h.resolveComponent("Modal");return h.openBlock(),h.createBlock(l,{open:t.show,"onUpdate:open":e[1]||(e[1]=u=>t.show=u),title:t.title,width:t.width,destroyOnClose:!0},{footer:h.withCtx(()=>[h.renderSlot(t.$slots,"footer",{},()=>[h.createVNode(s,{onClick:t.close},{default:h.withCtx(()=>[h.createTextVNode("取消")]),_:1},8,["onClick"]),h.createVNode(s,{type:"primary",onClick:t.handleOk},{default:h.withCtx(()=>[h.createTextVNode("确定")]),_:1},8,["onClick"])])]),default:h.withCtx(()=>[h.createVNode(a,{code:t.code,"onUpdate:code":e[0]||(e[0]=u=>t.code=u)},null,8,["code"])]),_:3},8,["open","title","width"])}const PP=Mr(iwt,[["render",owt]]);PP.install=t=>(t.component(PP.name,PP),t);const awt=h.createElementVNode("span",{class:"text-gray-500"},"秒",-1),C3=h.defineComponent({__name:"DataConfig",props:{dataSource:{}},emits:["change"],setup(t,{emit:e}){const n=e,r=t,i=h.ref({sourceType:Kn.STATIC,data:"",url:"",method:"",params:{},headers:{},refreshTime:0,dataProcess:"",basicPath:"",viewCode:""}),o=f=>{i.value.refreshTime=f===0||f>=60?f:60};let a;const s=h.ref(null),l=f=>{var d;a=f,(d=s.value)==null||d.open(typeof i.value[f]=="string"?i.value[f]:JSON.stringify(i.value[f]))},u=f=>{try{i.value[a]=JSON.parse(f)}catch{i.value[a]=f}},c=async f=>{const d=await B3e(f);console.log(d),f==="table"?(i.value.basicPath=d.value,i.value.viewCode=""):(i.value.viewCode=d.value,i.value.basicPath="")};return h.watch(()=>r.dataSource,f=>{Object.assign(i.value,f||{})},{immediate:!0}),h.watch(()=>i.value,f=>{n("change",f)},{deep:!0}),(f,d)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(mr),{size:"small",layout:"horizontal",model:i.value,"label-col":{span:8},"wrapper-col":{span:16}},{default:h.withCtx(()=>[h.createVNode(h.unref(mr).Item,{label:"数据源",name:"sourceType"},{default:h.withCtx(()=>[h.createVNode(h.unref(Hi),{value:i.value.sourceType,"onUpdate:value":d[0]||(d[0]=p=>i.value.sourceType=p)},{default:h.withCtx(()=>[h.createVNode(h.unref(Ip),{value:h.unref(Kn).STATIC},{default:h.withCtx(()=>[h.createTextVNode("静态数据")]),_:1},8,["value"]),h.createVNode(h.unref(Ip),{value:h.unref(Kn).API},{default:h.withCtx(()=>[h.createTextVNode("API")]),_:1},8,["value"]),h.createVNode(h.unref(Ip),{value:h.unref(Kn).BASIC_PATH},{default:h.withCtx(()=>[h.createTextVNode("基础数据源")]),_:1},8,["value"]),h.createVNode(h.unref(Ip),{value:h.unref(Kn).VIEW_CODE},{default:h.withCtx(()=>[h.createTextVNode("视图源")]),_:1},8,["value"])]),_:1},8,["value"])]),_:1}),i.value.sourceType===h.unref(Kn).STATIC?(h.openBlock(),h.createBlock(h.unref(mr).Item,{key:0,label:"数据",name:"data"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[1]||(d[1]=p=>l("data"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1})):i.value.sourceType===h.unref(Kn).API?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createVNode(h.unref(mr).Item,{label:"接口地址",name:"url"},{default:h.withCtx(()=>[h.createVNode(h.unref(jn).TextArea,{"auto-size":{minRows:5},placeholder:"请输入接口地址",value:i.value.url,"onUpdate:value":d[2]||(d[2]=p=>i.value.url=p)},null,8,["value"])]),_:1}),h.createVNode(h.unref(mr).Item,{label:"请求方式",name:"method"},{default:h.withCtx(()=>[h.createVNode(h.unref(Rf),{value:i.value.method,"onUpdate:value":d[3]||(d[3]=p=>i.value.method=p)},{default:h.withCtx(()=>[h.createVNode(h.unref(Gi),{value:"GET"},{default:h.withCtx(()=>[h.createTextVNode("GET")]),_:1}),h.createVNode(h.unref(Gi),{value:"POST"},{default:h.withCtx(()=>[h.createTextVNode("POST")]),_:1})]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(mr).Item,{label:"刷新时间",name:"refreshTime"},{default:h.withCtx(()=>[h.createVNode(h.unref(l0),{value:i.value.refreshTime,"onUpdate:value":d[4]||(d[4]=p=>i.value.refreshTime=p),step:1,style:{width:"100%"},onChange:o},{addonAfter:h.withCtx(()=>[awt]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(mr).Item,{label:"请求参数",name:"params"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[5]||(d[5]=p=>l("params"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1}),h.createVNode(h.unref(mr).Item,{label:"请求头",name:"headers"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[6]||(d[6]=p=>l("headers"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1}),h.createVNode(h.unref(mr).Item,{label:"数据处理",name:"dataProcess"},{default:h.withCtx(()=>[h.createVNode(h.unref(ri),{type:"default",size:"small",onClick:d[7]||(d[7]=p=>l("dataProcess"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1})],64)):i.value.sourceType===h.unref(Kn).BASIC_PATH?(h.openBlock(),h.createBlock(h.unref(mr).Item,{key:2,label:"基础数据源",name:"basicPath"},{default:h.withCtx(()=>[h.createVNode(h.unref(jn),{placeholder:"请输入或选择",value:i.value.basicPath,"onUpdate:value":d[9]||(d[9]=p=>i.value.basicPath=p)},{addonAfter:h.withCtx(()=>[h.createVNode(h.unref(dw),{onClick:d[8]||(d[8]=p=>c("table"))})]),_:1},8,["value"])]),_:1})):i.value.sourceType===h.unref(Kn).VIEW_CODE?(h.openBlock(),h.createBlock(h.unref(mr).Item,{key:3,label:"视图源",name:"viewCode"},{default:h.withCtx(()=>[h.createVNode(h.unref(jn),{placeholder:"请输入或选择",value:i.value.viewCode,"onUpdate:value":d[11]||(d[11]=p=>i.value.viewCode=p)},{addonAfter:h.withCtx(()=>[h.createVNode(h.unref(dw),{onClick:d[10]||(d[10]=p=>c("view"))})]),_:1},8,["value"])]),_:1})):h.createCommentVNode("",!0)]),_:1},8,["model"]),h.createVNode(h.unref(PP),{ref_key:"codeEditorRef",ref:s,title:"编辑",onOk:u},null,512)],64))}}),ir={title:{label:"标题",prop:"title",type:"group",children:[{label:" ",prop:"title.show",type:"checkboxGroup",fieldProps:{options:[{label:"标题可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["title.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{type:"dependency",label:"",prop:"",name:["title.show"],children:t=>t["title.show"].length?[{label:"文本",prop:"title.text",type:"input",defaultValue:"图表标题"},{label:"位置",prop:"title.left",type:"position",defaultValue:"center"},{label:"样式",prop:"title.textStyle",type:"fontStyle",defaultValue:{color:"#ffffffff",size:18,bold:!0,italic:!1},format:(e,n)=>{e.value["title.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"title.textStyle.color","#FFFFFF"),size:Ut(n,"title.textStyle.size",16),bold:Ut(n,"title.textStyle.fontWeight")==="bold",italic:Ut(n,"title.textStyle.fontStyle")==="italic"})},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"title.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#FFFFFF00"},format:(e,n)=>{e.value["title.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none",color:"#000000ff"}:{type:"color",color:e.color}},{label:"圆角",prop:"title.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]},legend:{label:"图例",prop:"legend",type:"group",children:[{label:" ",prop:"legend.show",type:"checkboxGroup",fieldProps:{options:[{label:"图例可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["legend.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{type:"dependency",label:"",prop:"",name:["legend.show"],children:t=>t["legend.show"].length?[{label:"位置",prop:"legend.position",type:"position",fieldProps:{type:"round"},defaultValue:"top",format:(e,n)=>{switch(["left","right"].includes(n)?e.value["legend.orient"]="vertical":e.value["legend.orient"]="horizontal",n){case"bottom":e.value["legend.top"]="auto",e.value["legend.right"]="auto",e.value["legend.bottom"]=8,e.value["legend.left"]="center";break;case"left":e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.left"]=8,e.value["legend.top"]="center";break;case"right":e.value["legend.bottom"]="auto",e.value["legend.left"]="auto",e.value["legend.right"]=8,e.value["legend.top"]="center";break;default:e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.top"]=32,e.value["legend.left"]="center"}},valueToForm:(e,n)=>Ut(n,"legend.orient")==="vertical"?e==="top"?"top":e==="bottom"?"bottom":"left":Ut(n,"legend.bottom")===8&&Ut(n,"legend.left")==="center"?"bottom":"top"},{label:"样式",prop:"legend.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["legend.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"legend.textStyle.color","#000000ff"),size:Ut(n,"legend.textStyle.fontSize",12),bold:Ut(n,"legend.textStyle.fontWeight")==="bold",italic:Ut(n,"legend.textStyle.fontStyle")==="italic"})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"legend.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"legend.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"legend.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"背景",prop:"",type:"divider"},{label:"背景",prop:"legend.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,n)=>{e.value["legend.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none"}:{type:"color",color:e.color}},{label:"阴影",prop:"legend.shadowBlur",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,n)=>{n?(e.value["legend.shadowBlur"]=10,e.value["legend.shadowColor"]=e.value["legend.backgroundColor"]||"#000000ff",e.value["legend.shadowOffsetX"]=3,e.value["legend.shadowOffsetY"]=3):(e.value["legend.shadowBlur"]=0,e.value["legend.shadowColor"]="transparent",e.value["legend.shadowOffsetX"]=0,e.value["legend.shadowOffsetY"]=0)},valueToForm:e=>!!e}]:[]}]},series:{label:"系列",prop:"series",type:"group",children:[{label:"配色",prop:"color",type:"colorScheme",defaultValue:Sw[0].color}]},xAxis:{label:"X 轴",prop:"xAxis",type:"group",children:[{label:"类型",prop:"xAxis.type",type:"select",fieldProps:{options:[{label:"类目坐标轴",value:"category"},{label:"数值坐标轴",value:"value"},{label:"时间坐标轴",value:"time"}]},defaultValue:"category"},{label:" ",prop:"xAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[!0],format:(t,e)=>{e!=null&&e.length?(t.value["xAxis.showName"]=!0,t.value["xAxis.name"]="X轴标题",t.value["xAxis.nameGap"]=25):(t.value["xAxis.showName"]=!1,t.value["xAxis.name"]="",t.value["xAxis.nameGap"]=15,t.value["xAxis.nameGap"]=15)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.showName"],children:t=>t["xAxis.showName"].length?[{label:"标题内容",prop:"xAxis.name",type:"input",defaultValue:"X 轴标题",format:(e,n)=>{e.value["xAxis.showName"]&&(e.value["xAxis.name"]=n,e.value["xAxis.nameGap"]=25)},valueToForm:e=>e||"X 轴标题"},{label:"标题位置",prop:"xAxis.nameLocation",type:"position",defaultValue:"center",format:(e,n)=>{const r={left:"start",center:"middle",right:"end"};e.value["xAxis.nameLocation"]=n?r[n]:"middle"},valueToForm:e=>({start:"left",middle:"center",end:"right"})[e]||"center"},{label:"标题样式",prop:"xAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["xAxis.nameTextStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:e=>({color:(e==null?void 0:e.color)||"#000000ff",size:(e==null?void 0:e.fontSize)||12,bold:(e==null?void 0:e.fontWeight)==="bold"||!1,italic:(e==null?void 0:e.fontStyle)==="italic"||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:"线宽",prop:"xAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"xAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisTick.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisTick.show"],children:t=>t["xAxis.axisTick.show"].length?[{label:"刻度宽度",prop:"xAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"xAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisLabel.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisLabel.show"],children:t=>t["xAxis.axisLabel.show"].length?[{label:"样式",prop:"xAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["xAxis.axisLabel.color"]=n==null?void 0:n.color,e.value["xAxis.axisLabel.fontSize"]=n.size,e.value["xAxis.axisLabel.fontWeight"]=n.bold?"bold":"normal",e.value["xAxis.axisLabel.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"xAxis.axisLabel.color","#000000ff"),size:Ut(n,"xAxis.axisLabel.fontSize",12),bold:Ut(n,"xAxis.axisLabel.fontWeight")==="bold",italic:Ut(n,"xAxis.axisLabel.fontStyle")==="italic"})}]:[]}]},yAxis:{label:"Y 轴",prop:"yAxis",type:"group",children:[{label:" ",prop:"yAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[],format:(t,e)=>{e!=null&&e.length?(t.value["yAxis.showName"]=!0,t.value["yAxis.name"]="Y轴标题",t.value["yAxis.nameGap"]=25):(t.value["yAxis.showName"]=!1,t.value["yAxis.name"]="",t.value["yAxis.nameGap"]=15)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.showName"],children:t=>t["yAxis.showName"].length?[{label:"标题内容",prop:"yAxis.name",type:"input",defaultValue:"Y 轴标题",format:(e,n)=>{e.value["yAxis.showName"]?(e.value["yAxis.name"]=n,e.value["yAxis.nameGap"]=25):(e.value["yAxis.name"]="",e.value["yAxis.nameGap"]=15)},valueToForm:e=>e||"Y 轴标题"},{label:"标题位置",prop:"yAxis.nameLocation",type:"position",defaultValue:"center",format:(e,n)=>{const r={left:"start",center:"middle",right:"end"};e.value["yAxis.nameLocation"]=n?r[n]:"middle"},valueToForm:e=>({start:"left",middle:"center",end:"right"})[e]||"center "},{label:"标题样式",prop:"yAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#FFFFFFFF",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["yAxis.nameTextStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:e=>({color:(e==null?void 0:e.color)||"#000000ff",size:(e==null?void 0:e.fontSize)||12,bold:(e==null?void 0:e.fontWeight)==="bold"||!1,italic:(e==null?void 0:e.fontStyle)==="italic"||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLine.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴线",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisLine.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLine.show"],children:t=>t["yAxis.axisLine.show"].length?[{label:"线宽",prop:"yAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"yAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisTick.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisTick.show"],children:t=>t["yAxis.axisTick.show"].length?[{label:"刻度长度",prop:"yAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"yAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisLabel.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLabel.show"],children:t=>t["yAxis.axisLabel.show"].length?[{label:"样式",prop:"yAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["yAxis.axisLabel.color"]=n==null?void 0:n.color,e.value["yAxis.axisLabel.fontSize"]=n.size,e.value["yAxis.axisLabel.fontWeight"]=n.bold?"bold":"normal",e.value["yAxis.axisLabel.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"yAxis.axisLabel.color","#000000ff"),size:Ut(n,"yAxis.axisLabel.fontSize",12),bold:Ut(n,"yAxis.axisLabel.fontWeight")==="bold",italic:Ut(n,"yAxis.axisLabel.fontStyle")==="italic"})},{label:"旋转角度",prop:"yAxis.axisLabel.rotate",type:"inputNumber",fieldProps:{addonAfter:"°",min:-90,max:90,step:1}}]:[]}]},tooltip:{label:"提示",prop:"tooltip",type:"group",children:[{label:" ",prop:"tooltip.show",type:"checkboxGroup",fieldProps:{options:[{label:"提示可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["tooltip.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["tooltip.show"],children:t=>t["tooltip.show"].length?[{label:"文本",prop:"tooltip.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["b"],format:(e,n)=>{e.value["tooltip.formatter"]=n.map(r=>`{${r}}`).join(" ")},valueToForm:(e,n)=>{var r,i;return(i=(r=Ut(n,"tooltip.formatter"))==null?void 0:r.replace(/\{|\}/g,""))==null?void 0:i.split(" ")}},{label:"样式",prop:"tooltip.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["tooltip.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"tooltip.textStyle.color","#000000ff"),size:Ut(n,"tooltip.textStyle.fontSize",12),bold:Ut(n,"tooltip.textStyle.fontWeight")==="bold",italic:Ut(n,"tooltip.textStyle.fontStyle")==="italic"})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"tooltip.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"tooltip.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"tooltip.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:4},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"tooltip.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,n)=>{e.value["tooltip.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none"}:{type:"color",color:e}},{label:"阴影",prop:"tooltip.extraCssText",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,n)=>{e.value["tooltip.extraCssText"]=n?"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);":""},valueToForm:(e,n)=>!!Ut(n,"tooltip.extraCssText")}]:[]}]},label:{label:"标签",prop:"label",type:"group",children:[{label:" ",prop:"label.show",type:"checkboxGroup",fieldProps:{options:[{label:"标签可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["label.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["label.show"],children:t=>t["label.show"].length?[{label:"文本",prop:"label.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["a"],format:(e,n)=>{e.value["label.formatter"]=`{${n}}`},valueToForm:(e,n)=>{var r,i;return(i=(r=Ut(n,"label.formatter"))==null?void 0:r.replace(/\{|\}/g,""))==null?void 0:i.split(" ")}},{label:"样式",prop:"label.fontStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["label.color"]=n==null?void 0:n.color,e.value["label.fontSize"]=n.size,e.value["label.fontWeight"]=n.bold?"bold":"normal",e.value["label.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"label.color","#000000ff"),size:Ut(n,"label.fontSize",12),bold:Ut(n,"label.fontWeight")==="bold",italic:Ut(n,"label.fontStyle")==="italic"})},{label:"布局",prop:"",type:"divider"},{label:"位置",prop:"label.position",type:"radioGroup",fieldProps:{options:[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"},{label:"内部",value:"inside"},{label:"内部左侧",value:"insideLeft"},{label:"内部右侧",value:"insideRight"},{label:"内部顶部",value:"insideTop"},{label:"内部底部",value:"insideBottom"}]},defaultValue:"top"},{label:"文本方向",prop:"label.rotate",type:"radioGroup",fieldProps:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]},defaultValue:"horizontal",format:(e,n)=>{e.value["label.rotate"]=n==="horizontal"?0:90},valueToForm:e=>e===0?"horizontal":"vertical"},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"label.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"label.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"label.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]}},gpe=t=>(h.pushScopeId("data-v-0b356b47"),t=t(),h.popScopeId(),t),swt={class:"chart-config"},lwt={class:"config-tab"},uwt=gpe(()=>h.createElementVNode("span",null,"数据设置",-1)),cwt=gpe(()=>h.createElementVNode("span",null,"样式设置",-1)),T3=Mr(h.defineComponent({__name:"Config",props:zC,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"线",prop:"",type:"divider"},{label:"线条样式",prop:"series.line.lineStyle.type",type:"select",fieldProps:{options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}},{label:"线宽",prop:"series.line.lineStyle.width",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"形态",prop:"series.line.lineType",type:"radioGroupButton",fieldProps:{options:[{label:"普通",value:"normal"},{label:"平滑",value:"smooth"},{label:"阶梯",value:"step"}]},format:(u,c)=>{switch(c){case"smooth":u.value["series.line.smooth"]=!0,u.value["series.line.step"]=!1;break;case"step":u.value["series.line.smooth"]=!1,u.value["series.line.step"]="end";break;default:u.value["series.line.smooth"]=!1,u.value["series.line.step"]=!1}},valueToForm:(u,c)=>{const f=Ut(c,"series.line.step"),d=Ut(c,"series.line.smooth");return f?"step":d?"smooth":"normal"}},{label:"标记点",prop:"",type:"divider"},{label:"图形",prop:"series.line.symbol",type:"select",fieldProps:{options:[{label:"圆",value:"circle"},{label:"方",value:"rect"},{label:"三角",value:"triangle"},{label:"菱形",value:"diamond"},{label:"标记",value:"pin"},{label:"箭头",value:"arrow"},{label:"无",value:"none"}]}},{label:"大小",prop:"series.line.symbolSize",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"旋转",prop:"series.line.symbolRotate",type:"inputNumber",fieldProps:{min:0,addonAfter:"°"}}],a=[ir.title,ir.legend,ir.label,{...ir.series,children:ir.series.children.concat(o)},ir.tooltip,ir.background],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=ff(n);Object.keys(u).forEach(f=>{J2(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",swt,[h.createElementVNode("div",lwt,[h.createVNode(h.unref(kf),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(d0)),uwt]),_:1}),h.createVNode(h.unref(Nl),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(h0)),cwt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(C3,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(Qu),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0b356b47"]]);ch.Config=T3,ch.install=t=>(t.component(ch.name,ch),t);const fwt=Object.freeze(Object.defineProperty({__proto__:null,Config:T3,basicLineProps:zC,default:ch,defaultPropsValue:sse},Symbol.toStringTag,{value:"Module"})),$P={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:T4,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},color:{type:Object},seriesExtend:{type:Object,default:()=>vpe}},dwt=[],vpe={fixedBarWidth:!1,barWidth:"auto",barGap:"10%",barCategoryGap:"20%",itemStyle:{borderColor:"#ccc",borderRadius:0,borderWidth:0}},hwt=C4({title:{text:"柱状图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:dwt,seriesExtend:vpe}),mpe={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Kn.STATIC,data:{series:[{type:"bar",name:"系列1",data:[10,30,20,40]},{type:"bar",name:"系列2",data:[15,35,25,45]}]},url:location.origin+"/mock/api/get/example/bar",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  459. (res) => {
  460. // 取出列表
  461. const data = res.data;
  462. // x轴数据
  463. const xData = data.map((item) => item.name);
  464. // 系列数据
  465. const series = [
  466. { type: 'bar', name: '价格', data: data.map(item => item.price) },
  467. { type: 'bar', name: '总量', data: data.map(item => item.count) },
  468. ];
  469. // 返回图表数据
  470. return { xData, series };
  471. }
  472. `},...hwt}},pwt=h.defineComponent({name:"DBasicBar",components:{Charts:x4},props:$P,setup(t){const{options:e,loading:n}=q4(t);return{options:e,loading:n}}});function gwt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const xh=Mr(pwt,[["render",gwt]]),ype=t=>(h.pushScopeId("data-v-3945a2ab"),t=t(),h.popScopeId(),t),vwt={class:"chart-config"},mwt={class:"config-tab"},ywt=ype(()=>h.createElementVNode("span",null,"数据设置",-1)),bwt=ype(()=>h.createElementVNode("span",null,"样式设置",-1)),P3=Mr(h.defineComponent({__name:"Config",props:$P,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"样式",prop:"",type:"divider"},{label:"固定柱宽",prop:"seriesExtend.fixedBarWidth",type:"radioGroup",fieldProps:{options:[{label:"是",value:!0},{label:"否",value:!1}]},defaultValue:!1,format:(u,c)=>{var f,d;u.value["seriesExtend.barWidth"]=c&&((f=u.value)==null?void 0:f["seriesExtend.barWidth"])!=="auto"?((d=u.value)==null?void 0:d["seriesExtend.barWidth"])||20:"auto"}},{label:"",prop:"",type:"dependency",name:["seriesExtend.fixedBarWidth"],children:u=>u["seriesExtend.fixedBarWidth"]?[{label:"柱宽",prop:"seriesExtend.barWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:20}]:[]},{label:"系列间隔",prop:"seriesExtend.barGap",type:"slider",defaultValue:30,format:(u,c)=>{u.value["seriesExtend.barGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"分类间隔",prop:"seriesExtend.barCategoryGap",type:"slider",defaultValue:20,format:(u,c)=>{u.value["seriesExtend.barCategoryGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"seriesExtend.itemStyle.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"seriesExtend.itemStyle.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"seriesExtend.itemStyle.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}],a=[ir.title,ir.legend,ir.label,{...ir.series,children:ir.series.children.concat(o)},ir.xAxis,ir.yAxis,ir.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=ff(n);Object.keys(u).forEach(f=>{J2(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",vwt,[h.createElementVNode("div",mwt,[h.createVNode(h.unref(kf),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(d0)),ywt]),_:1}),h.createVNode(h.unref(Nl),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(h0)),bwt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(C3,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(Qu),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-3945a2ab"]]);xh.Config=P3,xh.install=t=>(t.component(xh.name,xh),t);const _wt=Object.freeze(Object.defineProperty({__proto__:null,Config:P3,basicBarProps:$P,default:xh,defaultPropsValue:mpe},Symbol.toStringTag,{value:"Module"})),AP={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:T4,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},series:{type:Array},color:{type:Object},seriesExtend:{type:Object,default:()=>bpe}},Owt=[],bpe={top:70,left:20,right:20,bottom:20,startAngle:0,endAngle:360,radius:["0%","75%"]},wwt=C4({title:{text:"饼图标题"},grid:{show:!1},xAxis:{show:!1},yAxis:{show:!1},series:Owt,seriesExtend:bpe}),_pe={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Kn.STATIC,data:{series:[{type:"pie",name:"系列1",data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"}]}]},url:location.origin+"/mock/api/get/example/pie",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  473. (res) => {
  474. // 取出列表
  475. const data = res.data;
  476. // 系列数据
  477. const series = [
  478. { type: 'pie', name: '月份', data: data.map(item => ({value: item.apple, name: item.name})) }
  479. ];
  480. // 返回图表数据
  481. return { series };
  482. }
  483. `},...wwt}},Swt=h.defineComponent({name:"DBasicPie",components:{Charts:x4},props:AP,setup(t){const{options:e,loading:n}=q4(t);return{options:e,loading:n}}});function xwt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const Ch=Mr(Swt,[["render",xwt]]),Ope=t=>(h.pushScopeId("data-v-4184f99c"),t=t(),h.popScopeId(),t),Cwt={class:"chart-config"},Twt={class:"config-tab"},Pwt=Ope(()=>h.createElementVNode("span",null,"数据设置",-1)),$wt=Ope(()=>h.createElementVNode("span",null,"样式设置",-1)),$3=Mr(h.defineComponent({__name:"Config",props:AP,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"样式",prop:"",type:"divider"},{label:"起始角度",prop:"series.pie.startAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"完结角度",prop:"series.pie.endAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"内径占比",prop:"series.pie.radius",type:"slider",format:(u,c)=>{const f=c*.75;return u.value["series.pie.radius"]=[f+"%","75%"],c*100},valueToForm:u=>(u||["0%","75%"])[0].replace("%","")/.75},{label:"容器距离",prop:"",type:"divider"},{label:"距离左侧",prop:"series.pie.left",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离右侧",prop:"series.pie.right",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离顶部",prop:"series.pie.top",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离底部",prop:"series.pie.bottom",type:"inputNumber",fieldProps:{addonAfter:"px"}}],a=[ir.title,ir.legend,ir.label,{...ir.series,children:ir.series.children.concat(o)},ir.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=ff(n);Object.keys(u).forEach(f=>{J2(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",Cwt,[h.createElementVNode("div",Twt,[h.createVNode(h.unref(kf),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(d0)),Pwt]),_:1}),h.createVNode(h.unref(Nl),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(h0)),$wt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(C3,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(Qu),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-4184f99c"]]);Ch.Config=$3,Ch.install=t=>(t.component(Ch.name,Ch),t);const Awt=Object.freeze(Object.defineProperty({__proto__:null,Config:$3,basicPieProps:AP,default:Ch,defaultPropsValue:_pe},Symbol.toStringTag,{value:"Module"})),Ewt={Title:()=>Promise.resolve().then(()=>pBe),BasicLine:()=>Promise.resolve().then(()=>fwt),BasicBar:()=>Promise.resolve().then(()=>_wt),BasicPie:()=>Promise.resolve().then(()=>Awt),Container:()=>Promise.resolve().then(()=>F3e)},A3={BasicLine:ch,BasicBar:xh,Title:Gf,BasicPie:Ch,Container:Hf},wpe=function(t){return Object.keys(A3).forEach(e=>{const n=A3[e];n!=null&&n.install&&(console.log("注册组件:",e),t.use(n))}),t},Mwt={version:"1.0.0",install:wpe};Lt.BasicBar=xh,Lt.BasicBarConfig=P3,Lt.BasicBarDefaultProps=mpe,Lt.BasicBarProps=$P,Lt.BasicLine=ch,Lt.BasicLineConfig=T3,Lt.BasicLineDefaultProps=sse,Lt.BasicLineProps=zC,Lt.BasicPie=Ch,Lt.BasicPieConfig=$3,Lt.BasicPieDefaultProps=_pe,Lt.BasicPieProps=AP,Lt.Container=Hf,Lt.CusForm=Qu,Lt.DataSourceType=Kn,Lt.Title=Gf,Lt.asyncComponentAll=Ewt,Lt.components=A3,Lt.default=Mwt,Lt.install=wpe,Object.defineProperties(Lt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
  484. //# sourceMappingURL=shalu-dashboard-ui.umd.cjs.map